InvokeAI/invokeai
psychedelicious 243de683d7 fix(mm): handle integer state dict keys in probe
It's possible for a model's state dict to have integer keys, though we do not actually support such models.

As part of probing, we call `key.startswith(...)` on the state dict keys. This raises an `AttributeError` for integer keys.

This logic is in `invokeai/backend/model_manager/probe.py:get_model_type_from_checkpoint`

To fix this, we can cast the keys to strings first. The models w/ integer keys will still fail to be probed, but we'll get a `InvalidModelConfigException` instead of `AttributeError`.

Closes #6044
2024-03-27 09:30:25 +11:00
..
app feat(mm): improved install error log message in terminal 2024-03-27 08:34:00 +11:00
assets feat(api): chore: pydantic & fastapi upgrade 2023-10-17 14:59:25 +11:00
backend fix(mm): handle integer state dict keys in probe 2024-03-27 09:30:25 +11:00
configs cleanup: remove unused scripts, cruft 2024-03-20 15:05:25 +11:00
frontend feat(installer): remove updater 2024-03-26 14:48:29 +11:00
invocation_api feat(nodes): "ModelField" -> "ModelIdentifierField", add hash/name/base/type 2024-03-10 11:03:38 +11:00
version chore: v4.0.0rc5 2024-03-22 02:35:16 -07:00
__init__.py Various fixes 2023-01-30 18:42:17 -05:00