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

f.read().strip() #1551

Merged
merged 1 commit into from
Nov 29, 2020
Merged

f.read().strip() #1551

merged 1 commit into from
Nov 29, 2020

Conversation

glenn-jocher
Copy link
Member

@glenn-jocher glenn-jocher commented Nov 29, 2020

πŸ› οΈ PR Summary

Made with ❀️ by Ultralytics Actions

🌟 Summary

Improved label loading robustness in YOLOv5 dataset utility.

πŸ“Š Key Changes

  • Added .strip() method to label file reading logic in the cache_labels and extract_boxes functions.

🎯 Purpose & Impact

  • 🎯 Purpose: To ensure that any leading or trailing whitespace in label files is removed, preventing potential issues with label parsing.
  • πŸ” Impact: Increases the reliability of the dataset preparation process, leading to fewer errors during model training and a smoother user experience. This change may be particularly beneficial for users who manually edit label files, where such whitespace errors are more likely to occur.

@glenn-jocher
Copy link
Member Author

/rebase

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant