Burhan-Q commited on
Commit
848287b
·
verified ·
1 Parent(s): 33147c1

Upload folder using huggingface_hub

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
.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
 
.ruff_cache/0.15.20/16429174807251167729 ADDED
Binary file (79 Bytes). View file
 
.ruff_cache/CACHEDIR.TAG ADDED
@@ -0,0 +1 @@
 
 
1
+ Signature: 8a477f597d28d172789f06886806bc55
README.md ADDED
@@ -0,0 +1,186 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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

  • SHA256: 9ac808830f4ccd3be24bc3fd56cb35d5fa8c53c9767ff370f41a40e66fe22600
  • Pointer size: 132 Bytes
  • Size of remote file: 8.76 MB
data/000037-2.jpg ADDED

Git LFS Details

  • SHA256: 0592bd25bb9f6751c9385c2d6ddc20d9687141489682ea13d8c83217dd2e6a2a
  • Pointer size: 131 Bytes
  • Size of remote file: 995 kB
data/000037.jpg ADDED

Git LFS Details

  • SHA256: 9650f2415b5cbbe860016061ea203475ea7fd668a3caa960def8caf23df858b8
  • Pointer size: 130 Bytes
  • Size of remote file: 96.1 kB
data/000038-2.jpg ADDED

Git LFS Details

  • SHA256: f01514395a71e0a27dccc5b5d3e74bdd53441c0ba254040548e7bb201e7f1184
  • Pointer size: 131 Bytes
  • Size of remote file: 999 kB
data/000038.jpg ADDED

Git LFS Details

  • SHA256: 9f962d0afc74f717dca90633abdf79f611eecd69f7433680f63987f11fc5f57d
  • Pointer size: 131 Bytes
  • Size of remote file: 104 kB
data/000039-2.jpg ADDED

Git LFS Details

  • SHA256: 980a29ea780b51a123565eb7f38de99a99ec82e4a62c019754244e3fca16e92b
  • Pointer size: 132 Bytes
  • Size of remote file: 1.01 MB
data/000039.jpg ADDED

Git LFS Details

  • SHA256: c3d6b046644348c0b709a528bebe2cbca651825f4e8c8a31580fdd082ac6ae83
  • Pointer size: 131 Bytes
  • Size of remote file: 118 kB
data/000040-2.jpg ADDED

Git LFS Details

  • SHA256: 15b5c2bfbe162f5090c5f40a4b289f350aacc82d633d4b06ea1d5274574e9f7e
  • Pointer size: 132 Bytes
  • Size of remote file: 1.03 MB
data/000040.jpg ADDED

Git LFS Details

  • SHA256: 26d5cdd87a5f3bf96757091257fd7b6ef24b17172cb323a1e6b89496288e89f5
  • Pointer size: 131 Bytes
  • Size of remote file: 129 kB
data/000041-2.jpg ADDED

Git LFS Details

  • SHA256: 83211d69bd559f687fa3e72ac86fdc9b41469972773d8db654dd29e29ad5811a
  • Pointer size: 132 Bytes
  • Size of remote file: 1.09 MB
data/000041.jpg ADDED

Git LFS Details

  • SHA256: d50cb7bd105277c41fb6916fe7c6b85c7adb2475ffdd83aba1634a62632f03b4
  • Pointer size: 131 Bytes
  • Size of remote file: 147 kB
data/000042-2.jpg ADDED

Git LFS Details

  • SHA256: 523b3ca3578d4428be635de59be87e0737ddd3c39adac598b5f727eca4db4d24
  • Pointer size: 132 Bytes
  • Size of remote file: 1.16 MB
data/000042.jpg ADDED

Git LFS Details

  • SHA256: d942d9ca62e06170ecc3f91c91daf78a7bc6f7120655dffd553003e67703012f
  • Pointer size: 131 Bytes
  • Size of remote file: 170 kB
data/000043-2.jpg ADDED

Git LFS Details

  • SHA256: a5d12fd66732286f6b4a8b6a189a78fd7f19d9cf26ec50f5707c4b9556a3f9c0
  • Pointer size: 132 Bytes
  • Size of remote file: 1.2 MB
