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 SKU-110K HUB: OSError #5106

Merged
merged 1 commit into from
Oct 9, 2021
Merged

Fix SKU-110K HUB: OSError #5106

merged 1 commit into from
Oct 9, 2021

Conversation

glenn-jocher
Copy link
Member

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

Fix for #5105, verified working on SKU-110K hub ops.

πŸ› οΈ PR Summary

Made with ❀️ by Ultralytics Actions

🌟 Summary

Enhanced image resizing and saving mechanism for large images in the YOLOv5 dataset hub.

πŸ“Š Key Changes

  • Added a fallback using OpenCV for image resizing and saving when the PIL library fails.
  • Maintained the functionality for resizing large images to a maximum dimension while reducing the quality for optimized web or app display.
  • Exception handling introduced for robustness against PIL-related errors, logging a warning message when necessary.

🎯 Purpose & Impact

  • 🎨 Enhanced Compatibility: Provides an alternative library (OpenCV) for image operations, ensuring more consistent behavior across different environments.
  • πŸ” Improved Robustness: Helps avoid crashes or failures when processing images due to potential PIL limitations or issues.
  • πŸ“‰ Reduced Load Times: Resized images will load faster on websites and apps due to their smaller sizes, improving user experience.
  • ⚠️ Increased Feedback: Warning messages help in debugging and alert users to any issues encountered during image processing.

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.

SKU-110K HUB: OSError: broken data stream when reading image file
1 participant