forked from ryanxhr/IVR
-
Notifications
You must be signed in to change notification settings - Fork 0
/
run_antmaze.sh
75 lines (59 loc) · 1.47 KB
/
run_antmaze.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
#!/bin/bash
# Script to reproduce results
GPU_LIST=(0 1 2 3)
env_list=(
"antmaze-umaze-v2"
# "antmaze-umaze-diverse-v2"
"antmaze-medium-play-v2"
"antmaze-medium-diverse-v2"
"antmaze-large-play-v2"
"antmaze-large-diverse-v2"
)
for seed in 77; do
for env in ${env_list[*]}; do
GPU_DEVICE=${GPU_LIST[task%${#GPU_LIST[@]}]}
CUDA_VISIBLE_DEVICES=$GPU_DEVICE python train_offline.py \
--env_name $env \
--config=configs/antmaze_config.py \
--alg "SQL" \
--alpha 0.1 \
--eval_interval 100000 \
--eval_episodes 100 \
--seed $seed &
sleep 2
let "task=$task+1"
GPU_DEVICE=${GPU_LIST[task%${#GPU_LIST[@]}]}
CUDA_VISIBLE_DEVICES=$GPU_DEVICE python train_offline.py \
--env_name $env \
--config=configs/antmaze_config.py \
--alg "EQL" \
--alpha 0.5 \
--eval_interval 100000 \
--eval_episodes 100 \
--seed $seed &
sleep 2
let "task=$task+1"
done
GPU_DEVICE=${GPU_LIST[task%${#GPU_LIST[@]}]}
CUDA_VISIBLE_DEVICES=$GPU_DEVICE python train_offline.py \
--env_name "antmaze-umaze-diverse-v2" \
--config=configs/antmaze_config.py \
--alg "SQL" \
--alpha 3.0 \
--eval_interval 100000 \
--eval_episodes 100 \
--seed $seed &
sleep 2
let "task=$task+1"
GPU_DEVICE=${GPU_LIST[task%${#GPU_LIST[@]}]}
CUDA_VISIBLE_DEVICES=$GPU_DEVICE python train_offline.py \
--env_name "antmaze-umaze-diverse-v2" \
--config=configs/antmaze_config.py \
--alg "EQL" \
--alpha 5.0 \
--eval_interval 100000 \
--eval_episodes 100 \
--seed $seed &
sleep 2
let "task=$task+1"
done