aboutsummaryrefslogtreecommitdiff
path: root/modules/modelloader.py
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2023-03-25 11:34:07 +0300
committerGitHub <noreply@github.com>2023-03-25 11:34:07 +0300
commit8d2c582e3ea99e107df57a4e142acc28a6318d55 (patch)
treea8f5f12f23b60aeeda141b6bf562a6d9ad699f1f /modules/modelloader.py
parentc0a7ff8055fa7c629fd22ba49f1cb184442cdd6b (diff)
parent00bd271faffbdfd2988b6cfc9117c67681ee14b7 (diff)
Merge pull request #8797 from ArrowM/master
Move `load_file_from_url` import
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: