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.08k stars 99 forks source link

How can I change the Inpainting Model ID in Google Colab (add a custom model)? #91

Open SeveGoku opened 11 months ago

Uminosachi commented 11 months ago

As mentioned in the README, by caching the model in advance, the cached model's ID will be displayed under 'Inpainting Model ID'. Additionally, if you place an inpainting model in the safetensors format within the 'models' directory of 'stable-diffusion-webui', it will be recognized and displayed under 'Inpainting Model ID webui' in another tab.

Google Colab example:

%pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118
%pip install diffusers transformers accelerate
from diffusers import StableDiffusionInpaintPipeline

pipe = StableDiffusionInpaintPipeline.from_pretrained("Uminosachi/dreamshaper_5-inpainting")
!git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
%cd stable-diffusion-webui/extensions
!git clone https://github.com/Uminosachi/sd-webui-inpaint-anything.git
%cd ..
!python launch.py --share --xformers --enable-insecure-extension-access
EKI-INDRADI commented 11 months ago

pls update for simple change model id like models from civit ai