Commit 77a71964 authored by AUTOMATIC's avatar AUTOMATIC

fix logic error in #1832

parent f4578b34
...@@ -37,7 +37,7 @@ class Upscaler: ...@@ -37,7 +37,7 @@ class Upscaler:
self.pre_pad = 0 self.pre_pad = 0
self.mod_scale = None self.mod_scale = None
if self.model_path is not None and self.name: if self.model_path is None and self.name:
self.model_path = os.path.join(models_path, self.name) self.model_path = os.path.join(models_path, self.name)
if self.model_path and create_dirs: if self.model_path and create_dirs:
os.makedirs(self.model_path, exist_ok=True) os.makedirs(self.model_path, exist_ok=True)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment