Uh oh!
There was an error while loading. Please reload this page.
fix: load_image should support PIL Image - #6904
Conversation
| elif isinstance(image, PIL.Image.Image): | ||
| image = image |
There was a problem hiding this comment.
Wonder why would someone call load_image() on an already properly loaded image, though.
There was a problem hiding this comment.
Many tutorials are written like this😁, Perhaps to ensure things like RGB, or to ensure the consistency of types
sayakpaul
commented
Feb 8, 2024
Hmm as per the method signature, it seems like fromdiffusers.utilsimportload_imageimage=load_image(image)where |
yiyixuxu
commented
Feb 8, 2024
@sayakpaul |
sayakpaul
commented
Feb 8, 2024
Alright. Feel free to merge once the CI is green. |
HuggingFaceDocBuilderDev
commented
Feb 8, 2024
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. |
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com>
What does this PR do?
load_imageshould supportPIL.Image.Fixes#6479 (comment)
Before submitting
documentation guidelines, and
here are tips on formatting docstrings.
Who can review?
Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
members/contributors who may be interested in your PR.