Dgenerate

Latest version: v4.5.1

Safety actively analyzes 723177 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 10

4.3.2

Iterate over any scheduler options

\setp schedulers [ \
'EulerAncestralDiscreteScheduler', \
'KDPM2AncestralDiscreteScheduler', \
'EulerDiscreteScheduler', \
'KDPM2DiscreteScheduler', \
'HeunDiscreteScheduler']

{% for scheduler in schedulers %}
stabilityai/stable-diffusion-xl-base-1.0
--model-type torch-sdxl
--dtype float16
--variant fp16
--scheduler {{ scheduler }}
--model-cpu-offload
--prompts "add your prompt here"
{% endfor %} !END


Issue only occurred with `--model-cpu-offload/--model-sequential-offload` enabled due to quirks with `accelerate` offloading and high memory usage.

4.3.1

Include transient dependency `bitsandbytes` on Windows and Linux for loading quantized weights.

Documentation and `--help` output fixes.

4.3.0

* Flux img2img, inpainting, and Control Net support. `InstantX/FLUX.1-dev-Controlnet-Union` is also supported with `--model-type torch-flux` via a `mode` URI argument to `--control-nets`, see: [Flux Union Control Net Mode](https://github.com/Teriks/dgenerate/tree/master?tab=readme-ov-file#flux-union-control-net-mode) in the README.

* PAG perturbed attention guidance support for Stable Diffusion, SDXL, and SD3, see: [Feature Table](https://github.com/Teriks/dgenerate/blob/master/FEATURE_TABLE.rst#pag-support-caveats) for support caveats. New arguments have been added for working with PAG: `--pag`, `--pag-scales`, `--pag-adaptive-scales`, `--sdxl-refiner-pag`, `--sdxl-refiner-pag-scales`, and `--sdxl-refiner-pag-adaptive-scales`.

* Console UI recipe form updates for Flux control nets, added basic UI for specifying one control net model, control net scale, and control net mode for Flux ControlNet Union.

4.2.3

Fix missing ``upscaler-ncnn`` processor in Console UI recipe forms.

4.2.2

Backport fixes from: https://github.com/Teriks/dgenerate/tree/flux_newpipes

Fix optional arguments: ``--sdxl-refiner-inference-steps``, ``--sdxl-refiner-guidance-scales``, and ``--sdxl-refiner-guidance-rescales`` not being considered when calculating the number of generation steps displayed to the user.

Minor fix for example runner script, inform user when running from an environment where dgenerate is not accessible as an importable package. In this case, dgenerate will run in a subprocess by invoking the command in a shell if it is available.

4.2.1

Upgrade ``asteval`` to include error handling fixes from new release, instead of monkey patching it inside ``dgenerate``.

Page 2 of 10

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.