From 3b9e94c5e637dd4d9a9dfe2f58e48043f9784468 Mon Sep 17 00:00:00 2001 From: Glenn Jocher Date: Sun, 18 Aug 2019 00:53:27 +0200 Subject: [PATCH] updates --- train.py | 32 ++++++++++++++++---------------- utils/gcp.sh | 1 - 2 files changed, 16 insertions(+), 17 deletions(-) diff --git a/train.py b/train.py index c0103aa2..d62aa8a4 100644 --- a/train.py +++ b/train.py @@ -53,25 +53,25 @@ hyp = {'giou': 1.582, # giou loss gain 'scale': 0.1059, # image scale (+/- gain) 'shear': 0.5768} # image shear (+/- deg) -# Hyperparameters (k-series, j-series with all *_pw=1) -# hyp = {'giou': 1.582, # giou loss gain +# # Hyperparameters (i-series) +# hyp = {'giou': 1.43, # giou loss gain # 'xy': 4.688, # xy loss gain # 'wh': 0.1857, # wh loss gain -# 'cls': 40.14, # cls loss gain -# 'cls_pw': 1.0, # cls BCELoss positive_weight -# 'obj': 84.14, # obj loss gain -# 'obj_pw': 1.0, # obj BCELoss positive_weight -# 'iou_t': 0.2635, # iou training threshold -# 'lr0': 0.002324, # initial learning rate +# 'cls': 11.7, # cls loss gain +# 'cls_pw': 4.81, # cls BCELoss positive_weight +# 'obj': 11.5, # obj loss gain +# 'obj_pw': 1.56, # obj BCELoss positive_weight +# 'iou_t': 0.281, # iou training threshold +# 'lr0': 0.0013, # initial learning rate # 'lrf': -4., # final LambdaLR learning rate = lr0 * (10 ** lrf) -# 'momentum': 0.97, # SGD momentum -# 'weight_decay': 0.0004569, # optimizer weight decay -# 'hsv_s': 0.5703, # image HSV-Saturation augmentation (fraction) -# 'hsv_v': 0.3174, # image HSV-Value augmentation (fraction) -# 'degrees': 1.113, # image rotation (+/- deg) -# 'translate': 0.06797, # image translation (+/- fraction) -# 'scale': 0.1059, # image scale (+/- gain) -# 'shear': 0.5768} # image shear (+/- deg) +# 'momentum': 0.944, # SGD momentum +# 'weight_decay': 0.000427, # optimizer weight decay +# 'hsv_s': 0.0599, # image HSV-Saturation augmentation (fraction) +# 'hsv_v': 0.142, # image HSV-Value augmentation (fraction) +# 'degrees': 1.03, # image rotation (+/- deg) +# 'translate': 0.0552, # image translation (+/- fraction) +# 'scale': 0.0555, # image scale (+/- gain) +# 'shear': 0.434} # image shear (+/- deg) def train(cfg, diff --git a/utils/gcp.sh b/utils/gcp.sh index a7f2c19f..ae3d19ad 100755 --- a/utils/gcp.sh +++ b/utils/gcp.sh @@ -18,7 +18,6 @@ sudo shutdown rm -rf yolov3 # Warning: remove existing git clone https://github.com/ultralytics/yolov3 # master # git clone -b test --depth 1 https://github.com/ultralytics/yolov3 test # branch -cp -r weights yolov3 && cd yolov3 # Train python3 train.py