hotsight commited on
Commit
ee3df9d
·
verified ·
1 Parent(s): 9d636b7

Update card figures and examples to match the paper

Browse files

Header figure, example grid, and registration figure rendered from the paper's figure code (Graminoid-01 f02400, Canopy-07/Graminoid-02/Canopy-08 f00300, Graminoid-01 f00300). Card examples switched to the same frames.

Files changed (4) hide show
  1. README.md +27 -13
  2. assets/examples.jpg +3 -0
  3. assets/registration.jpg +3 -0
  4. assets/teaser.jpg +2 -2
README.md CHANGED
@@ -29,9 +29,9 @@ configs:
29
 
30
  HotSight is a drone dataset for mapping **combustion states** at the pixel level from paired RGB and thermal video. A DJI Mavic 2 Enterprise Dual flew over two prescribed burns and recorded both streams. From those recordings we sampled **951 synchronized RGB-thermal frame pairs** (one pair about every 10 seconds, 38 usable clips) and labeled **every pixel of every RGB frame** as one of five classes: **active**, **smoldering**, **warm**, **background**, or **unknown**. That is 3.87 billion hand-labeled pixels. Each frame also carries a homography that maps the thermal image into the RGB image, so the two modalities can be used together.
31
 
32
- ![Examples from HotSight: RGB frame, projected color IR, annotation overlay](assets/teaser.jpg)
33
 
34
- *Left to right: RGB frame, color IR projected into the RGB frame (white outline = thermal field of view), annotation overlay. Rows: an advancing flame front (Graminoid-10), all five classes in one frame (Graminoid-02), smoke occlusion with hotspots visible only in the thermal band (Canopy-18).*
35
 
36
  > This dataset accompanies a paper under double-blind review. Authorship, citation, and license details will be added after the review process.
37
 
@@ -44,7 +44,7 @@ Which folder you need depends on what you want to do:
44
  | I want to... | Download | Size |
45
  |---|---|---|
46
  | Train or evaluate a segmentation model on the hand-labeled data | `Data/` | 12 GB |
47
- | Look at a single clip or frame first | `Data/<Unit>/<Clip>/` (one clip is 100-500 MB) | |
48
  | Use extra training frames with automatically generated labels | `PseudoDataset10s/` | 29 GB |
49
  | Compare automatic labels against the human labels | `GeneratedAnnotations10s/` | 10 GB |
50
  | Run the automatic labeling pipeline on my own RGB+IR footage | `annotation_tool/` | 364 MB |
@@ -54,7 +54,7 @@ Which folder you need depends on what you want to do:
54
  ```bash
55
  pip install -U huggingface_hub
56
  hf download hotsightdataset/HotSight --repo-type dataset --local-dir HotSight --include "Data/*" # hand-labeled data (12 GB)
57
- hf download hotsightdataset/HotSight --repo-type dataset --local-dir HotSight --include "Data/Graminoid/Graminoid-10/*" # one clip
58
  hf download hotsightdataset/HotSight --repo-type dataset --local-dir HotSight # everything (59 GB)
59
  ```
60
 
@@ -92,12 +92,12 @@ previews/ downscaled previews as Parquet. Only for the Dataset
92
  Every clip in `Data/` (and in the generated folders) has this layout. `fXXXXX` is the zero-based frame index in the original RGB video. Hand-labeled frames are multiples of 300 (every 10 s); pseudo frames end in 50, 150, or 250.
93
 
94
  ```text
95
- Data/Graminoid/Graminoid-10/
96
- rgb/f04200.png RGB frame, 2688 x 1512
97
- ir/f04200.png colorized thermal frame, 640 x 360
98
- ir/f04200_recovered.png only in some clips: cleaned thermal frame, use it instead of the original when present
99
- mask/f04200.txt the label mask (see "Mask format")
100
- mask/f04200_overlay.jpg labels drawn over the RGB frame, for eyeballing
101
  homography/homography.json IR -> RGB matrices, one per contiguous frame range
102
  homography/points.json the point correspondences the matrices were fitted from
103
  ```
@@ -126,6 +126,10 @@ Data/Graminoid/Graminoid-10/
126
 
