Upload README.md with huggingface_hub
Browse files
README.md
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: cc-by-4.0
|
| 3 |
+
tags:
|
| 4 |
+
- autonomous-vehicles
|
| 5 |
+
- driving
|
| 6 |
+
- embeddings
|
| 7 |
+
- representation-learning
|
| 8 |
+
- computer-vision
|
| 9 |
+
- safety
|
| 10 |
+
---
|
| 11 |
+
|
| 12 |
+
# DriveBench-Embeddings: 298,326 Driving Scene Vectors
|
| 13 |
+
|
| 14 |
+
**Author:** Nikhil Upadhyay | MSc Business Analytics | Dublin Business School
|
| 15 |
+
**Model:** [Trazemag/DriveBench](https://huggingface.co/Trazemag/DriveBench)
|
| 16 |
+
|
| 17 |
+
## Overview
|
| 18 |
+
|
| 19 |
+
Pre-computed 256-dimensional DriveBench embeddings for all 298,326 clips
|
| 20 |
+
from the NVIDIA PhysicalAI-AV dataset across 25 countries.
|
| 21 |
+
|
| 22 |
+
Use these as features for any downstream driving task without running the model.
|
| 23 |
+
|
| 24 |
+
## File
|
| 25 |
+
|
| 26 |
+
| File | Size | Shape |
|
| 27 |
+
|------|------|-------|
|
| 28 |
+
| `drivebench_embeddings.npz` | 282 MB | (298326, 256) |
|
| 29 |
+
|
| 30 |
+
## Usage
|
| 31 |
+
|
| 32 |
+
```python
|
| 33 |
+
import numpy as np
|
| 34 |
+
from huggingface_hub import hf_hub_download
|
| 35 |
+
|
| 36 |
+
path = hf_hub_download(
|
| 37 |
+
"Trazemag/DriveBench-Embeddings",
|
| 38 |
+
"drivebench_embeddings.npz",
|
| 39 |
+
repo_type="dataset")
|
| 40 |
+
|
| 41 |
+
data = np.load(path)
|
| 42 |
+
embeddings = data["embeddings"] # (298326, 256) float32
|
| 43 |
+
|
| 44 |
+
# Match to clip IDs using PRECOG-Labels dataset
|
| 45 |
+
# huggingface.co/datasets/Trazemag/PRECOG-Labels
|
| 46 |
+
```
|
| 47 |
+
|
| 48 |
+
## What each embedding captures
|
| 49 |
+
|
| 50 |
+
Each 256-dim vector encodes:
|
| 51 |
+
- Danger context (AUC 0.84 on held-out countries)
|
| 52 |
+
- Geographic driving patterns (6 regions, 25 countries)
|
| 53 |
+
- Time-of-day risk (peak danger 13:00-15:00)
|
| 54 |
+
- Radar sensor health (AUC 1.00)
|
| 55 |
+
- Traffic density and scene complexity
|
| 56 |
+
|
| 57 |
+
## Citation
|
| 58 |
+
|
| 59 |
+
```bibtex
|
| 60 |
+
@misc{upadhyay2026drivebench,
|
| 61 |
+
title = {DriveBench: General-Purpose Driving Scene Encoder
|
| 62 |
+
via Multi-Task Safety-Focused Pre-training across 25 Countries},
|
| 63 |
+
author = {Upadhyay, Nikhil},
|
| 64 |
+
year = {2026},
|
| 65 |
+
url = {https://github.com/TrazeMaG/PRECOG-AV}
|
| 66 |
+
}
|
| 67 |
+
```
|