fix repo-id for the Deliberate v5 model

prevent lora and embedding file suffixes from being stripped during installation

apply psychedelicious patch to get compel to load proper TI embedding
This commit is contained in:
Lincoln Stein 2024-02-21 11:46:23 -05:00 committed by psychedelicious
parent 5bb3aeaccd
commit 65dd4f4abc
2 changed files with 6 additions and 2 deletions

View File

@ -154,8 +154,12 @@ class ModelInstallService(ModelInstallServiceBase):
info: AnyModelConfig = self._probe_model(Path(model_path), config)
old_hash = info.current_hash
if preferred_name := config.get("name"):
preferred_name = Path(preferred_name).with_suffix(model_path.suffix)
dest_path = (
self.app_config.models_path / info.base.value / info.type.value / (config.get("name") or model_path.name)
self.app_config.models_path / info.base.value / info.type.value / (preferred_name or model_path.name)
)
try:
new_path = self._copy_model(model_path, dest_path)

View File

@ -34,7 +34,7 @@ sd-1/main/Analog-Diffusion:
recommended: False
sd-1/main/Deliberate:
description: Versatile model that produces detailed images up to 768px (4.27 GB)
source: XpucT/Deliberate
source: stablediffusionapi/deliberate-v5
recommended: False
sd-1/main/Dungeons-and-Diffusion:
description: Dungeons & Dragons characters (2.13 GB)