|
|
||
|---|---|---|
| .. | ||
| adetailer | ||
| anima | ||
| animatediff | ||
| boogu_image | ||
| chroma | ||
| chroma_radiance | ||
| distilled_sd | ||
| ernie_image | ||
| esrgan | ||
| fibo2 | ||
| flux | ||
| flux2 | ||
| flux3 | ||
| hidream_o1_image | ||
| hunyuan_video | ||
| ideogram4 | ||
| ip_adapter | ||
| iris | ||
| kontext | ||
| krea2 | ||
| lcm | ||
| lens | ||
| lingbot_video | ||
| llada_image | ||
| longcat_image | ||
| lora | ||
| ltx2 | ||
| mage_flow | ||
| ming_image | ||
| minimax_h3 | ||
| minimax_h3_image | ||
| minit2i | ||
| moss_image | ||
| ovis_image | ||
| p_h3_image | ||
| photo_maker | ||
| pid | ||
| pixart | ||
| pulid | ||
| qwen_image | ||
| qwen_image_2.1 | ||
| qwen_image_edit | ||
| relay_vsr | ||
| sd | ||
| sd3 | ||
| seedvr2 | ||
| sefi_image | ||
| sensenova_u1 | ||
| taesd | ||
| wan | ||
| z_image | ||
| z_image_l2p | ||
| README.md | ||
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
Video and audio generation
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. |