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 | Provenance | Actions |
|---|---|---|---|---|
| imgcap-0.2.tar.gz | 3.9 kB | Without provenance | Details for imgcap-0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| imgcap-0.2-py3-none-any.whl | Python 3 | none | any | Details for imgcap-0.2-py3-none-any.whl |
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
|
Security for imgcap 0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.