Skip to content
TheChatArchiveThe Chat Archive
Coherecommand-a-03-2025· CohereHugging Face LMArena Human Preference 140K

Can you give me a detailed step by step instructions on how to install automatic 1111 on…

From a Chatbot Arena battleThe same person sent this prompt to two anonymous models at once. Compare it with Claudeclaude-3-7-sonnet-20250219’s answer.
  1. User

    Can you give me a detailed step by step instructions on how to install automatic 1111 on Linux Ubuntu 24.04.2 LTS. Assume I know nothing about the process and don't know where everything is in Linux (terminal, what sudo means, etc).

  2. Cohere Assistant

    Certainly! Below is a detailed, step-by-step guide to installing Automatic1111's Stable Diffusion WebUI on Ubuntu 24.04.2 LTS. I'll explain everything, including basic Linux commands and concepts like sudo.


    Step 1: Open the Terminal

    1. Press Ctrl + Alt + T to open the terminal.
      • The terminal is a text-based interface where you can execute commands to control your system.

    Step 2: Update Your System

    Before installing anything, it's a good practice to update your system's package list and upgrade installed packages.

    1. Type the following command and press Enter:
      sudo apt update && sudo apt upgrade -y
      
      • sudo means "superuser do," which allows you to run commands with administrative privileges.
      • apt update updates the list of available packages.
      • apt upgrade -y upgrades all installed packages. The -y flag automatically confirms the upgrade.

    Step 3: Install Prerequisites

    Automatic1111 requires Python, Git, and other dependencies. Install them with the following command:

    1. Type:
      sudo apt install git python3 python3-venv torch torchvision torchaudio -y
      
      • This installs:
        • git: For cloning the repository.
        • python3: The Python programming language.
        • python3-venv: For creating a Python virtual environment.
        • torch, torchvision, torchaudio: PyTorch libraries for machine learning.

    Step 4: Install Git LFS (Large File Storage)

    Automatic1111 uses Git LFS to manage large model files.

    1. Type:
      sudo apt install git-lfs -y
      
    2. Run the following to initialize Git LFS:
      git lfs install
      

    Step 5: Clone the Automatic1111 Repository

    1. Create a directory for the project and navigate into it:

      mkdir ~/stable-diffusion-webui && cd ~/stable-diffusion-webui
      
      • mkdir creates a new directory.
      • cd changes the current directory.
    2. Clone the repository:

      git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git .
      
      • The . at the end means "clone into the current directory."

    Step 6: Set Up a Python Virtual Environment

    It's best to use a virtual environment to avoid conflicts with other Python projects.

    1. Create a virtual environment:
      python3 -m venv venv
      
    2. Activate the virtual environment:
      source venv/bin/activate
      
      • You'll see (venv) at the beginning of your terminal prompt, indicating the environment is active.

    Step 7: Install Python Dependencies

    1. Install the required Python packages:
      pip install -r requirements.txt
      
      • pip is Python's package installer.
      • requirements.txt is a file containing all necessary Python libraries.

    Step 8: Download Stable Diffusion Checkpoints

    Automatic1111 requires a Stable Diffusion model checkpoint.

    1. Navigate to the models/Stable-diffusion directory:
      cd models/Stable-diffusion
      
    2. Download a checkpoint file (e.g., model.ckpt):
      • You can download a checkpoint from Hugging Face or other sources.
      • Use wget to download directly from the terminal (replace the URL with your chosen model):
      wget https://huggingface.co/runwayml/stable-diffusion-v1-5/resolve/main/v1-5-pruned-emaonly.ckpt
      

    Step 9: Run the WebUI

    1. Navigate back to the main directory:
      cd ~/stable-diffusion-webui
      
    2. Start the WebUI:
      python3 launch.py
      
      • The first run may take a while as it downloads additional dependencies.

    Step 10: Access the WebUI

    1. Once the script runs, you'll see output similar to:
      Running on local URL: http://127.0.0.1:7860
      
    2. Open a web browser and go to http://127.0.0.1:7860 to access the Stable Diffusion WebUI.

    Step 11: (Optional) Run on Startup

    If you want the WebUI to start automatically:

    1. Create a systemd service file:

      sudo nano /etc/systemd/system/stable-diffusion-webui.service
      
    2. Paste the following configuration:

      [Unit]
      Description=Stable Diffusion WebUI
      
      [Service]
      User=your_username
      WorkingDirectory=/home/your_username/stable-diffusion-webui
      ExecStart=/home/your_username/stable-diffusion-webui/venv/bin/python /home/your_username/stable-diffusion-webui/launch.py
      Restart=always
      
      [Install]
      WantedBy=multi-user.target
      
      • Replace your_username with your actual username.
    3. Save and exit (Ctrl + O, Enter, Ctrl + X).

    4. Start and enable the service:

      sudo systemctl start stable-diffusion-webui
      sudo systemctl enable stable-diffusion-webui
      

    Step 12: Troubleshooting

    • If you encounter errors, check the terminal output for clues.
    • Ensure your GPU drivers are installed if you want to use GPU acceleration.
    • Refer to the official repository for more details.

    That's it! You've successfully installed Automatic1111's Stable Diffusion WebUI on Ubuntu 24.04.2 LTS. Enjoy creating art! 🎨

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.