Skip to main content

Captioned Image Dataset Formatter

Flexible dataset tool for creating a 🤗 Datasets dataset from image-caption pairs.

The tool expects duplicate directory structures and filenames (excluding file extentions) for the images and captions. Subdirectories will be used as additional tabular attributes.

This file structure is chosen to allow for efficient changes between caption sets, and to easily integrate with my VLM-Captioner.

Ex.

Input File Structure:

dataset/
├── image_folder/
|   ├── subdir1/
|   │   ├── image_1.png
|   │   ├── image_2.png
|   │   └── ...
|   └── subdir2/
|       ├── image_1001.png
|       └── ...
└── caption_folder/
    ├── subdir1/
    │   ├── image_1.txt
    │   ├── image_2.txt
    │   └── ...
    └── subdir2/
        ├── image_1001.txt
        └── ...

Output Dataset:

image caption attribute_1
image_1.png image_1.txt subdir1
image_2.png image_2.txt subdir1
... ... ...
image_1001.png image_1001.txt subdir2

Installation and Usage

First, install the package from PyPI:

pip install captioned-image-dataset-loader

Datasets can then be loaded using the following:

from captioned_image_dataset_generator import load_captioned_image_dataset

dataset = load_captioned_image_dataset("data/images", "data/captions")

Metadata

Release files for captioned-image-dataset-loader 1.0.2

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

Source distribution (sdist)

Source distribution for captioned-image-dataset-loader 1.0.2
File Size Uploaded Provenance Actions
captioned_image_dataset_loader-1.0.2.tar.gz 2.1 kB With provenance Details for captioned_image_dataset_loader-1.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for captioned-image-dataset-loader 1.0.2
File Interpreter ABI Platform Actions
captioned_image_dataset_loader-1.0.2-py3-none-any.whl Python 3 none any Details for captioned_image_dataset_loader-1.0.2-py3-none-any.whl

Total release size: 4.9 kB

Release files / captioned_image_dataset_loader-1.0.2.tar.gz

Download URL captioned_image_dataset_loader-1.0.2.tar.gz
Size 2.1 kB
Tags Source
SHA-256 checksum
How to use checksums
a9ce1c681229021e4bd553d680758e329dbd0e67085597f87bbb220fb8cfe742
BLAKE2b-256 checksum
How to use checksums
f4e7601143c4a7173ff5da1720ff15b57d4c4dd81f49de38c3fdd6a717309ba1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 7, 2025.

Transparency log

Release files / captioned_image_dataset_loader-1.0.2-py3-none-any.whl

Download URL captioned_image_dataset_loader-1.0.2-py3-none-any.whl
Size 2.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c29b5319c2645dc04a2594c19f02f27d6c1922b78bbc25a9b09c8774e7804d44
BLAKE2b-256 checksum
How to use checksums
ec91e54d4c230cda2436a3d1628894e8522e2fd3fc9a2cad53926a7b176414c9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 7, 2025.

Transparency log

Security for captioned-image-dataset-loader 1.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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for captioned_image_dataset_loader-1.0.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 7, 2025.

Transparency log

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.

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