CoolFace
Apppublic

carloscar/stable-diffusion-webui-controlnet-docker

sourceHugging Faceupdated 4y agoView on Hugging Face
31likes
README.md109 linesDownload Raw Back to root
1---2title: Stable Diffusion WebUI ControlNet3emoji: 🦄4colorFrom: pink5colorTo: yellow6sdk: docker7app_port: 78608pinned: true9tags:10  - stable-diffusion11  - stable-diffusion-diffusers12  - text-to-image13models:14  - stabilityai/stable-diffusion-2-115  - runwayml/stable-diffusion-v1-516  - lllyasviel/ControlNet17  - webui/ControlNet-modules-safetensors18  - dreamlike-art/dreamlike-diffusion-1.019  - Anashel/rpg20  - Lykon/DreamShaper21---22 23## Stable Diffusion WebUI + ControlNet24 25Private 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]([https://github.com/AUTOMATIC1111/stable-diffusion-webui]), including the [ControlNet WebUI extension](https://github.com/Mikubill/sd-webui-controlnet). ControlNet models primarily works best with the SD 1.5 models at the time of writing.26 27Shared UI space would usually load with a model based on Stable Diffusion 1.5.28 29🐳 🦄 Builds a Docker image to be run as a Space at [Hugging Face](https://huggingface.co/) using A10G or T4 hardware.30 31### Setup on Hugging Face32 331. Duplicate this space to your Hugging Face account or clone this repo to your account.342. Under the *"Settings"* tab of your space you can choose which hardware for your space, that you will also be billed for.353. The [`on_start.sh`](./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.36 37---38 39### Relevant links for more information40 41#### Repo for this builder42 43This repo, containing the `Dockerfile`, etc. for building the image can originally be found on both [`🤗 Hugging Face ➔ carloscar/stable-diffusion-webui-controlnet-docker`](https://huggingface.co/spaces/carloscar/stable-diffusion-webui-controlnet-docker) and [`🐙 GitHub ➔ kalaspuff/stable-diffusion-webui-controlnet-docker`](https://github.com/kalaspuff/stable-diffusion-webui-controlnet-docker).44 45#### Stable Diffusion Web UI46 47* Source Code: [https://github.com/AUTOMATIC1111/stable-diffusion-webui](https://github.com/AUTOMATIC1111/stable-diffusion-webui)48* Documentation: [https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki](https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki)49 50#### WebUI extension for ControlNet51 52* Source Code: [https://github.com/Mikubill/sd-webui-controlnet](https://github.com/Mikubill/sd-webui-controlnet)53 54#### ControlNet models55 56* Trained models: [https://github.com/lllyasviel/ControlNet](https://github.com/lllyasviel/ControlNet)57* Pre-extracted models: [https://huggingface.co/webui/ControlNet-modules-safetensors/tree/main](https://huggingface.co/webui/ControlNet-modules-safetensors/tree/main)58 59#### Licenses for using Stable Diffusion models and ControlNet models60 61* [https://huggingface.co/stabilityai/stable-diffusion-2/blob/main/LICENSE-MODEL](https://huggingface.co/stabilityai/stable-diffusion-2/blob/main/LICENSE-MODEL)62* [https://huggingface.co/spaces/CompVis/stable-diffusion-license](https://huggingface.co/spaces/CompVis/stable-diffusion-license)63* [https://github.com/lllyasviel/ControlNet/blob/main/LICENSE](https://github.com/lllyasviel/ControlNet/blob/main/LICENSE)64 65### Enable additional models (checkpoints, LoRA, VAE, etc.)66 67Enable the models you want to use on the bottom of the [`on_start.sh`](./on_start.sh) file. This is also the place to add any additional models you may want to install when starting your space.68 69```bash70## Checkpoint · Example:71download-model --checkpoint "FILENAME" "URL"72 73## LORA (low-rank adaptation) · Example:74download-model --lora "FILENAME" "URL"75 76## VAE (variational autoencoder) · Example:77download-model --vae "FILENAME" "URL"78```79 80#### Some examples of additional (optional) models81 82Some models such as additional checkpoints, VAE, LoRA, etc. may already be present in the [`on_start.sh`](./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`.83 84* [Checkpoint · Dreamlike Diffusion 1.0](https://huggingface.co/dreamlike-art/dreamlike-diffusion-1.0) ([license](https://huggingface.co/dreamlike-art/dreamlike-diffusion-1.0/blob/main/LICENSE.md))85* [Checkpoint · Dreamshaper 3.31](https://huggingface.co/Lykon/DreamShaper)86* [Checkpoint · The Ally's Mix III: Revolutions](https://civitai.com/models/10752/the-allys-mix-iii-revolutions)87* [Checkpoint · Deliberate v2](https://civitai.com/models/4823/deliberate)88* [Checkpoint · dalcefo_painting](https://civitai.com/models/5396/dalcefopainting)89* [Checkpoint · RPG v4](https://huggingface.co/Anashel/rpg)90* [Checkpoint · A to Zovya RPG Artist's Tools (1.5 & 2.1)](https://civitai.com/models/8124/a-to-zovya-rpg-artists-tools-15-and-21)91* [LoRA · epi_noiseoffset v2](https://civitai.com/models/13941/epinoiseoffset)92* [VAE · sd-vae-ft-mse-original](https://huggingface.co/stabilityai/sd-vae-ft-mse-original)93* [Embedding · bad_prompt_version2](https://huggingface.co/datasets/Nerfgun3/bad_prompt)94* See [https://huggingface.co/models?filter=stable-diffusion](https://huggingface.co/models?filter=stable-diffusion) and [https://civitai.com/](https://civitai.com/) for more.95 96Visit the individual model pages for more information on the models and their licenses.97 98### Extensions99 100* [GitHub ➔ deforum-art/deforum-for-automatic1111-webui](https://github.com/deforum-art/deforum-for-automatic1111-webui)101* [GitHub ➔ yfszzx/stable-diffusion-webui-images-browser](https://github.com/yfszzx/stable-diffusion-webui-images-browser)102* [GitHub ➔ Vetchems/sd-civitai-browser](https://github.com/Vetchems/sd-civitai-browser)103* [GitHub ➔ kohya-ss/sd-webui-additional-networks](https://github.com/kohya-ss/sd-webui-additional-networks)104* [GitHub ➔ Mikubill/sd-webui-controlnet](https://github.com/Mikubill/sd-webui-controlnet)105 106### Additional acknowledgements107 108A lot of inspiration for this Docker build comes from [GitHub ➔ camenduru](https://github.com/camenduru). Amazing things! 🙏109