-
Couldn't load subscription status.
- Fork 6.5k
refactor image_processor.py file #9608
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
refactor image_processor.py file #9608
Conversation
4984d48 to
5d98fcc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sweet, looks great!
|
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice, thank you! 🤗
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One last comment, then we can merge! 🤗
|
Could you run |
|
Done @a-r-r-o-w :) |
|
This puts it back to where it was when stevehliu asked for the last update. I think you need to fix the indent and put new width/height at same indent level as other arguments. Currently ruff thinks these are part of the previous argument due to wrong indent |
Yeah, just noticed. Sorry, let me check. |
|
Hey @a-r-r-o-w , let me know if it's okay now. |
|
Looks good to merge! We're facing some CI environment issues causing all docs related things to fail, so will need to wait until it's back up |
|
@sayakpaul Now seeing an unrelated error (apart from the docs environment ones) here. Seems like we need to bump transformers version, or is it something else? Either way, I think this PR should be good to merge now as failing tests are unrelated, and I don't see any docs errors locally. |
* refactor image_processor file * changes as requested * +1 edits * quality fix * indent issue --------- Co-authored-by: Aryan <[email protected]> Co-authored-by: YiYi Xu <[email protected]>
What does this PR do?
Fixes #9567
Refactors image_processor file!
Before submitting
documentation guidelines, and
here are tips on formatting docstrings.
Who can review?
@a-r-r-o-w @stevhliu @yiyixuxu