Stable Diffusion General Install Guide

If you can read this catbox is down

yeswecan

Welcome

This guide will lead you through the steps to do a basic installation of some of the currently popular UIs for local generation. It is very illustrated to cover every step of the installation process, especially for reForge. Take your time!
While this guide only covers basic installation steps, lots of additional information can be found in the sdgguide.
Some of these installations require to install various requirements in specific ways and run command line options. While following this guide should leave no ambiguity, it still demands a certain confidence in dealing with these. If you do not want to bother with that at all, take a look at the Stability Matrix section, which provides a fully GUI based installation procedure that hides everything from you.

As Forge and reForge are both webUI forks and work very similiar, some sections apply to both of them equally. Those sections will be located in the reForge chapter.

As usual this guide is eternally WIP.

transparent
lightgrey

Introduction

This guide was written using a brand new Windows 11 Version 24H2 64-bit install. It focuses mostly on the parts required by the UIs.

It assumes that you have installed the latest updates, all drivers for your hardware including current NVidia drivers. Everything will be installed in a folder "C:\SD", but of course you can use any folder or any other drive.

Warning

Do not use a folder/path that contains empty spaces as this might lead to issues!
Do not use a deeply nested folder as the UI installs create a lot of subdirectories and you might run into "path too long" issues!

Example folder used in this guide
folder-1.png

Branches / Channels (used interchangeably)

Most of the UIs are available in different "channels", called like main, stable, dev or similiar. These are used to test new features but only enable them for people who explicitly want to beta-test them. The main/stable channel of any UI is the one that has undergone this testing and has been choosen for general use. Sometimes it can happen that a feature you want to use is only available on a dev or test channel version. In this case you would use the checkout command to change to this channel, e.g. "git checkout dev". Be aware that this will change your current installation, if you want to test some features independently you will need to set up a second UI installation. You can change back to main anytime by the same process though.

Multiple installations in parallel

If you plan to install multiple UIs manually, check the SDG FAQ on a tip how to use the same directory to store your models etc. to save disk space

lightgrey

Prerequisites/Recommendations

Here are some general prerequisites/recommendations to install before setting up any of the UIs.

transparent
lightgrey

Reforge

reForge must be installed the classic Git way as there is no portable version available (yet).

Install Git

This guide assumes that you need Git only to install reForge. If you already have Git installed or have different requirements, you probably know enough about it to skip this section

Browse to https://git-scm.com/downloads/win and download the latest 64bit standalone installer for Git and run it as administrator
git-download.png transparent

It will ask you a lot of stuff that you can just leave on default with one exception:
git-install-1.pnggit-install-2.pnggit-install-3.png
I would recommend to change the editor from "vim" to "notepad" in step 4
git-install-4.png
git-install-5.pnggit-install-6.pnggit-install-7.png
git-install-8.pnggit-install-9.pnggit-install-10.png
git-install-11.pnggit-install-12.pnggit-install-13.png

transparent
lightgrey

Install Python

In earlier versions reForge only worked with Python version 3.10.6. In recent updates the compatibility was improved though there are reports that using the latest versions still causes issues/crashes. This guide assumes that you need to install Python solely for reForge, so we will use version 3.10.11 which was the latest one based on 3.10 that comes with a full installer.

Browse to https://www.python.org/downloads/release/python-31011/ and download the Windows installer (64 bit) and run it as administrator
python-download.png transparent
Step 1
Enable the checkbox "Add python.exe to PATH", then click on "Customize Installation"
python-install-1.png
transparent
Step 2
Leave all "Optional Features" as is
python-install-2.png
transparent
Step 3
Enable the checkbox "Install Python 3.10 for all users". This will also change the installation location
python-install-3.png
transparent
Step 4
After the setup completed successfully, click the "Disable path length limit", then click on "Close" to finish
python-install-6.png

transparent
lightgrey

Install (clone) reForge via Git

Now that the prerequisites are fulfilled we can clone the reForge Git repository into our folder. Right-click the "C:\SD" folder in Windows Explorer. If you are using Windows 11, you will need to select "Show more options" (or shift+right click) to open the classic context menu which contains the full list. Select "Open Git Bash here" from that list.
folder-2.png folder-3.png transparent

After a while a command prompt style bash window will appear and it should be located in "C:\SD". Copy the following command into that window and execute it. It will start to download the base files from the official reForge Github:

