Document dataset archives and YOLO weights
Browse files
README.md
CHANGED
|
@@ -4,61 +4,104 @@ pretty_name: 2D and 3D Traffic Elements for nuScenes, NAVSIM, and SimScale
|
|
| 4 |
|
| 5 |
# 2D and 3D Traffic Elements for nuScenes, NAVSIM, and SimScale
|
| 6 |
|
| 7 |
-
This
|
| 8 |
|
| 9 |
-
##
|
| 10 |
|
| 11 |
-
|
| 12 |
-
-
|
| 13 |
-
|
|
|
|
|
|
|
|
|
|
| 14 |
|
| 15 |
-
|
| 16 |
|
| 17 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
|
| 19 |
```bash
|
| 20 |
-
tar -xzf
|
| 21 |
-
tar -xzf
|
| 22 |
-
tar -xzf
|
| 23 |
```
|
| 24 |
|
| 25 |
The extracted files follow this structure:
|
| 26 |
|
| 27 |
```text
|
| 28 |
data/
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 62 |
```
|
| 63 |
|
| 64 |
Please follow the licenses and terms of use of the original nuScenes, NAVSIM, and SimScale datasets.
|
|
|
|
| 4 |
|
| 5 |
# 2D and 3D Traffic Elements for nuScenes, NAVSIM, and SimScale
|
| 6 |
|
| 7 |
+
This repository provides YOLO-format 2D Traffic Element labels and generated 3D Traffic Element center points for the nuScenes, NAVSIM, and SimScale datasets. It also includes the released YOLO checkpoint used for 2D Traffic Element detection.
|
| 8 |
|
| 9 |
+
## Resources
|
| 10 |
|
| 11 |
+
| Resource | Repository path | Description |
|
| 12 |
+
| --- | --- | --- |
|
| 13 |
+
| nuScenes Traffic Elements | [`nuscenes_traffic_elements.tar.gz`](https://huggingface.co/datasets/Zzz0918/Traffic_Elements/blob/main/nuscenes_traffic_elements.tar.gz) | 2D labels and 3D center points for nuScenes |
|
| 14 |
+
| NAVSIM Traffic Elements | [`navsim_traffic_elements.tar.gz`](https://huggingface.co/datasets/Zzz0918/Traffic_Elements/blob/main/navsim_traffic_elements.tar.gz) | 2D labels and 3D center points for NAVSIM |
|
| 15 |
+
| SimScale Traffic Elements | [`simscale_traffic_elements.tar.gz`](https://huggingface.co/datasets/Zzz0918/Traffic_Elements/blob/main/simscale_traffic_elements.tar.gz) | 2D labels and 3D center points for SimScale |
|
| 16 |
+
| YOLO detector checkpoint | [`weights/yolo/best.pt`](https://huggingface.co/datasets/Zzz0918/Traffic_Elements/blob/main/weights/yolo/best.pt) | Weights for 2D Traffic Element detection |
|
| 17 |
|
| 18 |
+
Related resources: [Paper](https://arxiv.org/abs/2608.18035) | [Project Page](https://zzongzheng0918.github.io/TE-Aware-E2E-AD/) | [Code](https://github.com/ZZongzheng0918/TE-Aware-E2E-AD)
|
| 19 |
|
| 20 |
+
## Download
|
| 21 |
+
|
| 22 |
+
Download the complete release:
|
| 23 |
+
|
| 24 |
+
```bash
|
| 25 |
+
huggingface-cli download Zzz0918/Traffic_Elements \
|
| 26 |
+
--repo-type dataset \
|
| 27 |
+
--local-dir traffic_elements_release
|
| 28 |
+
```
|
| 29 |
+
|
| 30 |
+
The three dataset archives and YOLO checkpoint can also be downloaded individually from the links in the table above.
|
| 31 |
+
|
| 32 |
+
## Dataset Extraction
|
| 33 |
+
|
| 34 |
+
Run the following commands from the root of the [TE-Aware-E2E-AD](https://github.com/ZZongzheng0918/TE-Aware-E2E-AD) repository:
|
| 35 |
|
| 36 |
```bash
|
| 37 |
+
tar -xzf traffic_elements_release/nuscenes_traffic_elements.tar.gz
|
| 38 |
+
tar -xzf traffic_elements_release/navsim_traffic_elements.tar.gz
|
| 39 |
+
tar -xzf traffic_elements_release/simscale_traffic_elements.tar.gz
|
| 40 |
```
|
| 41 |
|
| 42 |
The extracted files follow this structure:
|
| 43 |
|
| 44 |
```text
|
| 45 |
data/
|
| 46 |
+
|-- nuscenes/
|
| 47 |
+
| |-- traffic_elements/
|
| 48 |
+
| | `-- <sample_token>.json
|
| 49 |
+
| `-- traffic_elements_2d/
|
| 50 |
+
| `-- labels/
|
| 51 |
+
| `-- <image_name>.txt
|
| 52 |
+
|-- navsim/
|
| 53 |
+
| |-- traffic_elements/
|
| 54 |
+
| | |-- trainval/
|
| 55 |
+
| | | `-- <log_name>/
|
| 56 |
+
| | | `-- <image_token>.json
|
| 57 |
+
| | `-- test/
|
| 58 |
+
| | `-- <log_name>/
|
| 59 |
+
| | `-- <image_token>.json
|
| 60 |
+
| `-- traffic_elements_2d/
|
| 61 |
+
| |-- trainval/
|
| 62 |
+
| | `-- <log_name>/
|
| 63 |
+
| | `-- labels/
|
| 64 |
+
| | `-- <image_token>.txt
|
| 65 |
+
| `-- test/
|
| 66 |
+
| `-- <log_name>/
|
| 67 |
+
| `-- labels/
|
| 68 |
+
| `-- <image_token>.txt
|
| 69 |
+
`-- simscale/
|
| 70 |
+
|-- traffic_elements/
|
| 71 |
+
| `-- <split>/
|
| 72 |
+
| `-- <scene_name>/
|
| 73 |
+
| `-- <image_token>.json
|
| 74 |
+
`-- traffic_elements_2d/
|
| 75 |
+
`-- <split>/
|
| 76 |
+
`-- <scene_name>/
|
| 77 |
+
`-- labels/
|
| 78 |
+
`-- <image_token>.txt
|
| 79 |
+
```
|
| 80 |
+
|
| 81 |
+
## YOLO Detector Weights
|
| 82 |
+
|
| 83 |
+
The released detector checkpoint is stored at `weights/yolo/best.pt`. Copy it to the location expected by the inference scripts:
|
| 84 |
+
|
| 85 |
+
```bash
|
| 86 |
+
mkdir -p ultralytics/weights
|
| 87 |
+
cp traffic_elements_release/weights/yolo/best.pt ultralytics/weights/best.pt
|
| 88 |
+
```
|
| 89 |
+
|
| 90 |
+
Alternatively, download the checkpoint directly:
|
| 91 |
+
|
| 92 |
+
```bash
|
| 93 |
+
mkdir -p ultralytics/weights
|
| 94 |
+
curl -L "https://huggingface.co/datasets/Zzz0918/Traffic_Elements/resolve/main/weights/yolo/best.pt?download=true" \
|
| 95 |
+
-o ultralytics/weights/best.pt
|
| 96 |
+
```
|
| 97 |
+
|
| 98 |
+
The resulting code-repository path should be:
|
| 99 |
+
|
| 100 |
+
```text
|
| 101 |
+
TE-Aware-E2E-AD/
|
| 102 |
+
`-- ultralytics/
|
| 103 |
+
`-- weights/
|
| 104 |
+
`-- best.pt
|
| 105 |
```
|
| 106 |
|
| 107 |
Please follow the licenses and terms of use of the original nuScenes, NAVSIM, and SimScale datasets.
|