SD.Next is a Stable diffusion WebUI for advanced users. It is very similar to AUTOMATIC1111 Stable Diffusion WebUI. In fact, they share the same code base. Many extensions for AUTOMATIC1111 can also be installed on SD.Next.
Why use SD.Next?
SD.Next is differentiates from AUTOMATIC1111. The reasons to use SD.Next over AUTOMATIC1111 are
- Better out-of-the-box function: SD.Next includes many “essential” extensions in installation.
- Better curated functions: It has removed some options in AUTOMATIC1111 that are not meaningful choices, e.g. a simplified sampler list.
- Better software engineering: The software appears to be more well-written and tested than A1111. It is better suited for users with a low appetite for troubleshooting issues.
You should have a discrete Nvidia graphic card (GPU) and a Windows machine.
Install SD.Next on Windows
You don’t need to perform steps 1 and 2 below if you already have AUTOMATIC1111 running on your machine.
Step 1: Install Python
You will need Python 3.10. Installing from the Microsoft store is the easiest option.
Step 2: Install git
Git is a code repository management system. You will need it to install and update AUTOMATIC1111.
Go to this page to download the Windows version.
Open the installer. Click Install to accept the license and install the software.
Step 3: Clone SD.Next
Press the Window key (It should be on the left of the space bar on your keyboard). A search window should pop up. Type
powershell. Click the Windows PowerShell Icon to launch the PowerShell App.
Type the following command and press Enter to clone SD.Next to your computer.
git clone https://github.com/vladmandic/automatic
Step 4: Run SD.Next
Open the File Explorer App.
In the address bar, go to the following location
Find a file called webui.bat. If you don’t see the extension
.bat, look for the webui file with the type Windows Batch File.
Double-click the webui.bat file to start SD.Next.
webui.bat file to rerun it if you encounter the following error.
ImportError: cannot import name ‘deprecated’ from ‘typing_extensions’
It should correct itself the 2nd time.
Type y and press Enter when asked if you want to download the default model.
The installation is complete when you see the Local URL message, which is
http://127.0.0.1:7860/ by default.
Step 5: Access the webui on a browser
Go to the local URL on the browser to start SD.Next.
You should see a user interface very similar to the AUTOMATIC1111 Web-UI.
Test generating an image with a simple prompt (e.g.
a cat) and Press Generate to make sure it is working correctly.
Using Stable Diffusion XL model
Download the SDXL 1.0 models
You will need to download the SDXL model to use with SD.Next. Note that there’s a malicious copy of SDXL out there, so you should download it from the official repository.
In SD.Next Web-UI, navigate to the Models page and the Huggingface tab.
In the Select model field, enter the following.
Press Download Model.
Verify the download is in progress in the console window.
Wait for it to complete.
Press the Download button again if you receive a read time-out error.
Repeat the download with the following in the Select model field.
Now you have completed downloading both the base and the refiner model.
Setting up SD.Next to use SDXL
SD.Next has two Stable Diffusion backends: (1) original and (2) diffusers. You must switch to the diffuers backend to use the SDXL model.
Switching to the diffusers backend
You will need to start SD.Next’s
webui.bat with the extra argument
--backend diffuers to use the diffusers backend. You can switch back and forth between the original and the diffusers backend after you start through the GUI.
If you use the PowerShell app for the web-UI, use the following command.
cd automatic; .webui.bat --backend diffusers
File Explorer method
You can also create a new shortcut to add the extra argument for convenience.
In File Explorer, right-click the file webui.bat. Click Show more options. Click create shortcut.
A new Shortcut file is created. Rename it to
webui.bat - diffusers.
Right-click on the file, select Properties. At the end of the Target field, add
There should be a space between
Click Apply and then OK.
From now on, you can double click the Shortcut file
webui.bat - diffusers to launch SD.Next with the diffuser backend.
For convenience, you should add the refiner model dropdown menu.
Go to the Settings page, in the QuickSettings list (search quick to find it), add
Click Apply settings and then Restart server.
After restarting, you should see the Stable Diffusion refiner dropdown menu next to the Stable Diffusion checkpoint.
Using the SDXL model
You are now ready to generate images with the SDXL model. There are two modes to generate images
- Base model alone
- Base model followed by the refiner
Base model only
Navigate to the From Text tab.
Select the SDXL base model in the Stable Diffusion checkpoint dropdown menu.
Select None in the Stable Diffuson refiner dropdown menu.
Enter a prompt.
a cat playing guitar, wearing sunglasses
Set sampling steps to 30.
Set both the width and the height to 1024. This is important because the SDXL model was trained to generate 1024×1024 images.
Base model + refiner
Use the base model followed by the refiner to get the best result. You will get images similar to the base model but with more fine details.
This option takes up a lot of VRAMs. Not all graphic cards can handle it.
To use the base model with the refiner, do everything in the last section except select the SDXL refiner model in the Stable Diffusion refiner dropdown menu.
Switching between original and diffusers backends
You can switch between the original and the diffusers backend on the Settings page.
Switch back to the original backend to use v1 and v2 models. Select original in Stable Diffusion backend.
Click Apply settings and Restart server.