forked from burnpiro/tiny-face-detection-tensorflow2
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.py
More file actions
31 lines (25 loc) · 971 Bytes
/
config.py
File metadata and controls
31 lines (25 loc) · 971 Bytes
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
from easydict import EasyDict
__C = EasyDict()
cfg = __C
# create NN dict
__C.NN = EasyDict()
__C.NN.INPUT_SIZE = 224 # 224, 320, 352, 384, 416, 448, 480, 512, 544, 576, 608
__C.NN.GRID_SIZE = 7 # the same as output layer from the model
__C.NN.ALPHA = 0.75 # one of mobilenet alphas 0.35 0.5 0.75 1.0 1.3 1.4
__C.NN.IOU_LOSS_THRESH = 0.5
# create Train options dict
__C.TRAIN = EasyDict()
__C.TRAIN.DATA_PATH = "./data/WIDER_train/images/"
__C.TRAIN.ANNOTATION_PATH = "./data/wider_face_split/wider_face_train_bbx_gt.txt"
__C.TRAIN.PATIENCE = 30 # for EarlyStopping
__C.TRAIN.EPOCHS = 150
__C.TRAIN.BATCH_SIZE = 16
__C.TRAIN.LEARNING_RATE = 1e-4
__C.TRAIN.WEIGHT_DECAY = 0.0005
__C.TRAIN.LR_DECAY = 0.0001
# create TEST options dict
__C.TEST = EasyDict()
__C.TEST.DATA_PATH = "./data/WIDER_val/images/"
__C.TEST.ANNOTATION_PATH = "./data/wider_face_split/wider_face_val_bbx_gt.txt"
__C.TEST.DATA_AUG = False
__C.TEST.DETECTED_IMAGE_PATH = "./output/detection/"