harpreetsahota commited on
Commit
a67a397
·
verified ·
1 Parent(s): 9bf0c9b

Update dataset card and preview gif

Browse files
Files changed (2) hide show
  1. README.md +166 -45
  2. preview.gif +2 -2
README.md CHANGED
@@ -23,22 +23,52 @@ tags:
23
  - autonomous-driving
24
  - disparity
25
  - optical-flow
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
26
  ---
27
 
28
- # DSEC sample → FiftyOne (Native Multimodal MCAP)
29
 
30
  ![preview](preview.gif)
31
 
32
- 6 sequences from [DSEC](https://dsec.ifi.uzh.ch/), the stereo event camera dataset for driving from the Robotics and Perception Group at the University of Zurich, converted to native multimodal MCAP episodes.
33
-
34
- A car carries a stereo pair of Prophesee event cameras at 640x480 and a stereo pair of global-shutter color cameras at 1440x1080 through Zurich, Thun and Interlaken. Disparity derived from LiDAR scans is the ground truth for both pairs, and some sequences add optical flow ground truth for the event cameras. The release holds 53 sequences; this sample carries 6 of the training sequences, which come with their ground truth, chosen across the three places.
35
 
36
- 105 seconds of driving, 2,233,378,133 events and 2,112 image pairs.
37
 
38
  ## Installation
39
 
 
 
40
  ```bash
41
- pip install fiftyone
42
  ```
43
 
44
  ## Usage
@@ -47,64 +77,137 @@ pip install fiftyone
47
  import fiftyone as fo
48
  import fiftyone.utils.huggingface as fouh
49
 
 
 
50
  dataset = fouh.load_from_hub(
51
  "Voxel51/DSEC-Sample",
52
  name="DSEC-Sample",
53
  persistent=True,
54
  )
55
- fo.launch_app(dataset)
 
 
56
  ```
57
 
58
- The sequences with the busiest event streams:
59
 
60
- ```python
61
- view = dataset.sort_by("peak_event_rate_mev_s", reverse=True)
62
- fo.launch_app(dataset, view=view)
63
- ```
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
64
 
65
- ## What you get
66
 
67
- Each episode contains:
 
 
 
 
 
 
 
 
 
 
 
68
 
69
- - `/events-left` and `/events-right`, every event each event camera produced, in windows of 1/30 s,
70
- as `foxglove.PointCloud` with `x` and `y` the raw pixel, `z` the time since the window opened in
71
- milliseconds and `polarity` 1 for a brightness increase and 0 for a decrease; each message is
72
- stamped at its window's close
73
- - `/event-frames-left` and `/event-frames-right`, a render of each window, ON events white and
74
- OFF events black on gray, as `foxglove.CompressedVideo`
75
- - `/images-left` and `/images-right`, the rectified color images at 20 Hz, as
76
- `foxglove.CompressedVideo`
77
- - `/disparity-event` and `/disparity-image`, the disparity ground truth for each stereo pair at
78
- 10 Hz, as `foxglove.CompressedImage` (16-bit PNG, 256 per pixel of disparity, 0 where there is
79
- none)
80
- - `/optical-flow-forward` and `/optical-flow-backward` on the sequences that have them, the event
81
- cameras' optical flow ground truth, as `foxglove.CompressedImage` (16-bit PNG)
82
- - a `-calibration` topic beside each camera stream, as `foxglove.CameraCalibration`
83
- - `/tf`, the four cameras and their rectified frames, as `foxglove.FrameTransform`
84
- - `/sequence`, naming the sequence and its place
85
 
86
- | Sequence | Place | Duration | Events | Peak event rate | Image pairs | Disparity maps | Flow maps |
87
- |---|---|---:|---:|---:|---:|---:|---:|
88
- | `interlaken_00_c` | Interlaken | 26.8 s | 884,252,854 | 28.8 M/s | 537 | 269 | |
89
- | `thun_00_a` | Thun | 11.9 s | 261,111,191 | 20.5 M/s | 239 | 120 | 41 |
90
- | `zurich_city_02_a` | Zurich | 11.7 s | 312,356,446 | 22.3 M/s | 235 | 118 | 64 |
91
- | `zurich_city_04_b` | Zurich | 13.4 s | 247,359,435 | 20.6 M/s | 269 | 135 | |
92
- | `zurich_city_09_b` | Zurich | 18.3 s | 298,543,673 | 22.6 M/s | 367 | 184 | |
93
- | `zurich_city_11_a` | Zurich | 23.2 s | 229,754,534 | 12.4 M/s | 465 | 233 | 231 |
94
 
95
- Episodes carry the fields `sequence`, `place`, `duration`, `num_events_left`, `num_events_right`, `peak_event_rate_mev_s`, `num_images`, `num_disparity_maps`, `num_optical_flow_maps` and `mean_image_brightness`. `peak_event_rate_mev_s` is the busier camera's busiest 1/30 s window, and `mean_image_brightness` the mean pixel value of the left color images.
 
 
 
 
 
 
 
 
 
96
 
97
- ## Notes on the conversion
98
 
99
- Every event in each event camera's file is carried, on the timestamps the release records in microseconds on the rig's own clock. Both cameras' windows run from the first event of either, so the two cameras share their window stamps, and an event's time is its window's stamp less 1/30 s plus its `z` in milliseconds. The events are carried at the raw, distorted pixel, with each event camera's distortion on its calibration topic.
 
 
 
 
 
 
 
100
 
101
- The color images are the release's rectified images, re-encoded to Annex-B H.264 without B-frames, one access unit per frame, on the release's image timestamps. The disparity and optical flow maps are carried as the release ships them. `/disparity-event` lies in the rectified frame of the left event camera and `/disparity-image` in that of the left color camera; each optical flow map is stamped at the start of the interval it covers. The optical flow PNGs hold three 16-bit channels: horizontal and vertical flow as (value - 2^15) / 128 pixels, and a validity flag.
102
 
103
- `/tf` is the release's calibration. The release maps points from each camera into the next and from each camera into its rectified frame; each transform is carried as the inverse, the child's pose in its parent. The raw LiDAR and the semantic labels the release offers are not carried.
 
 
 
 
 
104
 
105
- ## License & attribution
106
 
107
- DSEC is distributed under the Creative Commons Attribution-ShareAlike 4.0 International license (CC-BY-SA-4.0), and this conversion is distributed under the same license. Cite:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
108
 
109
  ```bibtex
110
  @Article{Gehrig21ral,
@@ -123,4 +226,22 @@ DSEC is distributed under the Creative Commons Attribution-ShareAlike 4.0 Intern
123
  }
124
  ```
125
 
 
 
 
 
 
 
 
 
 
 
126
  Changes from the source: 6 of the release's training sequences, converted to the FiftyOne MCAP flavor, each event camera's events cut into 1/30 s windows carried as point clouds with a grayscale render of each window, H.264 encoding of the rectified color images, the release's calibration carried as camera intrinsics and inverted transforms, and the raw LiDAR and semantic labels left out.
 
 
 
 
 
 
 
 
 
23
  - autonomous-driving
24
  - disparity
25
  - optical-flow
26
+ dataset_summary: |
27
+ ![preview](preview.gif)
28
+
29
+ This is a [FiftyOne](https://github.com/voxel51/fiftyone) dataset with 6 samples.
30
+
31
+ ## Installation
32
+
33
+ If you haven't already, install FiftyOne:
34
+
35
+ ```bash
36
+ pip install -U fiftyone
37
+ ```
38
+
39
+ ## Usage
40
+
41
+ ```python
42
+ import fiftyone as fo
43
+ import fiftyone.utils.huggingface as fouh
44
+
45
+ # Load the dataset
46
+ # Note: other available arguments include 'max_samples', etc
47
+ dataset = fouh.load_from_hub(
48
+ "Voxel51/DSEC-Sample",
49
+ name="DSEC-Sample",
50
+ persistent=True,
51
+ )
52
+
53
+ # Launch the App
54
+ session = fo.launch_app(dataset)
55
+ ```
56
  ---
57
 
58
+ # Dataset Card for DSEC sample (FiftyOne multimodal MCAP)
59
 
60
  ![preview](preview.gif)
61
 
62
+ This is a [FiftyOne](https://github.com/voxel51/fiftyone) dataset with 6 samples. Each sample is one driving sequence, stored as a native multimodal MCAP episode.
 
 
63
 
64
+ The source is [DSEC](https://dsec.ifi.uzh.ch/), the stereo event camera dataset for driving from the Robotics and Perception Group at the University of Zurich. A car carries a stereo pair of Prophesee event cameras at 640x480 and a stereo pair of global-shutter color cameras at 1440x1080 through Zurich, Thun and Interlaken. Disparity derived from LiDAR scans is the ground truth for both pairs, and some sequences add optical flow ground truth for the event cameras. The release holds 53 sequences; this sample carries 6 of the training sequences, which come with their ground truth, chosen across the three places.
65
 
66
  ## Installation
67
 
68
+ If you haven't already, install FiftyOne:
69
+
70
  ```bash
71
+ pip install -U fiftyone
72
  ```
73
 
74
  ## Usage
 
77
  import fiftyone as fo
78
  import fiftyone.utils.huggingface as fouh
79
 
80
+ # Load the dataset
81
+ # Note: other available arguments include 'max_samples', etc
82
  dataset = fouh.load_from_hub(
83
  "Voxel51/DSEC-Sample",
84
  name="DSEC-Sample",
85
  persistent=True,
86
  )
87
+
88
+ # Launch the App
89
+ session = fo.launch_app(dataset)
90
  ```
91
 
92
+ ## Dataset Details
93
 
94
+ ### Dataset Description
95
+
96
+ 6 sequences, 4 in Zurich, 1 in Thun and 1 in Interlaken, totalling 105 seconds of driving, 2,233,378,133 events and 2,112 image pairs.
97
+
98
+ - **Curated by:** Robotics and Perception Group, University of Zurich (source release)
99
+ - **Funded by:** [More Information Needed]
100
+ - **Shared by:** Voxel51 (FiftyOne conversion)
101
+ - **Language(s):** Not applicable (sensor data)
102
+ - **License:** CC-BY-SA-4.0
103
+
104
+ ### Dataset Sources
105
+
106
+ - **Repository:** [DSEC](https://dsec.ifi.uzh.ch/) (source release); [Voxel51/DSEC-Sample](https://huggingface.co/datasets/Voxel51/DSEC-Sample) (this conversion)
107
+ - **Paper:** [DSEC: A Stereo Event Camera Dataset for Driving Scenarios](https://doi.org/10.1109/LRA.2021.3068942) (IEEE Robotics and Automation Letters, 2021)
108
+ - **Demo:** [More Information Needed]
109
+
110
+ ## Uses
111
+
112
+ ### Direct Use
113
+
114
+ Stereo disparity estimation for both the event cameras and the color cameras, and optical flow estimation from event cameras on the sequences that carry flow, evaluated against the ground truth shipped in each episode.
115
+
116
+ ### Out-of-Scope Use
117
+
118
+ [More Information Needed]
119
+
120
+ ## Dataset Structure
121
+
122
+ **Topology**
123
+
124
+ An ungrouped FiftyOne dataset with `media_type="multimodal"`. One sample is one sequence, and its `filepath` is a `.fo.mcap` file. There are 6 samples (`interlaken_00_c`, `thun_00_a`, `zurich_city_02_a`, `zurich_city_04_b`, `zurich_city_09_b`, `zurich_city_11_a`), no sample tags, and an empty `dataset.info`. The dataset has no FiftyOne label fields; every signal, including the ground truth, lives inside the MCAP file as a channel and is shown by the App's multimodal viewer.
125
 
126
+ **Sample fields**
127
 
128
+ | Field | FiftyOne type | Description |
129
+ |-------|---------------|-------------|
130
+ | `id`, `filepath`, `tags`, `metadata`, `created_at`, `last_modified_at` | built-in | Standard FiftyOne sample fields |
131
+ | `sequence` | `StringField` | Sequence name, e.g. `interlaken_00_c` |
132
+ | `place` | `StringField` | Where the sequence was recorded: Zurich, Thun or Interlaken |
133
+ | `duration` | `FloatField` | Sequence length in seconds |
134
+ | `num_events_left`, `num_events_right` | `IntField` | Events produced by the left and the right event camera |
135
+ | `peak_event_rate_mev_s` | `FloatField` | The busier camera's busiest 1/30 s window, in millions of events per second |
136
+ | `num_images` | `IntField` | Color image pairs |
137
+ | `num_disparity_maps` | `IntField` | Disparity ground truth maps |
138
+ | `num_optical_flow_maps` | `IntField` | Optical flow ground truth maps; 0 on sequences without flow |
139
+ | `mean_image_brightness` | `FloatField` | Mean pixel value of the left color images |
140
 
141
+ **Episode contents**
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
142
 
143
+ Each MCAP episode contains these channels:
 
 
 
 
 
 
 
144
 
145
+ | Channel | Schema or content |
146
+ |---------|-------------------|
147
+ | `/events-left`, `/events-right` | Every event each event camera produced, in windows of 1/30 s, as `foxglove.PointCloud`: `x` and `y` are the raw pixel, `z` is the time since the window opened in milliseconds and `polarity` is 1 for a brightness increase and 0 for a decrease. Each message is stamped at its window's close |
148
+ | `/event-frames-left`, `/event-frames-right` | A render of each window, ON events white and OFF events black on gray, `foxglove.CompressedVideo` |
149
+ | `/images-left`, `/images-right` | The rectified color images at 20 Hz, `foxglove.CompressedVideo` |
150
+ | `/disparity-event`, `/disparity-image` | Disparity ground truth for each stereo pair at 10 Hz, `foxglove.CompressedImage` (16-bit PNG, 256 per pixel of disparity, 0 where there is none) |
151
+ | `/optical-flow-forward`, `/optical-flow-backward` | The event cameras' optical flow ground truth, `foxglove.CompressedImage` (16-bit PNG); only on the sequences that have them |
152
+ | `<camera>-calibration` | A calibration topic beside each camera stream, `foxglove.CameraCalibration` |
153
+ | `/tf` | The four cameras and their rectified frames, `foxglove.FrameTransform` |
154
+ | `/sequence` | Names the sequence and its place |
155
 
156
+ **Sequences**
157
 
158
+ | Sequence | Place | Duration | Events | Peak event rate | Image pairs | Disparity maps | Flow maps | Mean image brightness |
159
+ |---|---|---:|---:|---:|---:|---:|---:|---:|
160
+ | `interlaken_00_c` | Interlaken | 26.8 s | 884,252,854 | 28.8 M/s | 537 | 269 | | 92.5 |
161
+ | `thun_00_a` | Thun | 11.9 s | 261,111,191 | 20.5 M/s | 239 | 120 | 41 | 79.6 |
162
+ | `zurich_city_02_a` | Zurich | 11.7 s | 312,356,446 | 22.3 M/s | 235 | 118 | 64 | 82.8 |
163
+ | `zurich_city_04_b` | Zurich | 13.4 s | 247,359,435 | 20.6 M/s | 269 | 135 | | 91.9 |
164
+ | `zurich_city_09_b` | Zurich | 18.3 s | 298,543,673 | 22.6 M/s | 367 | 184 | | 26.5 |
165
+ | `zurich_city_11_a` | Zurich | 23.2 s | 229,754,534 | 12.4 M/s | 465 | 233 | 231 | 78.5 |
166
 
167
+ **Parsing decisions**
168
 
169
+ - **Why MCAP:** the dataset is one multimodal sample per sequence, so the event streams, color images, ground truth and calibration play back on one shared clock instead of being split into per-frame samples.
170
+ - **Events:** every event in each event camera's file is carried, on the timestamps the release records in microseconds on the rig's own clock. Both cameras' windows run from the first event of either, so the two cameras share their window stamps, and an event's time is its window's stamp less 1/30 s plus its `z` in milliseconds. The events are carried at the raw, distorted pixel, with each event camera's distortion on its calibration topic.
171
+ - **Color images:** the release's rectified images, re-encoded to Annex-B H.264 without B-frames, one access unit per frame, on the release's image timestamps.
172
+ - **Disparity and optical flow:** the maps are carried as the release ships them. `/disparity-event` lies in the rectified frame of the left event camera and `/disparity-image` in that of the left color camera. Each optical flow map is stamped at the start of the interval it covers. The optical flow PNGs hold three 16-bit channels: horizontal and vertical flow as (value - 2^15) / 128 pixels, and a validity flag.
173
+ - **Transforms:** `/tf` is the release's calibration. The release maps points from each camera into the next and from each camera into its rectified frame; each transform is carried as the inverse, the child's pose in its parent.
174
+ - **Left out:** the raw LiDAR and the semantic labels the release offers are not carried.
175
 
176
+ ## Dataset Creation
177
 
178
+ ### Curation Rationale
179
+
180
+ [More Information Needed]
181
+
182
+ ### Source Data
183
+
184
+ #### Data Collection and Processing
185
+
186
+ Recorded with a car carrying a stereo pair of Prophesee event cameras and a stereo pair of global-shutter color cameras through Zurich, Thun and Interlaken. The FiftyOne conversion writes one MCAP episode per sequence; see Parsing decisions above for the changes made.
187
+
188
+ #### Who are the source data producers?
189
+
190
+ The Robotics and Perception Group at the University of Zurich.
191
+
192
+ ### Annotations
193
+
194
+ #### Annotation process
195
+
196
+ The dataset has no human annotations in FiftyOne; the ground truth is carried inside each episode. Disparity is derived from LiDAR scans, and some sequences add optical flow ground truth for the event cameras. Further details of how the release produced it are [More Information Needed].
197
+
198
+ #### Who are the annotators?
199
+
200
+ [More Information Needed]
201
+
202
+ #### Personal and Sensitive Information
203
+
204
+ [More Information Needed]
205
+
206
+ ## Citation
207
+
208
+ Work using the dataset should cite:
209
+
210
+ **BibTeX:**
211
 
212
  ```bibtex
213
  @Article{Gehrig21ral,
 
226
  }
227
  ```
228
 
229
+ **APA:**
230
+
231
+ Gehrig, M., Aarents, W., Gehrig, D., & Scaramuzza, D. (2021). DSEC: A stereo event camera dataset for driving scenarios. *IEEE Robotics and Automation Letters*. https://doi.org/10.1109/LRA.2021.3068942
232
+
233
+ Gehrig, M., Millhäusler, M., Gehrig, D., & Scaramuzza, D. (2021). E-RAFT: Dense optical flow from event cameras. In *International Conference on 3D Vision (3DV)*.
234
+
235
+ ## More Information
236
+
237
+ DSEC is distributed under the Creative Commons Attribution-ShareAlike 4.0 International license (CC-BY-SA-4.0), and this conversion is distributed under the same license.
238
+
239
  Changes from the source: 6 of the release's training sequences, converted to the FiftyOne MCAP flavor, each event camera's events cut into 1/30 s windows carried as point clouds with a grayscale render of each window, H.264 encoding of the rectified color images, the release's calibration carried as camera intrinsics and inverted transforms, and the raw LiDAR and semantic labels left out.
240
+
241
+ ## Dataset Card Authors
242
+
243
+ [More Information Needed]
244
+
245
+ ## Dataset Card Contact
246
+
247
+ [More Information Needed]
preview.gif CHANGED

Git LFS Details

  • SHA256: e341cdf40a72f638aa3cf5df6d7317570c74effdef6646f013cfca4efac8a0aa
  • Pointer size: 133 Bytes
  • Size of remote file: 10.8 MB

Git LFS Details

  • SHA256: c9d16e2e7cc7e3e7dff1e234c9cffdf25cbc34e68b84dd1be106b8f9ad553451
  • Pointer size: 133 Bytes
  • Size of remote file: 11.5 MB