ConsDrive / docs /bench2drive_eval.md
ZenoNing's picture
Upload ConsDrive v2 source
3e56913 verified
|
Raw History Blame Contribute Delete
1.09 kB
# Bench2Drive Evaluation
This checkout now includes the upstream Bench2Drive evaluator under `Bench2Drive/`, the Bench2Drive route XMLs under `leaderboard/data/`, and a minimal local agent at `team_code/agent_drivevla.py`.
Run one route with a CARLA 0.9.15 server already running:
```bash
export CARLA_ROOT=/path/to/carla0915
python eval_bench2drive.py \
--checkpoint outputs/register_command_small_seed_42/checkpoints/epoch=029.ckpt \
--routes leaderboard/data/bench2drive_split/bench2drive_00.xml \
--port 2000 \
--traffic-manager-port 8000
```
The agent infers `outputs/<run>/.hydra/config.yaml` from checkpoints stored under `outputs/<run>/checkpoints/`. If the checkpoint was moved, pass `--config /path/to/config.yaml`.
To run every split XML sequentially:
```bash
python eval_bench2drive.py \
--checkpoint outputs/register_command_small_seed_42/checkpoints/epoch=029.ckpt \
--routes leaderboard/data/bench2drive_split \
--result-dir eval_results/Bench2Drive/register_command_small_seed_42
```
Use `--dry-run` to print evaluator commands without starting evaluation.