diff options
author | AUTOMATIC <16777216c@gmail.com> | 2023-05-19 06:09:00 +0000 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2023-05-19 06:09:18 +0000 |
commit | df6fffb054f8d3444baa887151a4874506a68be1 (patch) | |
tree | 6b2ab174215a1525a62d1fdd9fd46f7c61302e1d /modules/upscaler.py | |
parent | 379fd6204dfc27e16acc03f705ecd9ff23c2d1c0 (diff) | |
download | stable-diffusion-webui-gfx803-df6fffb054f8d3444baa887151a4874506a68be1.tar.gz stable-diffusion-webui-gfx803-df6fffb054f8d3444baa887151a4874506a68be1.tar.bz2 stable-diffusion-webui-gfx803-df6fffb054f8d3444baa887151a4874506a68be1.zip |
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.py | 1 |
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) |