This project is not affiliated with InvokeAI in any way.
A tool for managing and analyzing InvokeAI database entries and PNG metadata.
Point it at your InvokeAI database and your outputs folder, then synchronise. The result is split into what would be deleted, what is missing from the database, and what is missing a thumbnail — nothing is written until you press one of those buttons:
- Synchronization: Match between database and output directory
- Restoration: Add missing database entries for existing images
- Cleanup: Remove database entries for non-existent images
- Metadata Extraction: Automatic extraction and storage of InvokeAI metadata
- Workflow Detection: Identification and flagging of images with workflow information
- Model Path Management: Management of model paths in the database
- Model Type Management: Management of model types in the database
Model paths and config types are edited straight from the list, so a moved model library can be repointed without touching SQL:
- Node.js (recommended: version 14 or higher)
- npm or yarn
- Electron
# Clone repository
git clone https://github.com/Pfannkuchensack/sqlite_invokeai_db_tool.git
cd sqlite_invokeai_db_tool
# Install dependencies
npm install
# Start application
npm start# For Windows
npm run package-win
# or
npm run make- Start the application with
npm startor use the compiled version - Select the SQLite database file from InvokeAI
- Choose the output directory where the images are stored
- Use the various functions for synchronization and management
The tool recognizes different types of InvokeAI metadata in PNG files:
- invokeai_metadata: Contains general information about the image generation
- invokeai_graph: Contains the processing graph with nodes and connections
- invokeai_workflow: Contains workflow information for reuse
Images are classified based on their metadata:
- Final Images: Images with
invokeai_metadata - Intermediate Images: Images with exclusively
is_intermediate=truenodes - Unknown Images: Images without recognizable InvokeAI metadata
Apache-2.0. See LICENSE and NOTICE.
Pfannkuchensack


