-
Notifications
You must be signed in to change notification settings - Fork 58
/
exp_configs.py
39 lines (35 loc) · 1.31 KB
/
exp_configs.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
from haven import haven_utils as hu
EXP_GROUPS = {}
EXP_GROUPS['trancos'] = {"dataset": {'name':'trancos',
'transform':'rgb_normalize'},
"model": {'name':'lcfcn','base':"fcn8_vgg16"},
"batch_size": [1,5,10],
"max_epoch": [100],
'dataset_size': [
{'train':'all', 'val':'all'},
],
'optimizer':['adam'],
'lr':[1e-5]
}
EXP_GROUPS['shanghai'] = {"dataset": {'name':'shanghai',
'transform':'rgb_normalize'},
"model": {'name':'lcfcn','base':"fcn8_vgg16"},
"batch_size": [1],
"max_epoch": [100],
'dataset_size': {'train':'all', 'val':'all'},
'optimizer':['adam'],
'lr':[1e-5]
}
EXP_GROUPS['trancos_debug'] = {"dataset": {'name':'trancos',
'transform':'rgb_normalize'},
"model": {'name':'lcfcn','base':"fcn8_vgg16"},
"batch_size": [1,5,10],
"max_epoch": [100],
'dataset_size': [
{'train':1, 'val':1},
# {'train':'all', 'val':'all'},
],
'optimizer':['adam'],
'lr':[1e-5]
}
EXP_GROUPS = {k: hu.cartesian_exp_group(v) for k, v in EXP_GROUPS.items()}