forked from ultralytics/yolov5
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update SparseML Integration to V6.1 (#26)
* SparseML integration * Add SparseML dependancy * Update: add missing files * Update requirements.txt * Update: sparseml-nightly support * Update: remove model versioning * Partial update for multi-stage recipes * Update: multi-stage recipe support * Update: remove sparseml dep * Fix: multi-stage recipe handeling * Fix: multi stage support * Fix: non-recipe runs * Add: legacy hyperparam files * Fix: add copy-paste to hyps * Fix: nit * apply structure fixes
- Loading branch information
Showing
20 changed files
with
758 additions
and
103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Hyperparameters for VOC finetuning | ||
# python train.py --batch 64 --weights yolov5m.pt --data voc.yaml --img 512 --epochs 50 | ||
# See tutorials for hyperparameter evolution https://github.com/ultralytics/yolov5#tutorials | ||
|
||
|
||
# Hyperparameter Evolution Results | ||
# Generations: 306 | ||
# P R mAP.5 mAP.5:.95 box obj cls | ||
# Metrics: 0.6 0.936 0.896 0.684 0.0115 0.00805 0.00146 | ||
|
||
lr0: 0.0032 | ||
lrf: 0.12 | ||
momentum: 0.843 | ||
weight_decay: 0.00036 | ||
warmup_epochs: 2.0 | ||
warmup_momentum: 0.5 | ||
warmup_bias_lr: 0.05 | ||
box: 0.0296 | ||
cls: 0.243 | ||
cls_pw: 0.631 | ||
obj: 0.301 | ||
obj_pw: 0.911 | ||
iou_t: 0.2 | ||
anchor_t: 2.91 | ||
# anchors: 3.63 | ||
fl_gamma: 0.0 | ||
hsv_h: 0.0138 | ||
hsv_s: 0.664 | ||
hsv_v: 0.464 | ||
degrees: 0.373 | ||
translate: 0.245 | ||
scale: 0.898 | ||
shear: 0.602 | ||
perspective: 0.0 | ||
flipud: 0.00856 | ||
fliplr: 0.5 | ||
mosaic: 1.0 | ||
mixup: 0.243 | ||
copy_paste: 0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Hyperparameters for COCO training from scratch | ||
# python train.py --batch 40 --cfg yolov5m.yaml --weights '' --data coco.yaml --img 640 --epochs 300 | ||
# See tutorials for hyperparameter evolution https://github.com/ultralytics/yolov5#tutorials | ||
|
||
|
||
lr0: 0.01 # initial learning rate (SGD=1E-2, Adam=1E-3) | ||
lrf: 0.2 # final OneCycleLR learning rate (lr0 * lrf) | ||
momentum: 0.937 # SGD momentum/Adam beta1 | ||
weight_decay: 0.0005 # optimizer weight decay 5e-4 | ||
warmup_epochs: 3.0 # warmup epochs (fractions ok) | ||
warmup_momentum: 0.8 # warmup initial momentum | ||
warmup_bias_lr: 0.1 # warmup initial bias lr | ||
box: 0.05 # box loss gain | ||
cls: 0.5 # cls loss gain | ||
cls_pw: 1.0 # cls BCELoss positive_weight | ||
obj: 1.0 # obj loss gain (scale with pixels) | ||
obj_pw: 1.0 # obj BCELoss positive_weight | ||
iou_t: 0.20 # IoU training threshold | ||
anchor_t: 4.0 # anchor-multiple threshold | ||
# anchors: 3 # anchors per output layer (0 to ignore) | ||
fl_gamma: 0.0 # focal loss gamma (efficientDet default gamma=1.5) | ||
hsv_h: 0.015 # image HSV-Hue augmentation (fraction) | ||
hsv_s: 0.7 # image HSV-Saturation augmentation (fraction) | ||
hsv_v: 0.4 # image HSV-Value augmentation (fraction) | ||
degrees: 0.0 # image rotation (+/- deg) | ||
translate: 0.1 # image translation (+/- fraction) | ||
scale: 0.5 # image scale (+/- gain) | ||
shear: 0.0 # image shear (+/- deg) | ||
perspective: 0.0 # image perspective (+/- fraction), range 0-0.001 | ||
flipud: 0.0 # image flip up-down (probability) | ||
fliplr: 0.5 # image flip left-right (probability) | ||
mosaic: 1.0 # image mosaic (probability) | ||
mixup: 0.0 # image mixup (probability) | ||
copy_paste: 0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.