Skip to content

BeyondStepsRL/Adaptive-Diffusion-Terrain

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Adaptive Diffusion Terrain Generation

[RSS 25 ROAR] ADEPT: Adaptive Diffusion Environment for Policy Transfer Sim-to-Real

[paper] [arXiv]

[CoRL 24] Adaptive Diffusion Terrain Generation for Autonomous Uneven Terrain Navigation

[paper] [arXiv]

Youwei Yu*, Junhong Xu*, Lantao Liu

[project page]

TODO

  • Add consistency diffusion-based 3D wild environment generation
  • Add standalone code of environment generation for Isaac Gym, Isaac Lab, Mujoco Playground, and Gazebo

Environment Setup

git clone https://github.com/youwyu/Adaptive-Diffusion-Terrain.git
  1. Isaac Gym, DDPM, Python3.8-dev (Make sure you have mini/ana-conda installed)
. install.sh  ## Make sure using . rather than bash or sh install.sh
  1. Semi-Global Matching on GPU

Make sure the CMake version is at least 3.18, otherwise install by Kitware at https://apt.kitware.com or build from source

wget https://github.com/Kitware/CMake/releases/download/v3.31.0/cmake-3.31.0.tar.gz
tar -xvf cmake-3.31.0.tar.gz
cd cmake-3.31.0
./configure
make
sudo make install

Change the CUDA path in contexts/simsense/setup.py Line#35

pip install contexts/simsense

Teacher & Student Policy

If you wanna use wandb, change Line#119, #120 in auto_train

python3 auto_train.py

Notes:

  • Terrain context will auto-save as json file.
  • Teacher: specify the file to load the checkpoint, o.w. it will train from 0.
  • Student: it will auto-find the json, or the user will specify json path. o.w. the program returns 1.
  • We use a single RTX 4090 with 24GB RAM. For smaller RAM, we suggest lower num_agents_per_terrain and num_agents_per_terrain_distill in cfg/base_config. The number can be estimated roughly as YOUR_RAM * 4.
  • If you don't want privileged knowledge and save training time and RAM, set all use_globalmap to False.

Miscell

Please consider cite our work if it helps your sim-to-real training.

@inproceedings{
yu2025adept,
   title={\href{https://openreview.net/forum?id=tdgQT1SynU}{{ADEPT}: Adaptive Diffusion Environment for Policy Transfer Sim-to-Real}},
   author={Youwei Yu and Junhong Xu and Lantao Liu},
   booktitle={RSS 2025 Workshop on Resilient Off-road Autonomous Robotics},
   year={2025}
}

@inproceedings{
   yu2024adaptive,
   title={\href{https://openreview.net/forum?id=xYleTh2QhS}{Adaptive Diffusion Terrain Generator for Autonomous Uneven Terrain Navigation}},
   author={Youwei Yu and Junhong Xu and Lantao Liu},
   booktitle={8th Annual Conference on Robot Learning},
   year={2024}
}

Releases

No releases published

Packages

No packages published

Languages

  • Python 86.7%
  • Cuda 10.7%
  • C++ 2.1%
  • Other 0.5%