Learning to Drive Anywhere with Model-Based Reannotation
November 10, 2025 ยท View on GitHub
Noriaki Hirose1, 2, Lydia Ignatova1, Kyle Stachowicz1, Catherine Glossop1, Sergey Levine1, Dhruv Shah1, 3
1 UC Berkeley (Berkeley AI Research), 2 Toyota Motor North America, 3 Princeton University
We present Model-Based ReAnnotation (MBRA), a framework that utilizes a learned short-horizon, model-based expert model to relabel or generate high-quality actions for passively collected data sources, including large volumes of crowd-sourced teleoperation data and unlabeled YouTube videos. This relabeled data is then distilled into LogoNav, a long-horizon navigation policy conditioned on visual goals or GPS waypoints. LogoNav, trained using MBRA-processed data, achieves state-of-the-art performance, enabling robust navigation over distances exceeding 300 meters in previously unseen indoor and outdoor environments.

Installation
Please down load our code and install some tools for making a conda environment to run our code. We recommend to run our code in the conda environment, although we do not mention the conda environments later.
-
Download the repository on your PC:
git clone https://github.com/NHirose/Learning-to-Drive-Anywhere-with-MBRA.git -
Set up the conda environment:
cd Learning-to-Drive-Anywhere-with-MBRA conda env create -f train/environment_mbra.yml -
Source the conda environment:
conda activate mbra -
Install the MBRA packages:
pip install -e train/ -
Install the
lerobotpackage from this repo:git clone https://github.com/huggingface/lerobot.git cd lerobot git checkout 97b1feb0b3c5f28c148dde8a9baf0a175be29d05 pip install -e . -
(Optional) Install the diffusion_policy package from this repo:
git clone git@github.com:real-stanford/diffusion_policy.git pip install -e diffusion_policy/ -
Download the model weights from this link
-
Unzip the downloaded weights and place the folder in (your-directory)/Learning-to-Drive-Anywhere-with-MBRA/deployment
-
Download the sampler file from this link
-
Unzip the sampler file and place the folder in (your-directory)/Learning-to-Drive-Anywhere-with-MBRA/train/vint_train/data
Dataset
-
Prepare GNM dataset mixture. Please check here
-
Prepare Frodobots-2k dataset. You can download the Frodobots-2k dataset from here
-
Download the repository to convert the dataset:
cd .. git clone https://github.com/catglossop/frodo_dataset.git -
Change the format of Frodobots-2k dataset. Note that you need to specify the dataset directory and the directory to export the proccessed dataset in "convert_to_hf.py".
cd frodo_dataset python convert_to_hf.py
Training
-
Change the directory
cd ../Learning-to-Drive-Anywhere-with-MBRA/train/ -
Edit the yaml files in (your-directory)/Learning-to-Drive-Anywhere-with-MBRA/train/config to make a path for all datasets and checkpoints.
-
Train the MBRA model to reannotate the dataset,
python train.py -c ./config/MBRA.yaml -
Train the LogoNav policy with MBRA model
python train.py -c ./config/LogoNav.yaml
Inference (ROS)
- ROS system. Please setup ROS in your PC and run the following. Our node subscribes the image topic "/usb_cam/image_raw" and calculate our policy as a callback function. The goal pose at line 243 and 244 and the current robot pose at line 104, 105 and 106 in LogoNav_ros.py have to be decided by yourself.
cd ../deployment/ python LogoNav_ros.py
Inference (FrodoBots system)
- Dowload the FrodoBots SDK and setup following their website.
cd .. git clone https://github.com/frodobots-org/earth-rovers-sdk.git - Move our code
mv ./deployment/LogoNav_frodobot.py ./deployment/earth-rovers-sdk/utils/ mv ./deployment/utils_logonav.py ./deployment/earth-rovers-sdk/utils/ - Run our code. Before running our policy, you need to setup the Frodobots (ERZ) according to their website. You can setup the goal pose at line 219 and 220. Note that we use our own GPS instead of the mounted GPS on Frodobot to conduct more reliable evaluation with accurate localization.
cd ./deployment/utils/ python LogoNav_frodobot.py"
Citing
@misc{hirose2025mbra,
title={Learning to Drive Anywhere with Model-Based Reannotation},
author={Noriaki Hirose and Lydia Ignatova and Kyle Stachowicz and Catherine Glossop and Sergey Levine and Dhruv Shah},
year={2025},
eprint={2505.05592},
archivePrefix={arXiv},
primaryClass={cs.RO},
url={https://arxiv.org/abs/2505.05592},
}