计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
stable-diffusion【效率与协作】Use DPM-Solver with latent Stable Diffusion workflows, including DPMSolverSampler adaptation, txt2img command planning, inversion/editing concepts, and checkpoint/backend troubleshooting.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when a user asks how this repository accelerates latent
Stable Diffusion sampling with DPM-Solver or how to adapt the repository's
DPMSolverSampler pattern into another latent-diffusion codebase.
Read this for tasks that mention:
txt2img.py --dpm_solver, Stable Diffusion with DPM-Solver, 20-25 step
Stable Diffusion sampling, or the original latent-diffusion scripts.DPMSolverSampler, stochastic_encode, encode, inversion for DiffEdit,
inpainting/editing, or correcting_xt_fn in a latent sampler.references/stable-diffusion-workflows.md
for command families, model asset requirements, and DPM-Solver settings.references/dpmsolver-sampler-adapter.md
when adapting the sampler class to a latent-diffusion model object.scripts/build_sd_dpm_command.py to
construct a command plan without launching image generation.scripts/stable_diffusion_dpmsolver_sampler.py
as a bundled, self-contained adapter template when a project already has a
compatible latent diffusion model object.python scripts/txt2img.py \
--prompt "a photograph of an astronaut riding a horse" \
--dpm_solver \
--ddim_steps 25 \
--scale 7.5
The original example uses the same --ddim_steps argument name for the number
of DPM-Solver steps when --dpm_solver is selected.
The adapter builds a discrete schedule from the model's alphas_cumprod, wraps
model.apply_model with classifier-free guidance, and calls the PyTorch
DPM-Solver++ path:
DPM_Solver(model_fn, noise_schedule, algorithm_type="dpmsolver++")
Recommended defaults:
skip_type="time_uniform"method="multistep"order=2lower_order_final=TrueDo not enable dynamic thresholding for Stable Diffusion latents.
Read references/troubleshooting.md for
Stable Diffusion-specific checkpoint, config, sampler, safety checker, memory,
DiffEdit, and command issues. Shared solver settings live in
../../references/solver-choice-guide.md.