msrewa commited on
Commit
e30859b
·
verified ·
1 Parent(s): 6535cb9

Card wording: time per step as in the paper, plain sentences instead of semicolons and colons

Browse files
Files changed (1) hide show
  1. README.md +23 -23
README.md CHANGED
@@ -37,7 +37,7 @@ University of California, Irvine · IEEE/CVF WACV 2027
37
 
38
  </div>
39
 
40
- This is the released driving model of PersonaDrive. PersonaDrive conditions a vision-language-action (VLA) driving agent on demonstrations retrieved from people who were asked to drive in a given style: aggressive, neutral or conservative. **One set of weights serves every style.** Switching style only changes which database of human demonstrations the retrieval head searches.
41
 
42
  Videos, the method and the full results are on the **[project page](https://pervasiveautonomylab.github.io/personadrive-landpage/)**.
43
 
@@ -51,25 +51,25 @@ This checkpoint is Stage 3 of the PersonaDrive pipeline (in-context fine-tuning)
51
  |---|---|
52
  | Initialised from | [RenzKa/simlingo](https://huggingface.co/RenzKa/simlingo) (`epoch=013`) |
53
  | Backbone | [OpenGVLab/InternVL2-1B](https://huggingface.co/OpenGVLab/InternVL2-1B) |
54
- | Parameters | 1.36 B in total; about 24 M trained in this stage |
55
  | Retrieved context points | K = 2 |
56
  | Simulator / benchmark | CARLA 0.9.15 / Bench2Drive |
57
 
58
- The retrieval head (Stages 1–2) is a separate model of about 2 M trained parameters. It is in the code repository: [`persona_drive_rag/checkpoints/best_model.pt`](https://github.com/PervasiveAutonomyLab/PersonaDrive/blob/main/persona_drive_rag/checkpoints/best_model.pt).
59
 
60
  ## Files
61
 
62
  | Path | Size | Purpose |
63
  |---|---:|---|
64
- | `personadrive_icl_sft/checkpoints/epoch=000.ckpt/pytorch_model.pt` | 1.96 GB | **The model.** A single-file PyTorch state dict; load it for evaluation. |
65
  | `personadrive_icl_sft/.hydra/config.yaml` | 2 KB | The training config. The agent builds the model from it and finds `.hydra/` by walking up from the checkpoint path. |
66
- | `retrieval/normal/driving_index.faiss` | 221 MB | Vectors of the `normal` (no-style) retrieval index: 54,040 frames of the SimLingo dataset, embedded with the released retrieval head. |
67
- | `retrieval/normal/frames.json.gz` | 1 MB | The frames those vectors belong to. The SimLingo data itself is not included; `scripts/retrieval/fill_normal_index.py` in the code repository completes the index from your SimLingo download. |
68
  | `retrieval/normal/driving_index.info.json` | < 1 KB | Index type and size. |
69
 
70
  `pytorch_model.pt` was consolidated from the run's DeepSpeed ZeRO-2 checkpoint (`last.ckpt`). It contains only tensors, so it also loads with `torch.load(..., weights_only=True)`.
71
 
72
- The checkpoint is the **complete model**, not just an adapter. You don't need SimLingo's weights to use it. The weights trained in this stage are stored in fp32 and the frozen ones in bf16:
73
 
74
  | Part | Tensors | In this stage |
75
  |---|---:|---|
@@ -84,12 +84,12 @@ The file is loaded by the PersonaDrive code. It is not a `transformers` or PEFT
84
 
85
  ## How to use
86
 
87
- **Requirements:**
88
  - Linux x86-64 and CARLA 0.9.15.
89
  - An NVIDIA Ampere, Ada or Hopper GPU, for bf16 and flash-attention 2. Blackwell GPUs need a newer PyTorch than the pinned 2.2.2.
90
  - Installation steps are in the [code repository](https://github.com/PervasiveAutonomyLab/PersonaDrive).
91
 
92
- In a clone of the repository, with the `personadrive` environment active:
93
 
94
  ```bash
95
  # the model and its config (~2 GB)
@@ -104,11 +104,11 @@ OUT_DIR=/tmp/personadrive_route00 \
104
  bash scripts/eval/test_one_lb1_route.sh
105
  ```
106
 
107
- - **Style:** set `PERSONADRIVE_ICL_PROFILE` to `fast` (aggressive), `default` (neutral, normal driving), `slow` (conservative) or `normal` (no style; the index built from SimLingo's PDM-lite data). `PERSONADRIVE_NUM_ICL=0` turns retrieval off.
108
- - **Retrieval data:** retrieval needs three things:
109
- - the retrieval head, included in the [code repository](https://github.com/PervasiveAutonomyLab/PersonaDrive);
110
- - the FAISS indices under `persona_drive_rag/`, built as in [Build the retrieval indices](https://github.com/PervasiveAutonomyLab/PersonaDrive#3-build-the-retrieval-indices) (the `normal` index is completed from `retrieval/normal/` in this repository);
111
- - the camera frames those indices point to.
112
 
113
  The repository's [`datasets/README.md`](https://github.com/PervasiveAutonomyLab/PersonaDrive/blob/main/datasets/README.md) lists which archives to get for each style. Retrieved frames whose image is missing are skipped. If none can be loaded, the model runs without retrieval.
114
 
@@ -128,24 +128,24 @@ These are the numbers published in the paper (Bench2Drive, 220 routes, closed lo
128
  | Neutral | 87.55 | 5.52 | 3.51 |
129
  | Aggressive | 88.69 | 6.05 | 3.96 |
130
 
131
- From conservative to aggressive, speed rises by 19.8 % and acceleration by 24.9 %. The project page compares these with SimLingo prompted with the style name, StyleDrive and DMW.
132
 
133
  ## Training
134
 
135
- - **Data:**
136
- - style-instructed driving in all three styles: aggressive, neutral and conservative;
137
  - 2,848 PDM-lite routes from SimLingo's dataset, which keep the basic driving skill.
138
 
139
  Each frame is paired with its K = 2 context points, retrieved from the index of the matching style.
140
- - **Settings:** LoRA on the language model (r 32, α 64, dropout 0.1) with the vision encoder frozen. AdamW at lr 3e-5 (OneCycle, weight decay 0.1); batch 6 per GPU × 4 GPUs with DeepSpeed ZeRO-2 in bf16; 1 epoch.
141
- - **Hardware:** 4× NVIDIA L40S (48 GB), about 12 h.
142
- - **Reproducing the run:** `python simlingo_training/train.py experiment=personadrive_icl_sft` in the [code repository](https://github.com/PervasiveAutonomyLab/PersonaDrive#full-pipeline). The composed config of this run is `personadrive_icl_sft/.hydra/config.yaml`.
143
 
144
  ## Intended use and limitations
145
 
146
  - **Research use in simulation only (CARLA).** The model is not meant to control a real vehicle.
147
- - **Where the styles come from:** 15 participants who drove under aggressive, neutral and conservative instructions on a driver-in-the-loop rig. Styles are paired at route level, so style is separated from driver identity.
148
- - **Speed:** with K = 2 the model takes about 0.56 s per simulator tick (paper, offline), so the agent does not run in real time at CARLA's 20 Hz.
149
 
150
  ## License
151
 
@@ -168,4 +168,4 @@ The human driving data behind PersonaDrive's driving styles was collected by us
168
 
169
  ## Acknowledgements
170
 
171
- This work is supported by the U.S. National Science Foundation under grant 2339266 and partially supported by the UCI ProperAI Institute. PersonaDrive builds directly on SimLingo, CARLA garage, DriveLM / PDM-Lite and Bench2Drive; we thank their authors for releasing their code.
 
37
 
38
  </div>
39
 
40
+ This is the released driving model of PersonaDrive. PersonaDrive conditions a vision-language-action (VLA) driving agent on demonstrations retrieved from people who were asked to drive in a given style, whether aggressive, neutral or conservative. **One set of weights serves every style.** Switching style only changes which database of human demonstrations the retrieval head searches.
41
 
42
  Videos, the method and the full results are on the **[project page](https://pervasiveautonomylab.github.io/personadrive-landpage/)**.
43
 
 
51
  |---|---|
52
  | Initialised from | [RenzKa/simlingo](https://huggingface.co/RenzKa/simlingo) (`epoch=013`) |
53
  | Backbone | [OpenGVLab/InternVL2-1B](https://huggingface.co/OpenGVLab/InternVL2-1B) |
54
+ | Parameters | 1.36 B in total, of which about 24 M are trained in this stage |
55
  | Retrieved context points | K = 2 |
56
  | Simulator / benchmark | CARLA 0.9.15 / Bench2Drive |
57
 
58
+ The retrieval head (Stages 1–2) is a separate model of about 2 M trained parameters. It is in the code repository as [`persona_drive_rag/checkpoints/best_model.pt`](https://github.com/PervasiveAutonomyLab/PersonaDrive/blob/main/persona_drive_rag/checkpoints/best_model.pt).
59
 
60
  ## Files
61
 
62
  | Path | Size | Purpose |
63
  |---|---:|---|
64
+ | `personadrive_icl_sft/checkpoints/epoch=000.ckpt/pytorch_model.pt` | 1.96 GB | **The model.** A single-file PyTorch state dict that loads directly for evaluation. |
65
  | `personadrive_icl_sft/.hydra/config.yaml` | 2 KB | The training config. The agent builds the model from it and finds `.hydra/` by walking up from the checkpoint path. |
66
+ | `retrieval/normal/driving_index.faiss` | 221 MB | Vectors of the `normal` (no-style) retrieval index, covering 54,040 frames of the SimLingo dataset and embedded with the released retrieval head. |
67
+ | `retrieval/normal/frames.json.gz` | 1 MB | The frames those vectors belong to. The SimLingo data itself is not included, and `scripts/retrieval/fill_normal_index.py` in the code repository completes the index from your SimLingo download. |
68
  | `retrieval/normal/driving_index.info.json` | < 1 KB | Index type and size. |
69
 
70
  `pytorch_model.pt` was consolidated from the run's DeepSpeed ZeRO-2 checkpoint (`last.ckpt`). It contains only tensors, so it also loads with `torch.load(..., weights_only=True)`.
71
 
72
+ The checkpoint is the **complete model**, not just an adapter. You don't need SimLingo's weights to use it. The weights trained in this stage are stored in fp32 and the frozen ones in bf16.
73
 
74
  | Part | Tensors | In this stage |
75
  |---|---:|---|
 
84
 
85
  ## How to use
86
 
87
+ **Requirements**
88
  - Linux x86-64 and CARLA 0.9.15.
89
  - An NVIDIA Ampere, Ada or Hopper GPU, for bf16 and flash-attention 2. Blackwell GPUs need a newer PyTorch than the pinned 2.2.2.
90
  - Installation steps are in the [code repository](https://github.com/PervasiveAutonomyLab/PersonaDrive).
91
 
92
+ Run this in a clone of the repository, with the `personadrive` environment active.
93
 
94
  ```bash
95
  # the model and its config (~2 GB)
 
104
  bash scripts/eval/test_one_lb1_route.sh
105
  ```
106
 
107
+ - **Style.** Set `PERSONADRIVE_ICL_PROFILE` to `fast` (aggressive), `default` (neutral, normal driving), `slow` (conservative) or `normal` (no style, the index built from SimLingo's PDM-lite data). `PERSONADRIVE_NUM_ICL=0` turns retrieval off.
108
+ - **Retrieval data.** Retrieval needs three things.
109
+ - The retrieval head, included in the [code repository](https://github.com/PervasiveAutonomyLab/PersonaDrive).
110
+ - The FAISS indices under `persona_drive_rag/`, built as in [Build the retrieval indices](https://github.com/PervasiveAutonomyLab/PersonaDrive#3-build-the-retrieval-indices) (the `normal` index is completed from `retrieval/normal/` in this repository).
111
+ - The camera frames those indices point to.
112
 
113
  The repository's [`datasets/README.md`](https://github.com/PervasiveAutonomyLab/PersonaDrive/blob/main/datasets/README.md) lists which archives to get for each style. Retrieved frames whose image is missing are skipped. If none can be loaded, the model runs without retrieval.
114
 
 
128
  | Neutral | 87.55 | 5.52 | 3.51 |
129
  | Aggressive | 88.69 | 6.05 | 3.96 |
130
 
131
+ From conservative to aggressive, speed rises by 19.8% and acceleration by 24.9%. The project page compares these with SimLingo prompted with the style name, StyleDrive and DMW.
132
 
133
  ## Training
134
 
135
+ - **Data.**
136
+ - Style-instructed driving in all three styles, aggressive, neutral and conservative.
137
  - 2,848 PDM-lite routes from SimLingo's dataset, which keep the basic driving skill.
138
 
139
  Each frame is paired with its K = 2 context points, retrieved from the index of the matching style.
140
+ - **Settings.** LoRA on the language model (r 32, α 64, dropout 0.1) with the vision encoder frozen. AdamW at lr 3e-5 (OneCycle, weight decay 0.1), batch 6 per GPU × 4 GPUs with DeepSpeed ZeRO-2 in bf16, and 1 epoch.
141
+ - **Hardware.** 4× NVIDIA L40S (48 GB), about 12 h.
142
+ - **Reproducing the run.** `python simlingo_training/train.py experiment=personadrive_icl_sft` in the [code repository](https://github.com/PervasiveAutonomyLab/PersonaDrive#full-pipeline). The composed config of this run is `personadrive_icl_sft/.hydra/config.yaml`.
143
 
144
  ## Intended use and limitations
145
 
146
  - **Research use in simulation only (CARLA).** The model is not meant to control a real vehicle.
147
+ - **Where the styles come from.** 15 participants who drove under aggressive, neutral and conservative instructions on a driver-in-the-loop rig. Styles are paired at route level, so style is separated from driver identity.
148
+ - **Speed.** With K = 2 the model takes about 0.56 s per simulator step (paper, offline), so the agent does not run in real time at CARLA's 20 Hz.
149
 
150
  ## License
151
 
 
168
 
169
  ## Acknowledgements
170
 
171
+ This work is supported by the U.S. National Science Foundation under grant 2339266 and partially supported by the UCI ProperAI Institute. PersonaDrive builds directly on SimLingo, CARLA garage, DriveLM / PDM-Lite and Bench2Drive, and we thank their authors for releasing their code.