-
-
Notifications
You must be signed in to change notification settings - Fork 16.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
too mayn warning #6051
Comments
@HeeHee100 your selection of hyperparameters is causing your problems, specifically fl_gamma. If you don't know what you are doing and you want to update these see the Hyperparameter Evolution tutorial. YOLOv5 Tutorials
Good luck 🍀 and let us know if you have any other questions! |
Thank you for your reply. I think it will be very helpful.
Initialize HyperparametersYOLOv5 has about 30 hyperparameters used for various training settings. These are defined in yaml files in the /data directory. Better initial guesses will produce better final results, so it is important to initialize these values properly before evolving. If in doubt, simply use the default values, which are optimized for YOLOv5 COCO training from scratch. in this article, Better initial guesses will produce better final results, so it is important to initialize these values properly before evolving There is a writing like this. |
@HeeHee100 see #4049
|
Still getting this error with VisDrone dataset and my |
me either |
Just to jump into the discussion ... I get the warning (sometimes) during inference (not during training). |
Hi @glenn-jocher I see this same warning, training yolov5s on COCO dataset, with default parameters. The warning keeps showing up for 11 epochs and finally the training fails after that.
Training Code Version: YOLOv5 v6.1 |
@anujdutt9 probably caused by dataset errors or non-default training settings/hyps 👋 hi, thanks for letting us know about this possible problem with YOLOv5 🚀. We've created a few short guidelines below to help users provide what we need in order to start investigating a possible problem. How to create a Minimal, Reproducible ExampleWhen asking a question, people will be better able to provide help if you provide code that they can easily understand and use to reproduce the problem. This is referred to by community members as creating a minimum reproducible example. Your code that reproduces the problem should be:
For Ultralytics to provide assistance your code should also be:
If you believe your problem meets all the above criteria, please close this issue and raise a new one using the 🐛 Bug Report template with a minimum reproducible example to help us better understand and diagnose your problem. Thank you! 😃 |
Search before asking
Question
I'm training a model and I keep getting WARNING that weren't generated before. WARNING persists even after epoch goes over 400.
Can I just keep to learn?
Changes
Does not occur before changes are applied. ( WARNING: NMS time limit 10.0s exceeded )
Changed object detection from two(pics > A:1800, B:1000) to three(pics > A:1800, B1000, C:500 ).
1-1. The newly created class C has a WARNING( WARNIGN: corrupt JPEG restored and saved ) image at 25 train val each.
fl_gamma: 0.0 --> flgamma: 1.5
degree: 0.0 --> 20
mixup:0.0 --> 0.3
error
Additional
train code
python train.py --img 640 --batch 256 --epochs 450 --data data/custom2.yaml --cfg models/yolov5n.yaml --weights yolov5n.pt --workers 16 --name goral_color_nano_mixup0.3 --patience 300
NOW hyp.yaml
lr0: 0.01
lrf: 0.1
momentum: 0.937
weight_decay: 0.0005
warmup_epochs: 3.0
warmup_momentum: 0.8
warmup_bias_lr: 0.1
box: 0.05
cls: 0.5
cls_pw: 1.0
obj: 1.0
obj_pw: 1.0
iou_t: 0.2
anchor_t: 4.0
fl_gamma: 1.5
hsv_h: 0.015
hsv_s: 0.7
hsv_v: 0.4
degrees: 20.0
translate: 0.1
scale: 0.5
shear: 0.0
perspective: 0.0
flipud: 0.0
fliplr: 1.0
mosaic: 1.0
mixup: 0.3
copy_paste: 0.0
The text was updated successfully, but these errors were encountered: