InvokeAI/invokeai/backend/util
psychedelicious 04d8f2dfea fix(backend): fix controlnet zip len
Do not use `strict=True` when scaling controlnet conditioning.

When using `guess_mode` (e.g. `more_control` or `more_prompt`), `down_block_res_samples` and `scales` are zipped.

These two objects are of different lengths, so using zip's strict mode raises an error.

In testing, `len(scales) === len(down_block_res_samples) + 1`.

It appears this behaviour is intentional, as the final "extra" item in `scales` is used immediately afterwards.
2023-11-13 15:45:03 +11:00
..
__init__.py Apply black, isort, flake8 2023-09-12 13:01:58 -04:00
attention.py Apply black, isort, flake8 2023-09-12 13:01:58 -04:00
db_maintenance.py add techjedi's database maintenance script 2023-09-20 17:46:49 -04:00
devices.py isort wip 2 2023-09-12 13:01:58 -04:00
hotfixes.py fix(backend): fix controlnet zip len 2023-11-13 15:45:03 +11:00
log.py Resolving merge conflicts for flake8 2023-08-18 15:52:04 +10:00
logging.py chore: ruff check - fix flake8-comprensions 2023-11-11 10:55:23 +11:00
mps_fixes.py chore: black fix 2023-09-02 10:51:53 +12:00
test_utils.py fix: fix test imports 2023-10-12 12:15:06 -04:00
util.py chore: ruff format 2023-11-11 10:55:40 +11:00