From 251a130f0662bc172c602e23c1c32c1d229ac388 Mon Sep 17 00:00:00 2001 From: Manuel Schmid <9307310+mashb1t@users.noreply.github.com> Date: Mon, 12 Aug 2024 07:59:00 +0200 Subject: [PATCH] fix: move import to resolve colab issue (#3506) --- launch.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/launch.py b/launch.py index 2f256bac7..eae5b19eb 100644 --- a/launch.py +++ b/launch.py @@ -21,7 +21,6 @@ from build_launcher import build_launcher from modules.launch_util import is_installed, run, python, run_pip, requirements_met, delete_folder_content from modules.model_loader import load_file_from_url -from modules.util import get_file_from_folder_list REINSTALL_ALL = False TRY_INSTALL_XFORMERS = False @@ -102,6 +101,8 @@ def ini_args(): def download_models(default_model, previous_default_models, checkpoint_downloads, embeddings_downloads, lora_downloads, vae_downloads): + from modules.util import get_file_from_folder_list + for file_name, url in vae_approx_filenames: load_file_from_url(url=url, model_dir=config.path_vae_approx, file_name=file_name)