data/000043.jpg ADDED

Git LFS Details

  • SHA256: 3de6b61ea5c86e3062e32d1211dc4e7922b0a2ff5d44cd7421910f3a955f0636
  • Pointer size: 131 Bytes
  • Size of remote file: 193 kB
data/000044-2.jpg ADDED

Git LFS Details

  • SHA256: 422485cd4774e9dbd1b9608fc3dc7ece546f3606ece6f31f622333caf819957e
  • Pointer size: 132 Bytes
  • Size of remote file: 1.25 MB
data/000044.jpg ADDED

Git LFS Details

  • SHA256: fc926f1905044e67260f25cce388eaa1d3579201bb4ee64460a5f7dc8ead179b
  • Pointer size: 131 Bytes
  • Size of remote file: 214 kB
data/000045-2.jpg ADDED

Git LFS Details

  • SHA256: febcc2e1c9296734e179ecae83576a0d3c97230e6b9a5e55d9f11d4e5316ce75
  • Pointer size: 132 Bytes
  • Size of remote file: 1.27 MB
data/000045.jpg ADDED

Git LFS Details

  • SHA256: f654a7607239b7536801732c991c1d3dab370996ac6967a6bcc881d0561c337a
  • Pointer size: 131 Bytes
  • Size of remote file: 216 kB
data/000046-2.jpg ADDED

Git LFS Details

  • SHA256: 2de347e5df365610e405709ea4047bd634950db477b582e1f814d311df934588
  • Pointer size: 132 Bytes
  • Size of remote file: 1.27 MB
data/000046.jpg ADDED

Git LFS Details

  • SHA256: 51d9d40695e020683111ff67a162b177500d9b37544045d46befa075c00edaf3
  • Pointer size: 131 Bytes
  • Size of remote file: 208 kB
data/000047-2.jpg ADDED

Git LFS Details

  • SHA256: 8f3e9884da317946a1540fddbeb24c270e295684d0c2cdfcc03e30fa6d5db276
  • Pointer size: 132 Bytes
  • Size of remote file: 1.25 MB
data/000047.jpg ADDED

Git LFS Details

  • SHA256: 17b36f4cd79f0b8758852e4e3d5e5372a529ab693ae2ce8e0c7592cc04548e16
  • Pointer size: 131 Bytes
  • Size of remote file: 205 kB
data/000048-2.jpg ADDED

Git LFS Details

  • SHA256: 96e52e0e603ead842142265437f1df8856d2d10d2dabe812f2d3d003af844d3d
  • Pointer size: 132 Bytes
  • Size of remote file: 1.27 MB
data/000048.jpg ADDED

Git LFS Details

  • SHA256: 6edfa001a2c222c9009c34787186e3f13bb54a9c933e4732735326e6bf7cf157
  • Pointer size: 131 Bytes
  • Size of remote file: 198 kB
data/000049-2.jpg ADDED

Git LFS Details

  • SHA256: 1a0f607ebe551c026ce69a937c164baf7270801d3cf173337ff271768a9142c3
  • Pointer size: 132 Bytes
  • Size of remote file: 1.27 MB
data/000049.jpg ADDED

Git LFS Details

  • SHA256: e315cf2551b6f299b83097945a8b3e466d3b370520419c47139db2b1b1266d8e
  • Pointer size: 131 Bytes
  • Size of remote file: 190 kB
data/000050-2.jpg ADDED

Git LFS Details

  • SHA256: 16b8baa66142b9ab50d905170186ef4b632b9274c830f6df6b223ca937dfb778
  • Pointer size: 132 Bytes
  • Size of remote file: 1.29 MB
data/000050.jpg ADDED

Git LFS Details

  • SHA256: 85a3d5cc36db8350aeb546ba06edf0b2eae9cd5c3fec1781c1a9433fdb18ff9b
  • Pointer size: 131 Bytes
  • Size of remote file: 188 kB
data/000051-2.jpg ADDED

