-
Notifications
You must be signed in to change notification settings - Fork 16
/
config.py
54 lines (52 loc) · 1.63 KB
/
config.py
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
from jobman import DD
import common
exp_path = common.get_rab_exp_path()
config = DD({
'model': 'attention',
'random_seed': 1234,
# ERASE everything under save_model_path
'erase_history': True,
'attention': DD({
'reload_': False,
'save_model_dir': exp_path + 'test_non/',
'from_dir': '/home/tuyunbin/Video-Description-with-Spatial-Tempral-Attention/pre-trained_model/',
'dataset': 'youtube2text',
'video_feature': 'googlenet',
'dim_word':512, # 474
'ctxglm_dim':-1,# auto set
'ctxg_dim':-1,
'ctxl_dim':-1,
'ctxm_dim':-1,
'dim':1024, # lstm dim # 536
'n_layers_out':1, # for predicting next word
'n_layers_init':0,
'encoder_dim': 300,
'prev2out':True,
'ctx2out':True,
'patience':20,
'max_epochs':500,
'decay_c':1e-4,
'alpha_entropy_r': 0.,
'alpha_c':0.70602,
'lrate':0.0002,
'selector':True,
'n_words':20000,
'maxlen':30, # max length of the descprition
'optimizer':'adadelta',
'clip_c': 10.,
'batch_size': 32,
'valid_batch_size':200,
# in the unit of minibatches
'dispFreq':10,
'validFreq':2000,
'saveFreq':-1, # this is disabled, now use sampleFreq instead
'sampleFreq':500,
# blue, meteor, or both
'metric': 'everything', # set to perplexity on DVS
'use_dropout':True,
'K':28, # 26 when compare
'OutOf':None, # used to be 240, for motionfeature use 26
'verbose': True,
'debug': False,
}),
})