This commit is contained in:
Glenn Jocher 2019-08-18 02:15:16 +02:00
parent ee176000eb
commit 3c4a9ff69e
1 changed files with 2 additions and 2 deletions

View File

@ -42,7 +42,7 @@ hyp = {'giou': 1.582, # giou loss gain
'obj': 21.35, # obj loss gain 'obj': 21.35, # obj loss gain
'obj_pw': 3.941, # obj BCELoss positive_weight 'obj_pw': 3.941, # obj BCELoss positive_weight
'iou_t': 0.2635, # iou training threshold 'iou_t': 0.2635, # iou training threshold
'lr0': 0.010324, # initial learning rate 'lr0': 0.002324, # initial learning rate
'lrf': -4., # final LambdaLR learning rate = lr0 * (10 ** lrf) 'lrf': -4., # final LambdaLR learning rate = lr0 * (10 ** lrf)
'momentum': 0.97, # SGD momentum 'momentum': 0.97, # SGD momentum
'weight_decay': 0.0004569, # optimizer weight decay 'weight_decay': 0.0004569, # optimizer weight decay
@ -360,7 +360,7 @@ if __name__ == '__main__':
parser.add_argument('--batch-size', type=int, default=32, help='batch size') parser.add_argument('--batch-size', type=int, default=32, help='batch size')
parser.add_argument('--accumulate', type=int, default=2, help='number of batches to accumulate before optimizing') parser.add_argument('--accumulate', type=int, default=2, help='number of batches to accumulate before optimizing')
parser.add_argument('--cfg', type=str, default='cfg/yolov3-spp.cfg', help='cfg file path') parser.add_argument('--cfg', type=str, default='cfg/yolov3-spp.cfg', help='cfg file path')
parser.add_argument('--data', type=str, default='data/coco_64img.data', help='coco.data file path') parser.add_argument('--data', type=str, default='data/coco.data', help='coco.data file path')
parser.add_argument('--multi-scale', action='store_true', help='train at (1/1.5)x - 1.5x sizes') parser.add_argument('--multi-scale', action='store_true', help='train at (1/1.5)x - 1.5x sizes')
parser.add_argument('--img-size', type=int, default=416, help='inference size (pixels)') parser.add_argument('--img-size', type=int, default=416, help='inference size (pixels)')
parser.add_argument('--rect', action='store_true', help='rectangular training') parser.add_argument('--rect', action='store_true', help='rectangular training')