1 Click Installer for Automatic1111 SD Web UI, SDXL, ControlNet, All ControlNet Models, TensorRT (RTX Accelerator) For RunPod / Any Linux System (Patreon)
Downloads
Content
Join discord and tell me your discord username to get a special rank : SECourses Discord
6 June 2024 Update
Updated to Torch 2.3.1 and xFormers 26
Working flawlessly with huge speed
New IP Adapter SDXL model added ControlNet downloads to be able to do style transfer
TensorRT repo updated and works perfect with LoRAs as well
If you get AttributeError: 'NoneType' object has no attribute 'lowvram' error when changing model, try several times changing and it gets automatically fixed
This error is latest Automatic1111 error
install_latest_auto_1111 .sh and file will install the latest versions of the following extensions
sd-webui-reactor (Reactor), adetailer (After Detailer), sd-webui-controlnet (ControlNet) and Deforum
Tutorial for how to run scripts : https://youtu.be/8Qf4x3-DFf4
How to download models from CivitAI or Hugging Face or upload them full tutorial : https://youtu.be/X5WVZ0NMaTg
If you are going to use TensorRT first go to Settings, User Interface, Quicksettings list, enable sd_net and reload UI before generating TensorRT model : sd_unet_enable_TensorRT.png
TensorRT example config : tensor_RT_settings.png
Latest installer files : runpod_auto1111_v19.zip
Download the zip file and extract into any folder.
These scripts are prepared for RunPod but they would work on any Linux system. It can be local or Cloud. Just change the paths accurately.
The install commands and full instructions are provided at the runpod_instructions_READ .txt inside the attached zip file.
If you register RunPod with my link I appreicate : https://runpod.io?ref=1aka98lq
Login your pod you can use this link : https://runpod.io?ref=1aka98lq
If you don't know how to setup a Pod here written tutorial :
Full ControlNet Tutorial : https://youtu.be/3E5fhFQUVLo
How To Install On RunPod
Select your GPU. I think best price / performance is RTX 3090
Select RunPod template runpod/stable-diffusion:web-ui-10.2.1
You can use either community cloud, private or network storage
Customize deployment
Make container disk 20 GB and Make volume disk 150 GB - or any size you want according to your needs
Wait until you can click Connect and Connect to Jupyter Lab [Port 8888]
Enter inside stable-diffusion-webui folder
Upload relauncher.py and overwrite file. Then restart your pod. This is mandatory only 1 time.
This is important to kill auto started Automatic1111 Web UI instance and start our own from terminal.
Then upload everything into workspace folder.
If you want to install everything and download everything run below command
Install all command is suggest one
export HF_HOME="/workspace"
cd /workspace
chmod +x install_all.sh
./install_all.sh
After installation to re-run the web UI execute below command
fuser -k 3000/tcp
cd /workspace/stable-diffusion-webui
python relauncher.py
If you use above command and install all, you don't need any of below ones since all will be installed.
Now we have different installers
The first one is install_latest_auto_1111.sh
This file will update automatic1111 to the latest version and its controlnet extension to latest version including insightface library - but will not download controlnet models yet
Then it will automatically start latest version of automatic1111 SD web ui with latest version ControlNet and the following extensions
sd-webui-reactor (Reactor), adetailer (After Detailer), sd-webui-controlnet (ControlNet) and Deforum
This file will download 275 Amazing Fooocus styles csv that you can use in Automatic1111 SD Web UI
To run it copy paste below command
export HF_HOME="/workspace"
cd /workspace
chmod +x install_latest_auto_1111.sh
./install_latest_auto_1111.sh
If you want to install only TensorRT Extension
Execute below installer script command
It will update Automatic1111 to the latest version and install TensorRT repo that supports LoRAs as well : https://github.com/Yomisana/Stable-Diffusion-WebUI-TensorRT
TensorRT not yet supporting ControlNet but they have a development branch : https://github.com/NVIDIA/Stable-Diffusion-WebUI-TensorRT/tree/controlnet_v2
This file will download 275 Amazing Fooocus styles csv that you can use in Automatic1111 SD Web UI
The tutorial of TensorRT here : https://youtu.be/kvxX6NrPtEk
And another tutorial of TensorRT : https://youtu.be/eKnMVXVjVoU
Script to execute for install
export HF_HOME="/workspace"
cd /workspace
chmod +x install_tensorRT.sh
./install_tensorRT.sh
Let's say you want to download all controlnet models
Then you need to run below command
export HF_HOME="/workspace"
cd /workspace
python control_net_downloader.py
python download_ip_adapter_and_instantid.py
This above command will download huge amount of models 40GB+
control_net_downloader.py file will download all of the available ControlNet models that I know total number of 52.
The downloader will download into the accurate folder with accurate naming.
If you find new ones let me know
python download_ip_adapter_and_instantid.py will download ip-adapter-faceid-plusv2_sd15_lora, ip-adapter-faceid-plusv2_sdxl_lora, ip-adapter_instant_id_sdxl and control_instant_id_sdxl into the accurate folders with accurate naming. Accurate naming is crucial.
I will hopefully update scripts if there be new model releases.
Using ip-adapter-faceid and instant_id_sdxl are not straight forward.
Please read the following threads:
Ip Adapter Face ID of ControlNet : https://github.com/Mikubill/sd-webui-controlnet/discussions/2442
InstantID of ControlNet : https://github.com/Mikubill/sd-webui-controlnet/discussions/2589
However I find that, these both models are working very poor compared to my direct implementation of their pipelines into a single Gradio app with 1 click installer.
You can download them from
1 Click Automatic Installer & A Very Advanced GUI For InstantId For Windows, RunPod, Linux & Kaggle Notebook:
IP-Adapter-FaceID-PlusV2 - 0 Shot Face Transfer - Auto Installer & Gradio App
Both of my apps has instructions and installers for both Windows, RunPod (Linux) & Kaggle notebooks
after this operation i suggest you to restart your web ui with following command
fuser -k 3000/tcp
cd /workspace/stable-diffusion-webui
python relauncher.py
You can also run download_models.py file
This file will download the following models
Realistic_Vision_V6 (SD 1.5 based model - one of the very best)
sdxl-vae-fp16-fix - fixed SDXL VAE in FP16 so you can run in Automatic1111 in FP16
RealVisXL_V4.0 - one of the most realistic SDXL model - training works fine
Hyper_Realism_V3 - which is the best SD 1.5 realism model that I find
To download any custom model you want, execute below command
cd /workspace/stable-diffusion-webui/models/Stable-diffusion
Then use below format
wget "download_link_of_model"