-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpretrain.sh
57 lines (53 loc) · 1.4 KB
/
pretrain.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
method='commit'
# R2R
if [ $1 = "R2R" ]; then
echo "Pretrain on R2R."
python src/main.py --log \
--method $method \
--description 'pretrain,R2R,MLM,CLIP' \
--mask_visited \
--use_panorama \
--use_directed \
--OPE_layer_num 2 \
--MAM_layer_num 4 \
--CCM_layer_num 1 \
--text_backbone 'ALBEF' \
--gpu '0' \
--dataset 'R2RPretrain' \
--model 'PRET' \
--agent 'AgentPretrain' \
--trainer 'Pretrain' \
--tasks MLM \
--lr 0.00002 \
--dropout 0.1 \
--batch_size 16 \
--lr_scheduler cosine \
--iteration_num 100000 \
--log_every 1000
fi
# RxR
# Note that text encoder is replaced with the multilingual XLMRoBERTa
if [ $1 = "RxR" ]; then
echo "Pretrain on RxR."
python src/main.py --log \
--method $method \
--description 'pretrain,RxR,MLM,CLIP' \
--mask_visited \
--use_panorama \
--use_directed \
--OPE_layer_num 2 \
--MAM_layer_num 4 \
--CCM_layer_num 1 \
--dataset 'RxRPretrain' \
--model 'PRET' \
--agent 'AgentPretrain' \
--trainer 'Pretrain' \
--tasks MLM \
--gpu '0' \
--lr 0.00002 \
--dropout 0.1 \
--batch_size 16 \
--lr_scheduler cosine \
--iteration_num 100000 \
--log_every 5000
fi