From 2ac29137470396733e95e7efa77e091d5e8a5ef5 Mon Sep 17 00:00:00 2001 From: rohvani <3782201+rohvani@users.noreply.github.com> Date: Thu, 9 Mar 2023 20:13:23 -0800 Subject: [PATCH] fix reference issue --- modules/models.py | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/models.py b/modules/models.py index 062ccb1f..a2256b98 100644 --- a/modules/models.py +++ b/modules/models.py @@ -109,6 +109,7 @@ def load_model(model_name): # check root of models folder, and model path root paths = [ f"{path_to_model}/{pt_model}", f"models/{pt_model}" ] + pt_path = None for path in [ Path(p) for p in paths ]: if path.exists(): pt_path = path