CLI tool for streamlining the process of installing InvokeAI preset styles
Project description
InvokeAI Preset CLI
[!IMPORTANT] This tool makes changes to the Invoke AI database and while it does make snapshots before operations that write to a table, there is always a chance the data could become corrupted. Use stand-alone tools if you are paranoid about losing data. This tool is provided as-is and is not guaranteed to work in all environments. It is recommended to backup your database before using this tool at least once.
Overview
InvokeAI Preset CLI is a simple CLI tool that streamlines the process of managing large entries of presets into the Invoke AI. The tool was primarily designed to allow me to quickly add, update, and delete presets in bulk.
Presets/styles can be found at the gist.github.com/regiellis make sure to use the raw link to import the styles.
These styles are re-post of the work from the great people at: twri, 3Diva, Marc K3nt3L, and the fooocus project. Show your love on their projects.
Why
Just wanted a easy way to get presets in and out of the database without having to use the web interface. The web interface is great for one-off presets, and does have a bulk import feature, but I wanted to be able to do it from the command line with a litte more control over the process. I have also added a few features that are not available in the web interface.
Installation (Recommended)
You have a couple of options for installing/running the tool:
Install pipx, then run the tool with the following command
pipx install invokeai-presets
Alternatively, you can install using pip
pip install .
Configuration
[!IMPORTANT] Before using the tool, It's required to set up a
.env
file in the parent directory of the script or your home user dir [windows] or$HOME/.config/invoke-presets-itsjustregi/.env
You will be asked to create a new.env
file if it does not exist.
The application intelligently locates your .env
file, accommodating various platforms like Windows and Linux, or defaulting to the current directory.
Usage // Available Commands
Once installed via pipx or pip:
invoke-presets about -readme -changelog -version [-c, -r, -v]
invoke-presets list [--all, --only-defaults]
invoke-presets database create-snapshot
invoke-presets database list-snapshots
invoke-presets database delete-snapshot
invoke-presets database restore-snapshot
invoke-presets tools
invoke-presets export
invoke-presets import
invoke-presets delete
Contact
For any inquiries, feedback, or suggestions, please feel free to open an issue on this repository.
License
This project is licensed under the MIT License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for invokeai_presets_cli-1.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6beff1e90609bcccb1c2fcf95c879dc25fa6bc5c6c2333e2f4c540c8aa0ea23d |
|
MD5 | 1360b6fd6452da0b5853beb293169eed |
|
BLAKE2b-256 | 1e0bb5ce7635aa5f6b679d853e98961e3f0976d6fe11757cdc719bf34a0daca8 |
Hashes for invokeai_presets_cli-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0bf16a8f242aa8cf21569ef970dfe967e31513bb119210817b5f4d45aff53bd9 |
|
MD5 | deca6a381d07b8e18f113f6f9f97caba |
|
BLAKE2b-256 | 4c95f8d05fb5e3460296a18fd344debbc568bc928bcb75d0f104ce3cea3bafc2 |