kshitijrajsharma commited on
Commit
bb3c338
·
verified ·
1 Parent(s): 32472e0

Publish streetlevel-poles dataset

Browse files
README.md ADDED
@@ -0,0 +1,183 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-sa-4.0
3
+ task_categories:
4
+ - object-detection
5
+ language:
6
+ - en
7
+ pretty_name: Street-level Poles & Towers
8
+ size_categories:
9
+ - 1K<n<10K
10
+ tags:
11
+ - object-detection
12
+ - yolo
13
+ - streetlevel
14
+ - panoramax
15
+ - openstreetmap
16
+ - poles
17
+ - towers
18
+ - infrastructure
19
+ configs:
20
+ - config_name: default
21
+ data_files:
22
+ - split: train
23
+ path: data/train/*.parquet
24
+ - split: validation
25
+ path: data/val/*.parquet
26
+ - split: test
27
+ path: data/test/*.parquet
28
+ ---
29
+
30
+ # Street-level Poles & Towers
31
+
32
+ Object detection dataset of utility **poles** and **towers** in street-level
33
+ imagery, packaged from the *Object Detection (Berkeley)* working set produced
34
+ under the HOT-OSM YOLO experiments. The dataset is shipped in two compatible
35
+ layouts:
36
+
37
+ - **HuggingFace parquet** (default loader): images embedded as bytes, with
38
+ COCO-style bounding boxes (`x, y, w, h` in pixels), class labels, and
39
+ per-image source metadata. Loadable with `datasets.load_dataset(...)`.
40
+ - **COCO JSON** (`coco/instances_{train,val,test}.json`) alongside the
41
+ original **YOLO** layout description in `data.yaml`, for native use with
42
+ Ultralytics or any COCO-aware trainer.
43
+
44
+ ## Classes
45
+
46
+ | id | name |
47
+ |----|-------|
48
+ | 0 | pole |
49
+ | 1 | tower |
50
+
51
+ ## Splits
52
+
53
+ | split | images | positive | negative | boxes | pole boxes | tower boxes |
54
+ |-------|-------:|---------:|---------:|------:|-----------:|------------:|
55
+ | train | 2,001 | 227 | 1,774 | 338 | 199 | 139 |
56
+ | val | 996 | 501 | 495 | 816 | 505 | 311 |
57
+ | test | 503 | 256 | 247 | 409 | 273 | 136 |
58
+ | total | 3,500 | 984 | 2,516 | 1,563 | 977 | 586 |
59
+
60
+ Note: the train split is heavily dominated by **negative** (no-object)
61
+ samples and the positive/negative ratios are not balanced across splits.
62
+ This reflects the upstream curation rather than a sampling decision; users
63
+ training detectors may want to resample for class balance.
64
+
65
+ ## Geographic coverage
66
+
67
+ Per-image geographic metadata (latitude, longitude, Panoramax id, source
68
+ URL) is available on **1,051 negative samples** sourced from
69
+ [panoramax.openstreetmap.fr](https://panoramax.openstreetmap.fr). Coverage
70
+ spans roughly Western Europe and East Asia (latitude 24.8 to 53.1,
71
+ longitude -4.6 to 121.5). Positive samples generally do not carry
72
+ per-image coordinates: their geographic origin is encoded only as a
73
+ filename prefix (`bryan_*`, `shanghai_*`, `oakland_*`, `berkeley_*`) or
74
+ through Roboflow-style identifiers.
75
+
76
+ Visualizations available under `artifacts/`:
77
+
78
+ - `geo_map.html` — interactive map of all geotagged samples.
79
+ - `geo_map.png` — static scatter plot of latitude vs longitude.
80
+ - `split_class_counts.png` — bounding box counts by class and split.
81
+ - `image_counts.png` — image counts by split, broken down positive / negative.
82
+ - `boxes_per_image.png` — histogram of boxes per positive image.
83
+ - `source_distribution.png` — image counts by source prefix.
84
+
85
+ ## Source provenance
86
+
87
+ | source prefix | images |
88
+ |---------------|-------:|
89
+ | bryan | 3,452 |
90
+ | roboflow | 42 |
91
+ | shanghai | 5 |
92
+ | oakland | 1 |
93
+
94
+ `bryan_*` is the dominant prefix and includes both positive and Panoramax
95
+ sourced negative samples. `roboflow` denotes images stored under the
96
+ Roboflow-style identifier scheme (`<hash>_jpg.rf.<token>.jpg`).
97
+
98
+ ## Parquet schema
99
+
100
+ ```python
101
+ {
102
+ "image": Image(decode=True), # JPEG bytes
103
+ "image_id": Value("string"), # filename stem
104
+ "width": Value("int32"),
105
+ "height": Value("int32"),
106
+ "objects": {
107
+ "bbox": Sequence(Sequence(Value("float32"), length=4)), # [x, y, w, h] in pixels (COCO)
108
+ "category": Sequence(ClassLabel(names=["pole", "tower"])),
109
+ },
110
+ "source": Value("string"), # bryan | roboflow | shanghai | oakland
111
+ "panoramax_id": Value("string"), # populated for geotagged negatives
112
+ "source_url": Value("string"), # original Panoramax derivate URL
113
+ "lat": Value("float64"),
114
+ "lon": Value("float64"),
115
+ }
116
+ ```
117
+
118
+ ## Loading
119
+
120
+ ```python
121
+ from datasets import load_dataset
122
+
123
+ ds = load_dataset("kshitijrajsharma/streetlevel-poles")
124
+ ds["train"][0]["image"] # PIL.Image
125
+ ds["train"][0]["objects"] # {"bbox": [...], "category": [...]}
126
+ ```
127
+
128
+ For the YOLO / Ultralytics workflow, point at the `data.yaml` shipped with
129
+ the dataset after downloading the `coco/` and image folders, or regenerate
130
+ the YOLO layout from the parquet shards (helper in this repo).
131
+
132
+ ## Baseline
133
+
134
+ A short YOLOv11n baseline was trained on this dataset for 10 epochs at
135
+ `imgsz=640`. Test split results:
136
+
137
+ | metric | value |
138
+ |-----------------|------:|
139
+ | mAP@50 | 0.332 |
140
+ | mAP@50-95 | 0.120 |
141
+ | precision | 0.455 |
142
+ | recall | 0.345 |
143
+
144
+ See `artifacts/baseline_results.png`,
145
+ `artifacts/baseline_confusion_matrix.png`, and
146
+ `artifacts/baseline_pr_curve.png` for full curves.
147
+
148
+ This is intended as a sanity-check baseline, not a state-of-the-art result.
149
+ The dataset is small, class-imbalanced, and the train split is dominated by
150
+ negatives, so longer training and rebalancing are likely to help.
151
+
152
+ ## Reproducing
153
+
154
+ ```bash
155
+ just setup
156
+ just extract
157
+ just convert
158
+ just viz
159
+ just parquet
160
+ just train # YOLOv11n, 10 epochs
161
+ just upload
162
+ ```
163
+
164
+ ## License
165
+
166
+ Released under **CC-BY-SA-4.0**. The negative samples derive from
167
+ Panoramax / OpenStreetMap-sourced street-level imagery; share-alike
168
+ compatibility is preserved.
169
+
170
+ ## Citation
171
+
172
+ If you use this dataset, please cite the originating work and this
173
+ distribution:
174
+
175
+ ```
176
+ @misc{streetlevel-poles,
177
+ title = {Street-level Poles & Towers},
178
+ author = {Sharma, Kshitij Raj and contributors},
179
+ year = {2026},
180
+ howpublished = {HuggingFace Datasets},
181
+ url = {https://huggingface.co/datasets/kshitijrajsharma/streetlevel-poles}
182
+ }
183
+ ```
artifacts/baseline_confusion_matrix.png ADDED

Git LFS Details

  • SHA256: 6ff2161aaff63a27b531301008872fdcfe222cd849d8c645727ef07a4d5ba65b
  • Pointer size: 131 Bytes
  • Size of remote file: 104 kB
artifacts/baseline_metrics.json ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "model": "yolo11n.pt",
3
+ "epochs": 10,
4
+ "imgsz": 640,
5
+ "save_dir": "/home/krschap/code/hf/streetlevel-poles/runs/yolo11n-baseline",
6
+ "metrics": {
7
+ "test_map50": 0.33220510652939983,
8
+ "test_map50_95": 0.11985106815782695,
9
+ "test_precision": 0.45535131929129263,
10
+ "test_recall": 0.3453592975651799
11
+ }
12
+ }
artifacts/baseline_pr_curve.png ADDED

Git LFS Details

  • SHA256: 0f520f361060355d9b2a831b526e8603f95185f63409af758b81ad5911f5c5de
  • Pointer size: 131 Bytes
  • Size of remote file: 143 kB
artifacts/baseline_results.png ADDED

Git LFS Details

  • SHA256: 9c7136941d76fac804a4f69fe015624304fed5e8efa291c22af23b16f7b71da5
  • Pointer size: 131 Bytes
  • Size of remote file: 276 kB
artifacts/boxes_per_image.png ADDED

Git LFS Details

  • SHA256: 0eaa0b41e566d914933917067ec5b038de220a6cd7497e4bdbc372bb6877f4cc
  • Pointer size: 130 Bytes
  • Size of remote file: 30.3 kB
artifacts/geo_map.html ADDED
The diff for this file is too large to render. See raw diff
 
artifacts/geo_map.png ADDED

Git LFS Details

  • SHA256: fa50b359d17eef19e376b6b0ffacd84b37677fd98abe3b1cdf3ea87783242850
  • Pointer size: 130 Bytes
  • Size of remote file: 64 kB
artifacts/image_counts.png ADDED

Git LFS Details

  • SHA256: 2ee556b85dfd5343c4f6655965382cbeb3c6bef13f1ca56233dc3d9d076d43f1
  • Pointer size: 130 Bytes
  • Size of remote file: 36 kB
artifacts/source_distribution.png ADDED

Git LFS Details

  • SHA256: b6ad76c3c087f849e98d38fee8f0865fc0e1d7fd70f10ad0d2d889df894bb73a
  • Pointer size: 130 Bytes
  • Size of remote file: 39 kB
artifacts/split_class_counts.png ADDED

Git LFS Details

  • SHA256: 3334707044c42ee68264412e07007377175f4a0d56953c5b8d66842a54d36a0c
  • Pointer size: 130 Bytes
  • Size of remote file: 28.8 kB
artifacts/test_confusion_matrix.png ADDED

Git LFS Details

  • SHA256: 5b4b9683a9a6ff45fc85137a69ae2b20f662dfe8746d7ae22721cce5a10f705d
  • Pointer size: 131 Bytes
  • Size of remote file: 102 kB
coco/instances_test.json ADDED
The diff for this file is too large to render. See raw diff
 
coco/instances_train.json ADDED
The diff for this file is too large to render. See raw diff
 
coco/instances_val.json ADDED
The diff for this file is too large to render. See raw diff
 
data.yaml ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ names:
2
+ - pole
3
+ - tower
4
+ nc: 2
5
+ test: /content/drive/MyDrive/ObjectDetection/YOLO_Dataset/images/test
6
+ train: /content/drive/MyDrive/ObjectDetection/YOLO_Dataset/images/train
7
+ val: /content/drive/MyDrive/ObjectDetection/YOLO_Dataset/images/val
data/classes.txt ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ pole
2
+ tower
data/test/test-00000-of-00002.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:827fab4aebaa67a4961858e31c4fbfe9e34fc0fc799456e000bca630fc377637
3
+ size 89761626
data/test/test-00001-of-00002.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:953b7395b58a21502ee71bd7ccaa016c207520e9dcd8310f8520838e9ea0de92
3
+ size 70822524
data/train/train-00000-of-00005.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0996a75a145ced21d372a09d262b4eeb96a86e2289d9c1c8410af826e75638a3
3
+ size 141393996
data/train/train-00001-of-00005.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:eac7cb3d667023cf853f3e0b4abd32beda93bad2fdb4c758e264443ed625d3b0
3
+ size 140573159
data/train/train-00002-of-00005.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f55ee5ae61b30d81a8a42b8b1957a7b8cc77aed8e806e3de51730e503f7f7380
3
+ size 142069221
data/train/train-00003-of-00005.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bdb1cd878e705822784e0a313c933ed95973eff3513ced629624dc5f2a5acb85
3
+ size 137660310
data/train/train-00004-of-00005.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dd02b8975b2dc6c4fb31b9429c590891d7b5756ef0eadb691309d588ae3e4ea4
3
+ size 119531278
data/val/val-00000-of-00002.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2a52dffefbe5d8fb9ee676eaac57b58a21a75e9db64d9d32a3db21912814b0f9
3
+ size 177239832
data/val/val-00001-of-00002.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:83cc68f40b9de4ca5ce213b0f524021bccbee68275bc8d21258e05ea928cd1c5
3
+ size 144583382
metadata.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dc5cee645372eb5f5fe228aa34f45341a0445777de2c20e7c1965ece2d1c4e13
3
+ size 219300