레이블이 Stable Diffusion XL인 게시물을 표시합니다. 모든 게시물 표시
레이블이 Stable Diffusion XL인 게시물을 표시합니다. 모든 게시물 표시

2025년 2월 23일 일요일

Stable Diffusion XL 1.0 (SDXL 1.0) Installation Guide

Stable Diffusion XL 2.0 (SDXL 1.0) is an AI model capable of generating high-quality images. This guide explains how to install SDXL 1.0 on your local PC.

1. Pre-preparation (Check PC specifications)

To run SDXL 1.0 smoothly, the following specifications are required.

  • Minimum specifications

Operating system: Windows 10/11 (64-bit)

GPU: NVIDIA GTX 1660 or higher (VRAM 6GB or higher)

RAM: 16GB or higher

Storage space: At least 20GB free space

Python 3.10+ installation required

  • Recommended specifications

GPU: NVIDIA RTX 3060 (12GB), 4060, 4070 or higher

VRAM: 12GB or higher

SSD: 100GB or higher free space

AMD graphics card users must use OnnxRuntime or DirectML

2. Install AUTOMATIC1111 WebUI (Recommended method)

Stable Diffusion WebUI(AUTOMATIC1111) is the most used UI.

(1) Install required programs

Install Python 3.10.x

Download from the official Python website

Check "Add Python to PATH" during installation and install

Install Git

Download from the official Git website and install

(2) Install Stable Diffusion WebUI

Select the folder to install (e.g. C:\stable-diffusion)

Run command prompt (cmd) and enter the following command

git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git

cd stable-diffusion-webui

(3) Download SDXL 1.0 model

Download SDXL 1.0 model file

Visit Hugging Face SDXL 1.0 page

Download sd_xl_base_1.0.safetensors file

Save the file to stable-diffusion-webui/models/Stable-diffusion/ folder

4) Run WebUI

Once the installation is complete, run the WebUI by executing the following command.

After running the command prompt (cmd), enter the command below.

cd C:\stable-diffusion\stable-diffusion-webui

webui-user.bat

Once the execution is complete, you can use SDXL at the address http://127.0.0.1:7860

3. SDXL 1.0 VAE Settings (High Quality Optimization)

VAE(Variational Autoencoder) can be used to generate sharper and more natural images.

(1).Download SDXL 1.0 VAE

  • Visit Hugging Face SDXL VAE

  • Download sdxl_vae_1.0.safetensors

  • Save the file to stable-diffusion-webui/models/VAE/ folder

(2).After launching WebUI, select the downloaded VAE from Settings → SD VAE

Setting VAE significantly improves image quality.

4. Create SDXL 1.0 animation (video)

To create a video with Stable Diffusion, use the following method.

(1) Deforum (Camera movement & text animation)

Deforum is the most popular animation extension.

  • Run the command prompt (cmd) and enter the command below

git clone https://github.com/deforum-art/deforum-for-automatic1111-webui.git extensions/deforum

  • Run WebUI, set it in the Deforum tab, and create an animation

Camera movement, zoom in/out, and scene transition are possible.

(2) AnimateDiff (smooth character animation)

Search for AnimateDiff in the WebUI extension tab and install

Download model (motion-lora)

Set it in the AnimateDiff tab and run

Smooth frame transition is possible, so it is suitable for creating character animation.

Recommended Posts

Love is taking responsibility till the end

  I created a campaign called "Don't Abandon Your Beloved Dog" with Stable Diffusion. I tried creating it several times, but i...