Datasets:

Modalities:
Text
Formats:
parquet
ArXiv:
Libraries:
Datasets
pandas
Dataset Viewer
The dataset viewer is not available for this dataset.
Unexpected token '<', "<html> <h"... is not valid JSON

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

PanoCaps (PANORAMA): Panoptic grounded captioning via mask-guided refinement

Paper Code Data Website

Panorama teaser image

PanoCaps is a unified dataset for panoptic grounded captioning. A model must generate a full-scene caption and ground every mentioned entity (things and stuff) with pixel-level masks.

Every caption:

  • Is human-written
  • Covers the entire visible scene
  • Contains rich open-vocabulary descriptions beyond category labels
  • Includes inline grounding tags referring to segmentation masks
  • Supports one-to-many and many-to-one text ↔ mask mappings

This makes PanoCaps suitable for training and evaluating vision–language models requiring both detailed scene understanding and fine-grained spatial grounding.

The repository includes:

  1. Raw annotations in JSON format (annotations/) β†’ best for training & evaluation
  2. A processed Hugging Face dataset β†’ best for visualization & inspection

This dataset is intended exclusively for research and non-commercial use.

Dataset Details

Dataset Description

This benchmark supports panoptic grounded captioningβ€”a task requiring models to generate long-form, descriptive captions for the entire scene and link all mentioned entities (things and stuff) to pixel-level masks. Masks follow standard COCO-style panoptic annotations.

The dataset comprises 3,470 images with a total of 34K panoptic regions, averaging ~9 grounded entities per image. The human-written captions are designed for maximum quality and detail:

  • Comprehensive: Covers the entire visible scene.
  • Open-Vocabulary: Entity descriptions extend beyond simple category labels.
  • Fully Grounded: Uses in-text markers and explicit mapping structures (label_matched) to link text spans to masks, ensuring >99% of regions are grounded.

Images

Images are not included in this repository.

To use the dataset, download the original images from the source datasets:

Dataset Data Download Link Associated Publication
ADE20K ADE20K Download ADE20K Paper
COCONut COCONut GitHub COCONut Paper
VIPSeg VIPSeg GitHub VIPSeg Paper

The JSON annotations reference these images by consistent file_name and id.

Repository Structure

Show Repository Structure
    PanoCaps/
    β”‚
    β”œβ”€β”€ πŸ“ annotations/
    β”‚   β”œβ”€β”€ πŸ“„ test_caption.json
    β”‚   β”œβ”€β”€ πŸ“„ test_mask.json
    β”‚   β”œβ”€β”€ πŸ“„ train_caption.json
    β”‚   β”œβ”€β”€ πŸ“„ train_mask.json
    β”‚   β”œβ”€β”€ πŸ“„ val_caption.json
    β”‚   └── πŸ“„ val_mask.json
    β”œβ”€β”€ πŸ“ data/ (parquet/HF version)
    └── πŸ“„ README.md
    

Recommended Usage

This dataset is provided in two complementary formats:

1. Hugging Face Dataset Format (recommended for inspection & visualization)

The train, val, and test splits uploaded to the Hugging Face Hub combine captioning and panoptic mask information into a single unified entry per image. This format is ideal for browsing samples interactively in the Dataset Viewer or quick experimentation.

2. Original COCO-Style JSON Format (recommended for training & evaluation)

Raw annotations are provided under annotations/ as pairs of Caption files and Mask files (e.g., train_caption.json / train_mask.json).

These follow the original COCO-style structure and are best suited for:

  • Model training
  • Model evaluation
  • Direct integration into COCO-based pipelines

Caption and mask files can be matched using the shared image_id / id fields in images[*] and annotations[*].

Detailed COCO Format

