forked from simpler-env/SimplerEnv
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathocto_pick_coke_can_visual_matching.sh
43 lines (28 loc) · 1.47 KB
/
octo_pick_coke_can_visual_matching.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
gpu_id=0
declare -a policy_models=(
"octo-base"
# "octo-small"
# "octo-server"
)
# lr_switch=laying horizontally but flipped left-right to match real eval; upright=standing; laid_vertically=laying vertically
declare -a coke_can_options_arr=("lr_switch=True" "upright=True" "laid_vertically=True")
# URDF variations
declare -a urdf_version_arr=(None "recolor_tabletop_visual_matching_1" "recolor_tabletop_visual_matching_2" "recolor_cabinet_visual_matching_1")
env_name=GraspSingleOpenedCokeCanInScene-v0
scene_name=google_pick_coke_can_1_v4
rgb_overlay_path=./ManiSkill2_real2sim/data/real_inpainting/google_coke_can_real_eval_1.png
for policy_model in "${policy_models[@]}"; do echo "$policy_model"; done
for urdf_version in "${urdf_version_arr[@]}";
do for policy_model in "${policy_models[@]}";
do for coke_can_option in "${coke_can_options_arr[@]}";
do CUDA_VISIBLE_DEVICES=${gpu_id} python simpler_env/main_inference.py --policy-model ${policy_model} --ckpt-path None \
--robot google_robot_static --policy-setup google_robot \
--control-freq 3 --sim-freq 501 --max-episode-steps 80 \
--env-name ${env_name} --scene-name ${scene_name} \
--rgb-overlay-path ${rgb_overlay_path} \
--robot-init-x 0.35 0.35 1 --robot-init-y 0.20 0.20 1 --obj-init-x -0.35 -0.12 5 --obj-init-y -0.02 0.42 5 \
--robot-init-rot-quat-center 0 0 0 1 --robot-init-rot-rpy-range 0 0 1 0 0 1 0 0 1 \
--additional-env-build-kwargs ${coke_can_option} urdf_version=${urdf_version};
done
done
done