mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2024-12-29 19:05:05 +08:00
fix logic error in #1832
This commit is contained in:
parent
f4578b343d
commit
77a719648d
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user