sail-sg / EditAnything

Edit anything in images powered by segment-anything, ControlNet, StableDiffusion, etc. (ACM MM)
Apache License 2.0
3.24k stars 184 forks source link

Model error, cannot find the diffusion_pytorch.bin #9

Closed 123-rj closed 1 year ago

123-rj commented 1 year ago

Executing the sam2edit.py and the two other files keep returning this error:

OSError: shgao/edit-anything-v0-1-1 does not appear to have a file named diffusion_pytorch_model.bin

Specifically, the error says:

EntryNotFoundError: 404 Client Error. (Request ID: Root=1-64366123-5a1da902152616ed1d113444)

Entry Not Found for url: https://huggingface.co/shgao/edit-anything-v0-1-1/resolve/main/diffusion_pytorch_model.bin.

Downloading the .ckpt file from the huggingface also doesn't seem to solve the error. Am I missing something here?

gasvn commented 1 year ago

try pip install safetensors

123-rj commented 1 year ago

try pip install safetensors

Wow, such a simple solution hahaha. Problem solved!

gasvn commented 1 year ago

Great!

amaigo commented 1 year ago

try huggingface-cli login