Powershell Script to Setup Stable Diffusion on Windows
This PowerShell script automates the installation of Git, Anaconda, Stable Diffusion, and the Stable Diffusion Web UI. It creates a new Anaconda environment, installs required packages, downloads a weight file, sets up the Stable Diffusion Web UI, and opens it in the default browser.
- Git: Latest version (Download Git)
- Anaconda: Latest version (Download Anaconda)
- Python: 3.8
- PyTorch: Latest version with GPU support
- Stable Diffusion: Latest version
- Stable Diffusion Web UI: AUTOMATIC1111's version
- Run this script in PowerShell to automate the installation process.
- Follow the prompts to enter the necessary information.
- The script will download dependencies, set up the environment, and open the Stable Diffusion Web UI in the default browser.
Note: Adjust paths and file names as needed based on your specific environment configurations and requirements.
-
Clone this repository:
git clone https://github.com/tomblanchard312/StableDiff-EasySetup.git
-
Navigate to the repository directory:
cd StableDiff-EasySetup
-
Run the script with bypassing execution policy:
Set-ExecutionPolicy Bypass -Scope Process -Force .\StableDiff-EasySetup.ps1
-
Follow the prompts to complete the installation.
- Make sure to review and modify the script according to your requirements.
- Ensure PowerShell execution policy allows script execution.
This script is provided under the MIT License.