Stable Diffusion web UI v1.9.0 installation instructions (AUTOMATIC1111 version)
- Recommended System Requirements
- Installation Process
- Confirmation of Stable Diffusion Web UI operation
- How to exit Stable Diffusion web UI
- How to re-run the Stable Diffusion web UI
- Uninstall Stable Diffusion web UI
- How to backup Stable Diffusion web UI
- How to update Stable Diffusion web UI
- Troubleshooting for Stable Diffusion web UI
- Conclusion
In AI illustration production, the choice of an efficient and stable tool is very important. Among them, 🔗Stable Diffusion web UI (AUTOMATIC1111) has attracted much attention because it can be used in a local environment and is free. This article details how to install Stable Diffusion web UI; if you are interested in taking a new step forward in AI illustration production, please read on.
Recommended System Requirements
Before installing Stable Diffusion web UI (AUTOMATIC1111), please make sure that your PC meets the system requirements. Otherwise, you may not be able to fully enjoy the image generation after installation.
Required Specs | Note | |
---|---|---|
OS | Windows 10/11+ 64bit | |
CPU | Intel Core-i Series・AMD Ryzen Series | |
RAM | 16GB or more | |
GPU | VRAM 8GB or more 12 GB or more for LoRA Train | NVIDIA recommended Internal GPUs are not available |
About AMD GPUs
Stable Diffusion web UI (AUTOMATIC1111) does not officially support AMD GPUs. may be installed if you can understand the 🔗Unofficial Installation Guide
Installation Process
To get Stable Diffusion Web UI working on your own PC, you need to do the following three things
This article will show you the official recommended installation method, but if you have a Python 3.11 or higher environment, you should be careful. According to the official recommendation, torch is not supported, so if you already have a Python 3.11 or higher environment, you will need to take measures such as removing and lowering the Python version or installing the portal versions of Python and Git to maintain your environment. This article first introduces the official recommended installation method.
Install Python
Python 3.10.6
is required to use the AUTOMATIC1111 Stable Diffusion web UI.
Download Python 3.10.6:
From 🔗Official Python website Download 🔗64-bit Windows installer (Direct Link)
Install Python 3.10.6:
When the installer dialog appears, check the Add Python 3.10 to PATH
checkbox and proceed with the installation from “Install Now”. (No additional configuration changes are required.)
Launching Command Prompts:
Press the Windows key and type cmd
to find the “command prompt”.
Open a command prompt. If you have never used a command prompt before, this black screen may look difficult, but once you get used to it, it is not that difficult, so do your best to get used to it.🧙♂️🧙🧙♀️🧙🧙♂️
Confirm python installation:
Type python
and press the Enter key; if Python has been successfully installed, Python 3.10.6 will be displayed as shown in the picture below.
If Python is not installed properly, resolve this issue before proceeding to the next step.
If you feel that Python is not installed correctly, please try the following steps:
- Reboot the PC.
- Uninstall the currently installed Python and reinstall it from the downloaded files.
If following these steps does not resolve the problem, a detailed diagnosis of the system may be required. In this case, we recommend that you seek professional assistance.
Install Git
Git is a code management system, and It is required to install and update the Stable Diffusion web UI.
Click Download on 🔗the official website to download the installer.
Double-click the downloaded installer to run it. Then follow the on-screen instructions and click the “Next” button to proceed, and press the “Install” button on the final screen to complete the installation. (No additional configuration changes are required here either.)
Install Stable Diffusion web UI
To install Stable Diffusion Web UI, follow these steps
Preparation of clone repository:
Open a command prompt and use the following command to navigate to your home folder (e.g., C:\Users\Your User Name). You may set it to any location of your choice.
cd %userprofile%
Clone the repository:
Next, run the following command to clone the Stable Diffusion Web UI repository. When the clone is finished, close the command prompt with x
of the window.
git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
Download at first startup:
Open the cloned folder in File Explorer and double-click webui-user.bat
to start Stable Diffusion web UI. The first time you launch it, you will need to download a large file, approximately 10 GB, which may take 5-10 minutes depending on your environment.
Confirmation of startup:
Once all files have been successfully downloaded and installed, your browser will launch automatically. If the browser does not open, you will see Running on local URL: https://127.0.0.1:7860
in the command prompt, so either hold down the Ctrl key and click on the link displayed, or go directly to the URL specified [🔗https://127.0.0.1:7860] to launch the Stable Diffusion Web UI.
If a screen like this appears, installation is complete. 🎉🎉🥳🥳🎉🎉
*The captured screen is in dark mode, but it may be displayed in light mode depending on your environment.
Confirmation of Stable Diffusion Web UI operation
v1-5-pruned-emaonly.safetensors
.
a cat
in the prompt input field on screen (2).
Did you successfully get an image of the cat? 😸😸😸 This completes the operation check of Stable Diffusion web UI.
If you would like to learn more about how to operate Stable Diffusion web UI, please refer to the following article for a more detailed explanation.
How to exit Stable Diffusion web UI
The Stable Diffusion web UI will continue to run in the background after you close your browser. To exit the process, open a command prompt, hold down the Ctrl key and press C
when prompted to exit, type Y
and press Enter.
How to re-run the Stable Diffusion web UI
To run Stable Diffusion web UI again, first open the stable-diffusion-webui
folder in File Explorer. Next, double-click on the webui-user.bat
file, and after a few moments, the browser will start. If the browser does not start automatically as it did the first time, click on the address Running on local URL: http://127.0.0.1:7860
or type the specified URL into your browser to access it.
Uninstall Stable Diffusion web UI
Delete the entire Stable Diffusion web UI
folder.
Note: When deleting a folder, model data and other data in the folder will also be deleted, so it is recommended to make a backup.
How to backup Stable Diffusion web UI
Copy the stable-diffusion-webui
folder as is.
Back up at least the following folders to bring the current state to the new environment.
- embeddings
- extensions
- models
Backing up the above three folders will not be a problem.
The Stable Diffusion web UI has a wide variety of extensions available and new features are added daily. Stable Diffusion itself is also frequently upgraded. The problem is that version upgrades and extensions can cause problems or restrict some of the existing functions. To avoid such problems, it is often announced that you should reinstall Stable Diffusion web UI in the new environment before testing. To revert back to the original state, simply rename the backed up folder to the original folder name.
How to update Stable Diffusion web UI
Please refer to the article for details on the Stable Diffusion web UI update.
Troubleshooting for Stable Diffusion web UI
Please refer to this article for more information on troubleshooting Stable Diffusion web UI.
Conclusion
In this article, we introduced how to install Stable Diffusion web UI (AUTOMATIC1111).
As We said at the beginning, there is a way to install the portal versions of Python and Git and maintain your own environment, but We will show you how to do that another time.
Thank you for reading to the end.