git clone https://github.com/Panchovix/stable-diffusion-webui-reForge.git
git-clone-2.png transparent

Once it has completed successfully, change into the newly created folder ("cd stable-diffusion-webui-reForge") and type the following command

git checkout main

This should confirm that you are on the main channel and no further updates are currently available.
git-clone-4.png

transparent
lightgrey

Start reForge (first-run)

After the Git repository has been successfully downloaded, browse to the newly created reForge folder in "C:\SD" and launch the webui-user.bat
folder-4.png transparent

On the first run, it will start to download and install a lot of additional base components required. This can take a few minutes in which the console window intermittently will not update with any new output. Check with task manager, but just give it time to complete everything.
firstrun-2.pngfirstrun-4.png transparent

Once all the components have installed successfully a new browser window/tab will open and show you the default reForge GUI
firstrun-4.png transparent

transparent
lightgrey

Extensions

reForge already comes with a lot of extensions by default. You can access the list of installed extensions to add and remove some via the "Extensions" tab in the UI.
UI-setup-1.png

Disable rarely used extensions

A lot of them are only useful for (very) specific use cases so if you are just starting out on your journey you can disable these to have a leaner UI. This does not uninstall any of them and you can reenable them anytime! Clear the checkbox in front of these and "Apply and restart UI":
mahiro_reforge
reForge-APGIsYourCFG
sd_forge_dynamic_thresholding
sd_forge_freeu
sd_forge_hypertile
sd_forge_kohya_hrfix
sd_forge_latent_modifier
sd_forge_multidiffusion
sd_forge_sag
sd_forge_svd
sd_forge_z123

Add useful extensions

Most extensions can be easily installed from the default A1111 repository which is preconfigured in reForge. To search for a specific extension, open the "Available" tab inside the "Extensions" tab and click on the orange "Load from:" button to populate the list. Type into the unnamed text field to filter
UI-setup-2.png transparent

Sadly you cannot search for the Github repository names, and the extension display name is often quite different to how the Git repository is named. If you hover over the name in the Extension column you will see the Github URL and you can click on it to confirm if it is the one you are looking for
UI-setup-3.png transparent

Install these extensions from the list:

Some extensions are not part of the A1111 repository and must be installed via the "Install from URL" tab instead. Just paste the URL of the Github repository that contains the extension into the first text field and click "Install".
UI-setup-3.png transparent

Add the following extensions from URL

After you have installed all desired extensions, click on "Apply and restart UI". During the next launch additional requirements may be downloaded/installed automatically

transparent
lightgrey

Additional steps

Download upscaler

The default upscaler (see sdguide for more information about what this is) in reForge is latent which is not very good. For the purpose of this guide we will add the remacri upscaler.

Go to your reForge installation directory and into the "models" subdirectory. Create the folders "ERSGAN" and "HAT" if they don't already exist.
upscaler-1.png transparent

Browse to https://civitai.com/models/147759?modelVersionId=164821 and save the "remacri_original.pt" file into the ESRGAN directory but change the file extension to .pth!
upscaler-2.png upscaler-2.png

transparent
lightgrey

Installation complete

This concludes the basic setup of reForge. To continue go to the section in the sdgguide

lightblue
⬆️⬆️⬆️To the top⬆️⬆️⬆️ lightblue

Forge

While you can install Forge via Git in the same way as reForge (just with a different Github URL), the much easier and recommended way is to use the "portable" One-Click package.

Install Forge portable

Browse to https://github.com/lllyasviel/stable-diffusion-webui-forge?tab=readme-ov-file#installing-forge and click on the link to download the latest package in 7z format
forge-download.png transparent

Create folder "C:\SD\stable-diffusion-webui-forge-portable" (or any other name you like) and extract all files from the zip into it.
forge-run-1.png

Start Forge portable (first-run)

Start the "run.bat". On the first run it will take a while to download and install additional components
forge-run-2.png transparent

Once all the components have installed successfully a new browser window/tab will open and show you the default Forge GUI
forge-run-3.png

Extensions and additional steps

Follow the steps in the two reForge sections.

Installation complete

This concludes the basic set up of Forge. To continue go to the section in the sdgguide

lightblue
⬆️⬆️⬆️To the top⬆️⬆️⬆️ lightblue

ComfyUI

