Datasets:
Upload folder using huggingface_hub
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- .ruff_cache/.gitignore +2 -0
- .ruff_cache/0.15.20/13884062125855119035 +0 -0
- .ruff_cache/0.15.20/16429174807251167729 +0 -0
- .ruff_cache/CACHEDIR.TAG +1 -0
- README.md +186 -0
- assets/SegFly-preview.webp +3 -0
- data/000037-2.jpg +3 -0
- data/000037.jpg +3 -0
- data/000038-2.jpg +3 -0
- data/000038.jpg +3 -0
- data/000039-2.jpg +3 -0
- data/000039.jpg +3 -0
- data/000040-2.jpg +3 -0
- data/000040.jpg +3 -0
- data/000041-2.jpg +3 -0
- data/000041.jpg +3 -0
- data/000042-2.jpg +3 -0
- data/000042.jpg +3 -0
- data/000043-2.jpg +3 -0
- data/000043.jpg +3 -0
- data/000044-2.jpg +3 -0
- data/000044.jpg +3 -0
- data/000045-2.jpg +3 -0
- data/000045.jpg +3 -0
- data/000046-2.jpg +3 -0
- data/000046.jpg +3 -0
- data/000047-2.jpg +3 -0
- data/000047.jpg +3 -0
- data/000048-2.jpg +3 -0
- data/000048.jpg +3 -0
- data/000049-2.jpg +3 -0
- data/000049.jpg +3 -0
- data/000050-2.jpg +3 -0
- data/000050.jpg +3 -0
- data/000051-2.jpg +3 -0
- data/000051.jpg +3 -0
- data/000052-2.jpg +3 -0
- data/000052.jpg +3 -0
- data/000053-2.jpg +3 -0
- data/000053.jpg +3 -0
- data/000054-2.jpg +3 -0
- data/000054.jpg +3 -0
- data/000055-2.jpg +3 -0
- data/000055.jpg +3 -0
- data/000056-2.jpg +3 -0
- data/000056.jpg +3 -0
- data/000057-2.jpg +3 -0
- data/000057.jpg +3 -0
- data/000058-2.jpg +3 -0
- data/000058.jpg +3 -0
.ruff_cache/.gitignore
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Automatically created by ruff.
|
| 2 |
+
*
|
.ruff_cache/0.15.20/13884062125855119035
ADDED
|
Binary file (99 Bytes). View file
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: cc-by-nc-sa-4.0
|
| 3 |
+
annotations_creators: []
|
| 4 |
+
language: en
|
| 5 |
+
size_categories:
|
| 6 |
+
- n<1K
|
| 7 |
+
task_categories:
|
| 8 |
+
- image-segmentation
|
| 9 |
+
task_ids:
|
| 10 |
+
- semantic-segmentation
|
| 11 |
+
- instance-segmentation
|
| 12 |
+
pretty_name: SegFly (RGB-T pairs FiftyOne subset)
|
| 13 |
+
tags:
|
| 14 |
+
- fiftyone
|
| 15 |
+
- group
|
| 16 |
+
- aerial
|
| 17 |
+
- thermal
|
| 18 |
+
- rgb-thermal
|
| 19 |
+
- multimodal
|
| 20 |
+
- drone
|
| 21 |
+
- remote-sensing
|
| 22 |
+
---
|
| 23 |
+
|
| 24 |
+
# SegFly — Aerial RGB-Thermal Segmentation (FiftyOne dataset)
|
| 25 |
+
|
| 26 |
+
<p align="center">
|
| 27 |
+
<img
|
| 28 |
+
height="640"
|
| 29 |
+
alt="Preview of the SegFly subset in the FiftyOne App."
|
| 30 |
+
src="assets/SegFly-preview.webp"
|
| 31 |
+
/>
|
| 32 |
+
</p>
|
| 33 |
+
|
| 34 |
+
A grouped [FiftyOne](https://docs.voxel51.com) dataset — a curated subset of **SegFly**
|
| 35 |
+
(Gross et al., ECCV 2026) of pixel-aligned aerial **RGB-thermal (RGB-T) pairs** with
|
| 36 |
+
semantic-segmentation masks and derived instance detections.
|
| 37 |
+
|
| 38 |
+
- **This dataset:** [`Voxel51/SegFly`](https://huggingface.co/datasets/Voxel51/SegFly) — load directly with `load_from_hub`
|
| 39 |
+
- **Loader (FiftyOne remote zoo):** [`github.com/Burhan-Q/SegFly`](https://github.com/Burhan-Q/SegFly)
|
| 40 |
+
- **Original dataset:** [`markus-42/SegFly`](https://huggingface.co/datasets/markus-42/SegFly) · [Project page](https://markus-42.github.io/publications/2026/segfly/) · [arXiv](https://arxiv.org/abs/2603.17920) · [Source code](https://github.com/markus-42/SegFly)
|
| 41 |
+
|
| 42 |
+
> This is an **unofficial** redistribution of a subset of SegFly for use with FiftyOne.
|
| 43 |
+
> All credit for the dataset belongs to the original authors (see [Citation](#citation)).
|
| 44 |
+
|
| 45 |
+
## Installation
|
| 46 |
+
|
| 47 |
+
```bash
|
| 48 |
+
pip install fiftyone huggingface_hub
|
| 49 |
+
```
|
| 50 |
+
|
| 51 |
+
`huggingface_hub` is used to download the media from Hugging Face.
|
| 52 |
+
|
| 53 |
+
## Usage
|
| 54 |
+
|
| 55 |
+
```python
|
| 56 |
+
import fiftyone as fo
|
| 57 |
+
from fiftyone.utils.huggingface import load_from_hub
|
| 58 |
+
|
| 59 |
+
# Load this dataset directly from the Hub (470 RGB-T pair groups)
|
| 60 |
+
dataset = load_from_hub("Voxel51/SegFly", persistent=True)
|
| 61 |
+
|
| 62 |
+
# per-class instance counts / label filtering come from the `instances` field
|
| 63 |
+
print(dataset.count_values("instances.detections.label"))
|
| 64 |
+
|
| 65 |
+
session = fo.launch_app(dataset)
|
| 66 |
+
```
|
| 67 |
+
|
| 68 |
+
Or load it through the FiftyOne remote zoo loader (also supports `max_samples`):
|
| 69 |
+
|
| 70 |
+
```python
|
| 71 |
+
import fiftyone.zoo as foz
|
| 72 |
+
|
| 73 |
+
dataset = foz.load_zoo_dataset(
|
| 74 |
+
"https://github.com/Burhan-Q/SegFly",
|
| 75 |
+
max_samples=100, # optional; limits the number of samples
|
| 76 |
+
)
|
| 77 |
+
```
|
| 78 |
+
|
| 79 |
+
Every group has a base `rgb` slice and a `thermal` slice, so the App's slice
|
| 80 |
+
selector toggles `rgb`↔`thermal` on the **same** sample (like `quickstart-groups`).
|
| 81 |
+
Segmentation masks render with the SegFly benchmark color scheme.
|
| 82 |
+
|
| 83 |
+
## What's included (curated subset)
|
| 84 |
+
|
| 85 |
+
A ~0.6 GB set of pixel-aligned RGB-T pairs:
|
| 86 |
+
|
| 87 |
+
| Scene | Altitude | Modality | Split | Groups |
|
| 88 |
+
| :--- | :--- | :--- | :--- | ---: |
|
| 89 |
+
| `scene_03` | 30m | thermal (RGB-T pairs) | train | 470 |
|
| 90 |
+
|
| 91 |
+
**Total: 470 groups / 940 samples** (470 `thermal` + 470 `rgb` slice samples).
|
| 92 |
+
(The full SegFly release is 35,613 samples / 191 GB across 9 scenes; this dataset
|
| 93 |
+
is the curated RGB-T pair subset only.)
|
| 94 |
+
|
| 95 |
+
### Group model
|
| 96 |
+
|
| 97 |
+
One group per thermal capture, with a **uniform** slice set (like `quickstart-groups`),
|
| 98 |
+
base slice `rgb`:
|
| 99 |
+
|
| 100 |
+
- slice `rgb` — the pixel-registered RGB frame (base)
|
| 101 |
+
- slice `thermal` — the LWIR frame
|
| 102 |
+
|
| 103 |
+
Both slices carry two label fields (sharing the aligned mask):
|
| 104 |
+
|
| 105 |
+
- `ground_truth` — [`fo.Segmentation`](https://docs.voxel51.com/api/fiftyone.core.labels.html#fiftyone.core.labels.Segmentation), the semantic mask
|
| 106 |
+
- `instances` — [`fo.Detections`](https://docs.voxel51.com/api/fiftyone.core.labels.html#fiftyone.core.labels.Detections) **derived** from the mask: countable classes
|
| 107 |
+
(Vehicle, Truck, Building, Roof, Ground Obstacle, Rock, Cable, Cable Tower, Crane, Person,
|
| 108 |
+
Bicycle) as one detection per connected region; amorphous classes (Road, Walkway, Dirt,
|
| 109 |
+
Gravel, Grass, Vegetation, Tree, Water, Parking Lot, Construction) as one per class. This is
|
| 110 |
+
what enables App per-class **filtering** and per-class **instance counts** (the semantic
|
| 111 |
+
`Segmentation` field alone cannot be filtered/counted by class).
|
| 112 |
+
|
| 113 |
+
Because every group has both slices, toggling `rgb`↔`thermal` in the App stays on the
|
| 114 |
+
same sample. Per-sample fields: `scene`, `altitude`, `modality`. Split is a sample tag.
|
| 115 |
+
Note: `instances` are derived from the semantic masks via connected components (not source
|
| 116 |
+
instance annotations); "stuff" classes are stored as a single region per image.
|
| 117 |
+
|
| 118 |
+
### Reusing the instance derivation (e.g. on the full SegFly release)
|
| 119 |
+
|
| 120 |
+
The `instances` field ships **precomputed** in this dataset. The derivation is also
|
| 121 |
+
exposed as reusable functions in the loader repo, so you can apply the **same** stuff/thing
|
| 122 |
+
logic to any SegFly semantic mask (including the full 191 GB `markus-42/SegFly`):
|
| 123 |
+
|
| 124 |
+
```python
|
| 125 |
+
import fiftyone as fo
|
| 126 |
+
from fiftyone.utils.huggingface import load_from_hub
|
| 127 |
+
|
| 128 |
+
import segfly # from github.com/Burhan-Q/SegFly (add the cloned repo dir to your path)
|
| 129 |
+
|
| 130 |
+
# a single mask -> instance detections
|
| 131 |
+
dets = segfly.segmentation_to_instances(sample["ground_truth"])
|
| 132 |
+
|
| 133 |
+
# or populate an `instances` field across a whole dataset (grouped or flat)
|
| 134 |
+
full = load_from_hub(
|
| 135 |
+
"markus-42/SegFly",
|
| 136 |
+
format="ParquetFilesDataset",
|
| 137 |
+
...,
|
| 138 |
+
)
|
| 139 |
+
segfly.add_instances(full) # in_field="ground_truth", out_field="instances"
|
| 140 |
+
|
| 141 |
+
print(full.count_values("instances.detections.label"))
|
| 142 |
+
```
|
| 143 |
+
|
| 144 |
+
`MASK_TARGETS` (class map) and `MASK_TYPES` (the stuff/thing split) are module-level
|
| 145 |
+
constants you can inspect or override.
|
| 146 |
+
|
| 147 |
+
## Classes
|
| 148 |
+
|
| 149 |
+
The stored masks contain the **raw OccuFly class IDs (0–36)**. `mask_targets` names
|
| 150 |
+
every ID that can appear:
|
| 151 |
+
|
| 152 |
+
| ID | Name | | ID | Name | | ID | Name |
|
| 153 |
+
| ---: | :-- | -- | ---: | :-- | -- | ---: | :-- |
|
| 154 |
+
| 0 | Unlabeled | | 8 | Tree | | 17 | Roof |
|
| 155 |
+
| 1 | Road | | 9 | Ground Obstacle | | 21 | Cable |
|
| 156 |
+
| 2 | Walkway | | 10 | unknown_10 | | 22 | Cable Tower |
|
| 157 |
+
| 3 | Dirt | | 11 | Person | | 33 | Parking Lot |
|
| 158 |
+
| 4 | Gravel | | 12 | Bicycle | | 34 | Construction |
|
| 159 |
+
| 5 | Rock | | 13 | Vehicle | | 35 | Crane |
|
| 160 |
+
| 6 | Grass | | 14 | Water | | 36 | Truck |
|
| 161 |
+
| 7 | Vegetation | | 16 | Building | | | |
|
| 162 |
+
|
| 163 |
+
> **Note.** SegFly's published "**15 benchmark classes**" are a documented
|
| 164 |
+
> post-processing remap that is **not** baked into the mask files:
|
| 165 |
+
> `Rock(5)` and `Cable Tower(22)` → `Ground Obstacle(9)`; `Person(11)`,
|
| 166 |
+
> `Bicycle(12)`, `Cable(21)`, `Crane(35)` → `Unlabeled(0)`. Apply this remap if
|
| 167 |
+
> you need the benchmark protocol. `ID 10` appears in the data but is undocumented
|
| 168 |
+
> in the source and is left un-named as `unknown_10`.
|
| 169 |
+
|
| 170 |
+
## License & attribution
|
| 171 |
+
|
| 172 |
+
SegFly is released under **[CC BY-NC-SA 4.0](https://creativecommons.org/licenses/by-nc-sa/4.0/)**
|
| 173 |
+
(non-commercial, share-alike, attribution). This redistribution keeps the same license.
|
| 174 |
+
Use is **non-commercial** only; you must attribute the original authors and share
|
| 175 |
+
derivatives under the same terms.
|
| 176 |
+
|
| 177 |
+
## Citation
|
| 178 |
+
|
| 179 |
+
```bibtex
|
| 180 |
+
@inproceedings{gross2026segfly,
|
| 181 |
+
title={{SegFly: A Dataset and 2D-3D-2D Paradigm for Aerial RGB-Thermal Semantic Segmentation at Scale}},
|
| 182 |
+
author={Markus Gross and Sai Bharadhwaj Matha and Rui Song and Viswanathan Muthuveerappan and Conrad Christoph and Julius Huber and Daniel Cremers},
|
| 183 |
+
booktitle = {Proceedings of the European Conference on Computer Vision (ECCV)},
|
| 184 |
+
year={2026},
|
| 185 |
+
}
|
| 186 |
+
```
|
assets/SegFly-preview.webp
ADDED
|
Git LFS Details
|
data/000037-2.jpg
ADDED
|
Git LFS Details
|
data/000037.jpg
ADDED
|
Git LFS Details
|
data/000038-2.jpg
ADDED
|
Git LFS Details
|
data/000038.jpg
ADDED
|
Git LFS Details
|
data/000039-2.jpg
ADDED
|
Git LFS Details
|
data/000039.jpg
ADDED
|
Git LFS Details
|
data/000040-2.jpg
ADDED
|
Git LFS Details
|
data/000040.jpg
ADDED
|
Git LFS Details
|
data/000041-2.jpg
ADDED
|
Git LFS Details
|
data/000041.jpg
ADDED
|
Git LFS Details
|
data/000042-2.jpg
ADDED
|
Git LFS Details
|
data/000042.jpg
ADDED
|
Git LFS Details
|
data/000043-2.jpg
ADDED
|
Git LFS Details
|
data/000043.jpg
ADDED
|
Git LFS Details
|
data/000044-2.jpg
ADDED
|
Git LFS Details
|
data/000044.jpg
ADDED
|
Git LFS Details
|
data/000045-2.jpg
ADDED
|
Git LFS Details
|
data/000045.jpg
ADDED
|
Git LFS Details
|
data/000046-2.jpg
ADDED
|
Git LFS Details
|
data/000046.jpg
ADDED
|
Git LFS Details
|
data/000047-2.jpg
ADDED
|
Git LFS Details
|
data/000047.jpg
ADDED
|
Git LFS Details
|
data/000048-2.jpg
ADDED
|
Git LFS Details
|
data/000048.jpg
ADDED
|
Git LFS Details
|
data/000049-2.jpg
ADDED
|
Git LFS Details
|
data/000049.jpg
ADDED
|
Git LFS Details
|
data/000050-2.jpg
ADDED
|
Git LFS Details
|
data/000050.jpg
ADDED
|
Git LFS Details
|
data/000051-2.jpg
ADDED
|
Git LFS Details
|
data/000051.jpg
ADDED
|
Git LFS Details
|
data/000052-2.jpg
ADDED
|
Git LFS Details
|
data/000052.jpg
ADDED
|
Git LFS Details
|
data/000053-2.jpg
ADDED
|
Git LFS Details
|
data/000053.jpg
ADDED
|
Git LFS Details
|
data/000054-2.jpg
ADDED
|
Git LFS Details
|
data/000054.jpg
ADDED
|
Git LFS Details
|
data/000055-2.jpg
ADDED
|
Git LFS Details
|
data/000055.jpg
ADDED
|
Git LFS Details
|
data/000056-2.jpg
ADDED
|
Git LFS Details
|
data/000056.jpg
ADDED
|
Git LFS Details
|
data/000057-2.jpg
ADDED
|
Git LFS Details
|
data/000057.jpg
ADDED
|
Git LFS Details
|
data/000058-2.jpg
ADDED
|
Git LFS Details
|
data/000058.jpg
ADDED
|
Git LFS Details
|