Update README.md
Browse files
README.md
CHANGED
|
@@ -17,16 +17,17 @@ configs:
|
|
| 17 |
<source src="https://cdn-uploads.huggingface.co/production/uploads/608c79739c5a8f8ddd85c409/SVwh26SkRYi5QsH6A76xj.mp4" type="video/mp4">
|
| 18 |
</video>
|
| 19 |
|
| 20 |
-
A 5k preview of comma.ai's self-driving dataset containing one-minute driving segments with road-camera video, and full localization data.
|
| 21 |
|
| 22 |
## Dataset collection
|
| 23 |
|
| 24 |
Segments were recorded by comma devices installed in real user vehicles. The collection spans several hardware generations (comma three, comma 3X, and comma four)
|
| 25 |
|
| 26 |
-
|
| 27 |
|
| 28 |
-
Each segment includes
|
| 29 |
|
|
|
|
| 30 |
|
| 31 |
## Structure
|
| 32 |
|
|
@@ -36,7 +37,9 @@ data/
|
|
| 36 |
├── fcamera.hevc
|
| 37 |
├── ecamera.hevc
|
| 38 |
├── thumbnail.jpg
|
| 39 |
-
|
|
|
|
|
|
|
| 40 |
```
|
| 41 |
|
| 42 |
## Example usage
|
|
@@ -51,7 +54,7 @@ from PIL import Image
|
|
| 51 |
segment_id = "001774ef60cf6c43657cd317035fae58"
|
| 52 |
|
| 53 |
thumbnail_path = hf_hub_download(
|
| 54 |
-
repo_id="commaai/
|
| 55 |
filename=f"data/{segment_id}/thumbnail.jpg",
|
| 56 |
)
|
| 57 |
Image.open(thumbnail_path).show()
|
|
@@ -61,7 +64,7 @@ Image.open(thumbnail_path).show()
|
|
| 61 |
|
| 62 |
```python
|
| 63 |
localizer_path = hf_hub_download(
|
| 64 |
-
repo_id="commaai/
|
| 65 |
filename=f"data/{segment_id}/localizer.safetensors",
|
| 66 |
)
|
| 67 |
states = load_file(localizer_path)["states"]
|
|
@@ -79,6 +82,19 @@ fig.update_layout(map={"style": "open-street-map","center": {"lat": float(np.mea
|
|
| 79 |
)
|
| 80 |
fig.show()
|
| 81 |
```
|
|
|
|
| 82 |
|
| 83 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 84 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
<source src="https://cdn-uploads.huggingface.co/production/uploads/608c79739c5a8f8ddd85c409/SVwh26SkRYi5QsH6A76xj.mp4" type="video/mp4">
|
| 18 |
</video>
|
| 19 |
|
| 20 |
+
A 5k preview of comma.ai's self-driving dataset containing one-minute driving segments with road-camera video, logs, and full localization data.
|
| 21 |
|
| 22 |
## Dataset collection
|
| 23 |
|
| 24 |
Segments were recorded by comma devices installed in real user vehicles. The collection spans several hardware generations (comma three, comma 3X, and comma four)
|
| 25 |
|
| 26 |
+
<img src="https://cdn-uploads.huggingface.co/production/uploads/608c79739c5a8f8ddd85c409/F3dVqtMBR0zIicx1RD4Ek.png" alt="hw_types" width="500"/>
|
| 27 |
|
| 28 |
+
Each segment includes a narrow FOV camera, wide FOV camera, preview thumbnail, log file with various measurements (GNSS, IMU, etc.), frame timing data, and offline localization data.
|
| 29 |
|
| 30 |
+
The offline `localizer.safetensors` is the result of an a fusion of raw GNSS measurements, accelerometer and gyroscope data, vehicle motion constraints, and visual feature tracks from the road cameras providing an accurate localization estimate.
|
| 31 |
|
| 32 |
## Structure
|
| 33 |
|
|
|
|
| 37 |
├── fcamera.hevc
|
| 38 |
├── ecamera.hevc
|
| 39 |
├── thumbnail.jpg
|
| 40 |
+
├── localizer.safetensors
|
| 41 |
+
├── frame_info.safetensors
|
| 42 |
+
└── rlog.zst
|
| 43 |
```
|
| 44 |
|
| 45 |
## Example usage
|
|
|
|
| 54 |
segment_id = "001774ef60cf6c43657cd317035fae58"
|
| 55 |
|
| 56 |
thumbnail_path = hf_hub_download(
|
| 57 |
+
repo_id="commaai/comma5k", repo_type="dataset",
|
| 58 |
filename=f"data/{segment_id}/thumbnail.jpg",
|
| 59 |
)
|
| 60 |
Image.open(thumbnail_path).show()
|
|
|
|
| 64 |
|
| 65 |
```python
|
| 66 |
localizer_path = hf_hub_download(
|
| 67 |
+
repo_id="commaai/comma5k", repo_type="dataset",
|
| 68 |
filename=f"data/{segment_id}/localizer.safetensors",
|
| 69 |
)
|
| 70 |
states = load_file(localizer_path)["states"]
|
|
|
|
| 82 |
)
|
| 83 |
fig.show()
|
| 84 |
```
|
| 85 |
+
<img src="https://cdn-uploads.huggingface.co/production/uploads/608c79739c5a8f8ddd85c409/MR00BzcF_gCATP4nombod.png" alt="map" width="800"/>
|
| 86 |
|
| 87 |
+
```python
|
| 88 |
+
from openpilot.tools.lib.logreader import LogReader
|
| 89 |
+
|
| 90 |
+
rlog_path = hf_hub_download(
|
| 91 |
+
repo_id="commaai/comma5k",
|
| 92 |
+
repo_type="dataset",
|
| 93 |
+
filename=f"data/{segment_id}/rlog.zst",
|
| 94 |
+
)
|
| 95 |
|
| 96 |
+
lr = LogReader(rlog_path)
|
| 97 |
+
speeds = [state.vEgo for state in lr.filter("carState")]
|
| 98 |
+
print(f"max speed: {max(speeds):.2f} m/s")
|
| 99 |
+
# max speed: 16.76 m/s
|
| 100 |
+
```
|