Show Caption File Example (Structure + Single Entry)
{
  "annotations": [
    {
      "caption": "The image shows a small, brightly lit bathroom dominated by a white tiled wall...",
      // Clean natural-language caption
      "caption_ann": "The image shows a small, brightly lit bathroom dominated by a <0:white tiled wall>...",
      // Caption with grounded <mask_id:text> references
      "label_matched": [
        { "mask_ids": [0], "txt_desc": "white tiled wall" },
        { "mask_ids": [5], "txt_desc": "white bathtub with chrome faucets" }
        // ...
      ],
      // Mapping text spans β†’ one or more mask IDs
      // Masks may appear multiple times with different descriptions
      "id": 0,
      // Caption annotation ID
      "image_id": "00000006",
      // Matches the images[*].id field
      "labels": ["wall", "floor", "ceiling", "window", "curtain", "tub", "sink"]
      // All unique semantic labels from the original annotations
    }
  ],
  "images": [
    {
      "file_name": "00000006.jpg",
      // Image filename
      "height": 973,
      "width": 512,
      // Image resolution
      "id": "00000006",
      // Image identifier (matches annotation.image_id)
      "data_source": "ADE20K"
      // Image source
    }
  ]
}
Show Mask File Example (Structure + Single Entry)
{
  "annotations": [
    {
      "id": 0,
      // Unique ID of this panoptic region
      "image_id": "00000006",
      // Links this region to the image and caption (matches images[*].id and caption image_id)
      "category_id": 100,
      // Semantic category ID (from the original annotations)
      "segmentation": {
        "size": [973, 512],
        // Height and width of the full image (needed to decode the RLE mask)
        "counts": "d1`1Zk0P2C=C<D=C=C6J=..." 
        // RLE-encoded mask in COCO panoptic format
      },
      "area": 214858,
      // Number of pixels covered by this segment
      "bbox": [0.0, 0.0, 511.0, 760.0],
      // COCO-format bounding box [x, y, width, height]
      "iscrowd": 0,
      // 0 for normal segment, 1 if this region is a crowd
      "thing_or_stuff": "stuff"
      // Whether this region is an object-like "thing" or background-like "stuff"
    }
  ],
  "images": [
    {
      "file_name": "00000006.jpg",
      // Image file name (in the original dataset)
      "height": 973,
      "width": 512,
      // Image resolution
      "id": "00000006"
      // Image identifier (matches annotations[*].image_id and caption image_id)
      "data_source": "ADE20K"
      // Image source
    }
  ],
  "categories": [
    {
      "id": 1,
      // Category ID (referenced by annotations[*].category_id)
      "name": "object"
      // Human-readable category name
    }
  ]
}

Curation and Annotation Details

PanoCaps was built to overcome the limitations of prior grounded captioning datasets (e.g., auto-generated captions, limited vocabulary, and incomplete grounding). Our goal was to create a resource where captions describe every meaningful region using open-vocabulary language, with explicit grounding for each referenced entity. The creation process involved four stages:

  1. Image Selection: A diverse subset of images was curated from ADE20K, COCONut, and VIPSeg to ensure visual quality and suitability for dense grounding.
  2. Captioning: Professional annotators wrote long-form, fine-grained scene descriptions, highlighting attributes, relationships, and all visible entities.
  3. Grounding: Annotators tagged textual references with <mask_id:description> markers and produced label_matched structures that map text spans to one or more segmentation masks.
  4. Validation: A second QC stage verified the correctness of grounding IDs, completeness of region coverage, and annotation consistency. Data Producers: The base panoptic masks were sourced from the original datasets (ADE20K, COCONut, VIPSeg). However, all captions and grounding annotations were created specifically for PanoCaps by paid professional annotators following internal guidelines.

License (Research Only)

Because this repository merges, normalizes, and redistributes content from already existing datasets, the combined dataset is provided strictly for research and non-commercial use. Commercial use is not permitted. Users must comply with the licenses of each original source dataset.


Citation

If you find our work useful for your research, please consider citing our paper:

@article{YOUR_CITATION_HERE,
  title={Your Title},
  author={Your Name},
  year={2024}
}
Downloads last month
45

Papers for HuggingSara/PanoCaps