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

modify default value of stride to 64 in the function letterbox #13147

Closed
wants to merge 1 commit into from

Conversation

TommeyChang
Copy link

@TommeyChang TommeyChang commented Jun 29, 2024

I have read the CLA Document and I sign the CLA.

When the default value of stride is 32, it confronts an error when the width or height of the image is resized to 864.
I fix the bug from setting the stride to 64. Thus, I suggest to change the default value.

🛠️ PR Summary

Made with ❤️ by Ultralytics Actions

🌟 Summary

This PR modifies the letterbox function to change its stride parameter from 32 to 64.

📊 Key Changes

  • Changed stride parameter in letterbox function from 32 to 64 in utils/augmentations.py.

🎯 Purpose & Impact

  • Improved Image Processing: The change in stride may improve the efficiency of image resizing and padding, making operations faster.
  • Better Alignment: Larger stride could help in better alignment with larger image scales, potentially enhancing model performance on larger images.
  • User Noticeable Differences: Users might notice changes in model preprocessing speed and possibly minor differences in output image handling.

Copy link
Contributor


Thank you for your submission, we really appreciate it. Like many open-source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution. You can sign the CLA by just posting a Pull Request Comment same as the below format.


I have read the CLA Document and I sign the CLA


You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot.

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