127
  Labels describe the visible state of the **material**, not the smoke above it, and were assigned from the RGB video. Thermal intensity was not used to decide a class. *Warm* is a combustion-state label, not a measured temperature. *Unknown* is a real fifth class that models are expected to predict, not an ignore label.
128
 
 
 
 
 
129
  ## Reading the data
130
 
131
  ### Mask format
@@ -147,7 +151,7 @@ def read_mask(path):
147
  ```python
148
  import json, cv2, numpy as np
149
 
150
- def find_matrix(homography_json, frame): # frame like "f04200"
151
  fnum = int(frame.lstrip("f"))
152
  for s in homography_json["subsets"]:
153
  lo = int(s["frame_start"].split(".")[0].lstrip("f"))
@@ -156,11 +160,17 @@ def find_matrix(homography_json, frame): # frame like "f04200"
156
  return np.array(s["matrix"], dtype=np.float64)
157
  raise ValueError(f"no homography range covers {frame}")
158
 
159
- clip, frame = "Data/Graminoid/Graminoid-10", "f04200"
160
  rgb = cv2.imread(f"{clip}/rgb/{frame}.png")
161
  ir = cv2.imread(f"{clip}/ir/{frame}.png")
162
  H = find_matrix(json.load(open(f"{clip}/homography/homography.json")), frame)
163
  ir_in_rgb = cv2.warpPerspective(ir, H, (rgb.shape[1], rgb.shape[0]))
 
 
 
 
 
 
164
  ```
165
 
166
  Note that `samples.csv` always points at the original `ir/fXXXXX.png`. Where an `ir/fXXXXX_recovered.png` exists, use that file instead (see "Known quirks").
@@ -213,7 +223,11 @@ Each pseudo frame's homography is a distance-weighted average of its two neighbo
213
 
214
  **Time.** The two cameras record independently. The IR start offset of each of the 40 video pairs was estimated manually with `html/sync-video-player.html` and stored in `sync.csv` (offsets range from -1.1 to +0.15 s). Each sampled RGB frame is matched to the temporally nearest thermal frame. The residual gap has a median of 0.028 s and a maximum of 0.798 s, recorded per pair in `samples.csv`.
215
 
216
- **Space.** Each contiguous frame range of a clip has a projective homography mapping IR pixels into the RGB frame, fitted with `html/image-register.html` and OpenCV. Registration started from a default scale-and-translation alignment. Where that was visibly off, an operator either clicked landmarks visible in both images or adjusted the projected overlay and generated a 6 x 4 grid of correspondences, and an 8-DOF homography was fitted with RANSAC or least squares. The 38 usable clips use 122 matrices, and 14 clips have more than one range. For the 38 landmark-based fits, the control-point RMSE has a median of 2.03 px and a maximum of 15.13 px at 2688 x 1512. That measures error at the control points only. Additional error comes from the timing gap during camera motion, drift within a frame range, and parallax between the two lenses, which no single homography can remove. For this reason the annotations were drawn directly on the RGB frames, and the registration serves cross-modal context rather than label transfer. Use `html/viewer.html` to scrub through any clip with the thermal frame overlaid, see `html/README.md` and `markdown/homography.md`.
 
 
 
 
217
 
218
  ## Known quirks
219
 
 
29
 
30
  HotSight is a drone dataset for mapping **combustion states** at the pixel level from paired RGB and thermal video. A DJI Mavic 2 Enterprise Dual flew over two prescribed burns and recorded both streams. From those recordings we sampled **951 synchronized RGB-thermal frame pairs** (one pair about every 10 seconds, 38 usable clips) and labeled **every pixel of every RGB frame** as one of five classes: **active**, **smoldering**, **warm**, **background**, or **unknown**. That is 3.87 billion hand-labeled pixels. Each frame also carries a homography that maps the thermal image into the RGB image, so the two modalities can be used together.
31
 
32
+ ![HotSight: RGB frame, projected thermal frame, and annotation overlay of Graminoid-01 f02400](assets/teaser.jpg)
33
 
