aboutsummaryrefslogtreecommitdiffstats
path: root/modules/esrgan_model.py
diff options
context:
space:
mode:
authorAUTOMATIC <16777216c@gmail.com>2023-05-19 06:09:00 +0000
committerAUTOMATIC <16777216c@gmail.com>2023-05-19 06:09:18 +0000
commitdf6fffb054f8d3444baa887151a4874506a68be1 (patch)
tree6b2ab174215a1525a62d1fdd9fd46f7c61302e1d /modules/esrgan_model.py
parent379fd6204dfc27e16acc03f705ecd9ff23c2d1c0 (diff)
downloadstable-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/esrgan_model.py')
-rw-r--r--modules/esrgan_model.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/esrgan_model.py b/modules/esrgan_model.py
index a009eb42..2fced999 100644
--- a/modules/esrgan_model.py
+++ b/modules/esrgan_model.py
@@ -154,7 +154,7 @@ class UpscalerESRGAN(Upscaler):
if "http" in path:
filename = load_file_from_url(
url=self.model_url,
- model_dir=self.model_path,
+ model_dir=self.model_download_path,
file_name=f"{self.model_name}.pth",
progress=True,
)