We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 05b04df commit 468ae2fCopy full SHA for 468ae2f
invokeai/backend/model_manager/configs/factory.py
@@ -323,7 +323,13 @@ def from_model_on_disk(
323
324
if not matches and app_config.allow_unknown_models:
325
logger.warning(f"Unable to identify model {mod.name}, falling back to Unknown_Config")
326
- return Unknown_Config(**fields)
+ return Unknown_Config(
327
+ **fields,
328
+ # Override the type/format/base to ensure it's marked as unknown.
329
+ base=BaseModelType.Unknown,
330
+ type=ModelType.Unknown,
331
+ format=ModelFormat.Unknown,
332
+ )
333
334
if len(matches) > 1:
335
# We have multiple matches, in which case at most 1 is correct. We need to pick one.
0 commit comments