stable-diffusion-aws-extension/docs/Environment-Preconfiguratio...

1.9 KiB

Part1: Install the stable-diffusion-webui and extension

  1. Install the EC2 by using CloudFormation Template to install CloudFormation template directly
  2. Select the EC2 instance key pair, and keep click with default operation to create the stack
  3. Find the output value of the CloudFormation stack, and navigate to the WebUI by clicking the link in the WebUIURL value, note you need to wait extra 5 minutes to wait for the internal setup complete after the stack been created successfully.
  1. In the working directory of a Linux computer prepared in advance, run the following command to download the latest installation script:
wget https://raw.githubusercontent.com/awslabs/stable-diffusion-aws-extension/main/install.sh
  1. Run the installation script, this script will try to git clone following repos and put the extensions on stable-diffusion-webui extension directory:
    • stable-diffusion-webui
    • stable-diffusion-aws-extension
    • sd-webui-controlnet
    • sd_dreambooth_extension
sh install.sh

Notice :The version of the downloaded repos has been set in the install.sh script, please do not manually change the version, we have tested on the version set in the script.

  1. Move to the stable-diffusion-webui folder downloaded by install.sh:
cd stable-diffusion-webui
  1. For machines without a GPU, you can start the web UI using the following command:
./webui.sh --skip-torch-cuda-test
  1. For machines with a GPU, you can start the web UI using the following command:
./webui.sh