aboutsummaryrefslogtreecommitdiff
path: root/modules/upscaler.py
diff options
context:
space:
mode:
authorAUTOMATIC <16777216c@gmail.com>2023-05-19 09:09:00 +0300
committerAUTOMATIC <16777216c@gmail.com>2023-05-19 09:09:18 +0300
commitdf6fffb054f8d3444baa887151a4874506a68be1 (patch)
tree6b2ab174215a1525a62d1fdd9fd46f7c61302e1d /modules/upscaler.py
parent379fd6204dfc27e16acc03f705ecd9ff23c2d1c0 (diff)
change upscalers to download models into user-specified directory (from commandline args) rather than the default models/<...>
Diffstat (limited to 'modules/upscaler.py')
-rw-r--r--modules/upscaler.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/upscaler.py b/modules/upscaler.py
index 8acb6e96..7b1046d6 100644
--- a/modules/upscaler.py
+++ b/modules/upscaler.py
@@ -34,6 +34,7 @@ class Upscaler:
self.half = not modules.shared.cmd_opts.no_half
self.pre_pad = 0
self.mod_scale = None
+ self.model_download_path = None
if self.model_path is None and self.name:
self.model_path = os.path.join(shared.models_path, self.name)