stable-diffusion-webui
Stable Diffusion Web UI docker build
Science Score: 26.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (11.9%) to scientific vocabulary
Repository
Stable Diffusion Web UI docker build
Basic Info
Statistics
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
- Releases: 0
Metadata Files
README.md
Stable Diffusion web UI docker build
A web interface for Stable Diffusion. Build based on Ubuntu 22.04, Cuda 12.6.2 & Python 3.10 using latest release from https://github.com/SonycProduction/stable-diffusion-webui.

Features
- Original txt2img and img2img modes
- One click install and run script (but you still must install python and git)
- Outpainting
- Inpainting
- Color Sketch
- Prompt Matrix
- Stable Diffusion Upscale
- Loopback, run img2img processing multiple times
- X/Y/Z plot, a way to draw a 3 dimensional plot of images with different parameters
- Textual Inversion
- and many more...
Installation and Running
Quick start (assuming docker basic setup exists, refer to prerequisites for any issues)
curl -sSL https://raw.githubusercontent.com/SonycProduction/stable-diffusion-webui/refs/heads/master/docker-stable-diffusion-webui.sh | bash
Install stable-diffusion-webui in docker. Files are created in current location in folder stable-diffusion-webui
refer to prerequisite if any issues are encountered
Prerequisite:
1. Docker
Add Docker's apt repository. ```
Add Docker's official GPG key:
sudo apt-get update sudo apt-get install ca-certificates curl sudo install -m 0755 -d /etc/apt/keyrings sudo curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc sudo chmod a+r /etc/apt/keyrings/docker.asc
Add the repository to Apt sources:
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/debian \
$(. /etc/os-release && echo "$VERSIONCODENAME") stable" | \
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
``
If issues occur, you may need to substitute the part$VERSIONCODENAMEof this command with the codename of the corresponding Debian release, such asjammyorbookworm`.
Install Docker (and related packages)
sudo apt install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
Test Docker Installation
sudo docker run hello-world
2. Docker Compose (Optional - Recommended)
sudo apt install docker-compose
docker compose command should already be bundled with Docker, this installs commonly used docker-compose
3. Nvidia Container Toolkit
Add Nvidia Container toolkit repository
curl -fsSL https://nvidia.github.io/libnvidia-container/gpgkey | sudo gpg --dearmor -o /usr/share/keyrings/nvidia-container-toolkit-keyring.gpg \
&& curl -s -L https://nvidia.github.io/libnvidia-container/stable/deb/nvidia-container-toolkit.list | \
sed 's#deb https://#deb [signed-by=/usr/share/keyrings/nvidia-container-toolkit-keyring.gpg] https://#g' | \
sudo tee /etc/apt/sources.list.d/nvidia-container-toolkit.list
Update packages from Nvidia container Toolkit repository
sudo apt update
Install Nvidia Container Toolkit
sudo apt install nvidia-container-toolkit
Configure for use with Docker
sudo nvidia-ctk runtime configure --runtime=docker
sudo systemctl restart docker
Test with Docker
sudo docker run --rm --runtime=nvidia --gpus all nvidia/cuda:12.6.0-base-ubuntu22.04 nvidia-smi
Automatic1111 (Stable Diffusion UI) Installation on Docker:
Clone this repo
git clone https://github.com/SonycProduction/stable-diffusion-webui.git
Navigate into the cloned directory
cd stable-diffusion-webui
Option 1 (Build and deploy in a single command - Recommended)
Build and deploy the container in a single command. WebUI is available on port 7860. Required folders are mapped in current location.
sudo docker compose up --build
docker-compose.yml file can be modified to change folder locations and access port for webui. Stable Diffusion WebUI starts with following commandline arguments enabled: --listen --api --medvram --xformers --enable-insecure-extension-access --allow-code --administrator
You can change the commandline arguments (e.g. --lowvram --no-half --precision full) depending on your needs.
Option 2 (Manually building image):
1. Build image using Dockerfile
sudo docker build -t <image_name:tag> .
<image_name:tag> change it to user's image name.
2. Run the image built in previous step
sudo docker run -d \
--name stable-diffusion-webui \
--restart unless-stopped \
-p 7860:7860 \
-v ./models:/app/models \
-v ./extensions:/app/extensions \
-v ./embeddings:/app/embeddings \
-v ./outputs:/app/outputs \
--runtime nvidia \
--gpus all \
--deploy-resources-reservations-devices 'driver=nvidia, count=all, capabilities=[gpu]' \
<image_name:tag>
<image_name:tag> needs to be replaced the one defined in previous step.
This wil start the container and map the required volumes as folders in current location.
It’s done 🎊🎉👏 Go to browser, and type 127.0.0.1:7860 to access WebUI.
Owner
- Login: SonycProduction
- Kind: user
- Repositories: 1
- Profile: https://github.com/SonycProduction
GitHub Events
Total
- Delete event: 1
- Push event: 14
- Create event: 3
Last Year
- Delete event: 1
- Push event: 14
- Create event: 3
Dependencies
- nvidia/cuda 12.6.2-base-ubuntu22.04 build
- eslint ^8.40.0 development
- pytest * test
- pytest-base-url * test
- pytest-cov * test
- GitPython *
- Pillow *
- accelerate *
- blendmodes *
- clean-fid *
- diskcache *
- einops *
- facexlib *
- fastapi >=0.90.1
- gradio ==3.41.2
- inflection *
- jsonmerge *
- kornia *
- lark *
- numpy *
- omegaconf *
- open-clip-torch *
- piexif *
- pillow-avif-plugin ==1.4.3
- protobuf ==3.20.0
- psutil *
- pytorch_lightning *
- requests *
- resize-right *
- safetensors *
- scikit-image >=0.19
- tomesd *
- torch *
- torchdiffeq *
- torchsde *
- transformers ==4.30.2
- cloudpickle *
- decorator *
- synr ==0.5.0
- tornado *
- GitPython ==3.1.32
- Pillow ==9.5.0
- accelerate ==0.21.0
- blendmodes ==2022
- clean-fid ==0.1.35
- diskcache ==5.6.3
- einops ==0.4.1
- facexlib ==0.3.0
- fastapi ==0.94.0
- gradio ==3.41.2
- httpcore ==0.15
- httpx ==0.24.1
- inflection ==0.5.1
- jsonmerge ==1.8.0
- kornia ==0.6.7
- lark ==1.1.2
- numpy ==1.26.2
- omegaconf ==2.2.3
- open-clip-torch ==2.20.0
- piexif ==1.1.3
- pillow-avif-plugin ==1.4.3
- protobuf ==3.20.0
- psutil ==5.9.5
- pytorch_lightning ==1.9.4
- resize-right ==0.0.2
- safetensors ==0.4.2
- scikit-image ==0.21.0
- setuptools ==69.5.1
- spandrel ==0.3.4
- spandrel-extra-arches ==0.1.1
- tomesd ==0.1.3
- torch *
- torchdiffeq ==0.2.3
- torchsde ==0.2.6
- transformers ==4.30.2