InvokeAI/invokeai/backend
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
..
embeddings Tidy names and locations of modules 2024-03-01 10:42:33 +11:00
image_util chore: ruff 2024-03-19 09:24:28 +11:00
install fix(config): edge cases in models.yaml migration 2024-03-19 09:24:28 +11:00
ip_adapter final tidying before marking PR as ready for review 2024-03-01 10:42:33 +11:00
model_hash tidy(mm): remove misplaced comment 2024-03-14 15:54:42 +11:00
model_manager fix(config): use new get_config across the app, use correct settings 2024-03-19 09:24:28 +11:00
onnx final tidying before marking PR as ready for review 2024-03-01 10:42:33 +11:00
stable_diffusion fix(config): use new get_config across the app, use correct settings 2024-03-19 09:24:28 +11:00
tiles feat(nodes): extract LATENT_SCALE_FACTOR to constants.py 2024-03-01 10:42:33 +11:00
training fix(config): use correct config in textual_inversion_training 2024-03-19 09:24:28 +11:00
util chore: ruff 2024-03-19 09:24:28 +11:00
__init__.py consolidate model manager parts into a single class 2024-03-01 10:42:33 +11:00
lora.py final tidying before marking PR as ready for review 2024-03-01 10:42:33 +11:00
model_patcher.py chore: ruff 2024-03-01 10:42:33 +11:00
raw_model.py final tidying before marking PR as ready for review 2024-03-01 10:42:33 +11:00
textual_inversion.py final tidying before marking PR as ready for review 2024-03-01 10:42:33 +11:00