On this page you'll learn to train a policy on your processed data (or on an existing dataset) through Behavior Cloning (BC), with an algorithm like VQ-BeT. If you'd like to learn more about supervised policy learning, this tutorial serves as a nice introduction.
ssh netid@greene.hpc.nyu.edu
Note: You'll need to either be on NYU's network or connected to the NYU VPN to SSH into Greene. Your password is your standard NYU password.
cd $SCRATCH
git clone https://github.com/NYU-robot-learning/min-stretch.git
cd min-stretch
configs/env_vars/env_vars.yaml
file)
./setup.sh
cd $SCRATCH
srun --nodes=1 --tasks-per-node=1 --cpus-per-task=16 --mem=64GB --time=2:00:00 --pty /bin/bash
cp /scratch/work/public/overlay-fs-ext3/overlay-50G-10M.ext3.gz $SCRATCH/overlay-home-robot-env.ext3.gz
gunzip overlay-home-robot-env.ext3.gz
singularity exec --overlay $SCRATCH/overlay-home-robot-env.ext3:rw /scratch/work/public/singularity/cuda11.8.86-cudnn8.7-devel-ubuntu22.04.2.sif /bin/bash
curl -L -O "https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-$(uname)-$(uname -m).sh"
bash Miniforge3-$(uname)-$(uname -m).sh
/ext3/miniforge3
when promptedDo you wish to update your shell profile to automatically initialize conda?
. The default is no
but I would recommend entering yes
so that the mamba initialization script gets added to you ~/.bashrc
.cd min-stretch
mamba env create -f conda_env.yaml
If you'd like to follow along with an existing dataset, and don't have your own already, you can download the existing "Bag Pick Up" dataset here.
cd $SCRATCH/min-stretch
min-stretch/imitation-in-homes/configs/env_vars/env_vars.yaml
to appropriate paths.
data_root.train
: The path to the training dataset.data_root.val
: The path to the test dataset (if you don't have a split, you can just use the training dataset).data_original_root.train
: The original path to the training dataset (in the folder's r3d_files.txt
file). This may be the same as data_root.train
if you haven't moved the data after creating r3d_files.txt
.data_original_root.val
: The original path to the test dataset (in the folder's r3d_files.txt
file). This may be the same as data_root.train
if you haven't moved the data after creating r3d_files.txt
.data_root:
train: /scratch/hre7290/test/min-stretch/Stick_Data
val: /scratch/hre7290/test/min-stretch/Stick_Data_val
data_original_root:
train: /vast/hre7290/Stick_Data
val: /vast/hre7290/Stick_Data_val
wandb.entity
config in min-stretch/imitation-in-homes/configs/env_vars/env_vars.yaml
to your WandB username.
mamba activate home_robot
mamba init
, then exit
Singularity, and then re-enter Singularity.
test_rvq_cpu.sh
. If you're using the "Bag Pick Up" dataset, you can set "include_task" to "bag_pick_up" (it should be the same as the task folder name in the dataset)../test_rvq_cpu.sh
test_vqbet_cpu.sh
. ./test_vqbet_cpu.sh
train_vqbet_model.sh
sbatch train_vqbet.slurm
squeue -u <netid>