############################################### #created by : lxy #Time: 2018/12/20 17:09 #project: face anti spoofing #company: #rversion: 0.1 #tool: python 2.7 #modified: #description face anti spoofing #################################################### from easydict import EasyDict cfgs = EasyDict() #------------------------------------------ convert data to tfrecofr config cfgs.BIN_DATA = 0 # whether read image data from binary cfgs.CLS_NUM = 85164 cfgs.IMGAUG = 0 # ---------------------------------------- System_config cfgs.NET_NAME = 'mobilenetv2' #'resnet100' # 'mobilenetv2' 'resnet50' 'lenet5' cfgs.SHOW_TRAIN_INFO_INTE = 1000 cfgs.SMRY_ITER = 2000 cfgs.DATASET_NAME = 'MS1M' #'Mobile' 'Prison' FaceAnti Fruit cfgs.DATASET_LIST = [ 'Prison', 'WiderFace', 'Mobile', 'FaceAnti', 'Fruit', 'MS1M' ] cfgs.DATA_NAME = ['normal', 'fake', 'monitor', 'telecontroller'] # ------------------------------------------ Train config cfgs.RD_MULT = 0 cfgs.MODEL_PREFIX = 'mobilenetv2-1_0'
# -*- coding: utf-8 -*- ############################################### #created by : lxy #Time: 2019/06/5 10:09 #project: #company: #rversion: 0.1 #tool: python 2.7 #modified: #description #################################################### from easydict import EasyDict cfgs = EasyDict() # dataset ************************************************* cfgs.BIN_DATA = 0 cfgs.DATASET_LIST = ['COCO', 'VOC'] cfgs.DataSet_Name = 'COCO' cfgs.ClsNum = 8 cfgs.DataNames = [ 'person', 'bicycle', 'car', 'motorcycle', 'bus', 'truck', 'traffic_light', 'stop_sign' ] cfgs.PIXEL_MEAN = [0.485, 0.456, 0.406] # R, G, B cfgs.PIXEL_NORM = [0.229, 0.224, 0.225] #rgb # Training config********************************************** cfgs.Train_Num = 97481 #117266 cfgs.Variance_XY = 0.1 cfgs.Variance_WH = 0.2 cfgs.AnchorBoxes = 21350 # (40x40+20x20+10x10+5x5+3x3+1x1)=2135 cfgs.SHOW_TRAIN_INFO = 1000