34
+ *One frame pair, `Graminoid-01` frame `f02400`. Top: the RGB frame and the color IR frame projected into it with the clip's homography and blended equally with the RGB. Bottom: the annotation, one of five classes for every RGB pixel. The three panels are `rgb/f02400.png`, the projection computed as in "Reading the data" below, and `mask/f02400_overlay.jpg` from the same clip folder.*
35
 
36
  > This dataset accompanies a paper under double-blind review. Authorship, citation, and license details will be added after the review process.
37
 
 
44
  | I want to... | Download | Size |
45
  |---|---|---|
46
  | Train or evaluate a segmentation model on the hand-labeled data | `Data/` | 12 GB |
47
+ | Look at a single clip or frame first | `Data/<Unit>/<Clip>/` (13 MB to 840 MB per clip, median 150 MB) | |
48
  | Use extra training frames with automatically generated labels | `PseudoDataset10s/` | 29 GB |
49
  | Compare automatic labels against the human labels | `GeneratedAnnotations10s/` | 10 GB |
50
  | Run the automatic labeling pipeline on my own RGB+IR footage | `annotation_tool/` | 364 MB |
 
54
  ```bash
55
  pip install -U huggingface_hub
56
  hf download hotsightdataset/HotSight --repo-type dataset --local-dir HotSight --include "Data/*" # hand-labeled data (12 GB)
57
+ hf download hotsightdataset/HotSight --repo-type dataset --local-dir HotSight --include "Data/Graminoid/Graminoid-01/*" # one clip, the one shown above (149 MB, 11 frames)
58
  hf download hotsightdataset/HotSight --repo-type dataset --local-dir HotSight # everything (59 GB)
59
  ```
60
 
 
92
  Every clip in `Data/` (and in the generated folders) has this layout. `fXXXXX` is the zero-based frame index in the original RGB video. Hand-labeled frames are multiples of 300 (every 10 s); pseudo frames end in 50, 150, or 250.
93
 
94
  ```text
95
+ Data/Graminoid/Graminoid-01/
96
+ rgb/f02400.png RGB frame, 2688 x 1512
97
+ ir/f02400.png colorized thermal frame, 640 x 360
98
+ ir/f02400_recovered.png only in some clips: cleaned thermal frame, use it instead of the original when present
99
+ mask/f02400.txt the label mask (see "Mask format")
100
+ mask/f02400_overlay.jpg labels drawn over the RGB frame, for eyeballing
101
  homography/homography.json IR -> RGB matrices, one per contiguous frame range
102
  homography/points.json the point correspondences the matrices were fitted from
103
  ```
 
126
 
127
  Labels describe the visible state of the **material**, not the smoke above it, and were assigned from the RGB video. Thermal intensity was not used to decide a class. *Warm* is a combustion-state label, not a measured temperature. *Unknown* is a real fifth class that models are expected to predict, not an ignore label.
128
 
129
+ ![Three frame pairs from HotSight: RGB, projected color IR, and annotation overlay](assets/examples.jpg)
130
+
131
+ *Frames `Canopy-07/f00300`, `Graminoid-02/f00300`, and `Canopy-08/f00300` in `Data/`. The middle column warps the thermal frame into the RGB image with the homography for that frame range and blends it equally with the RGB. The thermal camera sees a narrower field of view than the RGB camera, which is why the projection covers only part of the frame. Row (c) shows what the thermal band adds: smoke hides part of the ground beside the front in RGB, so the annotators labeled that patch *unknown*, while the thermal frame still shows the hot ground beneath it.*
132
+
133
  ## Reading the data
134
 
135
  ### Mask format
 
