Datasets:
Tasks:
Object Detection
Modalities:
Image
Formats:
imagefolder
Languages:
English
Size:
1K - 10K
ArXiv:
License:
Copy edit: reduce dash overuse in prose
Browse files
README.md
CHANGED
|
@@ -20,10 +20,10 @@ tags:
|
|
| 20 |
- unlabeled
|
| 21 |
description: A 2,227-image, media-only sample of InsPLAD-det (UAV power line inspection
|
| 22 |
imagery), built for a hands-on FiftyOne workshop on rare-class data curation. No
|
| 23 |
-
label fields are attached by design
|
| 24 |
compression, embedding, seeded similarity mining, and annotation prioritization
|
| 25 |
before ever touching a model. A deterministic 4-tier stratified sample (seed=51)
|
| 26 |
-
drawn from the full 10,561-image InsPLAD-det
|
| 27 |
(the rare mining target), 562 images from 14 intact drone-flight sequences (a real
|
| 28 |
near-duplicate wall), 1,210 images across `polymer insulator` / `glass insulator`
|
| 29 |
/ `yoke` (clean embedding clusters), and 213 long-tail images for texture.
|
|
@@ -109,7 +109,7 @@ InsPLAD Workshop Pool is a 2,227-image, **media-only** sample of
|
|
| 109 |
teach a rare-class data curation workflow in FiftyOne: compress a raw image pool,
|
| 110 |
embed it, mine a rare class from a handful of seed examples, prioritize the rest
|
| 111 |
for annotation, fine-tune a detector, and correct its mistakes. This dataset ships
|
| 112 |
-
with **zero label fields by design**
|
| 113 |
images deserve human attention before any labels exist. The images sampled into
|
| 114 |
this pool were deliberately stratified (not randomly subsampled) so that every
|
| 115 |
step of that workflow has something real to find: a genuine rare class, genuine
|
|
@@ -149,7 +149,7 @@ workflows without downloading the full 10,561-image, 4.2 GB source dataset.
|
|
| 149 |
|
| 150 |
### Out-of-Scope Use
|
| 151 |
|
| 152 |
-
Not intended as a benchmark dataset for reporting detection accuracy
|
| 153 |
deliberately non-random, stratified sample built for a specific teaching workflow,
|
| 154 |
not an i.i.d. sample of InsPLAD-det. Any commercial use is out of scope; the
|
| 155 |
source license (CC BY-NC 3.0) is non-commercial only. Not suitable for identifying
|
|
@@ -160,7 +160,7 @@ power line hardware only).
|
|
| 160 |
|
| 161 |
This is a flat image dataset (`media_type = "image"`), not grouped or video, with
|
| 162 |
**2,227 samples** and no splits or saved views. Every sample carries only
|
| 163 |
-
FiftyOne's default fields
|
| 164 |
and no per-sample sampling-tier label. This is intentional: the dataset is meant
|
| 165 |
to be loaded and explored exactly as if no prior work had been done on it.
|
| 166 |
|
|
@@ -169,7 +169,7 @@ to be loaded and explored exactly as if no prior work had been done on it.
|
|
| 169 |
| Field | FiftyOne type | Description |
|
| 170 |
|-------|---------------|-------------|
|
| 171 |
| `filepath` | `StringField` | Path to the image file |
|
| 172 |
-
| `tags` | list of `str` | Empty for every sample
|
| 173 |
| `metadata` | `ImageMetadata` | Not populated (`None`) until `dataset.compute_metadata()` is run |
|
| 174 |
|
| 175 |
### `dataset.info`
|
|
@@ -179,7 +179,7 @@ to be loaded and explored exactly as if no prior work had been done on it.
|
|
| 179 |
"source": "https://github.com/andreluizbvs/InsPLAD",
|
| 180 |
"note": (
|
| 181 |
"Media-only workshop pool sampled from InsPLAD-det. No labels "
|
| 182 |
-
"attached by design
|
| 183 |
"sampling manifest and heldout_ground_truth.json for the real "
|
| 184 |
"boxes, held out until the 'close the loop' act."
|
| 185 |
),
|
|
@@ -197,8 +197,8 @@ to be loaded and explored exactly as if no prior work had been done on it.
|
|
| 197 |
- **No tier or split metadata shipped.** Which sampling tier (rare target,
|
| 198 |
duplicate-wall, common-class, long-tail) or original InsPLAD split (`train`/
|
| 199 |
`val`) each image came from is recorded in `workshop_pool_manifest.json` at
|
| 200 |
-
build time, not carried into the FiftyOne dataset's fields
|
| 201 |
-
pool
|
| 202 |
- **Whole scenes only, no crops.** Unlike the full InsPLAD-fault sub-datasets
|
| 203 |
(cropped, near-square asset images), every image in this pool is a full UAV
|
| 204 |
scene from InsPLAD-det. A bounding-box task only makes sense on full scenes,
|
|
@@ -220,7 +220,7 @@ to work with, at roughly a fifth of the source data's size.
|
|
| 220 |
Two scripts build this pool from the original InsPLAD-det source; both are
|
| 221 |
included verbatim below for full reproducibility.
|
| 222 |
|
| 223 |
-
#### Step 1
|
| 224 |
|
| 225 |
InsPLAD ships as a single Mendeley Data record containing three inner zips
|
| 226 |
(`InsPLAD-det.zip`, `supervised_fault_classification.zip`,
|
|
@@ -230,7 +230,7 @@ untouched.
|
|
| 230 |
|
| 231 |
```python
|
| 232 |
"""Step 1: Download InsPLAD from source and extract only the detection
|
| 233 |
-
(InsPLAD-det) sub-dataset
|
| 234 |
images. This workshop uses whole images only.
|
| 235 |
|
| 236 |
Source: Mendeley Data, https://data.mendeley.com/datasets/5n3fjgvfyz/1
|
|
@@ -238,7 +238,7 @@ The Mendeley record ships one outer zip containing three inner zips
|
|
| 238 |
(InsPLAD-det.zip, supervised_fault_classification.zip,
|
| 239 |
unsupervised_anomaly_detection.zip). We download the outer zip (it's a
|
| 240 |
single file on Mendeley, can't be split at the API level), but only extract
|
| 241 |
-
InsPLAD-det.zip from it
|
| 242 |
"""
|
| 243 |
import zipfile
|
| 244 |
from pathlib import Path
|
|
@@ -276,16 +276,16 @@ def extract_det_only(outer_zip, det_dir):
|
|
| 276 |
inner_zip_path.unlink() # don't need the intermediate inner zip anymore
|
| 277 |
```
|
| 278 |
|
| 279 |
-
Result: `data/InsPLAD-det/{train,val}/*.jpg` plus COCO annotation JSONs
|
| 280 |
unique images (46 duplicate COCO `image_id` entries for the same file are a known
|
| 281 |
quirk of the source data, resolved during staging).
|
| 282 |
|
| 283 |
-
#### Step 2
|
| 284 |
|
| 285 |
```python
|
| 286 |
"""Step 2: Build the reproducible, stratified workshop pool manifest from
|
| 287 |
InsPLAD-det's raw images. Whole scene images only, no labels attached to
|
| 288 |
-
the resulting pool
|
| 289 |
separately in step 3, held out for the "close the loop" act.
|
| 290 |
|
| 291 |
Tiers:
|
|
@@ -293,14 +293,14 @@ Tiers:
|
|
| 293 |
~1% of images, ~99% of them the dominant subject in frame.
|
| 294 |
2. Duplicate-wall flights: N whole flights kept 100% intact, giving the
|
| 295 |
"compress" act a real wall of near-identical drone frames to find
|
| 296 |
-
(not simulated
|
| 297 |
3. Common-class coverage: capped per-flight samples of `polymer insulator`,
|
| 298 |
-
`glass insulator`, `yoke`
|
| 299 |
without needing thousands of images per class.
|
| 300 |
4. Long-tail texture: one image per remaining flight, so the embedding
|
| 301 |
plot's messy middle still looks like a messy middle.
|
| 302 |
|
| 303 |
-
Deterministic given SEED
|
| 304 |
this runs live at the workshop or at home.
|
| 305 |
"""
|
| 306 |
import random
|
|
@@ -354,14 +354,14 @@ Result, with `seed=51`:
|
|
| 354 |
|
| 355 |
| Tier | What it keeps | Images |
|
| 356 |
|---|---|---|
|
| 357 |
-
| 1
|
| 358 |
-
| 2
|
| 359 |
-
| 3
|
| 360 |
-
| 4
|
| 361 |
| **Total** | | **2,227** |
|
| 362 |
|
| 363 |
A later staging step copies these 2,227 images into a lean pool directory and
|
| 364 |
-
converts their real COCO boxes to FiftyOne's relative `[x, y, w, h]` format
|
| 365 |
but writes them to `heldout_ground_truth.json` rather than into the FiftyOne
|
| 366 |
dataset, which is imported strictly media-only.
|
| 367 |
|
|
@@ -371,7 +371,7 @@ dataset, which is imported strictly media-only.
|
|
| 371 |
|
| 372 |
The underlying images were captured by UAV (drone) during real-world inspections
|
| 373 |
of operating power lines, at 1920x1080 resolution, under varied environmental
|
| 374 |
-
conditions, orientations, and distances
|
| 375 |
[InsPLAD dataset card](https://huggingface.co/datasets/harpreetsahota/InsPLAD)
|
| 376 |
for the full collection and annotation process. This derivative pool applies no
|
| 377 |
further transformation to the images themselves; it only selects which 2,227 of
|
|
|
|
| 20 |
- unlabeled
|
| 21 |
description: A 2,227-image, media-only sample of InsPLAD-det (UAV power line inspection
|
| 22 |
imagery), built for a hands-on FiftyOne workshop on rare-class data curation. No
|
| 23 |
+
label fields are attached by design; this is a genuine cold-start pool for practicing
|
| 24 |
compression, embedding, seeded similarity mining, and annotation prioritization
|
| 25 |
before ever touching a model. A deterministic 4-tier stratified sample (seed=51)
|
| 26 |
+
drawn from the full 10,561-image InsPLAD-det; all 242 `tower id plate` images
|
| 27 |
(the rare mining target), 562 images from 14 intact drone-flight sequences (a real
|
| 28 |
near-duplicate wall), 1,210 images across `polymer insulator` / `glass insulator`
|
| 29 |
/ `yoke` (clean embedding clusters), and 213 long-tail images for texture.
|
|
|
|
| 109 |
teach a rare-class data curation workflow in FiftyOne: compress a raw image pool,
|
| 110 |
embed it, mine a rare class from a handful of seed examples, prioritize the rest
|
| 111 |
for annotation, fine-tune a detector, and correct its mistakes. This dataset ships
|
| 112 |
+
with **zero label fields by design**. The point of the exercise is deciding which
|
| 113 |
images deserve human attention before any labels exist. The images sampled into
|
| 114 |
this pool were deliberately stratified (not randomly subsampled) so that every
|
| 115 |
step of that workflow has something real to find: a genuine rare class, genuine
|
|
|
|
| 149 |
|
| 150 |
### Out-of-Scope Use
|
| 151 |
|
| 152 |
+
Not intended as a benchmark dataset for reporting detection accuracy. It is a
|
| 153 |
deliberately non-random, stratified sample built for a specific teaching workflow,
|
| 154 |
not an i.i.d. sample of InsPLAD-det. Any commercial use is out of scope; the
|
| 155 |
source license (CC BY-NC 3.0) is non-commercial only. Not suitable for identifying
|
|
|
|
| 160 |
|
| 161 |
This is a flat image dataset (`media_type = "image"`), not grouped or video, with
|
| 162 |
**2,227 samples** and no splits or saved views. Every sample carries only
|
| 163 |
+
FiftyOne's default fields; there is no `ground_truth`, no per-sample split tag,
|
| 164 |
and no per-sample sampling-tier label. This is intentional: the dataset is meant
|
| 165 |
to be loaded and explored exactly as if no prior work had been done on it.
|
| 166 |
|
|
|
|
| 169 |
| Field | FiftyOne type | Description |
|
| 170 |
|-------|---------------|-------------|
|
| 171 |
| `filepath` | `StringField` | Path to the image file |
|
| 172 |
+
| `tags` | list of `str` | Empty for every sample; no split or tier tags are shipped |
|
| 173 |
| `metadata` | `ImageMetadata` | Not populated (`None`) until `dataset.compute_metadata()` is run |
|
| 174 |
|
| 175 |
### `dataset.info`
|
|
|
|
| 179 |
"source": "https://github.com/andreluizbvs/InsPLAD",
|
| 180 |
"note": (
|
| 181 |
"Media-only workshop pool sampled from InsPLAD-det. No labels "
|
| 182 |
+
"attached by design; see 02_build_workshop_pool.py for the "
|
| 183 |
"sampling manifest and heldout_ground_truth.json for the real "
|
| 184 |
"boxes, held out until the 'close the loop' act."
|
| 185 |
),
|
|
|
|
| 197 |
- **No tier or split metadata shipped.** Which sampling tier (rare target,
|
| 198 |
duplicate-wall, common-class, long-tail) or original InsPLAD split (`train`/
|
| 199 |
`val`) each image came from is recorded in `workshop_pool_manifest.json` at
|
| 200 |
+
build time, not carried into the FiftyOne dataset's fields. That keeps the
|
| 201 |
+
pool looking like a genuine unlabeled pool, not a labeled one with fields hidden.
|
| 202 |
- **Whole scenes only, no crops.** Unlike the full InsPLAD-fault sub-datasets
|
| 203 |
(cropped, near-square asset images), every image in this pool is a full UAV
|
| 204 |
scene from InsPLAD-det. A bounding-box task only makes sense on full scenes,
|
|
|
|
| 220 |
Two scripts build this pool from the original InsPLAD-det source; both are
|
| 221 |
included verbatim below for full reproducibility.
|
| 222 |
|
| 223 |
+
#### Step 1: Download InsPLAD-det from source
|
| 224 |
|
| 225 |
InsPLAD ships as a single Mendeley Data record containing three inner zips
|
| 226 |
(`InsPLAD-det.zip`, `supervised_fault_classification.zip`,
|
|
|
|
| 230 |
|
| 231 |
```python
|
| 232 |
"""Step 1: Download InsPLAD from source and extract only the detection
|
| 233 |
+
(InsPLAD-det) sub-dataset: full UAV scene images, no cropped fault/anomaly
|
| 234 |
images. This workshop uses whole images only.
|
| 235 |
|
| 236 |
Source: Mendeley Data, https://data.mendeley.com/datasets/5n3fjgvfyz/1
|
|
|
|
| 238 |
(InsPLAD-det.zip, supervised_fault_classification.zip,
|
| 239 |
unsupervised_anomaly_detection.zip). We download the outer zip (it's a
|
| 240 |
single file on Mendeley, can't be split at the API level), but only extract
|
| 241 |
+
InsPLAD-det.zip from it; the other two are left zipped and untouched.
|
| 242 |
"""
|
| 243 |
import zipfile
|
| 244 |
from pathlib import Path
|
|
|
|
| 276 |
inner_zip_path.unlink() # don't need the intermediate inner zip anymore
|
| 277 |
```
|
| 278 |
|
| 279 |
+
Result: `data/InsPLAD-det/{train,val}/*.jpg` plus COCO annotation JSONs: 10,561
|
| 280 |
unique images (46 duplicate COCO `image_id` entries for the same file are a known
|
| 281 |
quirk of the source data, resolved during staging).
|
| 282 |
|
| 283 |
+
#### Step 2: Build the 4-tier stratified sample
|
| 284 |
|
| 285 |
```python
|
| 286 |
"""Step 2: Build the reproducible, stratified workshop pool manifest from
|
| 287 |
InsPLAD-det's raw images. Whole scene images only, no labels attached to
|
| 288 |
+
the resulting pool: ground truth for the sampled images is saved
|
| 289 |
separately in step 3, held out for the "close the loop" act.
|
| 290 |
|
| 291 |
Tiers:
|
|
|
|
| 293 |
~1% of images, ~99% of them the dominant subject in frame.
|
| 294 |
2. Duplicate-wall flights: N whole flights kept 100% intact, giving the
|
| 295 |
"compress" act a real wall of near-identical drone frames to find
|
| 296 |
+
(not simulated: these are actual contiguous DJI frame sequences).
|
| 297 |
3. Common-class coverage: capped per-flight samples of `polymer insulator`,
|
| 298 |
+
`glass insulator`, `yoke`, enough for clean embedding clusters
|
| 299 |
without needing thousands of images per class.
|
| 300 |
4. Long-tail texture: one image per remaining flight, so the embedding
|
| 301 |
plot's messy middle still looks like a messy middle.
|
| 302 |
|
| 303 |
+
Deterministic given SEED: same manifest every run, same code whether
|
| 304 |
this runs live at the workshop or at home.
|
| 305 |
"""
|
| 306 |
import random
|
|
|
|
| 354 |
|
| 355 |
| Tier | What it keeps | Images |
|
| 356 |
|---|---|---|
|
| 357 |
+
| 1: Rare target (`tower id plate`, 100%) | every image containing the rare class | 242 |
|
| 358 |
+
| 2: Duplicate-wall flights (14 flights, 100% intact) | real contiguous drone-frame sequences | 562 |
|
| 359 |
+
| 3: Common-class coverage (capped per flight) | `polymer insulator` (450), `yoke` (450), `glass insulator` (310) | 1,210 |
|
| 360 |
+
| 4: Long-tail texture (1/remaining flight) | everything else, thinly | 213 |
|
| 361 |
| **Total** | | **2,227** |
|
| 362 |
|
| 363 |
A later staging step copies these 2,227 images into a lean pool directory and
|
| 364 |
+
converts their real COCO boxes to FiftyOne's relative `[x, y, w, h]` format,
|
| 365 |
but writes them to `heldout_ground_truth.json` rather than into the FiftyOne
|
| 366 |
dataset, which is imported strictly media-only.
|
| 367 |
|
|
|
|
| 371 |
|
| 372 |
The underlying images were captured by UAV (drone) during real-world inspections
|
| 373 |
of operating power lines, at 1920x1080 resolution, under varied environmental
|
| 374 |
+
conditions, orientations, and distances. See the original
|
| 375 |
[InsPLAD dataset card](https://huggingface.co/datasets/harpreetsahota/InsPLAD)
|
| 376 |
for the full collection and annotation process. This derivative pool applies no
|
| 377 |
further transformation to the images themselves; it only selects which 2,227 of
|