diff options
author | missionfloyd <missionfloyd@users.noreply.github.com> | 2023-03-27 03:47:05 +0000 |
---|---|---|
committer | missionfloyd <missionfloyd@users.noreply.github.com> | 2023-03-27 03:47:05 +0000 |
commit | efac2cf1ab6645f3f5134158c1401c6305c2ffea (patch) | |
tree | 24b69e980c07d03618a6e5b2447704cdb30a6a20 /modules/modelloader.py | |
parent | 1d096ed1456c9b9b662477839853621848705e68 (diff) | |
parent | a336c7fe233fa7dff062f5187c0f4d01ab26e80b (diff) | |
download | stable-diffusion-webui-gfx803-efac2cf1ab6645f3f5134158c1401c6305c2ffea.tar.gz stable-diffusion-webui-gfx803-efac2cf1ab6645f3f5134158c1401c6305c2ffea.tar.bz2 stable-diffusion-webui-gfx803-efac2cf1ab6645f3f5134158c1401c6305c2ffea.zip |
Merge branch 'extra-network-preview-lazyload' of https://github.com/missionfloyd/stable-diffusion-webui into extra-network-preview-lazyload
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: |