Releases: Teriks/dgenerate
v4.3.3 (PAG. Flux Control Nets, img2img & inpainting) Patch
v4.3.3 release with Windows installer.
Due to the size of the packaged python environment, the installer is within a multi-part zip file.
The multipart zip can be extracted using 7-Zip: https://www.7-zip.org/
Download both dgenerate_installer.zip.001
and dgenerate_installer.zip.002
to a folder.
Unzip dgenerate_installer.zip.001
to a directory (Right click, 7-Zip -> Extract to "dgenerate_installer") and then run dgenerate_installer\dgenerate.msi
to install.
dgenerate will be installed under C:\Program Files\dgenerate
by default with an isolated python environment provided.
The install directory will be added to PATH, and dgenerate will be available from the command line.
Portable Install
A portable install is provided via dgenerate_portable.zip.001
and dgenerate_portable.zip.002
, these contain
nothing but the dgenerate executable and a frozen python environment which can be placed anywhere.
4.3.3 Patch
-
--help
text information fix under--text-encoders
. Model type keywordT5TextModel
corrected toT5EncoderModel
. -
Fix for user configurable environmental variable
DGENERATE_WEB_CACHE_EXPIRY_DELTA
, setting value toforever
no longer
triggers a datetime overflow.DGENERATE_WEB_CACHE_EXPIRY_DELTA=forever
should retain files downloaded to dgenerates
cache forever, this cache is unrelated to the cache inHF_HOME
, and is used for models / files downloaded from locations other than huggingface.
4.3.0 Features
-
Flux img2img, inpainting, and Control Net support.
InstantX/FLUX.1-dev-Controlnet-Union
is also supported with--model-type torch-flux
via amode
URI argument to--control-nets
, see: Flux Union Control Net Mode in the README. -
PAG perturbed attention guidance support for Stable Diffusion, SDXL, and SD3, see: Feature Table 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.
v4.3.2 (PAG. Flux Control Nets, img2img & inpainting) Patch
v4.3.2 release with Windows installer.
Due to the size of the packaged python environment, the installer is within a multi-part zip file.
The multipart zip can be extracted using 7-Zip: https://www.7-zip.org/
Download both dgenerate_installer.zip.001
and dgenerate_installer.zip.002
to a folder.
Unzip dgenerate_installer.zip.001
to a directory (Right click, 7-Zip -> Extract to "dgenerate_installer") and then run dgenerate_installer\dgenerate.msi
to install.
dgenerate will be installed under C:\Program Files\dgenerate
by default with an isolated python environment provided.
The install directory will be added to PATH, and dgenerate will be available from the command line.
Portable Install
A portable install is provided via dgenerate_portable.zip.001
and dgenerate_portable.zip.002
, these contain
nothing but the dgenerate executable and a frozen python environment which can be placed anywhere.
4.3.2 Patch
Fix for --model-cpu-offload
with 8 bit bitsandbytes
quantized weights.
Fix for diffusers / accelerate randn_tensor
device mismatch error, occasionally occurring in the following scripted construct upon subsequent invocations:
#! /usr/bin/env dgenerate --file
#! dgenerate 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.0 Features
-
Flux img2img, inpainting, and Control Net support.
InstantX/FLUX.1-dev-Controlnet-Union
is also supported with--model-type torch-flux
via amode
URI argument to--control-nets
, see: Flux Union Control Net Mode in the README. -
PAG perturbed attention guidance support for Stable Diffusion, SDXL, and SD3, see: Feature Table 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.
v4.3.1 (PAG. Flux Control Nets, img2img & inpainting)
v4.3.1 release with Windows installer.
Due to the size of the packaged python environment, the installer is within a multi-part zip file.
The multipart zip can be extracted using 7-Zip: https://www.7-zip.org/
Download both dgenerate_installer.zip.001
and dgenerate_installer.zip.002
to a folder.
Unzip dgenerate_installer.zip.001
to a directory (Right click, 7-Zip -> Extract to "dgenerate_installer") and then run dgenerate_installer\dgenerate.msi
to install.
dgenerate will be installed under C:\Program Files\dgenerate
by default with an isolated python environment provided.
The install directory will be added to PATH, and dgenerate will be available from the command line.
Portable Install
A portable install is provided via dgenerate_portable.zip.001
and dgenerate_portable.zip.002
, these contain
nothing but the dgenerate executable and a frozen python environment which can be placed anywhere.
4.3.1 Patch
Include transient dependency bitsandbytes
on Windows and Linux for loading quantized weights.
Documentation and --help
output fixes.
4.3.0 Features
-
Flux img2img, inpainting, and Control Net support.
InstantX/FLUX.1-dev-Controlnet-Union
is also supported with--model-type torch-flux
via amode
URI argument to--control-nets
, see: Flux Union Control Net Mode in the README. -
PAG perturbed attention guidance support for Stable Diffusion, SDXL, and SD3, see: Feature Table 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.
v4.3.0 (PAG. Flux Control Nets, img2img & inpainting)
v4.3.0 release with Windows installer.
Due to the size of the packaged python environment, the installer is within a multi-part zip file.
The multipart zip can be extracted using 7-Zip: https://www.7-zip.org/
Download both dgenerate_installer.zip.001
and dgenerate_installer.zip.002
to a folder.
Unzip dgenerate_installer.zip.001
to a directory (Right click, 7-Zip -> Extract to "dgenerate_installer") and then run dgenerate_installer\dgenerate.msi
to install.
dgenerate will be installed under C:\Program Files\dgenerate
by default with an isolated python environment provided.
The install directory will be added to PATH, and dgenerate will be available from the command line.
Portable Install
A portable install is provided via dgenerate_portable.zip.001
and dgenerate_portable.zip.002
, these contain
nothing but the dgenerate executable and a frozen python environment which can be placed anywhere.
4.3.0 Features
-
Flux img2img, inpainting, and Control Net support.
InstantX/FLUX.1-dev-Controlnet-Union
is also supported with--model-type torch-flux
via amode
URI argument to--control-nets
, see: Flux Union Control Net Mode in the README. -
PAG perturbed attention guidance support for Stable Diffusion, SDXL, and SD3, see: Feature Table 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.
v4.2.3 (Stable Diffusion 3 Inpainting, ROCm (AMD) support)
v4.2.3 release with Windows installer.
Due to the size of the packaged python environment, the installer is within a multi-part zip file.
The multipart zip can be extracted using 7-Zip: https://www.7-zip.org/
Download both dgenerate_installer.zip.001
and dgenerate_installer.zip.002
to a folder.
Unzip dgenerate_installer.zip.001
to a directory (Right click, 7-Zip -> Extract to "dgenerate_installer") and then run dgenerate_installer\dgenerate.msi
to install.
dgenerate will be installed under C:\Program Files\dgenerate
by default with an isolated python environment provided.
The install directory will be added to PATH, and dgenerate will be available from the command line.
Portable Install
A portable install is provided via dgenerate_portable.zip.001
and dgenerate_portable.zip.002
, these contain
nothing but the dgenerate executable and a frozen python environment which can be placed anywhere.
4.2.3 Patch Fix
Fix missing upscaler-ncnn
processor in Console UI recipe forms.
4.2.0 Features
-
Basic inpainting is now supported with Stable Diffusion 3
-
Config directive
\setp
can be used to evaluate python ternary statements during template variable assignment. i.e.\setp my_var "Yes" if True else "No"
-
Improved config error reporting. 1 indexed line number in the interpreter to align with Console UI line numbering. Better pinpointing of the error line number inside "here template" control structures involving Jinja. Patches for issues with
asteval
affecting syntax error output. -
PyPI Packaging now supports installing dgenerate with the ROCm torch backend on Linux, allowing for use with AMD Cards / Accelerators. See installation documentation: Linux with ROCm (AMD Cards)
v4.2.2 (Stable Diffusion 3 Inpainting, ROCm (AMD) support)
v4.2.2 release with Windows installer.
Due to the size of the packaged python environment, the installer is within a multi-part zip file.
The multipart zip can be extracted using 7-Zip: https://www.7-zip.org/
Download both dgenerate_installer.zip.001
and dgenerate_installer.zip.002
to a folder.
Unzip dgenerate_installer.zip.001
to a directory (Right click, 7-Zip -> Extract to "dgenerate_installer") and then run dgenerate_installer\dgenerate.msi
to install.
dgenerate will be installed under C:\Program Files\dgenerate
by default with an isolated python environment provided.
The install directory will be added to PATH, and dgenerate will be available from the command line.
Portable Install
A portable install is provided via dgenerate_portable.zip.001
and dgenerate_portable.zip.002
, these contain
nothing but the dgenerate executable and a frozen python environment which can be placed anywhere.
4.2.2 Patch Fix
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.0 Features
-
Basic inpainting is now supported with Stable Diffusion 3
-
Config directive
\setp
can be used to evaluate python ternary statements during template variable assignment. i.e.\setp my_var "Yes" if True else "No"
-
Improved config error reporting. 1 indexed line number in the interpreter to align with Console UI line numbering. Better pinpointing of the error line number inside "here template" control structures involving Jinja. Patches for issues with
asteval
affecting syntax error output. -
PyPI Packaging now supports installing dgenerate with the ROCm torch backend on Linux, allowing for use with AMD Cards / Accelerators. See installation documentation: Linux with ROCm (AMD Cards)
v4.2.1 (Stable Diffusion 3 Inpainting, ROCm (AMD) support)
v4.2.1 release with Windows installer.
Due to the size of the packaged python environment, the installer is within a multi-part zip file.
The multipart zip can be extracted using 7-Zip: https://www.7-zip.org/
Download both dgenerate_installer.zip.001
and dgenerate_installer.zip.002
to a folder.
Unzip dgenerate_installer.zip.001
to a directory (Right click, 7-Zip -> Extract to "dgenerate_installer") and then run dgenerate_installer\dgenerate.msi
to install.
dgenerate will be installed under C:\Program Files\dgenerate
by default with an isolated python environment provided.
The install directory will be added to PATH, and dgenerate will be available from the command line.
Portable Install
A portable install is provided via dgenerate_portable.zip.001
and dgenerate_portable.zip.002
, these contain
nothing but the dgenerate executable and a frozen python environment which can be placed anywhere.
4.2.1 Patch Fix
Upgrade asteval
to include error handling fixes from new release, instead of monkey patching it inside dgenerate
.
4.2.0 Features
-
Basic inpainting is now supported with Stable Diffusion 3
-
Config directive
\setp
can be used to evaluate python ternary statements during template variable assignment. i.e.\setp my_var "Yes" if True else "No"
-
Improved config error reporting. 1 indexed line number in the interpreter to align with Console UI line numbering. Better pinpointing of the error line number inside "here template" control structures involving Jinja. Patches for issues with
asteval
affecting syntax error output. -
PyPI Packaging now supports installing dgenerate with the ROCm torch backend on Linux, allowing for use with AMD Cards / Accelerators. See installation documentation: Linux with ROCm (AMD Cards)
v4.2.0 (Stable Diffusion 3 Inpainting, ROCm (AMD) support)
v4.2.0 release with Windows installer.
Due to the size of the packaged python environment, the installer is within a multi-part zip file.
The multipart zip can be extracted using 7-Zip: https://www.7-zip.org/
Download both dgenerate_installer.zip.001
and dgenerate_installer.zip.002
to a folder.
Unzip dgenerate_installer.zip.001
to a directory (Right click, 7-Zip -> Extract to "dgenerate_installer") and then run dgenerate_installer\dgenerate.msi
to install.
dgenerate will be installed under C:\Program Files\dgenerate
by default with an isolated python environment provided.
The install directory will be added to PATH, and dgenerate will be available from the command line.
Portable Install
A portable install is provided via dgenerate_portable.zip.001
and dgenerate_portable.zip.002
, these contain
nothing but the dgenerate executable and a frozen python environment which can be placed anywhere.
4.2.0 Features
-
Basic inpainting is now supported with Stable Diffusion 3
-
Config directive
\setp
can be used to evaluate python ternary statements during template variable assignment. i.e.\setp my_var "Yes" if True else "No"
-
Improved config error reporting. 1 indexed line number in the interpreter to align with Console UI line numbering. Better pinpointing of the error line number inside "here template" control structures involving Jinja. Patches for issues with
asteval
affecting syntax error output. -
PyPI Packaging now supports installing dgenerate with the ROCm torch backend on Linux, allowing for use with AMD Cards / Accelerators. See installation documentation: Linux with ROCm (AMD Cards)
v4.1.2 (Stable Cascade prompt weighting, MacOS arm64 support)
v4.1.2 release with Windows installer.
Due to the size of the packaged python environment, the installer is within a multi-part zip file.
The multipart zip can be extracted using 7-Zip: https://www.7-zip.org/
Download both dgenerate_installer.zip.001
and dgenerate_installer.zip.002
to a folder.
Unzip dgenerate_installer.zip.001
to a directory (Right click, 7-Zip -> Extract to "dgenerate_installer") and then run dgenerate_installer\dgenerate.msi
to install.
dgenerate will be installed under C:\Program Files\dgenerate
by default with an isolated python environment provided.
The install directory will be added to PATH, and dgenerate will be available from the command line.
Portable Install
A portable install is provided via dgenerate_portable.zip.001
and dgenerate_portable.zip.002
, these contain
nothing but the dgenerate executable and a frozen python environment which can be placed anywhere.
4.1.2 Patch
HuggingFace repository file link for transformer involved in Flux (Schnell quantized)
console recipe had moved. Updated link.
Better error message when a HuggingFace repository is not accessible due to lack of authentication.
Console output window Clear
right click context menu functionality bug fix. Output window started in editable state, it should be disabled for text input and only enabled temporarily for writes internally. Improper state management resulted in inability to write new output to the window after using Clear
from the UI menu, as the text box was left in a disabled UI state.
spandrel 0.4.0
4.1.0 Features
-
Stable Cascade can now use long prompts with weighting via the
compel
andsd-embed
prompt weighters, simply specify one of these two values to--prompt-weighter
to enable the feature when using Stable Cascade. -
Built and published wheels for MacOS on Apple Silicon, dgenerate can now be used with
--device mps
on MacOS (arm64). See install instructions here: MacOS Install (Apple Silicon Only). This is very experimental. -
Console UI hotkeys dynamically adjust for useability when the UI is running on MacOS, I am sure that the hotkeys are very abnormal when compared to typical MacOS convention for text editors, but they all function and do not overlap with important system hotkeys.
Insert
(for multiline input) changes toCommand+i
, andCtrl+Space
(for run) changes toCommand+r
. All other hotkeys remain the same, including copy, paste, and cut. -
Added template function
frange
which is justrange
but for float ranges. This is useful for stepping through guidance scale values or LoRA scale values for example. It uses identical logic torange
, but the step value may be a float, e.g.frange(0.1, 1.0, 0.2) -> [0.1, 0.3, 0.5, 0.7, 0.9]
. The default step value is:0.1
-
torch 2.4.1
v4.1.1 (Stable Cascade prompt weighting, MacOS arm64 support)
v4.1.1 release with Windows installer.
Due to the size of the packaged python environment, the installer is within a multi-part zip file.
The multipart zip can be extracted using 7-Zip: https://www.7-zip.org/
Download both dgenerate_installer.zip.001
and dgenerate_installer.zip.002
to a folder.
Unzip dgenerate_installer.zip.001
to a directory (Right click, 7-Zip -> Extract to "dgenerate_installer") and then run dgenerate_installer\dgenerate.msi
to install.
dgenerate will be installed under C:\Program Files\dgenerate
by default with an isolated python environment provided.
The install directory will be added to PATH, and dgenerate will be available from the command line.
Portable Install
A portable install is provided via dgenerate_portable.zip.001
and dgenerate_portable.zip.002
, these contain
nothing but the dgenerate executable and a frozen python environment which can be placed anywhere.
4.1.1 Patch Fix
The Stable Cascade Decoder and SDXL Refiner now get placed on the correct device, they were defaulting to cuda
instead of honoring --device
. This became apparent on MacOS where they were attempting to use CUDA instead of MPS causing an exception.
4.1.0 Features
-
Stable Cascade can now use long prompts with weighting via the
compel
andsd-embed
prompt weighters, simply specify one of these two values to--prompt-weighter
to enable the feature when using Stable Cascade. -
Built and published wheels for MacOS on Apple Silicon, dgenerate can now be used with
--device mps
on MacOS (arm64). See install instructions here: MacOS Install (Apple Silicon Only). This is very experimental. -
Console UI hotkeys dynamically adjust for useability when the UI is running on MacOS, I am sure that the hotkeys are very abnormal when compared to typical MacOS convention for text editors, but they all function and do not overlap with important system hotkeys.
Insert
(for multiline input) changes toCommand+i
, andCtrl+Space
(for run) changes toCommand+r
. All other hotkeys remain the same, including copy, paste, and cut. -
Added template function
frange
which is justrange
but for float ranges. This is useful for stepping through guidance scale values or LoRA scale values for example. It uses identical logic torange
, but the step value may be a float, e.g.frange(0.1, 1.0, 0.2) -> [0.1, 0.3, 0.5, 0.7, 0.9]
. The default step value is:0.1
-
torch 2.4.1