-
Notifications
You must be signed in to change notification settings - Fork 7
/
config.py
66 lines (32 loc) · 952 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
class Config:
#voc root
VOC_ROOT = '/SSD_ResNet_Pytorch'
#class + 1
num_classes = 21
#learning rate
lr = 0.001
#ssd paper = 32
batch_size = 32
momentum = 0.9
weight_decay = 0.0005
# 40k + 10k = 116 epock
epoch = 116
#pre-train VGG root
#The resnet pre-train model is in lib.res-model...
save_folder = './weights/'
basenet = 'vgg16_reducedfc.pth'
log_fn = 10
neg_radio = 3
#input-image size
min_size = 300
#boxe out image size
grids = (38, 19, 10, 5, 3, 1)
#boxe num
anchor_num = [4, 6, 6, 6, 4, 4]
#255 * R, G, B
mean = (104, 117, 123)
aspect_ratios = ((2,), (2, 3), (2, 3), (2, 3), (2,), (2,))
steps = [s / 300 for s in (8, 16, 32, 64, 100, 300)]
sizes = [s / 300 for s in (30, 60, 111, 162, 213, 264, 315)]
variance = (0.1, 0.2)
opt = Config()