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

Update dataset_stats() to cv2.INTER_AREA #5821

Merged
merged 1 commit into from
Nov 29, 2021
Merged

Conversation

glenn-jocher
Copy link
Member

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

πŸ› οΈ PR Summary

Made with ❀️ by Ultralytics Actions

🌟 Summary

Optimizing image resizing method for better quality and efficiency.

πŸ“Š Key Changes

  • Switched the image resizing interpolation method from cv2.INTER_LINEAR to cv2.INTER_AREA.

🎯 Purpose & Impact

  • The new interpolation method cv2.INTER_AREA is better for downsizing images, providing higher quality results.
  • Users should see an improvement in image clarity when using the YOLOv5 model for processing large images that need to be resized.
  • Potentially could lead to slightly improved object detection accuracy due to better image quality.

@glenn-jocher glenn-jocher self-assigned this Nov 29, 2021
@glenn-jocher glenn-jocher merged commit 5ca5dd4 into master Nov 29, 2021
@glenn-jocher glenn-jocher deleted the glenn-jocher-patch-1 branch November 29, 2021 12:15
BjarneKuehl pushed a commit to fhkiel-mlaip/yolov5 that referenced this pull request Aug 26, 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.

None yet

1 participant