forked from hzaskywalker/PlasticineLab
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtemp_execute_script.sh
More file actions
executable file
·33 lines (27 loc) · 1.96 KB
/
temp_execute_script.sh
File metadata and controls
executable file
·33 lines (27 loc) · 1.96 KB
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
if [ ${#CUDA_VISIBLE_DEVICES} -eq 0 ]; then
CUDA_VISIBLE_DEVICES=0
fi
if [ ${#ENV_NAME} -eq 0 ]; then
ENV_NAME="Chopsticks-v1"
fi
ENV_lower=${ENV_NAME,,}
ENV_lower=${ENV_lower%-*}
echo "The env to execute is $ENV_NAME, the IOU and the rewards will be stored as td3_${ENV_lower}_XXX"
mkdir -p ious
mkdir -p rewards
echo "python3 -m plb.algorithms.solve --env_name $ENV_NAME --algo td3 --srl --exp_name td3_${ENV_lower}_normal --model_name=${ENV_lower}_cfm --num_steps 50000 &> out/td3/${ENV_lower}_0.out"
if [ $1 != "--dry-run" ]; then
python3 -m plb.algorithms.solve --env_name $ENV_NAME --algo td3 --srl --exp_name td3_${ENV_lower}_normal --model_name="${ENV_lower}_cfm" --num_steps 50000 &> out/td3/${ENV_lower}_0.out
fi
echo "python3 -m plb.algorithms.solve --env_name $ENV_NAME --algo td3 --srl --exp_name td3_${ENV_lower}_linear --model_name=${ENV_lower}_linear --num_steps 50000 &> out/td3/${ENV_lower}_1.out"
if [ $1 != "--dry-run" ]; then
python3 -m plb.algorithms.solve --env_name $ENV_NAME --algo td3 --srl --exp_name td3_${ENV_lower}_linear --model_name="${ENV_lower}_linear" --num_steps 50000 &> out/td3/${ENV_lower}_1.out
fi
echo "python3 -m plb.algorithms.solve --env_name $ENV_NAME --algo td3 --srl --exp_name td3_${ENV_lower}_simple --model_name=${ENV_lower}_smaller --num_steps 50000 &> out/td3/${ENV_lower}_2.out"
if [ $1 != "--dry-run" ]; then
python3 -m plb.algorithms.solve --env_name $ENV_NAME --algo td3 --srl --exp_name td3_${ENV_lower}_simple --model_name="${ENV_lower}_smaller" --num_steps 50000 &> out/td3/${ENV_lower}_2.out
fi
echo "python3 -m plb.algorithms.solve --env_name $ENV_NAME --algo td3 --srl --exp_name td3_${ENV_lower}_origin_loss --model_name=${ENV_lower}_origin_loss --num_steps 50000 &> out/td3/${ENV_lower}_3.out"
if [ $1 != "--dry-run" ]; then
python3 -m plb.algorithms.solve --env_name $ENV_NAME --algo td3 --srl --exp_name td3_${ENV_lower}_origin_loss --model_name="${ENV_lower}_origin_loss" --num_steps 50000 &> out/td3/${ENV_lower}_3.out
fi