-
Notifications
You must be signed in to change notification settings - Fork 1
/
run_maniskill2_visual_changes.sh
75 lines (57 loc) · 2.23 KB
/
run_maniskill2_visual_changes.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
52
53
54
55
56
57
58
59
60
61
62
ckpt_path=$1
model=$2
seed=$3
echo "Starting validation with model: ${model} and checkpoint path: ${ckpt_path}"
echo "Seed: ${seed}"
# 1) lighting intensity evaluation
light_intensities=("0.03" "0.05" "0.15" "0.6" "1.8" "3")
for light in "${light_intensities[@]}"
do
echo "Running validation for light intensity: ${light}"
python src/validate.py exp_maniskill2_act_policy=base \
exp_maniskill2_act_policy/maniskill2_model@maniskill2_task=StackCube-v0 \
exp_maniskill2_act_policy/maniskill2_model@maniskill2_model=${model} \
ckpt_path=${ckpt_path} \
model.env_id=StackCube-light-${light} \
task_name=${model}-light-${light} \
seed=${seed}
done
# 2) noise level evaluation
noise_levels=("2" "16" "32" "64")
for noise in "${noise_levels[@]}"
do
echo "Running validation for noise level: ${noise}"
python src/validate.py exp_maniskill2_act_policy=base \
exp_maniskill2_act_policy/maniskill2_model@maniskill2_task=StackCube-v0 \
exp_maniskill2_act_policy/maniskill2_model@maniskill2_model=${model} \
ckpt_path=${ckpt_path} \
model.env_id=StackCube-v0 \
model.shader_dir="rt" \
model.rt_samples_per_pixel=${noise} model.rt_use_denoiser=false \
task_name=${model}-noise-${noise} \
seed=${seed}
done
# background color evaluation
colors=("0.2" "0.6" "1.0")
for red_color in "${colors[@]}"
do
echo "Running validation for red background with R value: ${red_color}"
python src/validate.py exp_maniskill2_act_policy=base \
exp_maniskill2_act_policy/maniskill2_model@maniskill2_task=StackCube-v0 \
exp_maniskill2_act_policy/maniskill2_model@maniskill2_model=${model} \
ckpt_path=${ckpt_path} \
model.env_id=StackCube-background-red-${red_color} \
task_name=${model}-red_color-${red_color} \
seed=${seed}
done
for green_color in "${colors[@]}"
do
echo "Running validation for green background with G value: ${green_color}"
python src/validate.py exp_maniskill2_act_policy=base \
exp_maniskill2_act_policy/maniskill2_model@maniskill2_task=StackCube-v0 \
exp_maniskill2_act_policy/maniskill2_model@maniskill2_model=${model} \
ckpt_path=${ckpt_path} \
model.env_id=StackCube-background-green-${green_color} \
task_name=${model}-green_color-${green_color} \
seed=${seed}
done