-
Notifications
You must be signed in to change notification settings - Fork 3
/
train_coco_i2t.sh
58 lines (48 loc) · 2.39 KB
/
train_coco_i2t.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
MODEL_NAME='coco_i2t_base'
GPU_DEVICES='0'
DATASET_NAME='coco'
DATA_PATH='./data/'${DATASET_NAME}
VOCAB_PATH='./data/vocab'
CUDA_VISIBLE_DEVICES=${GPU_DEVICES} python3 train.py \
--data_path ${DATA_PATH} --data_name ${DATASET_NAME} --vocab_path ${VOCAB_PATH}\
--logger_name runs/${MODEL_NAME}/log --model_name runs/${MODEL_NAME} --gpuid ${GPU_DEVICES}\
--num_epochs=25 --lr_update=15 --learning_rate=.0005 --workers 10 \
--log_step 100 --embed_size 1024 --vse_mean_warmup_epochs 5 \
--attn_type i2t --t2i_smooth 10.0 --i2t_smooth 3.0 \
--self_regulator only_rcr --rcar_step 0 --rcr_step 0 --rar_step 0
MODEL_NAME='coco_i2t_rar2'
GPU_DEVICES='0'
DATASET_NAME='coco'
DATA_PATH='./data/'${DATASET_NAME}
VOCAB_PATH='./data/vocab'
CUDA_VISIBLE_DEVICES=${GPU_DEVICES} python3 train.py \
--data_path ${DATA_PATH} --data_name ${DATASET_NAME} --vocab_path ${VOCAB_PATH}\
--logger_name runs/${MODEL_NAME}/log --model_name runs/${MODEL_NAME} --gpuid ${GPU_DEVICES}\
--num_epochs=25 --lr_update=15 --learning_rate=.0005 --workers 10 \
--log_step 100 --embed_size 1024 --vse_mean_warmup_epochs 5 \
--attn_type i2t --t2i_smooth 10.0 --i2t_smooth 3.0 \
--self_regulator only_rar --rcar_step 0 --rcr_step 0 --rar_step 2
MODEL_NAME='coco_i2t_rcr3'
GPU_DEVICES='0,1,2,3'
DATASET_NAME='coco'
DATA_PATH='./data/'${DATASET_NAME}
VOCAB_PATH='./data/vocab'
CUDA_VISIBLE_DEVICES=${GPU_DEVICES} python3 train.py \
--data_path ${DATA_PATH} --data_name ${DATASET_NAME} --vocab_path ${VOCAB_PATH}\
--logger_name runs/${MODEL_NAME}/log --model_name runs/${MODEL_NAME} --gpuid ${GPU_DEVICES}\
--num_epochs=25 --lr_update=15 --learning_rate=.0005 --workers 10 \
--log_step 100 --embed_size 1024 --vse_mean_warmup_epochs 5 \
--attn_type i2t --t2i_smooth 10.0 --i2t_smooth 3.0 \
--self_regulator only_rcr --rcar_step 0 --rcr_step 3 --rar_step 0
MODEL_NAME='coco_i2t_rcar2'
GPU_DEVICES='0,1'
DATASET_NAME='coco'
DATA_PATH='./data/'${DATASET_NAME}
VOCAB_PATH='./data/vocab'
CUDA_VISIBLE_DEVICES=${GPU_DEVICES} python3 train.py \
--data_path ${DATA_PATH} --data_name ${DATASET_NAME} --vocab_path ${VOCAB_PATH}\
--logger_name runs/${MODEL_NAME}/log --model_name runs/${MODEL_NAME} --gpuid ${GPU_DEVICES}\
--num_epochs=25 --lr_update=15 --learning_rate=.0005 --workers 10 \
--log_step 100 --embed_size 1024 --vse_mean_warmup_epochs 5 \
--attn_type i2t --t2i_smooth 10.0 --i2t_smooth 3.0 \
--self_regulator coop_rcar --rcar_step 2 --rcr_step 0 --rar_step 0