Skip to main content

ecko-cli

Overview

ecko-cli is a simple CLI tool that streamlines the process of processingimages in a directory, generating captions, and saving them as text files. Additionally, it provides functionalities to create a JSONL file from images in the directory you specify. Images will be captioned using the MiaoshouAI/Florence-2-base-PromptGen-v2.0 model. Images are resized to multiple sizes for better captioning results. [1024, 768, 672, 512].

screenshot

Why

I wanted to create a tool that would allow me to process images in bulk quickly and efficiently for using in generative art projects. This tool allows me to generate captions for images that I can use as training data captions for my training LORAs (Large OpenAI Research Agents) and other generative models.

You have a couple of options for installing/running the tool:

Install pipx, then run the tool with the following command

pipx install ecko-cli

Alternatively, you can install using pip

pip install .

Configuration

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:

ecko process-images /path/to/images watercolors --padding 4
ecko process-images --use_joy_cap /path/to/images watercolors --padding 4
ecko process-images /path/to/images doors --is_object True
ecko process-images /path/to/images doors --trigger WORD
ecko create-jsonl /path/to/images [dataset]
ecko ui /path/to/images

Dependencies

This tool requires Python 3.11 or higher and has the following dependencies:

"typer",
"rich",
"shellingham",
"python-dotenv",
"torch",
"pillow",
"einops"
"transformers"
"timm"
"torchvision"
"huggingface_hub[cli]"

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.


Metadata

Release files for ecko-cli 1.6.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ecko-cli 1.6.0
File Size Uploaded
ecko_cli-1.6.0.tar.gz 264.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ecko-cli 1.6.0
File Interpreter ABI Platform
ecko_cli-1.6.0-py3-none-any.whl Python 3 none any Details

Total release size: 529.7 kB

Release files / ecko_cli-1.6.0.tar.gz

Download URL ecko_cli-1.6.0.tar.gz
Size 264.0 kB
Tags Source
SHA-256 checksum
How to use checksums
5d87c204b4e65dff757591b311cd2b99280329dcca12214744ffcb95bf495163
BLAKE2b-256 checksum
How to use checksums
843fe31f328a8928ab807f43b28a3f012462cb5a965d6b10ab0b0d5d8d8c95a9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.9.20

Release files / ecko_cli-1.6.0-py3-none-any.whl

Download URL ecko_cli-1.6.0-py3-none-any.whl
Size 265.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fe206d1a19c4d4a5b5a5cafe9118d474f7e5cf3562382e5ec3aa8877fd5b4bc2
BLAKE2b-256 checksum
How to use checksums
b792ad8650171daf9a701fa78e4f9140e71876c1ee5ac2f4b8f20bdd2e5b50a2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.9.20

Release history Release notifications | RSS feed

This release

1.6.0 This release

2 release files

1.5.0

2 release files

1.4.1

2 release files

1.4.0

2 release files

1.3.0

2 release files

1.2.0

2 release files

1.1.0

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page