fix(mm): lora state dict loading in model id

This commit is contained in:
psychedelicious
2025-10-10 17:15:25 +11:00
parent 5a006b96fa
commit 020ac1aaa8

View File

@@ -55,7 +55,7 @@ def _get_flux_lora_format(mod: ModelOnDisk) -> FluxLoRAFormat | None:
# TODO(psyche): Moving this import to the function to avoid circular imports. Refactor later.
from invokeai.backend.patches.lora_conversions.formats import flux_format_from_state_dict
state_dict = mod.load_state_dict(mod.path)
state_dict = mod.load_state_dict()
value = flux_format_from_state_dict(state_dict, mod.metadata())
return value