From 24b19166dd7e8921d92b4da1eb4de38d71b8e9bb Mon Sep 17 00:00:00 2001 From: Lincoln Stein Date: Sat, 29 Jul 2023 13:13:22 -0400 Subject: [PATCH] further refactoring --- invokeai/backend/model_management/model_manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/invokeai/backend/model_management/model_manager.py b/invokeai/backend/model_management/model_manager.py index 81dc0e5d07..e381fef567 100644 --- a/invokeai/backend/model_management/model_manager.py +++ b/invokeai/backend/model_management/model_manager.py @@ -423,7 +423,7 @@ class ModelManager(object): return (model_name, base_model, model_type) def _get_model_cache_path(self, model_path): - return self.resolve_model_path(".cache" + "/" + hashlib.md5(str(model_path).encode()).hexdigest()) + return self.resolve_model_path(Path(".cache") / hashlib.md5(str(model_path).encode()).hexdigest()) @classmethod def initialize_model_config(cls, config_path: Path):