change upscalers to download models into user-specified directory (from commandline args) rather than the default models/<...>

This commit is contained in:
AUTOMATIC
2023-05-19 09:09:00 +03:00
parent 379fd6204d
commit df6fffb054
7 changed files with 12 additions and 9 deletions

View File

@@ -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,
)