-
Notifications
You must be signed in to change notification settings - Fork 91
/
config.py
51 lines (49 loc) · 1.52 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
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 + 'arctic-capgen-vid/test_non/',
'from_dir': '',
'dataset': 'youtube2text',
'video_feature': 'googlenet',
'dim_word':468, # 474
'ctx_dim':-1,# auto set
'dim':3518, # 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.0001,
'selector':True,
'n_words':20000,
'maxlen':30, # max length of the descprition
'optimizer':'adadelta',
'clip_c': 10.,
'batch_size': 64, # for trees use 25
'valid_batch_size':200,
# in the unit of minibatches
'dispFreq':10,
'validFreq':2000,
'saveFreq':-1, # this is disabled, now use sampleFreq instead
'sampleFreq':100,
# 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,
}),
})