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

cv2.resize interpolation fix #7903

Merged
merged 1 commit into from
May 20, 2022
Merged

cv2.resize interpolation fix #7903

merged 1 commit into from
May 20, 2022

Conversation

glenn-jocher
Copy link
Member

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

Fix for #7901 causing incorrect results on resizing images upward.

πŸ› οΈ PR Summary

Made with ❀️ by Ultralytics Actions

🌟 Summary

Improvement in image resizing conditions for the YOLOv5 data loader.

πŸ“Š Key Changes

  • Modified the condition to select the interpolation method during image resizing.

🎯 Purpose & Impact

  • Ensures high-quality image resizing by choosing the appropriate interpolation method based on whether augmentation is applied or the resizing ratio is greater than 1.
  • This can improve the model's performance by maintaining the quality of images during training, especially when images are being scaled up (enlarged). πŸ“ˆ
  • Users may notice improved detection accuracy and better results from their trained models because the input data quality directly affects model performance. 🎯

@glenn-jocher glenn-jocher self-assigned this May 20, 2022
@glenn-jocher glenn-jocher merged commit a9a92ae into master May 20, 2022
@glenn-jocher glenn-jocher deleted the fix/resize branch May 20, 2022 10:59
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