Add dataset card and metadata
#1
by nielsr HF Staff - opened
README.md
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
task_categories:
|
| 3 |
+
- robotics
|
| 4 |
+
---
|
| 5 |
+
|
| 6 |
+
# Fail2Drive: Benchmarking Closed-Loop Driving Generalization
|
| 7 |
+
|
| 8 |
+
[**Project Page**](https://simonger.github.io/fail2drive/) | [**Paper**](https://huggingface.co/papers/2604.08535) | [**GitHub**](https://github.com/autonomousvision/fail2drive)
|
| 9 |
+
|
| 10 |
+
Fail2Drive is the first CARLA v2 benchmark designed to test closed-loop generalization on truly unseen long-tail scenarios. By pairing each shifted route with an in-distribution reference scenario, it exposes substantial hidden failure modes in current state-of-the-art driving models.
|
| 11 |
+
|
| 12 |
+
## Highlights
|
| 13 |
+
- **17 unseen scenarios** for evaluation of true generalization.
|
| 14 |
+
- **30 novel assets** including animals, visual noise, and adversarial obstacles.
|
| 15 |
+
- **Paired route design** enables quantification of the generalization gap.
|
| 16 |
+
- **100 route pairs** in diverse environments and configurations.
|
| 17 |
+
- **Toolbox** for creating custom obstacles and routes.
|
| 18 |
+
|
| 19 |
+
## Installation
|
| 20 |
+
|
| 21 |
+
To set up the environment and the Fail2Drive CARLA simulator, follow these steps:
|
| 22 |
+
|
| 23 |
+
```bash
|
| 24 |
+
# 1. Clone this repository
|
| 25 |
+
git clone https://github.com/autonomousvision/fail2drive.git
|
| 26 |
+
cd fail2drive
|
| 27 |
+
|
| 28 |
+
# 2. Set up the Fail2Drive CARLA simulator
|
| 29 |
+
mkdir f2d_carla
|
| 30 |
+
curl -L \
|
| 31 |
+
https://huggingface.co/datasets/SimonGer/fail2drive/resolve/main/fail2drive_simulator.tar.gz \
|
| 32 |
+
| tar -xz -C f2d_carla
|
| 33 |
+
|
| 34 |
+
# 3. Create the conda environment
|
| 35 |
+
conda env create -f environment.yml
|
| 36 |
+
conda activate fail2drive
|
| 37 |
+
|
| 38 |
+
# 4. Set environment variables
|
| 39 |
+
source env_vars.sh
|
| 40 |
+
```
|
| 41 |
+
|
| 42 |
+
## Sample Usage
|
| 43 |
+
|
| 44 |
+
To run a keyboard-controlled human agent on a benchmark route, start CARLA in a separate terminal and run:
|
| 45 |
+
|
| 46 |
+
```bash
|
| 47 |
+
python leaderboard/leaderboard/leaderboard_evaluator.py \
|
| 48 |
+
--agent ${WORK_DIR}/leaderboard/leaderboard/autoagents/human_agent_keyboard.py \
|
| 49 |
+
--routes ${WORK_DIR}/fail2drive_split/Generalization_PedestriansOnRoad_1085.xml
|
| 50 |
+
```
|
| 51 |
+
|
| 52 |
+
To run the PDM-Lite expert policy:
|
| 53 |
+
|
| 54 |
+
```bash
|
| 55 |
+
python leaderboard/leaderboard/leaderboard_evaluator_local.py \
|
| 56 |
+
--agent ${WORK_DIR}/team_code/visu_agent.py \
|
| 57 |
+
--track MAP \
|
| 58 |
+
--routes ${WORK_DIR}/fail2drive_split/Generalization_PedestriansOnRoad_1085.xml
|
| 59 |
+
```
|
| 60 |
+
|
| 61 |
+
## Citation
|
| 62 |
+
|
| 63 |
+
```bibtex
|
| 64 |
+
@article{gerstner2024fail2drive,
|
| 65 |
+
title={Fail2Drive: Benchmarking Closed-Loop Driving Generalization},
|
| 66 |
+
author={Gerstner, Simon and others},
|
| 67 |
+
journal={arXiv preprint arXiv:2604.08535},
|
| 68 |
+
year={2024}
|
| 69 |
+
}
|
| 70 |
+
```
|