git clone https://github.com/brown-palm/tadpole.git
cd tadpole
conda create -n tadpole python=3.9
conda activate tadpole
pip install -r requirement.txt-
Replace the following files in
<conda path>/envs/tadpole/lib/python3.9/site-packages/dm_control/suite/with corresponding ones incustom_envs/:Source File in dm_control/suite/Customized File in custom_envs/dog.pydog/dog.pydog.xmldog/dog.xmlhumanoid.pyhumanoid/humanoid.pyhumanoid.xmlhumanoid/humanoid.xml -
We provide background image files
skybox.pngandgrass.pngincustom_envs/common_assets/. Indog.xmlandhumanoid.xml, input the correct path for background images at lines below:<texture type="skybox" file="[path to skybox.png]" gridsize="3 4" gridlayout=".U..LFRB.D.." width="8192" height="8192"/><texture name="grass" file="[path to grass.png]" type="2d"/>
To enable wandb logging for experiments, fill in the
wandb_entityincfgs/default.yamland adduse_wandb=Trueto the commands below.
Humanoid Stand:
python src/train_dmc.py \
task="humanoid-stand" \
text_prompt="a person standing" \
seed=0 \
noise_level_base=400 Dog Stand:
python src/train_dmc.py \
task="dog-stand" \
text_prompt="a dog standing" \
seed=0 \
noise_level_base=400 Humanoid Novel Goal Achievement:
python src/train_dmc.py \
task="humanoid-stand" \
text_prompt="a person doing splits" \
seed=0 \
noise_level_base=400 MetaWorld task examples: "metaworld-door-close", "metaworld-window-open", "metaworld-coffee-push", etc.
python src/train_mw.py \
task="metaworld-door-close" \
text_prompt="closing a door" \
seed=0 \
noise_level_base=500 Humanoid Walk:
python src/train_dmc.py \
task="humanoid-walk" \
text_prompt="a person walking" \
seed=0 \
tadpole_type="video-tadpole" \
noise_level_base=500 Dog Walk:
python src/train_dmc.py \
task="dog-walk" \
text_prompt="a dog walking" \
seed=0 \
tadpole_type="video-tadpole" \
noise_level_base=500 If you find this repository helpful, please consider citing our work:
@inproceedings{luo2024text,
author={Luo, Calvin and He, Mandy and Zeng, Zilai and Sun, Chen},
booktitle={Advances in Neural Information Processing Systems},
title={Text-Aware Diffusion for Policy Learning},
volume={37},
year={2024}
}This repo contains code adapted from tdmpc. We thank the authors and contributors for open-sourcing their code.