-
Notifications
You must be signed in to change notification settings - Fork 15
/
test_procgen.sh
executable file
·92 lines (76 loc) · 3.6 KB
/
test_procgen.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
export PYTHONWARNINGS="ignore"
echo "Testing cleanrl_procgen with DR"
if ! python -m syllabus.examples.training_scripts.cleanrl_procgen --curriculum --curriculum-method="dr" --total-timesteps=32768 >/dev/null 2>&1; then
echo -e "\033[31mFailed\033[0m"
else
echo -e "\033[32mPassed\033[0m"
fi
echo "Testing cleanrl_procgen with Async PLR"
if ! python -m syllabus.examples.training_scripts.cleanrl_procgen --curriculum --curriculum-method="plr" --total-timesteps=32768 >/dev/null 2>&1; then
echo -e "\033[31mFailed\033[0m"
else
echo -e "\033[32mPassed\033[0m"
fi
echo "Testing cleanrl_procgen with Centralized PLR"
if ! python -m syllabus.examples.training_scripts.cleanrl_procgen --curriculum --curriculum-method="centralplr" --total-timesteps=32768 >/dev/null 2>&1; then
echo -e "\033[31mFailed\033[0m"
else
echo -e "\033[32mPassed\033[0m"
fi
echo "Testing cleanrl_procgen with Simple PLR"
if ! python -m syllabus.examples.training_scripts.cleanrl_procgen --curriculum --curriculum-method="simpleplr" --total-timesteps=32768 >/dev/null 2>&1; then
echo -e "\033[31mFailed\033[0m"
else
echo -e "\033[32mPassed\033[0m"
fi
echo -e "Finished testing cleanrl_procgen\n"
echo "Testing cleanrl_procgen_lstm with DR"
if ! python -m syllabus.examples.training_scripts.cleanrl_procgen_lstm --curriculum --curriculum-method="dr" --total-timesteps=32768 >/dev/null 2>&1; then
echo -e "\033[31mFailed\033[0m"
else
echo -e "\033[32mPassed\033[0m"
fi
echo "Testing cleanrl_procgen_lstm with Async PLR"
if ! python -m syllabus.examples.training_scripts.cleanrl_procgen_lstm --curriculum --curriculum-method="plr" --total-timesteps=32768 >/dev/null 2>&1; then
echo -e "\033[31mFailed\033[0m"
else
echo -e "\033[32mPassed\033[0m"
fi
echo "Testing cleanrl_procgen_lstm with Centralized PLR"
if ! python -m syllabus.examples.training_scripts.cleanrl_procgen_lstm --curriculum --curriculum-method="centralplr" --total-timesteps=32768 >/dev/null 2>&1; then
echo -e "\033[31mFailed\033[0m"
else
echo -e "\033[32mPassed\033[0m"
fi
echo "Testing cleanrl_procgen_lstm with Simple PLR"
if ! python -m syllabus.examples.training_scripts.cleanrl_procgen_lstm --curriculum --curriculum-method="simpleplr" --total-timesteps=32768 >/dev/null 2>&1; then
echo -e "\033[31mFailed\033[0m"
else
echo -e "\033[32mPassed\033[0m"
fi
echo -e "Finished testing cleanrl_procgen_lstm\n"
echo "Testing cleanrl_procgen_ppg with DR"
if ! python -m syllabus.examples.training_scripts.cleanrl_procgen_ppg --curriculum --curriculum-method="dr" --total-timesteps=32768 --n-iteration=1 >/dev/null 2>&1; then
echo -e "\033[31mFailed\033[0m"
else
echo -e "\033[32mPassed\033[0m"
fi
echo "Testing cleanrl_procgen_ppg with Async PLR"
if ! python -m syllabus.examples.training_scripts.cleanrl_procgen_ppg --curriculum --curriculum-method="plr" --total-timesteps=32768 --n-iteration=1 >/dev/null 2>&1; then
echo -e "\033[31mFailed\033[0m"
else
echo -e "\033[32mPassed\033[0m"
fi
echo "Testing cleanrl_procgen_ppg with Centralized PLR"
if ! python -m syllabus.examples.training_scripts.cleanrl_procgen_ppg --curriculum --curriculum-method="centralplr" --total-timesteps=32768 --n-iteration=1 >/dev/null 2>&1; then
echo -e "\033[31mFailed\033[0m"
else
echo -e "\033[32mPassed\033[0m"
fi
echo "Testing cleanrl_procgen_ppg with Simple PLR"
if ! python -m syllabus.examples.training_scripts.cleanrl_procgen_ppg --curriculum --curriculum-method="simpleplr" --total-timesteps=32768 --n-iteration=1 >/dev/null 2>&1; then
echo -e "\033[31mFailed\033[0m"
else
echo -e "\033[32mPassed\033[0m"
fi
echo -e "Finished testing cleanrl_procgen_ppg"