|
--- |
|
dataset_info: |
|
features: |
|
- name: image |
|
dtype: image |
|
- name: filename |
|
dtype: string |
|
- name: caption |
|
sequence: string |
|
splits: |
|
- name: train |
|
num_bytes: 829880166 |
|
num_examples: 6000 |
|
- name: test |
|
num_bytes: 136929806 |
|
num_examples: 1000 |
|
- name: validation |
|
num_bytes: 138076299 |
|
num_examples: 1000 |
|
download_size: 1102895899 |
|
dataset_size: 1104886271 |
|
configs: |
|
- config_name: default |
|
data_files: |
|
- split: train |
|
path: data/train-* |
|
- split: test |
|
path: data/test-* |
|
- split: validation |
|
path: data/validation-* |
|
task_categories: |
|
- image-to-text |
|
- text-to-image |
|
- text-generation |
|
language: |
|
- pt |
|
pretty_name: Flickr8K Portuguese Translation |
|
size_categories: |
|
- 1K<n<10K |
|
--- |
|
|
|
|
|
# 🎉 Flickr8K Dataset Translation for Portuguese Image Captioning |
|
|
|
## 💾 Dataset Summary |
|
|
|
Flickr8K Portuguese Translation, a multimodal dataset for Portuguese image captioning with 8,000 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 |
|
|
|
```python |
|
from datasets import load_dataset |
|
|
|
dataset = load_dataset('laicsiifes/flickr8k-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=500x399>, |
|
'filename': 'ad5f9478d603fe97.jpg', |
|
'caption': [ |
|
'Um cachorro preto está correndo atrás de um cachorro branco na neve.', |
|
'Cachorro preto perseguindo cachorro marrom na neve', |
|
'Dois cães perseguem um ao outro pelo chão nevado.', |
|
'Dois cachorros brincam juntos na neve.', |
|
'Dois cães correndo por um corpo de água baixo.' |
|
] |
|
} |
|
``` |
|
|
|
### 🗃️ Data Fields |
|
|
|
The data instances have the following fields: |
|
|
|
- `image`: a `PIL.Image.Image` object containing image. |
|
- `filename`: a `str` containing name of image file. |
|
- `caption`: a `list` of `str` containing 5 captions related to image. |
|
|
|
### ✂️ Data Splits |
|
|
|
The dataset is partitioned using the Karpathy splitting appoach for Image Captioning |
|
([Karpathy and Fei-Fei, 2015](https://arxiv.org/pdf/1412.2306)). |
|
|
|
|Split|Samples|Average Caption Length (Words)| |
|
|:-----------:|:-----:|:--------:| |
|
|Train|6,000|10.7 ± 3.8| |
|
|Validation|1,000|10.8 ± 3.9| |
|
|Test|1,000|10.7 ± 3.8| |
|
|Total|8,000|10.7 ± 3.8| |
|
|
|
|
|
## 📋 BibTeX entry and citation info |
|
|
|
```bibtex |
|
@misc{bromonschenkel2024flickr8kpt, |
|
title = {Flickr8K Dataset Translation for Portuguese Image Captioning}, |
|
author = {Bromonschenkel, Gabriel and Oliveira, Hil{\'a}rio and Paix{\~a}o, Thiago M.}, |
|
howpublished = {\url{https://huggingface.co/datasets/laicsiifes/flickr8k-pt-br}}, |
|
publisher = {Hugging Face}, |
|
year = {2024} |
|
} |
|
``` |