-
-
Notifications
You must be signed in to change notification settings - Fork 16.7k
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
box_loss, obj_loss, and cls_loss #5052
Comments
@kgardner330 box loss is the regression loss for output xywh bounding boxes. Loss criteria in use is CIoU(). You can see details in loss.py: Lines 131 to 137 in 5afc9c2
For a general description of the YOLO losses you should read the first 3 YOLO papers: |
@gepaohhh you are showing mAP so you do have validation data, not sure why your losses are nan (which are not plotted). |
@glenn-jocher thankyou, later I found my losses are nan (which are not plotted) ,because there is something wrong in my CUDA and cuDNN, and the official network say due to my CUDA which is not suitable to my Convolution I'm sorry my english is not very well |
@gepaohhh no changes are needed for single-class training, just label your dataset with class 0 and train normally. |
For CUDA-related issues, first verify your environment with For cloud-based alternatives that avoid local CUDA dependencies, consider Ultralytics HUB Cloud Training. |
I am replying to this for anyone facing a similar problem. A good way to resolve this problem is by using Roboflow. Create a new project and upload your dataset (make sure that your dataset respects Yolo Format); using Roboflow integrated preprocessing, all unannotated and duplicated images will be identified. Then RoboFlow will generate a download API for the new preprocessed dataset. That works with me. |
Thank you for sharing your solution! For single-class YOLOv5 training, simply label all objects as class 0 in your dataset - no architecture changes needed. To verify CUDA compatibility, run |
Hello Glenn et al.,
I am wondering what all the different losses mean in the results figure and where I can learn more about this? If you can give the equations for these losses that would be great. Specifically the box, obj, and cls loss? Is the box loss referring to the Generalized IOU loss (GIOU).
Thanks,
Karl Gardner | Texas Tech University
The text was updated successfully, but these errors were encountered: