From 64a51fba41f020efa0f3f1299c3adaafb99256cc Mon Sep 17 00:00:00 2001 From: Brandon Rising Date: Fri, 30 Aug 2024 15:37:42 -0400 Subject: [PATCH] Support HF repos with subfolders in source on windows OS --- invokeai/app/services/model_install/model_install_common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/invokeai/app/services/model_install/model_install_common.py b/invokeai/app/services/model_install/model_install_common.py index 13ba8ad9b7..4dbd1ef1c1 100644 --- a/invokeai/app/services/model_install/model_install_common.py +++ b/invokeai/app/services/model_install/model_install_common.py @@ -103,7 +103,7 @@ class HFModelSource(StringLikeSource): if self.variant: base += f":{self.variant or ''}" if self.subfolder: - base += f"::{self.subfolder}" + base += f"::{self.subfolder.as_posix()}" return base