delay importing of modules.config (#2195)

This commit is contained in:
rsl8 2024-02-10 17:42:30 +01:00 committed by Manuel Schmid
parent d1a450c581
commit 95f93a1f4b
No known key found for this signature in database
GPG Key ID: 32C4F7569B40B84B
1 changed files with 2 additions and 1 deletions

View File

@ -21,7 +21,6 @@ import fooocus_version
from build_launcher import build_launcher
from modules.launch_util import is_installed, run, python, run_pip, requirements_met
from modules.model_loader import load_file_from_url
from modules import config
REINSTALL_ALL = False
@ -84,6 +83,8 @@ if args.gpu_device_id is not None:
print("Set device to:", args.gpu_device_id)
from modules import config
def download_models():
for file_name, url in vae_approx_filenames:
load_file_from_url(url=url, model_dir=config.path_vae_approx, file_name=file_name)