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

AMP check image download backup #7936

Merged
merged 1 commit into from
May 23, 2022
Merged

AMP check image download backup #7936

merged 1 commit into from
May 23, 2022

Conversation

glenn-jocher
Copy link
Member

@glenn-jocher glenn-jocher commented May 23, 2022

Resolves #7931

πŸ› οΈ PR Summary

Made with ❀️ by Ultralytics Actions

🌟 Summary

Improvement of Automatic Mixed Precision (AMP) checking with enhanced image loading logic.

πŸ“Š Key Changes

  • Added file existence check before reading the 'bus.jpg' image.
  • Incorporated online image retrieval if the local image is not available.
  • Maintains AMP functionality if neither local nor online image can be loaded.

🎯 Purpose & Impact

  • Robustness: Ensures the AMP check can always be performed, either with a local or an online fallback image.
  • User Experience: Prevents errors that would occur if the local test image is missing, allowing for a smoother experience.
  • Performance: AMP checks proceed correctly, potentially enabling faster and more efficient model training and inference when supported.

@glenn-jocher glenn-jocher self-assigned this May 23, 2022
@glenn-jocher glenn-jocher merged commit cf3fb58 into master May 23, 2022
@glenn-jocher glenn-jocher deleted the fix/amp branch May 23, 2022 13:31
tdhooghe pushed a commit to tdhooghe/yolov5 that referenced this pull request Jun 10, 2022
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.

1 participant