Skip to content

avillaflor/SPLT-transformer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SPLT-transformer

Public implementation of SPLT Transformer and code needed to run evaluations in our Toy Car environment, our Modified NoCrash environment, and D4RL.

Installation

All python dependencies are in environment.yml. Install with:

conda env create -f environment.yml
conda activate splt_transformer

Installing CARLA

Install CARLA v0.9.11 (https://carla.org/2020/12/22/release-0.9.11/) for which the binaries are available here: (https://carla-releases.s3.eu-west-3.amazonaws.com/Linux/CARLA_0.9.11.tar.gz)

mkdir $HOME/carla911
cd $HOME/carla911
wget "https://carla-releases.s3.eu-west-3.amazonaws.com/Linux/CARLA_0.9.11.tar.gz"
tar xvzf CARLA_0.9.11.tar.gz

Add the following to your .bashrc:

export CARLA_9_11_PATH=$HOME/carla911
export CARLA_9_11_PYTHONPATH=$CARLA_9_11_PATH/PythonAPI/carla/dist/carla-0.9.11-py3.7-linux-x86_64.egg

Installing Mujoco

In order to run the D4RL experiments, you will need to install mujoco. Please refer to mujoco_py for details.

Usage

Toy Car Problem (Ours)

python scripts/splt/bt/toycar_train.py --device cuda:0 --exp_name name
python scripts/splt/bt/toycar_plan.py --device cuda:0 --gpt_loadpath name

Modified NoCrash

python scripts/splt/bt/nocrash_train.py --device cuda:0 --exp_name name
python scripts/splt/bt/nocrash_plan.py --device cuda:0 --gpt_loadpath name

D4RL

python scripts/splt/bt/d4rl_train.py --dataset halfcheetah-medium-expert-v2 \
	--device cuda:0 --exp_name name
python scripts/splt/bt/d4rl_plan.py --dataset halfcheetah-medium-expert-v2 \
	--device cuda:0 --gpt_loadpath name

Acknowledgements

Heavily based off of Trajectory Transformer TT repo.

IQL implementation based off of rlkit repo.

DT implementation based off of Decision Transformer DT repo.

Testing environments are based on the CARLA NoCrash benchmark and D4RL.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages