InvokeAI/invokeai/backend/install
psychedelicious e76cc71e81 fix(config): edge cases in models.yaml migration
When running the configurator, the `legacy_models_conf_path` was stripped when saving the config file. Then the migration logic didn't fire correctly, and the custom models.yaml paths weren't migrated into the db.

- Rework the logic to migrate this path by adding it to the config object as a normal field that is not excluded from serialization.
- Rearrange the models.yaml migration logic to remove the legacy path after migrating, then write the config file. This way, the legacy path doesn't stick around.
- Move the schema version into the config object.
- Back up the config file before attempting migration.
- Add tests to cover this edge case
2024-03-19 09:24:28 +11:00
..
__init__.py rename invokeai.backend.config to invokeai.backend.install 2023-05-31 21:34:20 -04:00
check_root.py feat(config): restore ignore_missing_core_models arg 2024-03-19 09:24:28 +11:00
install_helper.py fix(install): do not use deprecated pydantic methods 2024-03-19 09:24:28 +11:00
invokeai_configure.py fix(config): edge cases in models.yaml migration 2024-03-19 09:24:28 +11:00
legacy_arg_parsing.py wip: Add LCMScheduler 2023-11-10 06:54:36 -08:00