mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
adjust for change in list_models() API
This commit is contained in:
parent
58d1857ab6
commit
54b74427f4
@ -121,9 +121,10 @@ class ModelInstall(object):
|
||||
|
||||
# supplement with entries in models.yaml
|
||||
installed_models = self.mgr.list_models()
|
||||
for base in installed_models.keys():
|
||||
for model_type in installed_models[base].keys():
|
||||
for name, value in installed_models[base][model_type].items():
|
||||
for md in installed_models:
|
||||
base = md['base_model']
|
||||
model_type = md['type']
|
||||
name = md['name']
|
||||
key = ModelManager.create_key(name, base, model_type)
|
||||
if key in model_dict:
|
||||
model_dict[key].installed = True
|
||||
@ -132,7 +133,6 @@ class ModelInstall(object):
|
||||
name = name,
|
||||
base_type = base,
|
||||
model_type = model_type,
|
||||
# description = value.get('description'),
|
||||
path = value.get('path'),
|
||||
installed = True,
|
||||
)
|
||||
@ -316,7 +316,7 @@ class ModelInstall(object):
|
||||
attributes = dict(
|
||||
path = str(path),
|
||||
description = str(description),
|
||||
format = info.format,
|
||||
model_format = info.format,
|
||||
)
|
||||
if info.model_type == ModelType.Pipeline:
|
||||
attributes.update(
|
||||
|
Loading…
Reference in New Issue
Block a user