add all legacy model .yaml files to configs directory unconditionally

This commit is contained in:
Lincoln Stein 2023-07-26 15:17:00 -04:00
parent bf1f6619df
commit 020031f376

View File

@ -767,8 +767,8 @@ def main():
if migrate_if_needed(opt, config.root_path):
sys.exit(0)
if not config.model_conf_path.exists():
initialize_rootdir(config.root_path, opt.yes_to_all)
# run this unconditionally in case new directories need to be added
initialize_rootdir(config.root_path, opt.yes_to_all)
models_to_download = default_user_selections(opt)
new_init_file = config.root_path / 'invokeai.yaml'