deboincepai's picture
Document the caption generation prompts
df2b3f9 verified
|
Raw History Blame Contribute Delete
3.86 kB
metadata
license: apache-2.0
pretty_name: Recaptioned LAION v2
language:
  - en
task_categories:
  - image-to-text
size_categories:
  - 1M<n<10M
tags:
  - laion
  - image-captioning
  - synthetic-data
configs:
  - config_name: default
    data_files:
      - split: train
        path: data/train-*.parquet

Recaptioned LAION v2

Recaptioned LAION v2 contains captions and source metadata for 5,523,137 web images. Gemma 4 31B IT generated the new descriptions. Each row includes the new and previous captions, source metadata, and identifiers for joining to image shards. This release has one train split.

Load the dataset

from datasets import load_dataset

dataset = load_dataset(
    "PuzzleComm/Recaptioned-LAION-v2", split="train", streaming=True
)
example = next(iter(dataset))
image_key = example["key"]
source_url = example["url"]
caption = example["new_caption"]

The Parquet shards contain the two captions and their metadata. The key column joins each caption to its JPEG, named <key>.jpg in a separate image release. The url column records the original image location.

Data fields

Field Description
key Original image identifier, stored as a string with leading zeros.
url Source image URL used for the metadata join.
original_caption Caption from the upstream caption field. The export uses one name for this value across caption runs.
new_caption Generated description of the image.
new_reasoning Model reasoning text when recorded.
image_path Relative file path in the original download layout.
model Model identifier reported by the captioning run.
response_time_seconds Measured response time when recorded. Earlier rows can have a null value.
generation_params Generation settings for the row, including token budget, sampling settings, thinking mode, and seed.
source_meta All fields from source guangyil/laion-coco-aesthetic

Sources and processing

The input was laion-coco_v3_filter.parquet from guangyil/laion-coco-aesthetic, derived from LAION-COCO. Candidate records were deduplicated by URL and SHA-256. Images that could be downloaded and decoded were saved as JPEGs and submitted to the captioning model. Four empty responses were regenerated with thinking mode disabled, as recorded in generation_params.

The source join uses exact URL equality. For repeated source URLs, the export uses the first matching source row and verifies the image key. source_meta contains TEXT, all_captions, all_similarities, similarity, caption, url, key, status, error_message, width, height, original_width, original_height, exif, sha256, aesthetic_score, watermark, and __index_level_0__.

Captioning prompts

System message

Describe images accurately and concisely. Follow the requested word count exactly.

User message

The image came first, followed by this text.

Describe this image briefly in 30-50 words. Do not include any preamble or introduction, just the description.

Limitations and licensing

The google/gemma-4-31B-it model generated the new captions. They can misidentify details, omit context, or reflect biases in the images and model. Upstream dimensions and EXIF refer to the source records and can differ from the downloaded JPEGs.

The upstream metadata repository lists Apache-2.0. The JPEGs come from third-party sources and their rights depend on the original material. The url and key fields identify individual records for attribution or removal requests. Please use this repository's Community tab to report a record.