151
  ```python
152
  import json, cv2, numpy as np
153
 
154
+ def find_matrix(homography_json, frame): # frame like "f02400"
155
  fnum = int(frame.lstrip("f"))
156
  for s in homography_json["subsets"]:
157
  lo = int(s["frame_start"].split(".")[0].lstrip("f"))
 
160
  return np.array(s["matrix"], dtype=np.float64)
161
  raise ValueError(f"no homography range covers {frame}")
162
 
163
+ clip, frame = "Data/Graminoid/Graminoid-01", "f02400"
164
  rgb = cv2.imread(f"{clip}/rgb/{frame}.png")
165
  ir = cv2.imread(f"{clip}/ir/{frame}.png")
166
  H = find_matrix(json.load(open(f"{clip}/homography/homography.json")), frame)
167
  ir_in_rgb = cv2.warpPerspective(ir, H, (rgb.shape[1], rgb.shape[0]))
168
+
169
+ # The "projected color IR" panels in the figures above: equal blend inside the
170
+ # thermal footprint, untouched RGB outside it.
171
+ inside = cv2.warpPerspective(np.full(ir.shape[:2], 255, np.uint8), H, (rgb.shape[1], rgb.shape[0])) > 127
172
+ panel = rgb.copy()
173
+ panel[inside] = cv2.addWeighted(ir_in_rgb, 0.5, rgb, 0.5, 0)[inside]
174
  ```
175
 
176
  Note that `samples.csv` always points at the original `ir/fXXXXX.png`. Where an `ir/fXXXXX_recovered.png` exists, use that file instead (see "Known quirks").
 
223
 
224
  **Time.** The two cameras record independently. The IR start offset of each of the 40 video pairs was estimated manually with `html/sync-video-player.html` and stored in `sync.csv` (offsets range from -1.1 to +0.15 s). Each sampled RGB frame is matched to the temporally nearest thermal frame. The residual gap has a median of 0.028 s and a maximum of 0.798 s, recorded per pair in `samples.csv`.
225
 
226
+ **Space.** Each contiguous frame range of a clip has a projective homography mapping IR pixels into the RGB frame, fitted with `html/image-register.html` and OpenCV. Registration started from a default scale-and-translation alignment. Where that was visibly off, an operator either clicked landmarks visible in both images or adjusted the projected overlay and generated a 6 x 4 grid of correspondences, and an 8-DOF homography was fitted with RANSAC or least squares. The 38 usable clips use 122 matrices, and 14 clips have more than one range. Of the 122 ranges, 38 were fitted from clicked landmarks, 82 from generated grids, and 2 copy the transform of the preceding clip in the same flight. For the 38 landmark-based fits, the control-point RMSE has a median of 2.03 px and a maximum of 15.13 px at 2688 x 1512. That measures error at the control points only. Additional error comes from the timing gap during camera motion, drift within a frame range, and parallax between the two lenses, which no single homography can remove. For this reason the annotations were drawn directly on the RGB frames, and the registration serves cross-modal context rather than label transfer. Use `html/viewer.html` to scrub through any clip with the thermal frame overlaid, see `html/README.md` and `markdown/homography.md`.
227
+
228
+ ![IR-to-RGB registration: control points on the IR and RGB frames, and the fitted warp](assets/registration.jpg)
229
+
230
+ *Registration of `Graminoid-01`, frame `f00300`. (a, b) Ten correspondences clicked on features visible in both modalities, stored in `Data/Graminoid/Graminoid-01/homography/points.json`. (c) The fitted homography warps the IR frame onto the RGB frame (white outline = thermal footprint). Circles mark the clicked RGB positions and crosses the reprojected IR points.*
231
 
232
  ## Known quirks
233
 
assets/examples.jpg ADDED

Git LFS Details

  • SHA256: 412ab44a0a3759308f8d2db86210ce641691c4f547df36c12fe2f94d92ad6842
  • Pointer size: 131 Bytes
  • Size of remote file: 902 kB
assets/registration.jpg ADDED

Git LFS Details

  • SHA256: 47adc5a3601411e33cc19a25201a68c10ffd3f1d9b6fb62bc22fdb0416ba273a
  • Pointer size: 131 Bytes
  • Size of remote file: 647 kB
assets/teaser.jpg CHANGED

Git LFS Details

  • SHA256: 66907b4481fa9086c0bd6c286ea7be0f12d02442f91c9ad5090143c9bbe168f3
  • Pointer size: 131 Bytes
  • Size of remote file: 769 kB

Git LFS Details

  • SHA256: 0bfddf0152357f50348a2d052a717505818ff370b0ed10aa1d1e9a481165cb83
  • Pointer size: 131 Bytes
  • Size of remote file: 578 kB