🐣 Please follow me for new updates https://twitter.com/camenduru
🔥 Please join our discord server https://discord.gg/k5BwmmvJJU
🥳 Please join my patreon community https://patreon.com/camenduru

⚠ We cannot use Stable Diffusion with Free Tier on Saturn Cloud anymore. 😭

Tutorial

https://www.youtube.com/watch?v=NJ-uV5GHN8g

Jupyter Notebooks

Run in Saturn Cloud

Jupyter Notebook Info
sdxl_v1.0_webui_saturncloud stabilityai/stable-diffusion-xl-base-1.0
cyberrealistic_v3.2_webui_saturncloud Cyberdelia/cyberrealistic
sd_v1.5_controlnet_webui_saturncloud runwayml/stable-diffusion-v1-5

Jupyter Notebook Without Tunnel (CyberRealistic v3.2) (Thanks to @tcmaps for the info ❤)

%cd /home/jovyan/workspace
%env TF_CPP_MIN_LOG_LEVEL=1

!git clone -b v2.5 https://dagshub.com/camenduru/ui
!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/embed/upscale/resolve/main/4x-UltraSharp.pth -d /home/jovyan/workspace/ui/models/ESRGAN -o 4x-UltraSharp.pth
!git clone https://github.com/camenduru/tunnels /home/jovyan/workspace/ui/extensions/tunnels
!git clone https://github.com/etherealxx/batchlinks-webui /home/jovyan/workspace/ui/extensions/batchlinks-webui
%cd /home/jovyan/workspace/ui
!git reset --hard
!git -C /home/jovyan/workspace/ui/repositories/stable-diffusion-stability-ai reset --hard

!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/ckpt/CyberRealistic/resolve/main/cyberrealistic_v32.safetensors -d /home/jovyan/workspace/ui/models/Stable-diffusion -o cyberrealistic_v32.safetensors

!sed -i -e '''/from modules import launch_utils/a\import os''' /home/jovyan/workspace/ui/launch.py
!sed -i -e '''/        prepare_environment()/a\        os.system\(f\"""sed -i -e ''\"s/dict()))/dict())).cuda()/g\"'' /home/jovyan/workspace/ui/repositories/stable-diffusion-stability-ai/ldm/util.py""")''' /home/jovyan/workspace/ui/launch.py
!sed -i -e 's/\["sd_model_checkpoint"\]/\["sd_model_checkpoint","sd_vae","CLIP_stop_at_last_layers"\]/g' /home/jovyan/workspace/ui/modules/shared.py

%cd /home/jovyan/workspace/ui
!python launch.py --listen --xformers --enable-insecure-extension-access --theme dark --gradio-queue --disable-safe-unpickle --port 8000

Screenshot 2023-08-09 021455 40GB

Advanced Tutorial

Advanced Tutorial

Stable Diffusion Web UI

https://github.com/AUTOMATIC1111/stable-diffusion-webui (Thanks to @AUTOMATIC1111 ❤)

Documentation

https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki

Special Thanks

Thanks to @nagikoru for the suggestion ❤