InvokeAI/scripts
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
..
configure_invokeai.py chore: ruff format 2023-11-11 10:55:40 +11:00
generate_openapi_schema.py feat(scripts): add script to generate openapi schema 2024-03-07 10:16:44 +11:00
generate_profile_graphs.sh feat: add profiler util (#5601) 2024-01-31 10:51:57 +00:00
images2prompt.py isort wip 2 2023-09-12 13:01:58 -04:00
invokeai-cli.py isort wip 2 2023-09-12 13:01:58 -04:00
invokeai-model-install.py remove additional unused scripts 2023-09-02 10:05:29 -04:00
invokeai-web.py feat: single app entrypoint with CLI arg parsing 2024-03-19 09:24:28 +11:00
make_models_markdown_table.py isort wip 2 2023-09-12 13:01:58 -04:00
probe-model.py feat(mm): faster hashing for spinning disk HDDs 2024-03-14 15:54:42 +11:00
pypi_helper.py Apply black 2023-07-27 10:54:01 -04:00
scan_models_directory.py chore: ruff check - fix flake8-comprensions 2023-11-11 10:55:23 +11:00
sd-metadata.py isort wip 2 2023-09-12 13:01:58 -04:00
update_config_docstring.py fix(config): edge cases in models.yaml migration 2024-03-19 09:24:28 +11:00