--- title: XenoEngine SD Webui emoji: ๐Ÿ‘€ colorFrom: indigo colorTo: purple sdk: docker app_port: 7860 pinned: true tags: - stable-diffusion - stable-diffusion-diffusers - text-to-image duplicated_from: carloscar/stable-diffusion-webui-controlnet-docker --- This is a modified version of the Space here: carloscar/stable-diffusion-webui-controlnet-docker While it should still work fine with GPU upgrades (though untested), it has been optimized and set up with usage for a "no GPU" environment. I've removed a few extensions which won't work without a GPU and added a few more that help either performance or output quality in an environment without a GPU. ### Setup on Hugging Face 1. Duplicate this space to your Hugging Face account or clone this repo to your account. 2. 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. --- ### Relevant links for more information #### Repo for this builder This 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). #### Stable Diffusion Web UI * Source Code: [https://github.com/AUTOMATIC1111/stable-diffusion-webui](https://github.com/AUTOMATIC1111/stable-diffusion-webui) * Documentation: [https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki](https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki) #### WebUI extension for ControlNet * Source Code: [https://github.com/Mikubill/sd-webui-controlnet](https://github.com/Mikubill/sd-webui-controlnet) #### ControlNet models * Trained models: [https://github.com/lllyasviel/ControlNet](https://github.com/lllyasviel/ControlNet) * Pre-extracted models: [https://huggingface.co./webui/ControlNet-modules-safetensors/tree/main](https://huggingface.co./webui/ControlNet-modules-safetensors/tree/main) #### Licenses for using Stable Diffusion models and ControlNet models * [https://huggingface.co./stabilityai/stable-diffusion-2/blob/main/LICENSE-MODEL](https://huggingface.co./stabilityai/stable-diffusion-2/blob/main/LICENSE-MODEL) * [https://huggingface.co./spaces/CompVis/stable-diffusion-license](https://huggingface.co./spaces/CompVis/stable-diffusion-license) * [https://github.com/lllyasviel/ControlNet/blob/main/LICENSE](https://github.com/lllyasviel/ControlNet/blob/main/LICENSE) ### Enable additional models (checkpoints, LoRA, VAE, etc.) Enable 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. ```bash ## 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 examples of additional (optional) models Some 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`. * [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)) * [Checkpoint ยท Dreamshaper 3.31](https://huggingface.co./Lykon/DreamShaper) * [Checkpoint ยท The Ally's Mix III: Revolutions](https://civitai.com/models/10752/the-allys-mix-iii-revolutions) * [Checkpoint ยท Deliberate v2](https://civitai.com/models/4823/deliberate) * [Checkpoint ยท dalcefo_painting](https://civitai.com/models/5396/dalcefopainting) * [Checkpoint ยท RPG v4](https://huggingface.co./Anashel/rpg) * [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) * [LoRA ยท epi_noiseoffset v2](https://civitai.com/models/13941/epinoiseoffset) * [VAE ยท sd-vae-ft-mse-original](https://huggingface.co./stabilityai/sd-vae-ft-mse-original) * [Embedding ยท bad_prompt_version2](https://huggingface.co./datasets/Nerfgun3/bad_prompt) * See [https://huggingface.co./models?filter=stable-diffusion](https://huggingface.co./models?filter=stable-diffusion) and [https://civitai.com/](https://civitai.com/) for more. Visit the individual model pages for more information on the models and their licenses. ### Additional acknowledgements A lot of inspiration for this Docker build comes from [GitHub โž” camenduru](https://github.com/camenduru). Amazing things! ๐Ÿ™