The viewer is disabled because this dataset repo requires arbitrary Python code execution. Please consider removing the loading script and relying on automated data support (you can use convert_to_parquet from the datasets library). If this is not possible, please open a discussion for direct help.

Usage:

from datasets import load_dataset
coco_dataset = load_dataset("nyanko7/coco-hosted")

Each instance has the following structure:

{
    'image': <PIL.JpegImagePlugin.JpegImageFile>,
    'filepath': 'COCO_val2014_000000522418.jpg',
    'sentids': [681330, 686718, 688839, 693159, 693204],
    'filename': 'COCO_val2014_000000522418.jpg',
    'imgid': 1,
    'split': 'restval',
    'sentences': {
        'tokens': ['a', 'woman', 'wearing', 'a', 'net', 'on', 'her', 'head', 'cutting', 'a', 'cake'],
        'raw': 'A woman wearing a net on her head cutting a cake. ',
        'imgid': 1,
        'sentid': 681330
    },
    'cocoid': 522418
}
Downloads last month
67