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

ValueError: Incorrect format used for the image. Should be a URL linking to an image, a local path, or a PIL image. #14

Open
bitoChan opened this issue Feb 22, 2024 · 5 comments

Comments

@bitoChan
Copy link

How to fix :"ValueError: Incorrect format used for the image"
2024-02-22_11-51-31

@bitoChan
Copy link
Author

I successfully fixed the error and ran

@wingjoezhou
Copy link

same issue, how to fix it, thank you.

@multics
Copy link

multics commented Mar 2, 2024

really useless comment.

@bitoChan
Copy link
Author

bitoChan commented Mar 3, 2024

same issue, how to fix it, thank you.

Please follow the link, modify main.py and try to see if it works.
bitoChan/real-time-canvas@1b181cd

@multics
Copy link

multics commented Mar 3, 2024

find this file:
lib/python3.11/site-packages/diffusers/utils/loading_utils.py

comment out:

    else:
        raise ValueError(
            "Incorrect format used for the image. Should be a URL linking to an image, a local path, or a PIL image."
        )

It should work.

I am using conda to create virtual environment, and python 3.11.

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

No branches or pull requests

3 participants