Stable Diffusion web UI is a great technique to generate a wide range of images. It is based on the Stable Diffusion model, a sort of generative adversarial network (GAN) that has been proven to generate high-quality photos.
Table of Contents
Stable Diffusion web UI
The Stable Diffusion web UI is easy to use. Simply provide a text prompt, and the model will generate an image that matches the prompt. You can also use the web UI to generate images from existing images.
To use the Stable Diffusion web UI, first go to the website and create an account. Once you have created an account, you can start generating images.

Click the “Generate Image” button and enter your text prompt in the text field to produce an image from a text prompt. You may also put a text prompt in the “Negative Prompt” area to prohibit the picture from creating certain features.
After entering your instructions, click the “Generate” button. The model will then produce and display a picture on the screen.
You may also produce pictures from existing ones using the stable diffusion web UI. To do so, click the “Upload Image” option and browse to a file on your computer. After that, the model will create a new picture that is comparable to the one you submitted.
Required Dependencies
- Python 3.10.6 and Git:
- Windows: download and run installers for Python 3.10.6 (webpage, exe, or win7 version) and git (webpage)
- Linux (Debian-based):
sudo apt install wget git python3 python3-venv
- Linux (Red Hat-based):
sudo dnf install wget git python3
- Linux (Arch-based):
sudo pacman -S wget git python3
- Code from this repository:
- preferred way: using git:
git clone
- preferred way: using git:
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git.
- This way is referred because it lets you update by just running
git pull
. - Those commands can be used from command line window that opens after you right click in Explorer and select “Git Bash here”.
- alternative way: use the “Code” (green button) -> “Download ZIP” option on the main page of the repo.
- You still need to install git even if you choose this.
- To update, you’ll have to download zip again and replace files.
Installation on Windows
- Download and extract the
sd.webui.zip
file from here. - Double click the
update.bat
script to update web UI to the latest version, wait till finish then close the window. - To launch the web UI, double-click the
run.bat
script; the initial launch will download a huge number of files. After everything has been downloaded and installed properly, you should see the message “Running on local URL
:http://127.0.0.1:7860
” and clicking on the link will take you to the web UI interface.
Installation on Linux
- Installation on Linux
# Debian-based:
sudo apt install wget git python3 python3-venv
# Red Hat-based:
sudo dnf install wget git python3
# Arch-based:
sudo pacman -S wget git python3
- Navigate to the directory you would like the webui to be installed and execute the following command:
bash <(wget -qO- https://raw.githubusercontent.com/AUTOMATIC1111/stable-diffusion-webui/master/webui.sh)
- Run
webui.sh
. - Check
webui-user.sh
for options.
Features of a stable diffusion web UI
Feature | Description |
---|---|
Prompt | A text prompt that is used to generate the image. |
Negative prompt | A text prompt that is used to prevent the image from generating certain features. |
Sampling steps | the number of steps to use when generating the image. |
Sampling method | the method used to sample the image. |
Width | The width of the generated image. |
Height | The height of the generated image. |
Restore faces | Whether to restore faces in the generated image. |
Tiling | Whether to tile the generated image. |
Highres | Whether or not to generate a high-resolution image. |
FirstPass width | the width of the first pass image. |
FirstPass height | the height of the first pass image. |
Denoising strength | the strength of the denoising algorithm. |
Batch count | The number of batches to employ while generating the image. |
Batch size | The size of each batch. |
CFG Scale | The CFG network’s scale factor. |
Seed | The image was generated using a seed. |
Variation seed | The seed that was utilized to generate variety in the image. |
Variation strength | the strength of the variation algorithm. |
Resize seed from width | The width of the image to which the seed should be resized. |
Resize seed from height | The height of the image to which the seed should be resized. |
Script | A script that is run after an image has been generated. |
Save | Whether to save the generated image. |
Send to img2img | Whether the generated image should be sent to the img2img model. |
Send to in-paint. | Whether the generated picture should be sent to the in-paint model. |
Send to extras | Whether the generated image should be sent to the additional model. |
Make Zip when Save? | When saving the generated image, you can choose whether or not to create a ZIP file. |
Also Read Auto-Photoshop-Stable Diffusion-Plugin: A New Way to Create AI-Generated Images in Photoshop.
This article is to help you learn about stable diffusion web UI. We trust that it has been helpful to you. Please feel free to share your thoughts and feedback in the comment section below.