ComfyUI has three different installation options: via Git, a standalone portable zip and an installer. The Git version can be installed as described in the reForge section but using the ComfyUI Github URL (https://github.com/comfyanonymous/ComfyUI). I have not tested this version.
The recommended approach is to use the portable ZIP based install. I will test the installer at some later point in time, but from what I have heard it is functionally the same.

Install Git

While the ComfyUI portable does not need Git to be installed it is required to install certain extensions (most importantly the ComfyUI Manager). Follow the reForge section to set up Git, then continue here.

Install ComfyUI portable

Browse to https://github.com/comfyanonymous/ComfyUI?tab=readme-ov-file#installing and click on the link to download the latest package in 7z format.
comfy-download-1.png transparent

Unzip the 7z into "C:\SD" which will create the subfolder "ComfyUI_windows_portable" by default.
comfy-download-2.png

Start ComfyUI (first-run) - portable version

Start the "run_nvidia_gpu.bat". ComfyUI portable already comes with most components needed.
comfy-run-1.png transparent

After a while a new browser window/tab will open to show you either a simple default workflow or the template wizard.
comfy-run-1.png

Extensions

The one and most important extension you should install before doing anything else is the ComfyUI Manager. Installing it requires Git.

Browse to the folder "C:\SD\ComfyUI_windows_portable\ComfyUI\custom_nodes" in Windows Explorer and right-click on in. In Windows 11 you first have to choose "Show more options" (or shift+right click) to see the "Open Git bash here" entry.
comfy-manager-1.png comfy-manager2.png transparent

After a while a command prompt style bash window will appear and it should be located in "C:\SD\ComfyUI_windows_portable\ComfyUI\custom_nodes". Copy the following command into that window and execute it. It will start to download the base files from the official Github repository

git clone https://github.com/ltdrdata/ComfyUI-Manager comfyui-manager

comfy-manager-3.png transparent

Restart your ComfyUI if it was still open. On the next run, you will see the blue "Manager" button on the top right of the UI. See the Github manual on how to use it.

Installation complete

This concludes the installation of comfyUI. To learn more about recommended settings go to the sdgguide

lightblue
⬆️⬆️⬆️To the top⬆️⬆️⬆️ lightblue

InvokeAI

forthcoming

lightblue
⬆️⬆️⬆️To the top⬆️⬆️⬆️ lightblue

StabilityMatrix

StabilityMatrix by LykosAI is a UI frontend ("Inference") and package manager for other UIs all-in-one. It features simple installation of other UIs, civitai integration and manages model files across them all.
It all sounds very promising, I just have no personal experience with it so it's included here as a basic setup to get reForge running. Maybe I will update it in the future, otherwise refer to the official Github at https://github.com/LykosAI/StabilityMatrix. If you have more experience or want to add something to this section don't hesitate to ping me!

Install Stability Matrix

Browse to https://lykos.ai/downloads and download the latest stable version as a zip file.
matrix-download-1.png transparent

Create a folder "StabilityMatrix" in "C:\SD" and extract the single executable file from the zip into this folder.
matrix-download-2.png

Start StabilityMatrix (first-run)

Run the "stabilitymatrix.exe" executable. On the first run it will check your system for compatibility. Accept the license agreement and continue.
matrix-firstrun-1.png transparent

On the welcome wizard enable "Portable mode" to have all data saved in the folder you created instead of your user profile.
matrix-firstrun-2.png transparent

After choosing whatever you like on the Analytics question you will be presented with a list of UIs to install. Select "Stable Diffusion WebUI reForge".
matrix-firstrun-3.png transparent

You can then either choose to download a model from the examples provided or skip and download it later.
matrix-firstrun-4.png transparent

After the base installation is complete, you will be presented with a overview of UIs installed, in this case you should see only reForge. Click on "Launch" on the reForge tile. This will download any additional components required by reForge and after that is complete launch a new browser window/tab with the reForge UI.
matrix-firstrun-5.png matrix-firstrun-6.png transparent

Continue in the reForge section.

Installation complete

This concludes the installation of reForge via StabilityMatrix. To learn more about recommended settings go to the sdgguide

lightblue
⬆️⬆️⬆️To the top⬆️⬆️⬆️ lightblue
Xeno443

Edit Report
Pub: 29 Mar 2025 10:54 UTC
Edit: 30 Mar 2025 14:33 UTC
Views: 71