🖥️

Installing Automatic 1111 for Stable Diffusion

Apr 8, 2025

Lecture Notes: Installing Stable Diffusion Automatic 1111

Overview

  • Guide to install Automatic 1111, a user interface for Stable Diffusion.
  • Focused on Windows PC with Nvidia cards (minimum 4GB VRAM).
  • Additional resources and installation links provided for Mac and Linux in the video description.

Installation Steps

Step 1: Download Python 3

  • Visit the provided link.
  • Download the Windows installer (64-bit).
  • Important: Check "Add Python to PATH" before installation.

Step 2: Download Git

  • Download the standalone installer for 64-bit Git for Windows.
  • Install Git with default settings, as it will primarily be used for a few commands.

Preparing for Installation

  • Ensure Python and Git are installed.
  • Create a new folder for Stable Diffusion (e.g., a11).
  • Open Command Prompt in the created folder (type CMD in the Explorer address bar).

Step 3: Clone Repository

  • Use the command git clone with the provided URL to download files.
  • Verify files are copied into the designated folder.

Configuring Automatic 1111

Editing the Batch File

  • Open webui-user.bat in Notepad.
  • Add the following commands:
    • --xformers: speeds up generation.
    • --autolaunch: automatically opens a browser window.
    • (Optional) --medvram: for GPUs with lower VRAM.
  • Save changes.

Downloading Models

  • Recommended: Download community-trained models for better image quality.
  • Suggested models: Deliberate, RevAnimated, RealisticVision.
  • Store models in models/Stable-diffusion within the folder.

Launching Stable Diffusion

  • Run webui-user.bat to start the application.
  • Initial run may take time to install Torch and other dependencies.

Interacting with the Interface

  • Access through a browser (auto-launch or local URL).
  • Create images by typing prompts and clicking "Generate".

Updating Automatic 1111

  • Use git pull in Command Prompt to update files from GitHub.
  • Optionally automate updates by adding git pull to the batch file.

Improving Image Quality

Prompting

  • Use a Styles CSV file for efficient prompts.
  • Available prompts can be installed in the Stable Diffusion folder.

Settings Adjustment

  • Adjust live previews in settings to 1 or higher for real-time image generation.

Extensions

  • Aspect Ratio Selector: Choose suitable for your needs.
  • ControlNet: Powerful extension for advanced operations.
  • Canvas Zoom: Zoom in and out for detailed editing.
  • Apply and restart UI after installing extensions.

Additional Resources

  • Check linked tutorials for detailed usage of ControlNet and other extensions.

Conclusion

  • With these steps, you can generate AI images and explore further features and tutorials for enhanced functionality.