This commit is contained in:
Glenn Jocher 2019-08-18 00:53:27 +02:00
parent 2d57e5d877
commit 3b9e94c5e6
2 changed files with 16 additions and 17 deletions

View File

@ -53,25 +53,25 @@ hyp = {'giou': 1.582, # giou loss gain
'scale': 0.1059, # image scale (+/- gain) 'scale': 0.1059, # image scale (+/- gain)
'shear': 0.5768} # image shear (+/- deg) 'shear': 0.5768} # image shear (+/- deg)
# Hyperparameters (k-series, j-series with all *_pw=1) # # Hyperparameters (i-series)
# hyp = {'giou': 1.582, # giou loss gain # hyp = {'giou': 1.43, # giou loss gain
# 'xy': 4.688, # xy loss gain # 'xy': 4.688, # xy loss gain
# 'wh': 0.1857, # wh loss gain # 'wh': 0.1857, # wh loss gain
# 'cls': 40.14, # cls loss gain # 'cls': 11.7, # cls loss gain
# 'cls_pw': 1.0, # cls BCELoss positive_weight # 'cls_pw': 4.81, # cls BCELoss positive_weight
# 'obj': 84.14, # obj loss gain # 'obj': 11.5, # obj loss gain
# 'obj_pw': 1.0, # obj BCELoss positive_weight # 'obj_pw': 1.56, # obj BCELoss positive_weight
# 'iou_t': 0.2635, # iou training threshold # 'iou_t': 0.281, # iou training threshold
# 'lr0': 0.002324, # initial learning rate # 'lr0': 0.0013, # 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.944, # SGD momentum
# 'weight_decay': 0.0004569, # optimizer weight decay # 'weight_decay': 0.000427, # optimizer weight decay
# 'hsv_s': 0.5703, # image HSV-Saturation augmentation (fraction) # 'hsv_s': 0.0599, # image HSV-Saturation augmentation (fraction)
# 'hsv_v': 0.3174, # image HSV-Value augmentation (fraction) # 'hsv_v': 0.142, # image HSV-Value augmentation (fraction)
# 'degrees': 1.113, # image rotation (+/- deg) # 'degrees': 1.03, # image rotation (+/- deg)
# 'translate': 0.06797, # image translation (+/- fraction) # 'translate': 0.0552, # image translation (+/- fraction)
# 'scale': 0.1059, # image scale (+/- gain) # 'scale': 0.0555, # image scale (+/- gain)
# 'shear': 0.5768} # image shear (+/- deg) # 'shear': 0.434} # image shear (+/- deg)
def train(cfg, def train(cfg,

View File

@ -18,7 +18,6 @@ sudo shutdown
rm -rf yolov3 # Warning: remove existing rm -rf yolov3 # Warning: remove existing
git clone https://github.com/ultralytics/yolov3 # master git clone https://github.com/ultralytics/yolov3 # master
# git clone -b test --depth 1 https://github.com/ultralytics/yolov3 test # branch # git clone -b test --depth 1 https://github.com/ultralytics/yolov3 test # branch
cp -r weights yolov3 && cd yolov3
# Train # Train
python3 train.py python3 train.py