Git LFS Details

  • SHA256: b2111dfae2977b8c930f28c9772015237bf7d69af71c4472b8f0acc37240d87d
  • Pointer size: 132 Bytes
  • Size of remote file: 1.32 MB
data/000051.jpg ADDED

Git LFS Details

  • SHA256: 2544bc19fda530ba9bb74b13bb8ead55de70e5addd1bd9a7faf07c723039403e
  • Pointer size: 131 Bytes
  • Size of remote file: 182 kB
data/000052-2.jpg ADDED

Git LFS Details

  • SHA256: 4df995605eab2463851c6c3c626791b68938850ef9e9591c4445fa509e3bd0b1
  • Pointer size: 132 Bytes
  • Size of remote file: 1.29 MB
data/000052.jpg ADDED

Git LFS Details

  • SHA256: d910772f34bb4fffdd81ebdcbb2a8c49e964c1f98b7430af7e634df58576da8e
  • Pointer size: 131 Bytes
  • Size of remote file: 178 kB
data/000053-2.jpg ADDED

Git LFS Details

  • SHA256: 26594577fbfe85b7bde4230eb59e4a91f1945931c61d89f8cd61c1191a73aee0
  • Pointer size: 132 Bytes
  • Size of remote file: 1.27 MB
data/000053.jpg ADDED

Git LFS Details

  • SHA256: af46a87dccab696c023ad3c6af295ace988d7833864701824184292fb6bfdc4b
  • Pointer size: 131 Bytes
  • Size of remote file: 191 kB
data/000054-2.jpg ADDED

Git LFS Details

  • SHA256: b99eb90f5a1a8d8e59b2d929eaff823ea5f47ff73cbc0e54712851ff15d5e0c2
  • Pointer size: 132 Bytes
  • Size of remote file: 1.36 MB
data/000054.jpg ADDED

Git LFS Details

  • SHA256: 8bc3b10c2ec17823a321b84530643b6b57f676e52032dba0314faf83fd6759b8
  • Pointer size: 131 Bytes
  • Size of remote file: 198 kB
data/000055-2.jpg ADDED

Git LFS Details

  • SHA256: c1cab1276a2be6c0370048992572101f169487dea9e0f510de17b2a680003d10
  • Pointer size: 132 Bytes
  • Size of remote file: 1.34 MB
data/000055.jpg ADDED

Git LFS Details

  • SHA256: 845385b832683a927087612dcaff06ba1819b4aa8de517e44978922f1bc16dd5
  • Pointer size: 131 Bytes
  • Size of remote file: 195 kB
data/000056-2.jpg ADDED

Git LFS Details

  • SHA256: 22c9305f6cb02f7a13d4fa4ab8b4f367d65c2bf93bbc136347ee98773a6c13a9
  • Pointer size: 132 Bytes
  • Size of remote file: 1.35 MB
data/000056.jpg ADDED

Git LFS Details

  • SHA256: 51f3b9f357d07b05b9f464418b7b72c7655ce14301ed0536856ac52e7550e357
  • Pointer size: 131 Bytes
  • Size of remote file: 196 kB
data/000057-2.jpg ADDED

Git LFS Details

  • SHA256: a7c5414ba4e5bb5c55302407dffda60e2c24f38d1daa71f7e6dcf76ed2584dd7
  • Pointer size: 132 Bytes
  • Size of remote file: 1.34 MB
data/000057.jpg ADDED

Git LFS Details

  • SHA256: 20bb14ac5b35c3b3b1576acfaa2f2681ffafda176e8ef423bba69fc90bada384
  • Pointer size: 131 Bytes
  • Size of remote file: 192 kB
data/000058-2.jpg ADDED

Git LFS Details

  • SHA256: aa1edfcc1f32a5e97ecde0e87f585d724a9e5cf6c587d66f835ea571b62f3ba6
  • Pointer size: 132 Bytes
  • Size of remote file: 1.36 MB
data/000058.jpg ADDED

Git LFS Details

  • SHA256: f35291d761d46723e5ba98fc19b476cce131b3a6c03b9ff912230333463b4a0f
  • Pointer size: 131 Bytes
  • Size of remote file: 193 kB