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 yaml.safe_load() ignore emoji errors #5060

Merged
merged 1 commit into from
Oct 5, 2021

Conversation

glenn-jocher
Copy link
Member

@glenn-jocher glenn-jocher commented Oct 5, 2021

Fixes yaml.safe_load() emoji errors raised in #5040.

πŸ› οΈ PR Summary

Made with ❀️ by Ultralytics Actions

🌟 Summary

Improved file handling during model configuration and training in YOLOv5.

πŸ“Š Key Changes

  • Added errors='ignore' to file open operations in yolo.py, train.py, and utils/aws/resume.py.

🎯 Purpose & Impact

  • Mitigates issues with character encoding when loading YAML configs, which improves robustness.
  • Users are less likely to encounter errors related to file encodings when customizing or training models, leading to a smoother experience.

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