| |
| |
|
|
| |
| method=${1} |
|
|
| |
| seed="0" |
|
|
| train_gpu=${2:-"0,1"} |
| train_gpu_list=(${train_gpu//,/ }) |
|
|
| |
| port=${3:-"12345"} |
| |
| use_wandb=True |
|
|
| |
| train_demo_path="path/to/your/dataset" |
|
|
| |
| addition_info="$(date +%Y%m%d)" |
| exp_name=${4:-"${method}_${addition_info}"} |
| logdir="path/to/your/logdir" |
|
|
| |
| echo "I am going to kill the session ${exp_name}, are you sure? (5s)" |
| sleep 1s |
| tmux kill-session -t ${exp_name} |
| sleep 3s |
| echo "start new tmux session: ${exp_name}, running main.py" |
| tmux new-session -d -s ${exp_name} |
|
|
| |
| |
| |
| batch_size=2 |
| anybimanual=True |
| augmentation_type="ab" |
| tasks=[bimanual_pick_laptop,bimanual_pick_plate,bimanual_straighten_rope,coordinated_lift_ball,coordinated_lift_tray,coordinated_push_box,coordinated_put_bottle_in_fridge,dual_push_buttons,handover_item,bimanual_sweep_to_dustpan,coordinated_take_tray_out_of_oven,handover_item_easy] |
| demo=100 |
| episode_length=25 |
| save_freq=10000 |
| log_freq=1000 |
| task_folder="multi" |
| replay_path="path/to/your/replay data" |
| training_iterations=100001 |
| wandb_project="AnyBimanual" |
|
|
| tmux select-pane -t 0 |
| tmux send-keys "conda activate per2; |
| CUDA_VISIBLE_DEVICES=${train_gpu} python train.py method=$method \ |
| rlbench.task_name=${exp_name} \ |
| framework.logdir=${logdir} \ |
| rlbench.demo_path=${train_demo_path} \ |
| framework.start_seed=${seed} \ |
| framework.use_wandb=${use_wandb} \ |
| framework.wandb_group=${exp_name} \ |
| framework.wandb_name=${exp_name} \ |
| ddp.num_devices=${#train_gpu_list[@]} \ |
| replay.batch_size=${batch_size} \ |
| ddp.master_port=${port} \ |
| rlbench.tasks=${tasks} \ |
| rlbench.demos=${demo} \ |
| rlbench.episode_length=${episode_length} \ |
| framework.save_freq=${save_freq} \ |
| framework.wandb_project=${wandb_project} \ |
| replay.path=${replay_path} \ |
| replay.task_folder=${task_folder} \ |
| framework.log_freq=${log_freq} \ |
| framework.training_iterations=${training_iterations} \ |
| framework.frozen=${frozen} \ |
| framework.anybimanual=${anybimanual} \ |
| framework.augmentation_type=${augmentation_type} |
| " |
| |
| |
|
|
| tmux -2 attach-session -t ${exp_name} |