We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30e5e81 commit 1824d00Copy full SHA for 1824d00
1 file changed
src/diffusers/utils/loading_utils.py
@@ -32,6 +32,8 @@ def load_image(
32
raise ValueError(
33
f"Incorrect path or URL. URLs must start with `http://` or `https://`, and {image} is not a valid path."
34
)
35
+ elif isinstance(image, PIL.Image.Image):
36
+ image = image
37
else:
38
39
"Incorrect format used for the image. Should be a URL linking to an image, a local path, or a PIL image."
0 commit comments