fix mask missing options and system paths

This commit is contained in:
Vladimir Mandic
2024-02-10 08:10:24 -05:00
parent cfb059c5e8
commit bf14e6ed6d
12 changed files with 32 additions and 25 deletions
+5 -2
View File
@@ -17,8 +17,11 @@ codeformer = None
def setup_model(dirname):
if not os.path.exists(model_path):
os.makedirs(model_path)
try:
if not os.path.exists(model_path):
os.makedirs(model_path)
except Exception:
pass
path = modules.paths.paths.get("CodeFormer", None)
if path is None:
return