mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-04-23 03:00:31 -04:00
Feature(backend): Add a command-line utility for running gallery maintenance (#8827)
* (bugfix) Add a command-line utility for running gallery maintenance * chore(backend): ruff
This commit is contained in:
12
scripts/gallery_maintenance.py
Executable file
12
scripts/gallery_maintenance.py
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/usr/bin/env python3
|
||||
"""
|
||||
gallery_maintenance.py
|
||||
|
||||
Remove orphan images from the gallery directory.
|
||||
Remove orphan database entries for images that no longer exist in the gallery directory.
|
||||
Regenerate missing thumbnail images.
|
||||
"""
|
||||
|
||||
from invokeai.backend.util.gallery_maintenance import main
|
||||
|
||||
main()
|
||||
Reference in New Issue
Block a user