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:    IndexError
Message:      tuple index out of range
Traceback:    Traceback (most recent call last):
                File "/src/services/worker/src/worker/utils.py", line 147, in get_rows_or_raise
                  return get_rows(
                      dataset=dataset,
                  ...<4 lines>...
                      column_names=column_names,
                  )
                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 127, in get_rows
                  rows_plus_one = list(itertools.islice(safe_iter(ds, dataset=dataset), rows_max_number + 1))
                File "/src/services/worker/src/worker/utils.py", line 478, in safe_iter
                  yield from ds.decode(False) if ds.features else ds
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2818, in __iter__
                  for key, example in ex_iterable:
                                      ^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2355, in __iter__
                  for key, pa_table in self._iter_arrow():
                                       ~~~~~~~~~~~~~~~~^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2380, in _iter_arrow
                  for key, pa_table in self.ex_iterable._iter_arrow():
                                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 536, in _iter_arrow
                  for key, pa_table in iterator:
                                       ^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 419, in _iter_arrow
                  for key, pa_table in self.generate_tables_fn(**gen_kwags):
                                       ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/hdf5/hdf5.py", line 80, in _generate_tables
                  num_rows = _check_dataset_lengths(h5, self.info.features)
                File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/hdf5/hdf5.py", line 353, in _check_dataset_lengths
                  num_rows = h5_obj[first_path].shape[0]
                             ~~~~~~~~~~~~~~~~~~~~~~~~^^^
              IndexError: tuple index out of range

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.

CAMUS Sample - 2-D Echocardiographic Ultrasound Dataset

This is a sample subset of the full CAMUS dataset, provided for demonstration and testing purposes. It contains 6 files (1 patient per split). For the full dataset (500 patients), see: zeahub/camus.

This dataset is a zea-format (HDF5) conversion of the CAMUS dataset for multi-structure segmentation in 2-D echocardiography.

Property Value
Modality 2-D transthoracic echocardiography
Patients 500
Views 2-chamber (2CH) and 4-chamber (4CH) apical
Splits train (1-400), val (401-450), test (451-500)

Conversion

This dataset was downloaded, converted to zea format, and uploaded using the zea data converter:

python -m zea.data.convert camus <src> <dst> --download

Dataset structure

train/
  patient0001/
    patient0001_2CH_half_sequence.hdf5
    patient0001_4CH_half_sequence.hdf5
  ...
val/
  patient0401/ ...
test/
  patient0451/ ...

Each HDF5 file follows the zea data format and contains:

  • data/image/values — scan-converted B-mode sequence in dB, shape (n_frames, H, W), float32; x=0 at apex centre
  • data/image/coordinates — per-pixel Cartesian positions in metres, shape (H, W, 3) [x, y=0, z]
  • data/image_polar/values — polar-resampled B-mode sequence, shape (n_frames, n_r, n_theta), float32
  • data/image_polar/coordinates — Cartesian [x, 0, z] positions of polar pixels in metres, shape (n_r, n_theta, 3)
  • data/segmentation/values — multi-label bool segmentation, shape (n_frames, H, W, 4)
  • data/segmentation/labels["unannotated", "LV_endo", "LV_myo", "LA"]; unannotated frames have only the first channel set
  • data/segmentation/coordinates — same grid as image/coordinates
  • metadata/subject — patient ID, sex, age
  • metadata/credit — full citation string
  • metadata/text_report — ejection fraction, frame rate, image quality
  • metadata/annotations/view"2CH" or "4CH" repeated for all frames
  • metadata/annotations/label"ED" / "ES" for the corresponding frames, "" otherwise
  • metadata/annotations/image_quality"Good" / "Medium" / "Poor"

License

CC BY-NC-SA 4.0 (https://creativecommons.org/licenses/by-nc-sa/4.0/legalcode)

The CAMUS dataset is available free of charge strictly for non-commercial scientific research purposes only.

Citation

If you use this dataset, please cite:

@article{leclerc2019deep,
  title   = {Deep Learning for Segmentation Using an Open Large-Scale Dataset in
             2D Echocardiography},
  author  = {Leclerc, Sarah and Smistad, Erik and Pedrosa, Joao and Ostvik, Andreas and
             Cervenansky, Frederic and Espinosa, Florian and Espeland, Torvald and
             Berg, Erik Andreas Rye and Jodoin, Pierre-Marc and Grenier, Thomas and
             Lartizien, Carole and D'hooge, Jan and Lovstakken, Lasse and
             Bernard, Olivier},
  journal = {IEEE Transactions on Medical Imaging},
  volume  = {38},
  number  = {9},
  pages   = {2198--2210},
  year    = {2019},
  doi     = {10.1109/TMI.2019.2900516}
}

Links

Downloads last month
3,164