mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fixes crashes on merge in both WebUI and console
- an inadvertent change to the model manager broke the merging functions - corrected here - will be a hotfix
This commit is contained in:
parent
b4ed8bc47a
commit
d0be79c33d
@ -624,7 +624,7 @@ class ModelManager(object):
|
|||||||
self,
|
self,
|
||||||
repo_or_path: Union[str, Path],
|
repo_or_path: Union[str, Path],
|
||||||
model_name: str = None,
|
model_name: str = None,
|
||||||
model_description: str = None,
|
description: str = None,
|
||||||
vae: dict = None,
|
vae: dict = None,
|
||||||
commit_to_conf: Path = None,
|
commit_to_conf: Path = None,
|
||||||
) -> bool:
|
) -> bool:
|
||||||
@ -640,7 +640,7 @@ class ModelManager(object):
|
|||||||
models.yaml file.
|
models.yaml file.
|
||||||
"""
|
"""
|
||||||
model_name = model_name or Path(repo_or_path).stem
|
model_name = model_name or Path(repo_or_path).stem
|
||||||
model_description = model_description or f"Imported diffusers model {model_name}"
|
model_description = description or f"Imported diffusers model {model_name}"
|
||||||
new_config = dict(
|
new_config = dict(
|
||||||
description=model_description,
|
description=model_description,
|
||||||
vae=vae,
|
vae=vae,
|
||||||
|
Loading…
Reference in New Issue
Block a user