Skip to content

Remove deprecated max_size support from YOLOS image processor #38923

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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

kartickkt
Copy link

  • Updated test_image_processor_from_dict_with_kwargs to remove the deprecated max_size argument.
  • Uses only {"shortest_edge": ...} in size, consistent with current API.
  • Ensures compatibility with the latest image processor spec.

Before submitting

All tests passed locally using pytest tests/models/yolos/test_image_processing_yolos.py.

@kartickkt
Copy link
Author

All checks have passed.
Branch is now up-to-date. Ready for review.
Happy to help further if needed!

@Rocketknight1
Copy link
Member

Rocketknight1 commented Jun 20, 2025

cc @qubvel @yonigozlan

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.

2 participants