Skip to content

Install Stable Diffusion web UI on your Mac with one single command. 仅需一条命令为你的 Mac 装上 Stable Diffusion web UI。

Notifications You must be signed in to change notification settings

xiaoxue66/StableDiffusion-Installer-For-Mac

 
 

Repository files navigation

中文   |   English

Stable Diffusion Installer For Mac

Conventional Commits GitHub commit activity (branch) GitHub release (with filter) Test

Assist you in quickly and effortlessly installing the Stable Diffusion web UI on your Mac.

Theoretically, it should work on both Apple Silicon and Intel CPU with any version of macOS.

Usage

  1. In the Applications folder, locate Terminal terminal and open it.

    Note: It's in the /Applications/Utilities folder. If you still can't find it, search it by name!

  2. Copy the following command to the terminal, press the Enter key to execute the command, and the installation will start automatically. Just wait for the installation to complete.

    /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/wy-luke/StableDiffusion-Installer-For-Mac/main/sd-installer.sh)"
  3. At the beginning, you will be prompted to enter password, just type your login password.

    Note: Your password will be invisible when you type, just type it, and press Enter after completion.

  4. If you see similar content below, it indicates a successful installation.

    success

  5. Open your web browser and enter http://127.0.0.1:7860 (the underlined part in the image above) to access the Stable Diffusion web UI.

  6. If the installation fails, you will be prompted whether to retry. Type y or just simply press the Enter key to try again. Type n to exit.

Features

  1. Use Homebrew to install required dependencies. If you already have it installed, it will be used automatically. If not, it will be installed for you, but without modifying your system environment – your system will remain unchanged.

    If you wish to activate it by default, you can add eval $(/opt/homebrew/bin/brew shellenv) to your .zprofile (zsh) or .bash_profile (bash) file.

    You could also:

    # zsh
    echo 'eval $(/opt/homebrew/bin/brew shellenv)' >> /Users/$USER/.zprofile
    eval $(/opt/homebrew/bin/brew shellenv)
    
    # bash
    echo 'eval $(/opt/homebrew/bin/brew shellenv)' >> /Users/$USER/.bash_profile
    eval $(/opt/homebrew/bin/brew shellenv)
  2. Use micromamba, which is a tiny version of the mamba, as python related package and environment manager instead of Conda.

    Compared to Conda, it has no base environment (empty) nor default version of Python, meaning that it won't interfere or contaminate your system's Python environment at all. Additionally, it's significantly faster.

    Similarly, it isn't added to the system environment either, and won't be activated automatically by default.

    But if you want, you could:

    # zsh
    /opt/homebrew/bin/micromamba shell init -s zsh -p ~/micromamba
    source ~/.zshrc
    
    # bash
    /opt/homebrew/bin/micromamba shell init -s bash -p ~/micromamba
    source ~/.bashrc

About

Install Stable Diffusion web UI on your Mac with one single command. 仅需一条命令为你的 Mac 装上 Stable Diffusion web UI。

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 99.4%
  • JavaScript 0.6%