-
Notifications
You must be signed in to change notification settings - Fork 21
/
config.py
53 lines (47 loc) · 974 Bytes
/
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
JOINT = {
'nyu': 14,
'icvl': 16,
'msra': 21,
'hands17': 21
}
STEP = {
'nyu': 30,
'icvl': 10,
'msra': 10,
'hands17': 5
}
EPOCH = {
'nyu': 40,
'icvl': 40,
'msra': 25,
'hands17': 10
}
class Config(object):
gpu_id = 0
exp_id = "nyu_hourglass"
log_id = "dense"
data_dir = './data'
dataset = 'nyu'
output_dir = './output/'
load_model = './results/hourglass_1.pth'
jt_num = JOINT[dataset]
cube = [300, 300, 300]
augment_para = [10, 0.1, 180]
net = 'hourglass_1' # 'resnet_18'
downsample = 2 # [1,2,4]
img_size = 128
batch_size = 32
num_workers = 8
max_epoch = EPOCH[dataset]
loss_type = 'MyL1Loss'
dense_weight = 1.
coord_weight = 0
kernel_size = 0.4 # 0.4 for hourglass and 1 for resnet
lr = 1e-3
optimizer = 'adam'
scheduler = 'step'
step = STEP[dataset]
weight_decay = 0
print_freq = 100
vis_freq = 1
opt = Config()