Uminosachi / sd-webui-inpaint-anything

Inpaint Anything extension performs stable diffusion inpainting on a browser UI using masks from Segment Anything.
Apache License 2.0
1.11k stars 101 forks source link

Unable to download or use any inpainting model #135

Open legolaswang opened 7 months ago

legolaswang commented 7 months ago

I'm able to download all segment model automatically without problem. However, none of the inpainting model is working and it's not downloaded automatically probably due to network issue. Here's what I did:

  1. I went to settings and disabled 'Run Inpainting on offline network' to ensure inpainting model should be able to download automatically.

  2. I double checked my network connection, and it seems fine.

  3. I'm using windows 10, I tried to find caches under C:\Users\username\.cache\huggingface\hub, however, there's no huggingface folder under .cache C:\Users\username\.cache.

I still keep getting following error:

"An error happened while trying to locate the file on the Hub and we cannot find the requested files in the local cache."

And I tried to follow the instructions below, installed python on windows, but I'm not really sure how to do it. image

Please help.

Uminosachi commented 7 months ago

In the 'Inpainting' tab, select the 'Inpainting Model ID' and click 'Run Inpainting'. If the model does not exist locally, the download will start automatically.

legolaswang commented 7 months ago

@Uminosachi Thank you for replying. WebUI attempted to download, however, I keep getting following error for ALL kind of model. image

I checked the settings, and confirmed that 'Run Inpainting on offline network' is disabled().

image

Uminosachi commented 7 months ago

There is also a possibility that the Python package is broken. To reinstall the packages from scratch, delete the 'venv' folder under the stable-diffusion-webui folder and then launch webui.bat.

Uminosachi commented 6 months ago

Please try logging in to Hugging Face.

In the command line within the stable-diffusion-webui folder, run:

.\venv\Scripts\activate
huggingface-cli login
deactivate

For Linux:

source venv/bin/activate
huggingface-cli login
deactivate