File size: 1,094 Bytes
3e56913
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# 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.