mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 01:04:32 +02:00
Page:
SD Pipeline How it Works
Pages
AMD MIOpen
AMD ROCm
API
Advanced Install
Attention
Benchmark
CHANGELOG
CLI Arguments
CLI Tools
CLiP Skip
Caching
Caption
Control HowTo
Control Settings
Control Technical
Debug
Detailer
Dev AICoding
Dev Docs
Dev Extensions
Dev GettingStarted
Dev Hints
Dev Home
Dev Locale
Dev SelfStart
Dev Structure
Dev Theme
Dev UI
DirectML
Docker
Enso
FAQ
FLUX
Features
FramePack
Gated
Getting Started
Google GenAI
Guidance
HiDream
Home
Hotkeys
HuggingFace
IPAdapter
Ideogram
Installation
Intel ARC
Kanvas
LTX
Launcher
LoRA Technical
LoRA
Loader
MacOS Python
Malloc
MiniMax
Model Loading
Model Support
Models Tab
Models
Modular Pipelines
Networks Search
Networks
Notes
NudeNet
Nunchaku
ONNX Runtime
Offload
OpenVINO
Outpaint
Parameters
Performance Timers
Performance Tuning
Platforms
Process
Profiling
Prompt Enhance
Prompting
Python
Quantization
Reprocess
SD Pipeline How it Works
SD Training Methods
SD XL
SD3
SDNQ Quantization
Schedulers
Scripts
Stability Matrix
Stable Cascade
Styles
Themes
Troubleshooting
Update
Using LCM
VAE
Video
WSL
Wildcards
XYZ Grid
ZLUDA
_ToDo
index
nVidia
Clone
Table of Contents
This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
Stable Diffusion Pipeline
For comprehensive explanations, see:
- How Stable Diffusion Works (end-to-end overview)
- Understanding Diffusion Probabilistic Models (technical deep dive)
Pipeline Steps
-
Encoder / Conditioning — Convert text (via tokenizer) or images (via vision model) into semantic maps (e.g., CLIP text encoder)
-
Sampler — Generate starting noise as the basis for content generation (e.g., K-LMS)
-
Diffuser — Create vector content from noise and semantic map (e.g., Stable Diffusion checkpoint)
-
Autoencoder — Map between latent and pixel space to generate actual images (e.g., VAE)
-
Denoising — Refine pixel output using diffuser information and blend results (e.g., U-NET)
-
Iterative Refinement — Repeat steps 3–5 with cross-attention to progressively blend and improve results
-
Optional Post-Processing — Apply additional models as needed (e.g., ESRGAN for upscaling)