fesposito-villanova's picture
Updated README.md
f6ac982 verified
|
Raw History Blame Contribute Delete
16.8 kB
---
license: cc-by-sa-4.0
language:
- en
- de
- es
- fr
- it
multilinguality:
- multilingual
size_categories:
- 10K<n<100K
source_datasets:
- common-canvas/commoncatalog-cc-by-sa
task_categories:
- visual-question-answering
- image-text-to-text
tags:
- multilingual
- images
- commoncanvas
- visual-question-answering
configs:
- config_name: en
default: true
data_files:
- split: train
path: en/train-*.parquet
- config_name: de
data_files:
- split: train
path: de/train-*.parquet
- config_name: es
data_files:
- split: train
path: es/train-*.parquet
- config_name: fr
data_files:
- split: train
path: fr/train-*.parquet
- config_name: it
data_files:
- split: train
path: it/train-*.parquet
dataset_info:
- features:
- name: photoid
dtype: int64
- name: uid
dtype: large_string
- name: unickname
dtype: large_string
- name: datetaken
dtype: timestamp[us]
- name: dateuploaded
dtype: int64
- name: capturedevice
dtype: large_string
- name: title
dtype: large_string
- name: usertags
dtype: large_string
- name: machinetags
dtype: large_string
- name: longitude
dtype: float64
- name: latitude
dtype: float64
- name: accuracy
dtype: int64
- name: pageurl
dtype: large_string
- name: downloadurl
dtype: large_string
- name: licensename
dtype: large_string
- name: licenseurl
dtype: large_string
- name: serverid
dtype: int64
- name: farmid
dtype: int64
- name: secret
dtype: large_string
- name: secretoriginal
dtype: large_string
- name: ext
dtype: large_string
- name: user_caption
dtype: large_string
- name: url
dtype: large_string
- name: key
dtype: large_string
- name: status
dtype: large_string
- name: error_message
dtype: large_string
- name: width
dtype: int32
- name: height
dtype: int32
- name: original_width
dtype: int32
- name: original_height
dtype: int32
- name: exif
dtype: large_string
- name: sha256
dtype: large_string
- name: blip2_caption
dtype: large_string
- name: description
dtype: large_string
- name: country
dtype: large_string
- name: continent
dtype: large_string
- name: lang
dtype: large_string
- name: task
dtype: large_string
- name: question_type
dtype: large_string
- name: messages
struct:
- name: images
list: image
- name: messages
list:
- name: role
dtype: string
- name: content
list:
- name: type
dtype: string
- name: text
dtype: string
- name: question
dtype: string
- name: answer
dtype: string
- name: question
dtype: string
- name: answer
dtype: string
- name: least_dim_range
dtype: string
- name: aspect_ratio_bucket
dtype: string
config_name: en
- features:
- name: photoid
dtype: int64
- name: uid
dtype: large_string
- name: unickname
dtype: large_string
- name: datetaken
dtype: timestamp[us]
- name: dateuploaded
dtype: int64
- name: capturedevice
dtype: large_string
- name: title
dtype: large_string
- name: usertags
dtype: large_string
- name: machinetags
dtype: large_string
- name: longitude
dtype: float64
- name: latitude
dtype: float64
- name: accuracy
dtype: int64
- name: pageurl
dtype: large_string
- name: downloadurl
dtype: large_string
- name: licensename
dtype: large_string
- name: licenseurl
dtype: large_string
- name: serverid
dtype: int64
- name: farmid
dtype: int64
- name: secret
dtype: large_string
- name: secretoriginal
dtype: large_string
- name: ext
dtype: large_string
- name: user_caption
dtype: large_string
- name: url
dtype: large_string
- name: key
dtype: large_string
- name: status
dtype: large_string
- name: error_message
dtype: large_string
- name: width
dtype: int32
- name: height
dtype: int32
- name: original_width
dtype: int32
- name: original_height
dtype: int32
- name: exif
dtype: large_string
- name: sha256
dtype: large_string
- name: blip2_caption
dtype: large_string
- name: description
dtype: large_string
- name: country
dtype: large_string
- name: continent
dtype: large_string
- name: lang
dtype: large_string
- name: task
dtype: large_string
- name: question_type
dtype: large_string
- name: messages
struct:
- name: images
list: image
- name: messages
list:
- name: role
dtype: string
- name: content
list:
- name: type
dtype: string
- name: text
dtype: string
- name: question
dtype: string
- name: answer
dtype: string
- name: question
dtype: string
- name: answer
dtype: string
- name: least_dim_range
dtype: string
- name: aspect_ratio_bucket
dtype: string
config_name: de
- features:
- name: photoid
dtype: int64
- name: uid
dtype: large_string
- name: unickname
dtype: large_string
- name: datetaken
dtype: timestamp[us]
- name: dateuploaded
dtype: int64
- name: capturedevice
dtype: large_string
- name: title
dtype: large_string
- name: usertags
dtype: large_string
- name: machinetags
dtype: large_string
- name: longitude
dtype: float64
- name: latitude
dtype: float64
- name: accuracy
dtype: int64
- name: pageurl
dtype: large_string
- name: downloadurl
dtype: large_string
- name: licensename
dtype: large_string
- name: licenseurl
dtype: large_string
- name: serverid
dtype: int64
- name: farmid
dtype: int64
- name: secret
dtype: large_string
- name: secretoriginal
dtype: large_string
- name: ext
dtype: large_string
- name: user_caption
dtype: large_string
- name: url
dtype: large_string
- name: key
dtype: large_string
- name: status
dtype: large_string
- name: error_message
dtype: large_string
- name: width
dtype: int32
- name: height
dtype: int32
- name: original_width
dtype: int32
- name: original_height
dtype: int32
- name: exif
dtype: large_string
- name: sha256
dtype: large_string
- name: blip2_caption
dtype: large_string
- name: description
dtype: large_string
- name: country
dtype: large_string
- name: continent
dtype: large_string
- name: lang
dtype: large_string
- name: task
dtype: large_string
- name: question_type
dtype: large_string
- name: messages
struct:
- name: images
list: image
- name: messages
list:
- name: role
dtype: string
- name: content
list:
- name: type
dtype: string
- name: text
dtype: string
- name: question
dtype: string
- name: answer
dtype: string
- name: question
dtype: string
- name: answer
dtype: string
- name: least_dim_range
dtype: string
- name: aspect_ratio_bucket
dtype: string
config_name: es
- features:
- name: photoid
dtype: int64
- name: uid
dtype: large_string
- name: unickname
dtype: large_string
- name: datetaken
dtype: timestamp[us]
- name: dateuploaded
dtype: int64
- name: capturedevice
dtype: large_string
- name: title
dtype: large_string
- name: usertags
dtype: large_string
- name: machinetags
dtype: large_string
- name: longitude
dtype: float64
- name: latitude
dtype: float64
- name: accuracy
dtype: int64
- name: pageurl
dtype: large_string
- name: downloadurl
dtype: large_string
- name: licensename
dtype: large_string
- name: licenseurl
dtype: large_string
- name: serverid
dtype: int64
- name: farmid
dtype: int64
- name: secret
dtype: large_string
- name: secretoriginal
dtype: large_string
- name: ext
dtype: large_string
- name: user_caption
dtype: large_string
- name: url
dtype: large_string
- name: key
dtype: large_string
- name: status
dtype: large_string
- name: error_message
dtype: large_string
- name: width
dtype: int32
- name: height
dtype: int32
- name: original_width
dtype: int32
- name: original_height
dtype: int32
- name: exif
dtype: large_string
- name: sha256
dtype: large_string
- name: blip2_caption
dtype: large_string
- name: description
dtype: large_string
- name: country
dtype: large_string
- name: continent
dtype: large_string
- name: lang
dtype: large_string
- name: task
dtype: large_string
- name: question_type
dtype: large_string
- name: messages
struct:
- name: images
list: image
- name: messages
list:
- name: role
dtype: string
- name: content
list:
- name: type
dtype: string
- name: text
dtype: string
- name: question
dtype: string
- name: answer
dtype: string
- name: question
dtype: string
- name: answer
dtype: string
- name: least_dim_range
dtype: string
- name: aspect_ratio_bucket
dtype: string
config_name: fr
- features:
- name: photoid
dtype: int64
- name: uid
dtype: large_string
- name: unickname
dtype: large_string
- name: datetaken
dtype: timestamp[us]
- name: dateuploaded
dtype: int64
- name: capturedevice
dtype: large_string
- name: title
dtype: large_string
- name: usertags
dtype: large_string
- name: machinetags
dtype: large_string
- name: longitude
dtype: float64
- name: latitude
dtype: float64
- name: accuracy
dtype: int64
- name: pageurl
dtype: large_string
- name: downloadurl
dtype: large_string
- name: licensename
dtype: large_string
- name: licenseurl
dtype: large_string
- name: serverid
dtype: int64
- name: farmid
dtype: int64
- name: secret
dtype: large_string
- name: secretoriginal
dtype: large_string
- name: ext
dtype: large_string
- name: user_caption
dtype: large_string
- name: url
dtype: large_string
- name: key
dtype: large_string
- name: status
dtype: large_string
- name: error_message
dtype: large_string
- name: width
dtype: int32
- name: height
dtype: int32
- name: original_width
dtype: int32
- name: original_height
dtype: int32
- name: exif
dtype: large_string
- name: sha256
dtype: large_string
- name: blip2_caption
dtype: large_string
- name: description
dtype: large_string
- name: country
dtype: large_string
- name: continent
dtype: large_string
- name: lang
dtype: large_string
- name: task
dtype: large_string
- name: question_type
dtype: large_string
- name: messages
struct:
- name: images
list: image
- name: messages
list:
- name: role
dtype: string
- name: content
list:
- name: type
dtype: string
- name: text
dtype: string
- name: question
dtype: string
- name: answer
dtype: string
- name: question
dtype: string
- name: answer
dtype: string
- name: least_dim_range
dtype: string
- name: aspect_ratio_bucket
dtype: string
config_name: it
---
# Multi-CommonCanvas-QA
A multilingual extension of [CommonCanvas / CommonCatalog](https://huggingface.co/datasets/common-canvas/commoncatalog-cc-by-sa) for **visual question answering** in five languages: English, German, Spanish, French and Italian.
## Dataset summary
Each row is a Creative-Commons Flickr photo from the source dataset together with **one question about the image and its answer, both written in the language of the row**. The kind of question depends on the `question_type` column. The images and their metadata come from CommonCatalog; the questions and answers are new.
## How the data was built
The source dataset is `common-canvas/commoncatalog-cc-by-sa`. For each image, a question of a given type and its answer were generated in each target language with the **permissively licensed model** `Qwen3.5-122B-A10B-FP8`; the text is therefore generated automatically. Original fields (Flickr metadata, `user_caption`, `blip2_caption`, `description`) are kept as they are in the source dataset and are **not** translated.
Question types (column `question_type`) include, for example: `attribute_and_properties`, `emotion_interpretation`, `text_recognition`, `scene_and_context`, `creative_writing` and `aesthetic_judgement`.
## A sample, not the full dataset
This repository contains a **random sample** of the full dataset, published for exposure and quick experimentation. It is not designed to be statistically representative. For more information, please contact the organisation through its [Hugging Face page](https://huggingface.co/VillanovaAI).
## Languages and size
One configuration per language; every config has a single `train` split.
| Config | `lang` | Rows | Size |
|---|---|---|---|
| `en` | English | 5,000 | 11.00 GB |
| `de` | German | 1,875 | 3.37 GB |
| `es` | Spanish | 1,875 | 3.37 GB |
| `fr` | French | 1,875 | 3.50 GB |
| `it` | Italian | 1,875 | 3.37 GB |
| **Total** | | **12,500** | 24.61 GB |
## Data fields
| Column | Description |
|---|---|
| `messages` | The conversation in chat format. It contains the image (`images`, with the image bytes) and the `messages` turns: a `user` turn with the image and the question, and an `assistant` turn with the answer. |
| `question` | The question, as plain text, in the language given by `lang`. |
| `answer` | The answer, as plain text, in the language given by `lang`. |
| `question_type` | Type of question asked about the image. |
| `task` | Always `Question Answering`. |
| Column | Description |
|---|---|
| `photoid`, `uid`, `unickname`, `title`, `usertags`, `machinetags`, `description` | Flickr metadata of the source photo (inherited from CommonCatalog, not regenerated). |
| `datetaken`, `dateuploaded`, `capturedevice`, `exif` | Capture and upload information of the source photo. |
| `longitude`, `latitude`, `accuracy`, `country`, `continent` | Geolocation of the source photo, when available. |
| `pageurl`, `downloadurl`, `url`, `key`, `serverid`, `farmid`, `secret`, `secretoriginal`, `ext`, `status`, `error_message`, `sha256` | Source URLs and download information of the image. |
| `licensename`, `licenseurl` | License of the individual image. |
| `width`, `height`, `original_width`, `original_height` | Image size. |
| `least_dim_range`, `aspect_ratio_bucket` | Resolution and aspect-ratio buckets of the image, inherited from the organisation of the source dataset. |
| `user_caption` | Caption written by the Flickr user (called `caption` in the source dataset); often empty. |
| `blip2_caption` | BLIP-2 caption provided by the source dataset. |
| `lang` | Language of the row; equal to the configuration name. |
Note: in this dataset the image is stored inside `messages` and is not repeated as a top-level `jpg` column.
## Usage
```python
from datasets import load_dataset
ds = load_dataset("VillanovaAI/Multi-CommonCanvas-QA", "it", split="train", streaming=True)
row = next(iter(ds))
print(row["lang"], row["question_type"])
print(row["question"])
print(row["answer"])
```
## License
The license is the one declared by the source dataset, [`common-canvas/commoncatalog-cc-by-sa`](https://huggingface.co/datasets/common-canvas/commoncatalog-cc-by-sa) (CC BY-SA 4.0). Each row also keeps the license of its own image (`licensename`, `licenseurl`) and its source page (`pageurl`). Please check those terms before reusing or redistributing the images.
## Citation
This dataset extends CommonCanvas / CommonCatalog. If you use it, please cite the original work:
```bibtex
@InProceedings{Gokaslan_2024_CVPR,
author = {Gokaslan, Aaron and Cooper, A. Feder and Collins, Jasmine and Seguin, Landan and Jacobson, Austin and Patel, Mihir and Frankle, Jonathan and Stephenson, Cory and Kuleshov, Volodymyr},
title = {CommonCanvas: Open Diffusion Models Trained on Creative-Commons Images},
booktitle = {Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)},
month = {June},
year = {2024},
pages = {8250-8260}
}
```
- Paper: [arXiv:2310.16825](https://arxiv.org/abs/2310.16825)
- Source dataset: [`common-canvas/commoncatalog-cc-by-sa`](https://huggingface.co/datasets/common-canvas/commoncatalog-cc-by-sa)