title: Stable Diffusion WebUI ControlNet emoji: 🦄 colorFrom: pink colorTo: yellow sdk: docker app_port: 7860 pinned: true tags:
Private image builds with both with Stable Diffusion 2.1 models and Stable Diffusion 1.5 models and bundles several popular extensions to AUTOMATIC1111's WebUI, including the ControlNet WebUI extension. ControlNet models primarily works best with the SD 1.5 models at the time of writing.
Shared UI space would usually load with a model based on Stable Diffusion 1.5.
🐳 🦄 Builds a Docker image to be run as a Space at Hugging Face using A10G or T4 hardware.
on_start.sh
file will be run when the container is started, right before the WebUI is initiated. This is where you can install any additional extensions or models you may need. Make sure the env value IS_SHARED_UI
is set to 0
or is unset for your space, or else only the lightweight model installation will run and some features will be disabled.This repo, containing the Dockerfile
, etc. for building the image can originally be found on both 🤗 Hugging Face ➔ carloscar/stable-diffusion-webui-controlnet-docker
and 🐙 GitHub ➔ kalaspuff/stable-diffusion-webui-controlnet-docker
.
Enable the models you want to use on the bottom of the on_start.sh
file. This is also the place to add any additional models you may want to install when starting your space.
## Checkpoint · Example:
download-model --checkpoint "FILENAME" "URL"
## LORA (low-rank adaptation) · Example:
download-model --lora "FILENAME" "URL"
## VAE (variational autoencoder) · Example:
download-model --vae "FILENAME" "URL"
Some models such as additional checkpoints, VAE, LoRA, etc. may already be present in the on_start.sh
file. You can enable them by removing the #
in front of their respective line or disable them by removing the line or adding a leading #
before download-model
.
Visit the individual model pages for more information on the models and their licenses.
A lot of inspiration for this Docker build comes from GitHub ➔ camenduru. Amazing things! 🙏