-
-
Notifications
You must be signed in to change notification settings - Fork 16.2k
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
AssertionError: negative labels: #857
Comments
Hello @shliang0603, thank you for your interest in our work! Please visit our Custom Training Tutorial to get started, and see our Jupyter Notebook , Docker Image, and Google Cloud Quickstart Guide for example environments. If this is a bug report, please provide screenshots and minimum viable code to reproduce your issue, otherwise we can not help you. If this is a custom model or data training question, please note Ultralytics does not provide free personal support. As a leader in vision ML and AI, we do offer professional consulting, from simple expert advice up to delivery of fully customized, end-to-end production solutions for our clients, such as:
For more information please visit https://www.ultralytics.com. |
This repo doesn't support ignore(negative label -1 means ignore) labels right now. |
@Aktcob Thanks for your reply, I don't quite understand what you mean by negative label. I annotate the data set using the Labelimg tool, but the other previously annotated data sets have no problem in training 010854.txt label info: 22 0.4216666666666667 0.33 -0.7366666666666667 0.35333333333333333
22 0.415 0.6283333333333333 -0.6966666666666667 0.33666666666666667 |
Sorry. I made a mistake. The reason is -0.7366666666666667<0, the x1y1x2y2 should be in 0~1 |
@ChBrockmann Danke~ |
@Aktcob I made a new graphic to explain the normalized xywh labels. All classes must be >=0, and all box coordinates must also be 1 >= x >= 0. Does this explain it better? I'll update the custom training tutorials with this so it's less confusing. |
@Aktcob @glenn-jocher Thanks for your reply, I've got the problem. |
你好,我也遇到了和您一样的问题,同样报错AssertionError: negative labels: data/coco/labels/train2017/000016_4.txt,检查发现确实存在负值,请问您解决了这个问题吗?可以分享一下吗,谢谢 |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
@glenn-jocher when I train my custom dataset in yolov5 v3.0, The following error occurred:
Can you give me some advice ?
The text was updated successfully, but these errors were encountered: