mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
prevent windows from crashing with a WindowsPath serialization error on merge
This commit is contained in:
parent
549d2e0485
commit
141d438517
@ -120,11 +120,11 @@ class ModelMerger(object):
|
|||||||
else config.models_path / base_model.value / ModelType.Main.value
|
else config.models_path / base_model.value / ModelType.Main.value
|
||||||
)
|
)
|
||||||
dump_path.mkdir(parents=True, exist_ok=True)
|
dump_path.mkdir(parents=True, exist_ok=True)
|
||||||
dump_path = dump_path / merged_model_name
|
dump_path = str(dump_path / merged_model_name)
|
||||||
|
|
||||||
merged_pipe.save_pretrained(dump_path, safe_serialization=True)
|
merged_pipe.save_pretrained(dump_path, safe_serialization=True)
|
||||||
attributes = dict(
|
attributes = dict(
|
||||||
path=str(dump_path),
|
path=dump_path,
|
||||||
description=f"Merge of models {', '.join(model_names)}",
|
description=f"Merge of models {', '.join(model_names)}",
|
||||||
model_format="diffusers",
|
model_format="diffusers",
|
||||||
variant=ModelVariantType.Normal.value,
|
variant=ModelVariantType.Normal.value,
|
||||||
|
Loading…
Reference in New Issue
Block a user