Blog
Notes

Stable Diffusion Web UI Installation Guide

This guide uses AUTOMATIC1111/stable-diffusion-webui for installation and configuration. Alternatively, you can use the Web UI Package provided by Akiha aaaki.

Prerequisites

  1. Command Line Proxy

    Sometimes you may need to use a proxy in the command line. For example, Clash for Windows allows you to copy proxy commands via General - Port - Terminal icon - Copy Commands Only, ClashX (macOS) has a menu option to Copy Terminal Proxy Command; Surge can create virtual network cards, while V*N services like Astrill require no configuration.

  2. VS Code

    Download and install VS Code. For Windows installation, check both Add "Open with Code" action to Windows Explorer file context menu and ...directory context menu options.

  3. Git and GitHub Desktop

    Download and install Git or GitHub Desktop (recommended).

  4. Python Environment

    Download and install Python 3.10.7 (Choose Windows installer (64-bit) for Windows, macOS 64-bit universal2 installer for macOS). Remember to check the Add Python to PATH option during installation.

Web UI Download and Installation

If you have GitHub Desktop installed, open https://github.com/AUTOMATIC1111/stable-diffusion-webui, click Code - Open with GitHub Desktop, select Local Path in the popup interface, and click Clone to clone the repository.

Without GitHub Desktop, use the command line to cd into your desired installation directory and enter git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git to clone the repository.

After downloading, open the project folder in VS Code, select Terminal - New Terminal from the menu to create a project directory terminal, and enter webui-user.bat to start installation.

Web UI Launch Script

After the initial installation, always use webui-user.bat to launch Web UI again.

Share