Joana04/kvasir-unet
31.1M β’ Updated
Kvasir-SEG is a gastrointestinal polyp segmentation dataset containing 1000 polyp images with corresponding segmentation masks from the Kvasir dataset.
kvasir-seg/
βββ train/
β βββ images/ # Training images
β βββ masks/ # Training masks
βββ validation/
β βββ images/ # Validation images
β βββ masks/ # Validation masks
βββ test/
βββ images/ # Test images
βββ masks/ # Test masks
If you use this dataset, please cite:
@inproceedings{jha2020kvasir,
title={Kvasir-SEG: A Segmented Polyp Dataset},
author={Jha, Debesh and Smedsrud, Pia H and Riegler, Michael A and Halvorsen, P{a}l and de Lange, Thomas and Johansen, Dag and Johansen, H{a}vard D},
booktitle={International Conference on Multimedia Modeling},
pages={451--462},
year={2020},
organization={Springer}
}
Dataset Split: This train/validation/test split is created by the following study. Please find more details in:
@article{chang2024esfpnet,
title={ESFPNet: Efficient Stage-Wise Feature Pyramid on Mix Transformer for Deep Learning-Based Cancer Analysis in Endoscopic Video},
author={Chang, Qi and Ahmad, Danish and Toth, Jennifer and Bascom, Rebecca and Higgins, William E},
journal={Journal of Imaging},
volume={10},
number={8},
pages={191},
year={2024},
publisher={MDPI}
}
from datasets import load_dataset
# Load dataset
dataset = load_dataset("Angelou0516/kvasir-seg")
# Access splits
train_data = dataset['train']
val_data = dataset['validation']
test_data = dataset['test']
# Access a sample
sample = train_data[0]
image = sample['file_name'] # Image path
label = sample['label'] # Segmentation mask path
Please refer to the original Kvasir dataset license and citation requirements.