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/realesrgan_model.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/realesrgan_model.py')
-rw-r--r-- | modules/realesrgan_model.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/realesrgan_model.py b/modules/realesrgan_model.py index c24d8dbb..99983678 100644 --- a/modules/realesrgan_model.py +++ b/modules/realesrgan_model.py @@ -73,7 +73,7 @@ class UpscalerRealESRGAN(Upscaler): return None
if info.local_data_path.startswith("http"):
- info.local_data_path = load_file_from_url(url=info.data_path, model_dir=self.model_path, progress=True)
+ info.local_data_path = load_file_from_url(url=info.data_path, model_dir=self.model_download_path, progress=True)
return info
except Exception as e:
|