Vidhi Jain, Yixin Lin, Eric Undersander, Yonatan Bisk and Akshara Rai, Transformers are Adaptable Task Planners, 6th Conference on Robot Learning (CoRL 2022).
conda env create -f environment.yml
- using https://direnv.net/ ...
direnv allow
- or manually activate
conda activate temporal_task_planner
3. Install PyTorch according to your system requirements.
For example: MacOS installation, cpu only
# MacOS Conda binaries are for x86_64 only, for M1 please use wheels
conda install pytorch -c pytorch
git submodule update --init --recursive
If you are installing habitat-sim for the first time, you might need some additional libraries. Follow instructions from habitat_sim: BUILD_FROM_SOURCE.
cd third_party/habitat-sim
./build.sh --bullet --with-cuda --headless # this might take a while...
cd -
pip install -e .
pip install hydra-submitit-launcher --upgrade
export PYTHONPATH=:$PWD/third_party/habitat-sim
echo $PYTHONPATH
export CUBLAS_WORKSPACE_CONFIG=:4096:8
--
Download from scratch and unzip it:
Session jsons can be downloaded from wandb. Request access by emailing vidhij@andrew.cmu.edu
.
python scripts/data_download.py
This creates artifacts/
folder containing
full-view-single-pref:latest
and partial-view-single-pref:latest
datasets, where each contains train, val and test jsons.
All the files in scripts/
folder can be run as
python scripts/<filename>.py
Scripts 1-3 are dependent on hydra yaml config files.
python scripts/data_download.py
This downloads the latest single preference data for full and partial visibility scenarios.
python scripts/rollout_batch.py
You need to provide config parameters like dirpath, session_id_start, session_id_end
.
python scripts/view_batch.py
You need to provide config parameters like dirpath, session_id_start, session_id_end
.
python scripts/learner.py
You need to provide config parameters like pick_only, context_history, data_name, data_version