laicsiifes/coco-captions-pt-br
π COCO Captions Dataset Translation for Portuguese Image Captioning πΎ Dataset Summary COCO Captions Portuguese Translation, a multimodal dataset for Portuguese image captioning with 123,287 images, each accompanied by five descriptive captions that have been generated by human annotators for every individual image. The original English captions were rendered into Portuguese through the utilization of the Google Translator API. π§βπ» Hot to Getβ¦ See the full description on the dataset page: https://huggingface.co/datasets/laicsiifes/coco-captions-pt-br.
π COCO Captions Dataset Translation for Portuguese Image Captioning
πΎ Dataset Summary
COCO Captions Portuguese Translation, a multimodal dataset for Portuguese image captioning with 123,287 images, each accompanied by five descriptive captions that have been generated by human annotators for every individual image. The original English captions were rendered into Portuguese through the utilization of the Google Translator API.
π§βπ» Hot to Get Started with the Dataset
from datasets import load_dataset
dataset = load_dataset('laicsiifes/coco-captions-pt-br')βοΈ Languages
The images descriptions in the dataset are in Portuguese.
π§± Dataset Structure
π Data Instances
An example looks like below:
{
'image': <PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=640x480>,
'caption': [
'Um restaurante possui mesas e cadeiras modernas de madeira.',
'Uma longa mesa de restaurante com cadeiras de vime com encosto arredondado.',
'uma longa mesa com uma planta em cima cercada por cadeiras de madeira',
'Uma longa mesa com um arranjo de flores no meio para reuniΓ΅es',
'Uma mesa Γ© adornada com cadeiras de madeira com detalhes em azul.'
],
'url': 'http://images.cocodataset.org/train2014/COCO_train2014_000000057870.jpg',
'filepath': 'train2014',
'filename': 'COCO_train2014_000000057870.jpg',
'sentids': [787980, 789366, 789888, 791316, 794853],
'imgid': 40504,
'split': 'train',
'cocoid': 57870
}ποΈ Data Fields
The data instances have the following fields:
image: aPIL.Image.Imageobject containing image.caption: alistofstrcontaining the 5 captions related to image.url: astrcontaining the url to original image.filepath: astrcontaining the path to image file.filename: astrcontaining name of image file.sentids: alistofintcontaining the ordered identification numbers related to each caption.imgid: aintcontaining image identification number.split: astrcontaining data split. It stores texts:train,val,restvalortest.cocoid: anintcontaining example identifier in COCO dataset.
βοΈ Data Splits
The dataset is partitioned using the Karpathy splitting appoach for Image Captioning (Karpathy and Fei-Fei, 2015). For training, the train and restval splits are put together as an unique training split with 113,287 examples.
π BibTeX entry and citation info
@misc{bromonschenkel2024cocopt,
title = {COCO Captions Dataset Translation for Portuguese Image Captioning},
author = {Bromonschenkel, Gabriel and Paix{\~a}o, Thiago M. and Oliveira, Hil{\'a}rio},
howpublished = {\url{https://huggingface.co/datasets/laicsiifes/coco-captions-pt-br}},
publisher = {Hugging Face},
year = {2024}
}