mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix(mm): fix broken get_model_discriminator_value
This commit is contained in:
parent
e426096d32
commit
0a614943f6
@ -326,7 +326,7 @@ def get_model_discriminator_value(v: Any) -> str:
|
||||
"""
|
||||
if isinstance(v, dict):
|
||||
return f"{v.get('type')}.{v.get('format')}" # pyright: ignore [reportUnknownMemberType]
|
||||
return f"{v.getattr('type')}.{v.getattr('format')}"
|
||||
return f"{v.type}.{v.format}"
|
||||
|
||||
|
||||
AnyModelConfig = Annotated[
|
||||
|
Loading…
Reference in New Issue
Block a user