aboutsummaryrefslogtreecommitdiff
path: root/modules/modelloader.py
diff options
context:
space:
mode:
authorpieresimakp <69743585+pieresimakp@users.noreply.github.com>2023-03-25 23:00:45 +0800
committerpieresimakp <69743585+pieresimakp@users.noreply.github.com>2023-03-25 23:00:45 +0800
commite3b9d0e3e8adfb6214a1eb7acf450574f427ff9d (patch)
treec9c64ad1f926df990fb2ce05c6eec063de195eec /modules/modelloader.py
parent771ea212de13711b494b082d8e94e79b17ac9d08 (diff)
parent91ae48fd7e20c60d6374f340cac0939f56d87048 (diff)
Merge branch 'master' into img2img-detect-image-size
Diffstat (limited to 'modules/modelloader.py')
-rw-r--r--modules/modelloader.py2
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: