imgcap
A CLI to generate captions for images using the GiT model from MSFT
Install
Install imgcap in your system using:
pip install imgcap
The model size is of 707MB and once initially downloaded, it will be stored in the ~/.cache/huggingface/hub/.
Usage
Run the CLI tool as follows
nameit [OPTIONS] PATHS..
Options
--output [pretty|json]: Specify the output format (default: pretty).--max-tokens INTEGER: Maximum number of tokens in the generated caption (default: 50).--recursive: Recursively process directories to find images.--threads INTEGER: Number of threads to use for processing (default: 1)
Example commands
- Generate captions for a single image:
imgcap ./path/to/image.jpg --output pretty
- Generate captions for all images in a directory:
imgcap ./path/to/directory --recursive --output json
- Use multiple threads for faster processing:
imgcap ./images --threads 4
Metadata
Release files for imgcap 0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| imgcap-0.2.tar.gz | 3.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| imgcap-0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.3 kB
Release files / imgcap-0.2.tar.gz
| Download URL | imgcap-0.2.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dd41d141735a0211bff4355745bbf60982fedbbf6bbba057a828c2521e901bb9
|
|
BLAKE2b-256 checksum How to use checksums |
1a0020041f486bfd148c48dc888f8ab21250834f11cee6d8e0e3e242752e7614
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.1 CPython/3.12.5
|
Release files / imgcap-0.2-py3-none-any.whl
| Download URL | imgcap-0.2-py3-none-any.whl |
|---|---|
| Size | 3.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bfe9e1111f3e2be8d7314ee8ed82dea6cc49398f9d3da8c8f95a5aab9efe2f7d
|
|
BLAKE2b-256 checksum How to use checksums |
ae3cdc5311ab0d5110a1e8561accb98b2fcdb69547ead62921403b67bb6e95f9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.1 CPython/3.12.5
|