InvokeAI/scripts
Lincoln Stein b23f18734b
feat(model_manager): Add scan and delete of orphaned models (#8826)
* Add script and UI to remove orphaned model files

- This commit adds command-line and Web GUI functionality for
  identifying and optionally removing models in the models directory
  that are not referenced in the database.

Co-authored-by: lstein <111189+lstein@users.noreply.github.com>

* Add backend service and API routes for orphaned models sync

Co-authored-by: lstein <111189+lstein@users.noreply.github.com>

Add expandable file list to orphaned models dialog

Co-authored-by: lstein <111189+lstein@users.noreply.github.com>

* Fix cache invalidation after deleting orphaned models

Co-authored-by: lstein <111189+lstein@users.noreply.github.com>

* (bugfix) improve status messages

* docs(backend): add info on the orphaned model detection/removal feature

* Update docs/features/orphaned_model_removal.md

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: lstein <111189+lstein@users.noreply.github.com>
Co-authored-by: dunkeroni <dunkeroni@gmail.com>
2026-02-06 22:32:10 +00:00
..
__init__.py Add __init__.py file to scripts dir for pytest 2024-10-02 18:33:05 -04:00
allocate_vram.py scripts: add allocate_vram script 2024-09-02 18:18:26 +10:00
build_wheel.sh docs: add comments to classifiers stuff 2025-05-27 22:02:48 +10:00
check_classifiers.py docs: add comments to classifiers stuff 2025-05-27 22:02:48 +10:00
classify-model.py refactor: model manager v3 (#8607) 2025-10-15 10:18:53 +11:00
extract_sd_keys_and_shapes.py Add scripts/extract_sd_keys_and_shapes.py 2024-10-09 14:17:42 +00:00
generate_openapi_schema.py fix(app): openapi schema generation 2024-05-30 12:03:03 +10:00
generate_profile_graphs.sh feat: add profiler util (#5601) 2024-01-31 10:51:57 +00:00
generate_vae_linear_approximation.py Fix lint error. 2025-04-10 10:50:13 +10:00
get_external_contributions.py chore: fix some comments 2025-08-14 09:32:54 +10:00
invokeai-web.py feat: single app entrypoint with CLI arg parsing 2024-03-19 09:24:28 +11:00
remove_orphaned_models.py feat(model_manager): Add scan and delete of orphaned models (#8826) 2026-02-06 22:32:10 +00:00
tag_release.sh build: remove installer & convert installer build script to only build the wheel 2025-04-04 18:42:13 +11:00
update_config_docstring.py fix(config): edge cases in models.yaml migration 2024-03-19 09:24:28 +11:00