AI Art Generation Handbook/How to install Stable Diffusion

From Wikibooks, open books for an open world
Jump to navigation Jump to search

There are 2 main methods of using Stable Diffusion, one is installing it locally on the PC itself and others are using via web platforms.

For this chapter, we are focusing more to installing it locally on your computer with many added advantages such as privacy (as you won't need to save the generated images over clouds), able to tweak settings and installing extensions to enhance the image generation capability. However, you need a good graphics card so that it doesn't take long (e.g. minutes) to generate an image. This page describes how you can install it.

Hardware Requirements

[edit | edit source]

There are a few PC system pre-requisite that are needed to install Stable Diffusion on the PC

Minimum Recommended Specs
6GB VRAM (Video RAM - GPU memory)

8GB VRAM* (For SDXL 1.0 model base)

Your machine are able to generate much larger images without much issues/ upscaling
8GB RAM Your machine can handle the processing of multiple image generations in parallel
32GB Hard Disk Your machine can store more checkpoints/LORAS and generated images

Software Pre-Requisites

[edit | edit source]

Python 3.10.9 (Confirmed working as of July 2023)

Git Version Control

Web-UI (Recommended the most popular Automatic1111, but there are others too, see list of web-ui list below)

List of Local AI Art WebUI

[edit | edit source]

For a list of local (installed in the local PC) web-UI

List of local AI Art WebUI

Software Installation Guide

[edit | edit source]

Auto1111 (Recommended for ease of use , installation)

ComfyUI (Recommended if you prefer node-based programming ala Blender)

Invoke.AI (Recommended if you like powerful in-painting functions)

SD.Next (Recommended if you prefer more support to other models such as Deepfloyd , Kadinsky and others)