stable-diffusion.cpp/docs/dgl
SolicTous 571fc44437
fix: hidream-o1-image speckle noise removal (#2407)
Co-authored-by: leejet <leejet714@gmail.com>
2026-11-24 21:50:28 +08:00
..
adetailer feat: add Diffusion Graph Language support (#2396) 2026-11-22 23:42:26 +08:00
anima feat: add Diffusion Graph Language support (#2396) 2026-11-22 23:42:26 +08:00
animatediff feat: add Diffusion Graph Language support (#2396) 2026-11-22 23:42:26 +08:00
boogu_image feat: add Diffusion Graph Language support (#2396) 2026-11-22 23:42:26 +08:00
chroma feat: add Diffusion Graph Language support (#2396) 2026-11-22 23:42:26 +08:00
chroma_radiance feat: add Diffusion Graph Language support (#2396) 2026-11-22 23:42:26 +08:00
distilled_sd feat: add Diffusion Graph Language support (#2396) 2026-11-22 23:42:26 +08:00
ernie_image feat: add Diffusion Graph Language support (#2396) 2026-11-22 23:42:26 +08:00
esrgan feat: add Diffusion Graph Language support (#2396) 2026-11-22 23:42:26 +08:00
fibo2 feat: add Diffusion Graph Language support (#2396) 2026-11-22 23:42:26 +08:00
flux feat: add Diffusion Graph Language support (#2396) 2026-11-22 23:42:26 +08:00
flux2 feat: add Diffusion Graph Language support (#2396) 2026-11-22 23:42:26 +08:00
flux3 feat: add Diffusion Graph Language support (#2396) 2026-11-22 23:42:26 +08:00
hidream_o1_image fix: hidream-o1-image speckle noise removal (#2407) 2026-11-24 21:50:28 +08:00
hunyuan_video feat: add Diffusion Graph Language support (#2396) 2026-11-22 23:42:26 +08:00
ideogram4 feat: add Diffusion Graph Language support (#2396) 2026-11-22 23:42:26 +08:00
ip_adapter feat: add Diffusion Graph Language support (#2396) 2026-11-22 23:42:26 +08:00
iris feat: add Diffusion Graph Language support (#2396) 2026-11-22 23:42:26 +08:00
kontext feat: add Diffusion Graph Language support (#2396) 2026-11-22 23:42:26 +08:00
krea2 feat: add Diffusion Graph Language support (#2396) 2026-11-22 23:42:26 +08:00
lcm feat: add Diffusion Graph Language support (#2396) 2026-11-22 23:42:26 +08:00
lens feat: add Diffusion Graph Language support (#2396) 2026-11-22 23:42:26 +08:00
lingbot_video feat: add Diffusion Graph Language support (#2396) 2026-11-22 23:42:26 +08:00
llada_image feat: add Diffusion Graph Language support (#2396) 2026-11-22 23:42:26 +08:00
longcat_image feat: add Diffusion Graph Language support (#2396) 2026-11-22 23:42:26 +08:00
lora feat: add Diffusion Graph Language support (#2396) 2026-11-22 23:42:26 +08:00
ltx2 feat: add Diffusion Graph Language support (#2396) 2026-11-22 23:42:26 +08:00
mage_flow feat: add Diffusion Graph Language support (#2396) 2026-11-22 23:42:26 +08:00
ming_image feat: add Diffusion Graph Language support (#2396) 2026-11-22 23:42:26 +08:00
minimax_h3 feat: add Diffusion Graph Language support (#2396) 2026-11-22 23:42:26 +08:00
minimax_h3_image feat: add Diffusion Graph Language support (#2396) 2026-11-22 23:42:26 +08:00
minit2i feat: add Diffusion Graph Language support (#2396) 2026-11-22 23:42:26 +08:00
moss_image feat: support for MOSS-Image edit LoRAs (#2203) 2026-11-23 01:05:20 +08:00
ovis_image feat: add Diffusion Graph Language support (#2396) 2026-11-22 23:42:26 +08:00
p_h3_image feat: add Diffusion Graph Language support (#2396) 2026-11-22 23:42:26 +08:00
photo_maker feat: add Diffusion Graph Language support (#2396) 2026-11-22 23:42:26 +08:00
pid feat: add Diffusion Graph Language support (#2396) 2026-11-22 23:42:26 +08:00
pixart feat: add Diffusion Graph Language support (#2396) 2026-11-22 23:42:26 +08:00
pulid feat: add Diffusion Graph Language support (#2396) 2026-11-22 23:42:26 +08:00
qwen_image feat: add Diffusion Graph Language support (#2396) 2026-11-22 23:42:26 +08:00
qwen_image_2.1 feat: add Diffusion Graph Language support (#2396) 2026-11-22 23:42:26 +08:00
qwen_image_edit feat: add Diffusion Graph Language support (#2396) 2026-11-22 23:42:26 +08:00
relay_vsr feat: add Diffusion Graph Language support (#2396) 2026-11-22 23:42:26 +08:00
sd feat: add Diffusion Graph Language support (#2396) 2026-11-22 23:42:26 +08:00
sd3 feat: add Diffusion Graph Language support (#2396) 2026-11-22 23:42:26 +08:00
seedvr2 feat: add Diffusion Graph Language support (#2396) 2026-11-22 23:42:26 +08:00
sefi_image feat: add Diffusion Graph Language support (#2396) 2026-11-22 23:42:26 +08:00
sensenova_u1 feat: add Diffusion Graph Language support (#2396) 2026-11-22 23:42:26 +08:00
taesd feat: add Diffusion Graph Language support (#2396) 2026-11-22 23:42:26 +08:00
wan feat: add Diffusion Graph Language support (#2396) 2026-11-22 23:42:26 +08:00
z_image feat: add Diffusion Graph Language support (#2396) 2026-11-22 23:42:26 +08:00
z_image_l2p feat: add Diffusion Graph Language support (#2396) 2026-11-22 23:42:26 +08:00
README.md feat: support for MOSS-Image edit LoRAs (#2203) 2026-11-23 01:05:20 +08:00

DGL examples

Choose a runnable script for image generation and editing, video and audio generation, or adapters, refinement and upscaling. Each model name links to its guide for weights and setup.

Run an example

Open the script's var block and set the model paths, input files, prompt and output path. Run the following commands from the CMake build directory. Relative paths in the script resolve from that directory.

Windows (PowerShell, Visual Studio Release)

.\bin\Release\sd-cli.exe -M dgl --script ..\docs\dgl\sd\sd1-5-txt2img.dgl --check
.\bin\Release\sd-cli.exe -M dgl --script ..\docs\dgl\sd\sd1-5-txt2img.dgl

Linux/macOS

./bin/sd-cli -M dgl --script ../docs/dgl/sd/sd1-5-txt2img.dgl --check
./bin/sd-cli -M dgl --script ../docs/dgl/sd/sd1-5-txt2img.dgl

The first command checks the script without loading weights. The second runs it and writes to the output path in the script. Set context options such as --max-vram and --auto-fit on the command line. In the server's DGL editor, choose model paths under a configured model directory and save results under output/. See the server guide.

For a large video input, set max_frames on video::load to limit how many frames it decodes. See video input formats and limits and NumPy tensor files.

Model examples

Image generation and editing

Model guide Scripts
Anima Anima Preview text to image
Boogu Image Text to image · Image editing
Chroma Unlocked v40 text to image
Chroma1-Radiance Text to image
Distilled Stable Diffusion models SSD1B · SDXS-512-DreamShaper
ERNIE-Image ERNIE-Image Turbo · ERNIE-Image
Fibo 2.0 Dev: text to image · Dev: image editing · Edit Turbo
FLUX.1 FLUX.1 dev · FLUX.1 schnell · FLUX.1 dev with LoRA
FLUX.2 dev Image editing
FLUX.2 Klein 4B Text to image · Image editing · Base text to image
FLUX.2 Klein 9B Text to image · Image editing · Base text to image
FLUX.3 Image Klein: text to image · Klein: image editing · Klein Base: text to image
HiDream-O1-Image Text to image
Ideogram4 Text to image
Iris-3B Text to image
FLUX.1 Kontext Edit with FLUX.1 Kontext dev
Krea2 Raw text to image
Lens Lens · Lens Turbo
LLaDA-Image Text to image · Image editing
LongCat Image Text to image
Mage-Flow Text to image · Image editing
Ming-Image 0.1 Design text to image
MiniMax-H3-Image Text to image · Image editing
MiniT2I CUDA · Metal (--threads 8)
MOSS-Image Base: text to image · SFT: text to image · Inline images · Image editing (HQ) · Image editing (chinoll)
Ovis-Image Text to image
P-H3-Image Text to image · Image editing
PiD 512 to 2048 pixels
PixArt Sigma XL2 at 1024 pixels
Qwen Image Text to image
Qwen Image 2.1 Text to image · Image editing
Qwen Image Edit Qwen Image Edit · Qwen Image Edit 2509 · Qwen Image Edit 2511
Stable Diffusion – generation SD 1.4 · SD 1.5 · SDXL · NitroFusion
Stable Diffusion – image conditioning SD 1.4 image to image · SD 1.5 ControlNet · SD 1.5 inpainting
Stable Diffusion 3 SD 3.5 Large text to image
SeFi-Image 1B Turbo · 1B Base · 5B Turbo (--max-vram 8) · 5B RL
SenseNova U1.5 Text to image on CUDA
Z-Image Turbo: text to image · Base: text to image · Turbo with ControlNet
Z-Image L2P Text to image

Video and audio generation

Model guide Scripts
AnimateDiff – text to video Text to video with CPU offload · Text to video, 16 frames · Text to video with a VRAM budget (--max-vram 2.0) · Domain Adapter LoRA
AnimateDiff – image to video Generate the initial image · Image to video
HunyuanVideo 1.5 720p text to video
LingBot-Video Dens 1.3B text to video
LTX-2.3 2.3 text to video · 2.3 image to video · 2.3 first/last frames · 2.3 spatial latent upscale
LTX-2.5 2.5 text to video · 2.5 image to video · 2.5 spatial latent upscale
MiniMax-H3 Text to audio/video · First/last-frame conditioning · Reference to audio/video · Interpolated latent hires · Learned latent hires
Wan 2.1 Text to video, 1.3B · Text to video, 14B · Image to video, 14B · First/last frames, 14B
Wan 2.1 VACE 1.3B Text to video · Reference to video · Video to video
Wan 2.1 VACE 14B Text to video · Reference to video · Video to video
Wan 2.2 A14B Text to video · Image to video · Single image · Text to video with LoRA · First/last frames
Wan 2.2 TI2V 5B Text to video · Image to video
Wan 2.2 S2V Speech to video, 14B
Wan 2.2 VACE Fun A14B Reference to video

Adapters, refinement and upscaling

Model guide Scripts
ADetailer Refine an existing image · Generate and refine
ESRGAN and MoSR Generate and upscale · Upscale an image
IP-Adapter SD 1.5 Classic · SDXL Classic · SD 1.5 Plus · SDXL with ControlNet
LCM and LCM-LoRA LCM-LoRA with SD 1.5
LoRA SD 1.5 UNet and text encoder
PhotoMaker PhotoMaker v1 · PhotoMaker v2
PuLID-Flux Identity-guided generation
RelayVSR Upscale a video · Upscale an image
SeedVR2 Upscale an image · Upscale a video
TAESD SD 1.5 decoding with TAESD. The CLI writes the final PNG. Intermediate previews require a host preview callback in tae mode.