NTURobotLearningLab / DBC

Diffusion Model-Augmented Behavioral Cloning
9 stars 1 forks source link

Diffusion Model-Augmented Behavioral Cloning

Shang-Fu Chen*, Hsiang-Chun Wang*, Ming-Hao Hsu, Chun-Mao Lai, Shao-Hua Sun at NTU RLL lab

[Project website] [Paper]

This is the official PyTorch implementation of the paper "Diffusion Model-Augmented Behavioral Cloning" (ICML2024).

image

Installation

  1. This code base requires Python 3.7.2 or higher. All package requirements are in requirements.txt. To install from scratch using Anaconda, use the following commands.
conda create -n [your_env_name] python=3.7.2
conda activate [your_env_name]
pip install -r requirements.txt

cd d4rl
pip install -e .
cd ../rl-toolkit
pip install -e .

cd ..
mkdir -p data/trained_models
  1. Setup Weights and Biases by first logging in with wandb login <YOUR_API_KEY> and then editing config.yaml with your W&B username and project name.

How to reproduce experiments

We specify how to train diffusion models and the location of configuration files as following:

Maze2D

Fetch Pick

Hand Rotate

Half Cheetah

Walker

Ant Goal

Code Structure

Acknowledgement

Citation

@inproceedings{
    chen2024diffusion,
    title={Diffusion Model-Augmented Behavioral Cloning},
    author={Shang-Fu Chen and Hsiang-Chun Wang and Ming-Hao Hsu and Chun-Mao Lai and Shao-Hua Sun},
    booktitle={Forty-first International Conference on Machine Learning},
    year={2024},
    url={https://openreview.net/forum?id=OnidGtOhg3}
}