Dataset Viewer
Duplicate
The dataset viewer is not available for this split.
Cannot load the dataset split (in streaming mode) to extract the first rows.
Error code:   StreamingRowsError
Exception:    ValueError
Message:      Invalid string class label MedCLIPSeg@763d1f2b31fe92ae32aadacd4fd60ea24f21c10c
Traceback:    Traceback (most recent call last):
                File "/src/services/worker/src/worker/utils.py", line 99, in get_rows_or_raise
                  return get_rows(
                         ^^^^^^^^^
                File "/src/libs/libcommon/src/libcommon/utils.py", line 272, in decorator
                  return func(*args, **kwargs)
                         ^^^^^^^^^^^^^^^^^^^^^
                File "/src/services/worker/src/worker/utils.py", line 77, in get_rows
                  rows_plus_one = list(itertools.islice(ds, rows_max_number + 1))
                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 2543, in __iter__
                  for key, example in ex_iterable:
                                      ^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 2060, in __iter__
                  for key, pa_table in self._iter_arrow():
                                       ^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 2092, in _iter_arrow
                  pa_table = cast_table_to_features(pa_table, self.features)
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/table.py", line 2197, in cast_table_to_features
                  arrays = [cast_array_to_feature(table[name], feature) for name, feature in features.items()]
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/table.py", line 1795, in wrapper
                  return pa.chunked_array([func(chunk, *args, **kwargs) for chunk in array.chunks])
                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/table.py", line 1995, in cast_array_to_feature
                  return feature.cast_storage(array)
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/features/features.py", line 1169, in cast_storage
                  [self._strval2int(label) if label is not None else None for label in storage.to_pylist()]
                   ^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/features/features.py", line 1098, in _strval2int
                  raise ValueError(f"Invalid string class label {value}")
              ValueError: Invalid string class label MedCLIPSeg@763d1f2b31fe92ae32aadacd4fd60ea24f21c10c

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

MedCLIPSeg: Probabilistic Vision–Language Adaptation for Data-Efficient and Generalizable Medical Image Segmentation

paper Website Datasets Models BibTeX

Overview

Medical image segmentation remains challenging due to limited annotations for training, ambiguous anatomical features, and domain shifts. While vision–language models such as CLIP offer strong cross-modal representations, their potential for dense, text-guided medical image segmentation remains underexplored. We present MedCLIPSeg, a novel framework that adapts CLIP for robust, data-efficient, and uncertainty-aware medical image segmentation. Our approach leverages patch-level CLIP embeddings through probabilistic cross-modal attention, enabling bidirectional interaction between image and text tokens and explicit modeling of predictive uncertainty. Together with a soft patch-level contrastive loss that encourages nuanced semantic learning across diverse textual prompts, MedCLIPSeg improves data efficiency and domain generalizability. Extensive experiments across 16 datasets, spanning five imaging modalities and six organs, demonstrate that MedCLIPSeg outperforms prior methods in accuracy, efficiency, and robustness, while providing interpretable uncertainty maps that highlight the local reliability of segmentation results. This work demonstrates the potential of probabilistic vision–language modeling for text-driven medical image segmentation.

How to install datasets

Our study includes 16 biomedical image segmentation datasets. Place all the datasets in one directory under data to ease management. The file structure looks like

data/
├── <DATASET_NAME>/
│   ├── Prompts_Folder/
│   │   └── <prompt_files>        # text prompts (*.xlsx)
│   │
│   ├── Train_Folder/
│   │   ├── img/
│   │   │   └── <image_files>
│   │   └── label/
│   │       └── <mask_files>
│   │
│   ├── Val_Folder/
│   │   ├── img/
│   │   │   └── <image_files>
│   │   └── label/
│   │       └── <mask_files>
│   │
│   └── Test_Folder/
│       ├── img/
│       │   └── <image_files>
│       └── label/
│           └── <mask_files>
│
└── <DATASET_NAME_2>/
    └── (same structure as above)

Dataset Organization

Each dataset is split into training, validation, and testing splits.

The Prompts_Folder contains the text prompt files associated with each dataset. These include:

  • Prompt definitions used for data-efficiency experiments (e.g., 10%, 25%, 50% training and validation subsets)
  • Additional variant prompt designs explored in the study, such as alternative phrasing and semantic formulations

These prompt files enable flexible evaluation under different supervision regimes.

Dataset Summary

Dataset Train Validation Test Modality Organ
BUSI (62, 156, 312) (7, 19, 39) 78 Ultrasound Breast
BTMRI (273, 684, 1,369) (132, 330, 660) 1,005 MRI Brain
ISIC (80, 202, 404) (9, 22, 45) 379 Dermatoscopy Skin
Kvasir-SEG (80, 200, 400) (10, 25, 50) 100 Endoscopy Colon
QaTa-COV19 (571, 1,429, 2,858) (142, 357, 714) 2,113 X-ray Chest
EUS (2,631, 6,579, 13,159) (175, 439, 879) 10,090 Ultrasound Pancreas
BUSUC 567 122 122 Ultrasound Breast
BUSBRA 1,311 282 282 Ultrasound Breast
BUID 162 35 35 Ultrasound Breast
UDIAT 113 25 25 Ultrasound Breast
BRISC 4,000 1,000 1,000 MRI Brain
UWaterlooSkinCancer 132 0 41 Dermatoscopy Skin
CVC-ColonDB 20 0 360 Endoscopy Colon
CVC-ClinicDB 490 61 61 Endoscopy Colon
CVC-300 6 0 60 Endoscopy Colon
BKAI 799 100 100 Endoscopy Colon

Download the datasets

All the datasets can be found on Hugging Face here. Download each dataset seperately:

After downloading each dataset, unzip and place each under data like the following

data/
├── BTMRI/
│   ├── Prompts_Folder/
│   │   └── <prompt_files>        # text prompts (*.xlsx)
│   │
│   ├── Train_Folder/
│   │   ├── img/
│   │   │   └── <image_files>
│   │   └── label/
│   │       └── <mask_files>
│   │
│   ├── Val_Folder/
│   │   ├── img/
│   │   │   └── <image_files>
│   │   └── label/
│   │       └── <mask_files>
│   │
│   └── Test_Folder/
│       ├── img/
│       │   └── <image_files>
│       └── label/
│           └── <mask_files>

Citation

If you use our work, please consider citing:

@inproceedings{koleilat2026medclipseg,
  title     = {MedCLIPSeg: Probabilistic Vision--Language Adaptation for Data-Efficient and Generalizable Medical Image Segmentation},
  author    = {Koleilat, Taha and Asgariandehkordi, Hojat, Nejatimanzari, Omid and Barile, Berardino and Xiao, Yiming and Rivaz, Hassan},
  booktitle = {Proceedings of the Computer Vision and Pattern Recognition Conference},
  year      = {2026}
}
Downloads last month
2

Papers for TahaKoleilat/MedCLIPSeg