forked from nickgkan/3d_diffuser_actor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test_trajectory_calvin.sh
51 lines (47 loc) · 1.61 KB
/
test_trajectory_calvin.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
main_dir=Planner_Calvin
dataset=./data/calvin/packaged_ABC_D/training
valset=./data/calvin/packaged_ABC_D/validation
lr=3e-4
wd=5e-3
dense_interpolation=1
interpolation_length=20
num_history=3
diffusion_timesteps=25
B=30
C=192
ngpus=6
backbone=clip
image_size="256,256"
relative_action=1
fps_subsampling_factor=3
lang_enhanced=1
gripper_loc_bounds=tasks/calvin_rel_traj_location_bounds_task_ABC_D.json
gripper_buffer=0.01
val_freq=5000
quaternion_format=wxyz # IMPORTANT: change this to be the same as the training script IF you're not using our checkpoint
export PYTHONPATH=`pwd`:$PYTHONPATH
torchrun --nproc_per_node $ngpus --master_port $RANDOM \
online_evaluation_calvin/evaluate_policy.py \
--calvin_dataset_path calvin/dataset/task_ABC_D \
--calvin_model_path calvin/calvin_models \
--text_encoder clip \
--text_max_length 16 \
--tasks A B C D\
--backbone $backbone \
--gripper_loc_bounds $gripper_loc_bounds \
--gripper_loc_bounds_buffer $gripper_buffer \
--calvin_gripper_loc_bounds calvin/dataset/task_ABC_D/validation/statistics.yaml \
--embedding_dim $C \
--action_dim 7 \
--use_instruction 1 \
--rotation_parametrization 6D \
--diffusion_timesteps $diffusion_timesteps \
--interpolation_length $interpolation_length \
--num_history $num_history \
--relative_action $relative_action \
--fps_subsampling_factor $fps_subsampling_factor \
--lang_enhanced $lang_enhanced \
--save_video 0 \
--base_log_dir train_logs/${main_dir}/pretrained/eval_logs/ \
--quaternion_format $quaternion_format \
--checkpoint train_logs/diffuser_actor_calvin.pth