Skip to content
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

Fix val.py 'no labels found bug' #8806

Merged
merged 1 commit into from
Jul 31, 2022
Merged

Fix val.py 'no labels found bug' #8806

merged 1 commit into from
Jul 31, 2022

Conversation

glenn-jocher
Copy link
Member

@glenn-jocher glenn-jocher commented Jul 31, 2022

Resolves #8791

Bug first introduced in #8782

πŸ› οΈ PR Summary

Made with ❀️ by Ultralytics Actions

🌟 Summary

Refinement of validation script with code simplifications for readability.

πŸ“Š Key Changes

  • Changed the way names dictionary is created for better clarity.
  • Simplified the string formatting for saving text files by using f-string.
  • Removed unnecessary conditional branch to always define nt (number of targets per class) outside of condition.

🎯 Purpose & Impact

  • Improving code readability and simplicity for maintenance and future contributions.
  • Potential reduction in errors due to simpler code structure.
  • Users should experience no changes in functionality, ensuring consistent performance with minor behind-the-scenes improvements. πŸ› οΈ

Resolves #8791

Bug first introduced in #8782
@glenn-jocher glenn-jocher self-assigned this Jul 31, 2022
@glenn-jocher glenn-jocher merged commit 34cb277 into master Jul 31, 2022
@glenn-jocher glenn-jocher deleted the glenn-jocher-patch-1 branch July 31, 2022 12:17
ctjanuhowski pushed a commit to ctjanuhowski/yolov5 that referenced this pull request Sep 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Validation error: "no labels found in val set, can not compute metrics without labels"
1 participant