mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-12-06 02:30:30 -08:00
change upscalers to download models into user-specified directory (from commandline args) rather than the default models/<...>
This commit is contained in:
parent
379fd6204d
commit
df6fffb054
7 changed files with 12 additions and 9 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue