-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathconfig.py
More file actions
executable file
·48 lines (38 loc) · 1.4 KB
/
config.py
File metadata and controls
executable file
·48 lines (38 loc) · 1.4 KB
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
num_classes = 21
aspect_ratios = [[2], [2, 3], [2, 3], [2, 3], [2, 3], [2], [2]]
mbox = [4, 6, 6, 6, 6, 4, 4]
variance = [0.1, 0.2]
feature_maps = [65, 33, 17, 9, 5, 3, 1]
min_sizes = [ 20.52, 51.3, 133.38, 215.46, 297.54, 379.62, 461.7 ]
max_sizes = [ 51.3, 133.38, 215.46, 297.54, 379.62, 461.7, 543.78]
steps = [8, 16, 31, 57, 103, 171, 513]
top_k = 200
# detect settings
conf_thresh = 0.01
nms_thresh = 0.45
# Training settings
img_size = 513
batch_size = 24
epoch = 100
# lr_decay_epoch = 50
milestones = [120, 170, 220]
# data directory
root = '/media/grace/Windows/ubuntu-backup/Datasets/PASCALVOC/VOCdevkit'
train_sets = [('2007','train'),('2007','val'),('2012', 'train'),('2012', 'val')]
test_sets = [('2007', 'test')]
means = [0.485, 0.456, 0.406]
std = [0.229, 0.224, 0.225]
init_lr = 0.001
weight_decay = 0.0005
VOC_CLASSES = ('__background__', 'aeroplane', 'bicycle', 'bird', 'boat',
'bottle', 'bus', 'car', 'cat', 'chair',
'cow', 'diningtable', 'dog', 'horse',
'motorbike', 'person', 'pottedplant',
'sheep', 'sofa', 'train', 'tvmonitor')
# dec evaluation
output_dir = 'output'
labelmap = ('aeroplane', 'bicycle', 'bird', 'boat',
'bottle', 'bus', 'car', 'cat', 'chair',
'cow', 'diningtable', 'dog', 'horse',
'motorbike', 'person', 'pottedplant',
'sheep', 'sofa', 'train', 'tvmonitor')