-
-
Notifications
You must be signed in to change notification settings - Fork 448
Installation
Aptronymist edited this page Sep 11, 2023
·
34 revisions
Prerequisites: Install Python and Git
Nvidia Graphics Card Note:
- Please note that if you are using an Nvidia graphics card in Windows 10/11, ensure that your driver version is optimal for Stable Diffusion
If needed (highly recommended), roll back to the last 531 version by downloading it from these links:
Download Desktop nVidia GeForce Driver 531.79
Download Notebook nVidia GeForce Driver 531.79
-
Clone SD.Next:
- Clone the repository by running
git clone https://github.com/vladmandic/automatic <optional directory name>
in your desired location. - Navigate into the cloned directory.
- DirectML/AMD owners on Windows should additionally start with
--use-directml
- ROCm/Linux users can optionally start with
--use-rocm
if your setup is not autodetected. - Intel OneAPI XPU users should start with
--use-ipex
- Run
webui.bat --debug
(Windows) orwebui.sh --debug
(Linux/Mac) to start the web interface. - For the initial setup and future tech support, it is advisable to include the
--debug
option. This will provide
more detailed information, which can be helpful until the Diffusers backend becomes fully feature complete from
HF (Huggingface) and any potential compatibility issues are resolved. - When asked to download the default model, you can safely choose "N" to skip the download.
- Clone the repository by running
-
Initial Setup:
- Once the web interface starts running adjust these settings in the Settings tab:
- If you already have models, LoRAs, Embeddings, LyCORIS, etc. set your
System Paths
now, especially if you started with --models-dir, you
won't need to use it afterwards.
Pay special attention to the Diffusers entry as that is where diffusers models will download to if you use the Huggingface downloader. - If you intend to use the Diffusers backend and/or SDXL, go to Setup/User Interface and select
sd_model_refiner
,diffusers_pipeline
,
andsd_backend
to the Quicksettings, this will make controlling SDXL much easier. - Optionally, we have just added a new theme,
Amethyst-Nightfall
, (It's purple!) you can select that at the top in UI theme. - Apply the settings, which will also apply some defaults from built-in extensions, then hit Restart Server.
To use SDXL with SD.Next, all you need to do is download these two files into your models folder.
SD-XL Base
SD-XL Refiner
More detailed instructions for installation and use here.
To install Python and Git on Windows and macOS, please follow the instructions below:
For Windows:
-
Git:
- Download Git for Windows from the following link: Git for Windows
- Run the downloaded
.exe
file and follow the installation wizard. - During the installation process, make sure to check the box for "Use Git from the Windows Command line and also from 3rd-party-software" to add Git to your system's PATH.
- Complete the installation by following the on-screen instructions.
-
Python:
- Download Python for Windows from the following link: Python for Windows
- Run the downloaded
.exe
file and follow the installation wizard. - On the "Customize Python" screen, make sure to check the box for "Add Python to PATH."
- Continue the installation by following the prompts.
- Once the installation is complete, you can open the command prompt and verify that Python is installed by typing
python --version
andpip --version
to check the Python and Pip versions respectively.
For macOS:
-
Git:
- Download Git for macOS from the following link: Git for macOS
- Open the downloaded
.pkg
file and follow the installation instructions. - During the installation process, make sure to check the box for "Install Git Bash" to have a command-line Git interface.
- Complete the installation by following the prompts.
-
Python:
- Download Python for macOS from the following link: Python for macOS
- Open the downloaded
.pkg
file and follow the installation instructions. - On the "Introduction" screen, click "Continue," and then "Install" on the subsequent screen.
- Authenticate the installation using your macOS password.
- On the "Install Python 3.10" screen, make sure to check the box for "Add Python 3.10 to PATH."
- Continue the installation by following the prompts.
- Once the installation is complete, open the Terminal application and verify that Python is installed by typing
python3 --version
andpip3 --version
to check the Python and Pip versions respectively.