We recommend using Miniconda to manage dependencies.
# Clone the repository
git clone https://github.com/CMU-IntentLab/UNISafe.git
cd git clone https://github.com/CMU-IntentLab/UNISafe.git
# Create and activate conda environment
conda env create -f environment.yaml
conda activate dubins_latent_safetyGenerate synthetic expert and random trajectory data for training the world model.
bash scripts/generate_dataset.shThis script internally runs:
python scripts/generate_data_traj_failure_expert.py \
--num_pts {num_expert_traj} \
--num_random {num_random_traj} \
--save_path {save_path}Modify scripts/generate_dataset.sh to configure dataset parameters as needed.
Train the latent dynamics world model using the generated dataset.
bash scripts/train_wm.shModel checkpoints and logs will be saved in the specified logging directory.
Run RL for latent-space reachability:
bash scripts/train_reachability.shThis implementation builds on the following open-source projects:
If you build upon this work, please consider citing our research.
📄 Citation
@article{seo2025uncertainty,
title={Uncertainty-aware Latent Safety Filters for Avoiding Out-of-Distribution Failures},
author={Seo, Junwon and Nakamura, Kensuke and Bajcsy, Andrea},
journal={arXiv preprint arXiv:2505.00779},
year={2025}
}