aboutsummaryrefslogtreecommitdiffstats
path: root/modules/upscaler.py
diff options
context:
space:
mode:
authorAUTOMATIC <16777216c@gmail.com>2022-10-09 10:48:04 +0000
committerAUTOMATIC <16777216c@gmail.com>2022-10-09 10:48:04 +0000
commit77a719648db515f10136e8b8483d5b16bda2eaeb (patch)
tree2b54fd0d903b6077025913d39f2e980c49c4f31a /modules/upscaler.py
parentf4578b343ded3b8ccd1879ea0c0b3cdadfcc3a5f (diff)
downloadstable-diffusion-webui-gfx803-77a719648db515f10136e8b8483d5b16bda2eaeb.tar.gz
stable-diffusion-webui-gfx803-77a719648db515f10136e8b8483d5b16bda2eaeb.tar.bz2
stable-diffusion-webui-gfx803-77a719648db515f10136e8b8483d5b16bda2eaeb.zip
fix logic error in #1832
Diffstat (limited to 'modules/upscaler.py')
-rw-r--r--modules/upscaler.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/upscaler.py b/modules/upscaler.py
index 34672be7..6ab2fb40 100644
--- a/modules/upscaler.py
+++ b/modules/upscaler.py
@@ -37,7 +37,7 @@ class Upscaler:
self.pre_pad = 0
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)
if self.model_path and create_dirs:
os.makedirs(self.model_path, exist_ok=True)