mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
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.
This commit is contained in:
parent
585feccf82
commit
a9f773c03c
@ -106,8 +106,10 @@ class HFModelSource(StringLikeSource):
|
|||||||
def __str__(self) -> str:
|
def __str__(self) -> str:
|
||||||
"""Return string version of repoid when string rep needed."""
|
"""Return string version of repoid when string rep needed."""
|
||||||
base: str = self.repo_id
|
base: str = self.repo_id
|
||||||
base += f":{self.variant or ''}"
|
if self.variant:
|
||||||
base += f":{self.subfolder}" if self.subfolder else ""
|
base += f":{self.variant or ''}"
|
||||||
|
if self.subfolder:
|
||||||
|
base += f":{self.subfolder}"
|
||||||
return base
|
return base
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user