This repository was archived by the owner on Jun 4, 2025. It is now read-only.
forked from ultralytics/yolov5
-
Notifications
You must be signed in to change notification settings - Fork 4
Update SparseML Integration to V6.1 #26
Merged
Merged
Changes from 16 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
8eaecd2
SparseML integration
KSGulin 1f73552
Add SparseML dependancy
KSGulin 4db2a15
Update: add missing files
KSGulin 70fb4cd
Update requirements.txt
KSGulin bf225ec
Update: sparseml-nightly support
KSGulin 4b4b932
Merge branch 'update-6.1' of github.com:neuralmagic/yolov5 into updat…
KSGulin 6d3667a
Update: remove model versioning
KSGulin 28579c8
Partial update for multi-stage recipes
KSGulin e5999d5
Update: multi-stage recipe support
KSGulin 3218a78
Update: remove sparseml dep
KSGulin bbbcf6b
Fix: multi-stage recipe handeling
KSGulin 140ee49
Fix: multi stage support
KSGulin 912040c
Fix: non-recipe runs
KSGulin a8dfa0f
Add: legacy hyperparam files
KSGulin 7bdf2e6
Fix: add copy-paste to hyps
KSGulin 20f6f91
Fix: nit
KSGulin 5eadf3a
apply structure fixes
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.