Datasets:
Tasks:
Visual Question Answering
Formats:
parquet
Languages:
English
Size:
10K - 100K
ArXiv:
License:
SushantGautam
commited on
Commit
•
9b870b2
1
Parent(s):
162c67a
init
Browse files- README.md +122 -0
- data/00000.parquet +3 -0
- data/00001.parquet +3 -0
- data/00002.parquet +3 -0
- data/00003.parquet +3 -0
- data/00004.parquet +3 -0
- data/00005.parquet +3 -0
- data/00006.parquet +3 -0
- data/00007.parquet +3 -0
- data/00008.parquet +3 -0
- data/00009.parquet +3 -0
- data/00010.parquet +3 -0
- data/00011.parquet +3 -0
- data/00012.parquet +3 -0
- data/00013.parquet +3 -0
- data/00014.parquet +3 -0
- data/00015.parquet +3 -0
- data/00016.parquet +3 -0
- data/00017.parquet +3 -0
- data/00018.parquet +3 -0
- data/00019.parquet +3 -0
- data/00020.parquet +3 -0
- data/00021.parquet +3 -0
- data/00022.parquet +3 -0
- data/00023.parquet +3 -0
- data/00024.parquet +3 -0
- data/00025.parquet +3 -0
- data/00026.parquet +3 -0
- data/00027.parquet +3 -0
- data/00028.parquet +3 -0
- data/00029.parquet +3 -0
- data/00030.parquet +3 -0
- explore_Kvasir-VQA.ipynb +0 -0
README.md
ADDED
@@ -0,0 +1,122 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
dataset_info:
|
3 |
+
features:
|
4 |
+
- name: image
|
5 |
+
dtype: image
|
6 |
+
- name: source
|
7 |
+
dtype: string
|
8 |
+
- name: question
|
9 |
+
dtype: string
|
10 |
+
- name: answer
|
11 |
+
dtype: string
|
12 |
+
- name: img_id
|
13 |
+
dtype: string
|
14 |
+
splits:
|
15 |
+
- name: raw
|
16 |
+
num_bytes: 15176464880.875
|
17 |
+
num_examples: 58849
|
18 |
+
download_size: 1547864596
|
19 |
+
dataset_size: 15176464880.875
|
20 |
+
configs:
|
21 |
+
- config_name: default
|
22 |
+
data_files:
|
23 |
+
- split: raw
|
24 |
+
path: data/*.parquet
|
25 |
+
license: cc-by-nc-4.0
|
26 |
+
task_categories:
|
27 |
+
- visual-question-answering
|
28 |
+
language:
|
29 |
+
- en
|
30 |
+
---
|
31 |
+
|
32 |
+
The Kvasir-VQA dataset is an extended dataset derived from the HyperKvasir and Kvasir-Instrument datasets, augmented with question-and-answer annotations. This dataset is designed to facilitate advanced machine learning tasks in gastrointestinal (GI) diagnostics, including image captioning, Visual Question Answering (VQA) and text-based generation of synthetic medical images
|
33 |
+
|
34 |
+
**Homepage**: [https://datasets.simula.no/kvasir-vqa](https://datasets.simula.no/kvasir-vqa)
|
35 |
+
|
36 |
+
# Usage
|
37 |
+
You can use the Kvasir-VQA dataset directly from HuggingFace Dataset Hub.
|
38 |
+
|
39 |
+
🔥 See [Jupyter Notebook Demo](https://huggingface.co/datasets/SushantGautam/SimulaMet-HOST/Kvasir-VQA/blob/main/explore_Kvasir-VQA.ipynb). You can open the notebook on Google Colab.
|
40 |
+
|
41 |
+
```
|
42 |
+
from datasets import load_dataset
|
43 |
+
ds = load_dataset("SimulaMet-HOST/Kvasir-VQA")
|
44 |
+
```
|
45 |
+
|
46 |
+
## Downloading Dataset as an Image foler and CSV Metadata
|
47 |
+
|
48 |
+
```
|
49 |
+
d_path ="./" #existing folder where you want to save images and metadata.csv
|
50 |
+
|
51 |
+
df = ds['train'].select_columns(['source', 'question', 'answer', 'img_id']).to_pandas()
|
52 |
+
df.to_csv(f"{d_path}/metadata.csv", index=False)
|
53 |
+
|
54 |
+
import os
|
55 |
+
os.makedirs(f"{d_path}/images", exist_ok=True)
|
56 |
+
|
57 |
+
for i, row in df.groupby('img_id').nth(0).iterrows(): # for images
|
58 |
+
image = ds['train'][i]['image'].save(f"{d_path}/images/{row['img_id']}.jpg")
|
59 |
+
```
|
60 |
+
|
61 |
+
The total image size is around 1.5 GB. The CSV file will have 58,849 rows.
|
62 |
+
|
63 |
+
|
64 |
+
### Key Features
|
65 |
+
|
66 |
+
- **Total Images**: 6,500 annotated images
|
67 |
+
- **Annotations**: Includes question-and-answer pairs for each image
|
68 |
+
- **Question Types**: Yes/No, single-choice, multiple-choice, color-related, location-related, numerical count
|
69 |
+
- **Applications**: Image captioning, VQA, synthetic medical image generation, object detection, etc
|
70 |
+
|
71 |
+
|
72 |
+
## Dataset Details
|
73 |
+
|
74 |
+
### Image Categories
|
75 |
+
|
76 |
+
The dataset includes images from various GI tract conditions and medical instruments used in GI procedures:
|
77 |
+
|
78 |
+
| Image Category | Number of Samples | Source Dataset |
|
79 |
+
|---------------------|-------------------|---------------------|
|
80 |
+
| Normal | 2500 | HyperKvasir |
|
81 |
+
| Polyps | 1000 | HyperKvasir |
|
82 |
+
| Esophagitis | 1000 | HyperKvasir |
|
83 |
+
| Ulcerative Colitis | 1000 | HyperKvasir |
|
84 |
+
| Instrument | 1000 | Kvasir-Instrument |
|
85 |
+
| **TOTAL** | **6500** | |
|
86 |
+
|
87 |
+
|
88 |
+
### Annotation Process
|
89 |
+
|
90 |
+
Annotations were developed with input from medical professionals and include six types of questions:
|
91 |
+
|
92 |
+
- **Yes/No Questions**
|
93 |
+
- **Single-Choice Questions**
|
94 |
+
- **Multiple-Choice Questions**
|
95 |
+
- **Color-Related Questions**
|
96 |
+
- **Location-Related Questions**
|
97 |
+
- **Numerical Count Questions**
|
98 |
+
|
99 |
+
Annotations cover a range of GI aspects, including findings, abnormalities, anatomical landmarks, and medical instruments.
|
100 |
+
|
101 |
+
|
102 |
+
When using the Kvasir-VQA dataset, you should include the following information to ensure compliance with the dataset's usage terms, particularly when citing the dataset in documents or papers:
|
103 |
+
|
104 |
+
## Terms of Use
|
105 |
+
|
106 |
+
The data is released fully open for research and educational purposes under the [Creative Commons Attribution-NonCommercial 4.0 International (CC BY-NC 4.0) license](https://creativecommons.org/licenses/by-nc/4.0/). The use of the dataset for purposes such as competitions and commercial purposes needs prior written permission. In all documents and papers that use or refer to the dataset or report experimental results based on the Kvasir-VQA, a reference to the related article needs to be added:
|
107 |
+
|
108 |
+
```
|
109 |
+
@inproceedings{gautam2024kvasirvqa,
|
110 |
+
title={Kvasir-VQA: A Text-Image Pair GI Tract Dataset},
|
111 |
+
author={Gautam, Sushant and Storås, Andrea and Midoglu, Cise and Hicks, Steven A. and Thambawita, Vajira and Halvorsen, Pål and Riegler, Michael A.},
|
112 |
+
booktitle={Proceedings of the First International Workshop on Vision-Language Models for Biomedical Applications (VLM4Bio '24)},
|
113 |
+
year={2024},
|
114 |
+
location={Melbourne, VIC, Australia},
|
115 |
+
pages={10 pages},
|
116 |
+
publisher={ACM},
|
117 |
+
doi={10.1145/3689096.3689458}
|
118 |
+
}
|
119 |
+
```
|
120 |
+
|
121 |
+
## Contact
|
122 |
+
Please contact [email protected], [email protected], [email protected] or [email protected] for any questions regarding the dataset.
|
data/00000.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:6177bb0d67529b8341a886fc1363b1357d5806f1dd30717d59f85f9aa7a477ce
|
3 |
+
size 26761458
|
data/00001.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:11490f2e0bb8a2a0a7ea4c059db8128785f3b6349bdf5422c2dd05361aa42688
|
3 |
+
size 26211416
|
data/00002.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a36e5fd3f712353d6996aef22b91d707e5c2a36b57092c10f4db936193cbeb1a
|
3 |
+
size 25516307
|
data/00003.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a0669c2623cb898100ef7bb463259577196d89c7f3c7b4ff086a6331d409c914
|
3 |
+
size 18660961
|
data/00004.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:424e7381df4c2e873c17be9b3d879a0fbd64611c16afac1481baf76e16fb8085
|
3 |
+
size 22831738
|
data/00005.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:46335a1c3f5f86faa6aaa726957d135d1a37ca66bd6f1d15dcac151721c19f61
|
3 |
+
size 23887032
|
data/00006.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b73fd67a4e4fd698563b5732ed78ebc5e74c176f6f1ea9235f7b9896bddc2caa
|
3 |
+
size 21787922
|
data/00007.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:03f3c3f46736274360acb23bf0613966315d18f11c4e441da2a4978308de6067
|
3 |
+
size 23757144
|
data/00008.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:59a2519460367f5b275146e787b08c7d181e8113cdc74df21b40d4e6209c5ded
|
3 |
+
size 20198080
|
data/00009.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:04bb513a924c43a5e9fb61450a3f882733d934c225671b72faa734cadd4a0ea8
|
3 |
+
size 5663912
|
data/00010.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:578c5fde034a3f6d5e9ac0c5303f059e74c9e876f2a2a00525315182c86eec35
|
3 |
+
size 5748750
|
data/00011.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f17544d4bdddeaa1750a20c0e361221db8ab8e886965e8e6270d71fe6cfc9bdf
|
3 |
+
size 8126694
|
data/00012.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b37f3f783211bbaa0bb19df49914899e0f26ce7db5694875c4ff44ba30319aea
|
3 |
+
size 6487873
|
data/00013.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:80eaa4ce03e99533dff343ba8a4ade032eee535c6813cc601ffc90c155250ea0
|
3 |
+
size 6804171
|
data/00014.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:cd42e97db9a864fa7a612554b58f14f6d2837a45afa01c63763ceecd3732ba36
|
3 |
+
size 5891750
|
data/00015.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ce28e623a2fac82c214cfbe6d996a82c5cda7d1e8a792be51965e2def7f0ebaf
|
3 |
+
size 4836541
|
data/00016.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1e445cc050771dff3f143069b94a06fd74dc09061cc789b1c5660e990fb0031d
|
3 |
+
size 64729656
|
data/00017.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:63213e3f02abbc3690fd2372e06825ec97a612f9ef82d59a0fa4639f973b5e01
|
3 |
+
size 67520623
|
data/00018.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d923b08cf48b6f2508973afdba5f7c8eb84eeecd4a4834eb3f6acf52ea9c064f
|
3 |
+
size 68313820
|
data/00019.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:901154f0dd63d70827119639269fb72e05d8b25502e53cce1e6d1fcc68685361
|
3 |
+
size 67362114
|
data/00020.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1cfa44862ea87d7dbecb5aeb334704417801b4c546923a0edee061fbfd85eb2d
|
3 |
+
size 66438195
|
data/00021.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:859c3255d6625b89c86ab78f0a208cc9c4e37133c0fc2f034d0724fcda38a8b7
|
3 |
+
size 68389874
|
data/00022.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e3bdb047dc1cc9a2415fd81b80a0b9bf94e5ee1b108e3b395ea8e7f2ef24fa45
|
3 |
+
size 72348144
|
data/00023.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:eef3a2e052fa0d9637e9f4430bd227f31808211e11f46d16d5bf71c955f8c024
|
3 |
+
size 72562971
|
data/00024.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:7d33289edab0632c12ddb05f74fb767991f1395153c890a42789c786e0e36623
|
3 |
+
size 110809046
|
data/00025.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9e280436784b1d376dae4e3a62500893b7f24aac79029e1f80b36f012b109ce6
|
3 |
+
size 304934720
|
data/00026.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:10f7d658d4ee0b4c7f1c0f105536fdd789952841448272acdf32b4053048007c
|
3 |
+
size 87026206
|
data/00027.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f197a6ed1bd2f52b7d38b803cb40b9466365f7bd850cee2bd75ee3afc5d16640
|
3 |
+
size 42739301
|
data/00028.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:7f2223bd3b86f1e7933cabbfe8ce4b9a2776e4d86165d78b93d85a5ddc360eba
|
3 |
+
size 73882202
|
data/00029.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d94cd897336744e7a669c61ab5823588db9f2f39ef238d0743cae1db342c989f
|
3 |
+
size 60650825
|
data/00030.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1fe04fd0f380158007a2d4dfa0ffd19a1e79dfd9b3951a523986256c0ce653bb
|
3 |
+
size 66985150
|
explore_Kvasir-VQA.ipynb
ADDED
The diff for this file is too large to render.
See raw diff
|
|