From 86e201612f18a5df8a1bd65a4fe8d435aa032999 Mon Sep 17 00:00:00 2001 From: psychedelicious <4822129+psychedelicious@users.noreply.github.com> Date: Mon, 20 May 2024 16:12:45 +1000 Subject: [PATCH] fix(mm): port changes into new model_install_common file Some subtle changes happened between this PR's last update and now. Bring them into the file. --- invokeai/app/services/model_install/model_install_common.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/invokeai/app/services/model_install/model_install_common.py b/invokeai/app/services/model_install/model_install_common.py index 2de1db5474..d42e7632f3 100644 --- a/invokeai/app/services/model_install/model_install_common.py +++ b/invokeai/app/services/model_install/model_install_common.py @@ -106,8 +106,10 @@ class HFModelSource(StringLikeSource): def __str__(self) -> str: """Return string version of repoid when string rep needed.""" base: str = self.repo_id - base += f":{self.variant or ''}" - base += f":{self.subfolder}" if self.subfolder else "" + if self.variant: + base += f":{self.variant or ''}" + if self.subfolder: + base += f":{self.subfolder}" return base