mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 17:24:32 +02:00
fix mask missing options and system paths
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user