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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: cc-by-nc-4.0
|
| 3 |
+
task_categories:
|
| 4 |
+
- other
|
| 5 |
+
tags:
|
| 6 |
+
- scene-flow
|
| 7 |
+
- lidar
|
| 8 |
+
- autonomous-driving
|
| 9 |
+
- carla
|
| 10 |
+
- synthetic
|
| 11 |
+
- 3d
|
| 12 |
+
language:
|
| 13 |
+
- en
|
| 14 |
+
configs:
|
| 15 |
+
- config_name: 1k
|
| 16 |
+
data_files:
|
| 17 |
+
- split: train
|
| 18 |
+
path: "train/town-06-07-10/*"
|
| 19 |
+
- config_name: 2k
|
| 20 |
+
data_files:
|
| 21 |
+
- split: train
|
| 22 |
+
path: "train/town-01-05/*"
|
| 23 |
+
- config_name: 3k
|
| 24 |
+
data_files:
|
| 25 |
+
- split: train
|
| 26 |
+
path:
|
| 27 |
+
- "train/town-06-07-10/*"
|
| 28 |
+
- "train/town-01-05/*"
|
| 29 |
+
- config_name: 4k
|
| 30 |
+
data_files:
|
| 31 |
+
- split: train
|
| 32 |
+
path:
|
| 33 |
+
- "train/town-01-05/*"
|
| 34 |
+
- "train/town-12/*"
|
| 35 |
+
---
|
| 36 |
+
|
| 37 |
+
SynFlow: Scaling Up LiDAR Scene Flow Estimation with Synthetic Data
|
| 38 |
+
---
|
| 39 |
+
|
| 40 |
+
[](https://arxiv.org/abs/2604.09411)
|
| 41 |
+
[](https://kin-zhang.github.io/SynFlow)
|
| 42 |
+
|
| 43 |
+
Synthetic LiDAR scene-flow dataset collected from the [CARLA](https://carla.org/) , formatted for direct use with [OpenSceneFlow](https://github.com/KTH-RPL/OpenSceneFlow).
|
| 44 |
+
|
| 45 |
+
## Dataset Summary
|
| 46 |
+
|
| 47 |
+
SynFlow dataset provides dense 3D scene-flow ground truth for autonomous-driving research. An ego vehicle drives along pre-defined routes in multiple CARLA towns while a semantic LiDAR captures point clouds at **10 Hz**. Each **scene** is stored as a separate HDF5 file and spans roughly **20 seconds** (~200 frames for 64-beam LiDAR, ~30 s / 302 frames for 32-beam LiDAR). Dynamic objects (vehicles, pedestrians, cyclists, etc.) receive instance-level rigid-body flow labels; static background points receive ego-motion-compensated flow.
|
| 48 |
+
|
| 49 |
+
Data is organized per scene, following the same HDF5 layout used by OpenSceneFlow for Argoverse 2, Waymo, and nuScenes derivatives.
|
| 50 |
+
|
| 51 |
+
## Data Collection
|
| 52 |
+
|
| 53 |
+
The data collection code can be found in [SynFlow](https://github.com/Kin-Zhang/SynFlow) github repository.
|
| 54 |
+
|
| 55 |
+
| Property | Value |
|
| 56 |
+
|---|---|
|
| 57 |
+
| Simulator | CARLA 0.9.16 |
|
| 58 |
+
| Sensor | `sensor.lidar.ray_cast_semantic` |
|
| 59 |
+
| Frame rate | 10 Hz (`fixed_delta_seconds = 0.1`) |
|
| 60 |
+
| Coordinate system | Right-handed (RHS); Y-axis flipped from CARLA's native left-handed system |
|
| 61 |
+
| Ego vehicle | Tesla Model 3 with BehaviorAgent route following |
|
| 62 |
+
| NPCs | ~70 vehicles + ~80 pedestrians per scene (town-dependent) |
|
| 63 |
+
| Towns | Town01–Town10, Town12 (diverse urban, highway, rural, and large-map environments) |
|
| 64 |
+
|
| 65 |
+
**LiDAR Configurations**
|
| 66 |
+
|
| 67 |
+
| Channels | Range | FOV (upper / lower) | Points/sec | Frames / scene | Duration |
|
| 68 |
+
|---|---|---|---|---|---|
|
| 69 |
+
| **64** | 85 m | +10° / −30° | 460,000 | 201 | ~20 s |
|
| 70 |
+
| **32** | 75 m | +10° / −30° | 160,000 (typical) | 302 | ~30 s |
|
| 71 |
+
|
| 72 |
+
Default: LiDAR is mounted at `z = 2.1 m` above the ego vehicle origin.
|
| 73 |
+
|
| 74 |
+
## File Structure
|
| 75 |
+
|
| 76 |
+
```
|
| 77 |
+
data/
|
| 78 |
+
├── scene-{town}{channels}{route_id:04d}{split:02d}.h5 # one file per scene
|
| 79 |
+
├── index_total.pkl # frame index for training / visualization
|
| 80 |
+
└── index_eval.pkl # evaluation subset (optional)
|
| 81 |
+
```
|
| 82 |
+
|
| 83 |
+
### File Naming Convention
|
| 84 |
+
|
| 85 |
+
```
|
| 86 |
+
scene-{town_id}{channels}{route_id:04d}{scene_split:02d}.h5
|
| 87 |
+
```
|
| 88 |
+
|
| 89 |
+
| Field | Description | Example |
|
| 90 |
+
|---|---|---|
|
| 91 |
+
| `town_id` | CARLA map ID (digits only) | `01`, `12` |
|
| 92 |
+
| `channels` | LiDAR beam count | `32`, `64` |
|
| 93 |
+
| `route_id` | 4-digit route index within the town | `0042` |
|
| 94 |
+
| `scene_split` | 2-digit split index when a long route is divided | `00`, `01`, … |
|
| 95 |
+
|
| 96 |
+
**Example:** `scene-0164004200.h5` → Town01, 64-beam LiDAR, route 42, split 0.
|
| 97 |
+
|
| 98 |
+
Scenes with fewer than 120 valid frames are discarded during collection.
|
| 99 |
+
|
| 100 |
+
## HDF5 Schema
|
| 101 |
+
|
| 102 |
+
Each HDF5 file contains one scene. Every frame is stored as an HDF5 **group** keyed by its simulation timestamp in **microseconds** (e.g. `"1577836800000000"`). There is no separate `timestamps` dataset—the group key is the timestamp.
|
| 103 |
+
|
| 104 |
+
| Key | Shape | Dtype | Description |
|
| 105 |
+
|---|---|---|---|
|
| 106 |
+
| `lidar` | `(N, 3)` | `float32` | Point cloud in **sensor frame** (X, Y, Z), RHS |
|
| 107 |
+
| `pose` | `(4, 4)` | `float64` | Ego vehicle 4×4 transformation matrix (world ← ego), RHS |
|
| 108 |
+
| `flow` | `(N, 3)` | `float32` | Scene-flow vector from frame *t* to *t+1* in sensor frame, RHS |
|
| 109 |
+
| `flow_is_valid` | `(N,)` | `bool` | Per-point flow validity mask (currently all `True`) |
|
| 110 |
+
| `flow_category_indices` | `(N,)` | `uint8` | Semantic category index; `0` = background/static |
|
| 111 |
+
| `flow_instance_id` | `(N,)` | `int16` | Instance ID; `-1` = background, positive = dynamic object |
|
| 112 |
+
| `ground_mask` | `(N,)` | `bool` | `True` for ground points (road, sidewalk, terrain, road line, ground) |
|
| 113 |
+
|
| 114 |
+
`N` varies per frame depending on LiDAR density and scene complexity.
|
| 115 |
+
|
| 116 |
+
### Scene-Flow Ground Truth
|
| 117 |
+
|
| 118 |
+
- **Background (static) points:** flow computed by projecting world coordinates through the ego motion from frame *t* to *t+1* (sensor frame).
|
| 119 |
+
- **Foreground (dynamic) points:** flow refined using per-object rigid-body transforms derived from NPC bounding boxes and semantic instance tags.
|
| 120 |
+
- Points inside the ego vehicle bounding box are filtered before saving.
|
| 121 |
+
- The first frame of the first scene in a collection run is skipped (no *t−1* reference for flow).
|
| 122 |
+
|
| 123 |
+
### Instance & Category Labels
|
| 124 |
+
|
| 125 |
+
- `flow_instance_id`: dynamic objects are labeled with `npc.id % 32000 + 1`; background is `-1` (training code uses 0-indexed instances, so background must not be `0`).
|
| 126 |
+
- `flow_category_indices`: maps to the `AnnotationCategories` enum used in OpenSceneFlow (e.g. `REGULAR_VEHICLE`, `PEDESTRIAN`, `TRUCK`, `BICYCLE`, `MOTORCYCLE`, `BUS`, …). Index `0` denotes background / static.
|
| 127 |
+
|
| 128 |
+
### Ground Mask
|
| 129 |
+
|
| 130 |
+
`ground_mask` is `True` for points whose CARLA semantic tag is one of `{Road, SideWalk, Terrain, RoadLine, Ground}` (tags 1, 2, 10, 24, 25).
|
| 131 |
+
|
| 132 |
+
## Index Files
|
| 133 |
+
|
| 134 |
+
`index_total.pkl` is a pickled list of `[scene_id, timestamp]` pairs covering all frames, required for OpenSceneFlow training and visualization:
|
| 135 |
+
|
| 136 |
+
```python
|
| 137 |
+
import pickle
|
| 138 |
+
with open("index_total.pkl", "rb") as f:
|
| 139 |
+
index = pickle.load(f) # e.g. [["scene-0164004200", "1577836800000000"], ...]
|
| 140 |
+
```
|
| 141 |
+
|
| 142 |
+
`index_eval.pkl` (optional) subsamples every 5 frames with a minimum non-ground point count, for standardized evaluation.
|
| 143 |
+
|
| 144 |
+
## Usage Example
|
| 145 |
+
|
| 146 |
+
```python
|
| 147 |
+
import h5py
|
| 148 |
+
import numpy as np
|
| 149 |
+
|
| 150 |
+
scene_id = "scene-0164004200"
|
| 151 |
+
timestamp = "1577836800000000"
|
| 152 |
+
|
| 153 |
+
with h5py.File(f"{scene_id}.h5", "r") as f:
|
| 154 |
+
frame = f[timestamp]
|
| 155 |
+
points = frame["lidar"][:] # (N, 3) float32
|
| 156 |
+
pose = frame["pose"][:] # (4, 4) float64
|
| 157 |
+
flow = frame["flow"][:] # (N, 3) float32
|
| 158 |
+
valid = frame["flow_is_valid"][:] # (N,) bool
|
| 159 |
+
cats = frame["flow_category_indices"][:] # (N,) uint8
|
| 160 |
+
inst = frame["flow_instance_id"][:] # (N,) int16
|
| 161 |
+
ground = frame["ground_mask"][:] # (N,) bool
|
| 162 |
+
|
| 163 |
+
# Dynamic (non-background) points
|
| 164 |
+
dynamic_mask = inst != -1
|
| 165 |
+
```
|
| 166 |
+
|
| 167 |
+
For visualization and training, use the [OpenSceneFlow](https://github.com/KTH-RPL/OpenSceneFlow) toolchain:
|
| 168 |
+
|
| 169 |
+
```bash
|
| 170 |
+
python tools/visualization.py --res_name flow --data_dir /path/to/data
|
| 171 |
+
```
|
| 172 |
+
<!--
|
| 173 |
+
## Coordinate System
|
| 174 |
+
|
| 175 |
+
CARLA uses a left-handed coordinate system (LHS). All stored data is converted to a standard **right-handed system (RHS)** by flipping the Y axis on point coordinates, flow vectors, and the ego pose matrix. Point clouds and flow are expressed in the **LiDAR sensor frame** at frame *t*; `pose` gives the ego-to-world transform at frame *t*. -->
|
| 176 |
+
|
| 177 |
+
## Collection Code
|
| 178 |
+
|
| 179 |
+
This dataset is generated by [OpenSF-CARLA](https://github.com/KTH-RPL/opensf-carla). See the repository for route generation, multi-instance collection (`run_all.py`), and configuration details.
|
| 180 |
+
|
| 181 |
+
## Citation
|
| 182 |
+
|
| 183 |
+
If you use this dataset, please cite our papers and acknowledge the CARLA simulator:
|
| 184 |
+
|
| 185 |
+
```bibtex
|
| 186 |
+
@article{zhang2026synflow,
|
| 187 |
+
author = {Zhang, Qingwen and Zhu, Xiaomeng and Jiang, Chenhan and Jensfelt, Patric},
|
| 188 |
+
title = {{SynFlow}: Scaling Up LiDAR Scene Flow Estimation with Synthetic Data},
|
| 189 |
+
journal = {arXiv preprint arXiv:2604.09411},
|
| 190 |
+
year = {2026},
|
| 191 |
+
}
|
| 192 |
+
@inproceedings{zhang2025deltaflow,
|
| 193 |
+
title={{DeltaFlow}: An Efficient Multi-frame Scene Flow Estimation Method},
|
| 194 |
+
author={Zhang, Qingwen and Zhu, Xiaomeng and Zhang, Yushan and Cai, Yixi and Andersson, Olov and Jensfelt, Patric},
|
| 195 |
+
booktitle={The Thirty-ninth Annual Conference on Neural Information Processing Systems},
|
| 196 |
+
year={2025},
|
| 197 |
+
url={https://openreview.net/forum?id=T9qNDtvAJX}
|
| 198 |
+
}
|
| 199 |
+
@inproceedings{dosovitskiy2017carla,
|
| 200 |
+
title={CARLA: An open urban driving simulator},
|
| 201 |
+
author={Dosovitskiy, Alexey and Ros, German and Codevilla, Felipe and Lopez, Antonio and Koltun, Vladlen},
|
| 202 |
+
booktitle={Conference on robot learning},
|
| 203 |
+
pages={1--16},
|
| 204 |
+
year={2017},
|
| 205 |
+
organization={PMLR}
|
| 206 |
+
}
|
| 207 |
+
```
|
| 208 |
+
|
| 209 |
+
## License
|
| 210 |
+
|
| 211 |
+
Dataset is released under [CC BY-NC 4.0](https://creativecommons.org/licenses/by-nc/4.0/). CARLA itself is subject to its own [license terms](https://carla.org/).
|