-
Notifications
You must be signed in to change notification settings - Fork 149
/
Copy pathconfig.py
executable file
·40 lines (34 loc) · 1.22 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
# coding:utf-8
# yolo
TRAIN_INPUT_SIZES = [320, 352, 384, 416, 448, 480, 512, 544, 576, 608]
TEST_INPUT_SIZE = 416 # width=height
STRIDES = [8, 16, 32]
IOU_LOSS_THRESH = 0.5
# train
BATCH_SIZE = 32
LEARN_RATE_INIT = 1e-3
MAX_LEARN_RATE_DECAY_TIME = 2
MAX_WAVE_TIME = 3
MAX_PERIODS = 50
ANCHORS = [[(1.25, 1.625), (2.0, 3.75), (4.125, 2.875)], # Anchors for small obj
[(1.875, 3.8125), (3.875, 2.8125), (3.6875, 7.4375)], # Anchors for medium obj
[(3.625, 2.8125), (4.875, 6.1875), (11.65625, 10.1875)]] # Anchors for big obj
ANCHOR_PER_SCALE = 3
MOVING_AVE_DECAY = 0.9995
SAVE_ITER = 1
MAX_BBOX_PER_SCALE = 20
# test
SCORE_THRESHOLD = 0.2 # The threshold of the probability of the classes
IOU_THRESHOLD = 0.5 # The threshold of the IOU when implement NMS
# compute environment
GPU = '0'
# name and path
DATASET_PATH = '/home/xzh/doc/code/python_code/data/VOC'
ANNOT_DIR_PATH = 'data'
WEIGHTS_DIR = 'weights'
WEIGHTS_FILE = 'yolo_coco_initial.ckpt'
LOG_DIR = 'log'
CLASSES = ['aeroplane', 'bicycle', 'bird', 'boat', 'bottle', 'bus',
'car', 'cat', 'chair', 'cow', 'diningtable', 'dog', 'horse',
'motorbike', 'person', 'pottedplant', 'sheep', 'sofa',
'train', 'tvmonitor']