forked from LiJiaBei-7/nrccr
-
Notifications
You must be signed in to change notification settings - Fork 2
/
do_all_vatex.sh
45 lines (41 loc) · 2.07 KB
/
do_all_vatex.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
rootpath=$1
overwrite=0
collection=vatex
visual_feature=i3d_kinetics
learning_rate=1e-4
text_hidden_size=768
video_hidden_size=1024
text_num_attention=8
video_num_attention=8
video_pooling=mean
text_pooling=mean
video_layer=1
text_layer=1
frozen=frozen
data_type=google_enc2zh
glr=1e-3
scale=0.001
disc_type=strong
momentum=0.8
optim=adam
tri_alpha=0.6
dtl_beta=0.4
l1_gama=0.1
back_w=0.5
model_type=video
layer_list=layer.11-layer.10-layer.9-layer.8-layer.7-layer.6-layer.5
framework=Full_vatex_$frozen/data_type_$data_type/tri_alpha_$tri_alpha/dtl_beta_$dtl_beta/l1_gama_$l1_gama/back_w_$back_w/video_layer_$video_layer/text_layer_$text_layer/text_num_attention_$text_num_attention/text_hidden_size_$text_hidden_size/vido_pooling_$video_pooling/text_pooling_$text_pooling\
/layer_list_$layer_list/glr_$glr/scale_$scale/disc_type_$disc_type/momentum_$momentum/optim_$optim/model_type_$model_type
#framework=test
# training
gpu=$2
CUDA_VISIBLE_DEVICES=$gpu python trainer_vid.py --rootpath $rootpath --overwrite $overwrite --max_violation --text_norm --visual_norm \
--collection $collection --visual_feature $visual_feature\
--framework $framework --learning_rate $learning_rate --frozen $frozen\
--text_hidden_size $text_hidden_size --text_num_attention $text_num_attention\
--video_hidden_size $video_hidden_size --video_num_attention $video_num_attention\
--video_pooling $video_pooling --text_pooling $text_pooling --video_layer $video_layer\
--text_layer $text_layer --layer_list $layer_list --data_type $data_type\
--glr $glr --scale $scale --disc_type $disc_type --momentum $momentum \
--optim $optim --tri_alpha $tri_alpha --dtl_beta $dtl_beta --l1_gama $l1_gama\
--back_w $back_w --model_type $model_type