InvokeAI/invokeai/backend
Damian Stewart 0beb08686c
Add CFG Rescale option for supporting zero-terminal SNR models (#4335)
* add support for CFG rescale

* fix typo

* move rescale position and tweak docs

* move input position

* implement suggestions from github and discord

* cleanup unused code

* add back dropped FieldDescription

* fix(ui): revert unrelated UI changes

* chore(nodes): bump denoise_latents version 1.4.0 -> 1.5.0

* feat(nodes): add cfg_rescale_multiplier to metadata node

* feat(ui): add cfg rescale multiplier to linear UI

- add param to state
- update graph builders
- add UI under advanced
- add metadata handling & recall
- regen types

* chore: black

* fix(backend): make `StableDiffusionGeneratorPipeline._rescale_cfg()` staticmethod

This doesn't need access to class.

* feat(backend): add docstring for `_rescale_cfg()` method

* feat(ui): update cfg rescale mult translation string

---------

Co-authored-by: psychedelicious <4822129+psychedelicious@users.noreply.github.com>
2023-11-30 20:55:20 +11:00
..
image_util feat(backend): rename realesrgan class & upscale method 2023-11-28 07:58:22 +11:00
install chore: ruff format 2023-11-11 10:55:40 +11:00
ip_adapter Add support for IPAdapterFull models. The changes are based on this upstream PR: https://github.com/tencent-ailab/IP-Adapter/pull/139 . 2023-11-29 15:07:21 -08:00
model_management Fix attempt to deserialize on CUDA on Mac 2023-11-28 09:24:57 +11:00
model_manager fixed ruff formatting issues 2023-11-13 18:15:17 -05:00
stable_diffusion Add CFG Rescale option for supporting zero-terminal SNR models (#4335) 2023-11-30 20:55:20 +11:00
training add note about discriminated union and Body() issue; blackified 2023-11-12 16:50:05 -05:00
util fix a bunch of type mismatches in the logging module 2023-11-28 09:38:35 +11:00
__init__.py isort wip 2 2023-09-12 13:01:58 -04:00