diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-03-25 09:36:35 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-25 09:36:35 +0000 |
commit | db7caf9b9cb353fdb92f179a02ba71c923e2dcec (patch) | |
tree | 93bd1e85103efdb4a2eb8cacf5c022901fd51c43 /modules/modelloader.py | |
parent | e5dd5d73357715110c18c1ac31711f3a81b84a0c (diff) | |
parent | c1294d849a50b9b2995aa257adbb918837c4b384 (diff) | |
download | stable-diffusion-webui-gfx803-db7caf9b9cb353fdb92f179a02ba71c923e2dcec.tar.gz stable-diffusion-webui-gfx803-db7caf9b9cb353fdb92f179a02ba71c923e2dcec.tar.bz2 stable-diffusion-webui-gfx803-db7caf9b9cb353fdb92f179a02ba71c923e2dcec.zip |
Merge branch 'master' into patch-1
Diffstat (limited to 'modules/modelloader.py')
-rw-r--r-- | modules/modelloader.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/modelloader.py b/modules/modelloader.py index e351d808..522affc6 100644 --- a/modules/modelloader.py +++ b/modules/modelloader.py @@ -4,7 +4,6 @@ import shutil import importlib from urllib.parse import urlparse -from basicsr.utils.download_util import load_file_from_url from modules import shared from modules.upscaler import Upscaler, UpscalerLanczos, UpscalerNearest, UpscalerNone from modules.paths import script_path, models_path @@ -59,6 +58,7 @@ def load_models(model_path: str, model_url: str = None, command_path: str = None if model_url is not None and len(output) == 0: if download_name is not None: + from basicsr.utils.download_util import load_file_from_url dl = load_file_from_url(model_url, model_path, True, download_name) output.append(dl) else: |