camenduru / stable-diffusion-webui-colab

stable diffusion webui colab
The Unlicense
15.57k stars 2.62k forks source link

📕 How to install latest version and ControlNet to Google Drive #162

Open camenduru opened 1 year ago

camenduru commented 1 year ago

Please select drive from switch branches/tags

Screenshot 2023-02-23 165554

https://www.youtube.com/watch?v=njW64feGMzI

camenduru commented 1 year ago

🚨 Important for 15G Free Google Drive Users:

If you want to use more models, you can download your model into Colab, which has an empty 50GB space.

Download models into /content/models WebUI automaticly will find your models under /content/models and /content/drive/MyDrive/stable-diffusion-webui-colab/stable-diffusion-webui/models/Stable-diffusion

Screenshot 2023-03-20 133516

!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/andite/pastel-mix/resolve/main/pastelmix-fp16.ckpt -d /content/models -o pastelmix-fp16.ckpt
!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/hakurei/waifu-diffusion-v1-4/resolve/main/vae/kl-f8-anime2.ckpt -d /content/models -o pastelmix-fp16.vae.pt

You can also free up more space by deleting the default model in your drive.

Screenshot 2023-02-24 140908

If you don't plan to use ControlNet models, you can also free up space by deleting them. (thanks to twitter@muadoyoki ❤)

Screenshot 2023-02-24 141259

camenduru commented 1 year ago

You can disable extension updates by adding the # character in front of the git -C pull line, like this:

Screenshot_2023-03-03_185902

This means you will not receive extension updates and the startup time will be faster.

camenduru commented 1 year ago

🚨 We can now use two folders for models. The first one is the default /content/drive/MyDrive/stable-diffusion-webui-colab/stable-diffusion-webui/models/Stable-diffusion The second one is /content/models

you can add new models like this with Batchlinks Downloader or Colab Run Command under Hugging Face tab

aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/mekabu/MagicalMix_v2/resolve/main/MagicalMix_v2.safetensors -d /content/models -o MagicalMix_v2.safetensors