Dataset Preview
Duplicate
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
The dataset generation failed
Error code:   DatasetGenerationError
Exception:    TypeError
Message:      int() argument must be a string, a bytes-like object or a real number, not 'NoneType'
Traceback:    Traceback (most recent call last):
                File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1531, in _prepare_split_single
                  for key, record in generator:
                                     ^^^^^^^^^
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 613, in wrapped
                  for item in generator(*args, **kwargs):
                              ~~~~~~~~~^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/webdataset/webdataset.py", line 127, in _generate_examples
                  for example_idx, example in enumerate(self._get_pipeline_from_tar(tar_path, tar_iterator)):
                                              ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/webdataset/webdataset.py", line 32, in _get_pipeline_from_tar
                  for filename, f in tar_iterator:
                                     ^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/utils/track.py", line 49, in __iter__
                  for x in self.generator(*self.args):
                           ~~~~~~~~~~~~~~^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/utils/file_utils.py", line 1400, in _iter_from_urlpath
                  with xopen(urlpath, "rb", download_config=download_config, block_size=0) as f:
                       ~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/utils/file_utils.py", line 977, in xopen
                  file_obj = fs.open(paths[0], mode)
                File "<string>", line 3, in open
                File "/usr/local/lib/python3.14/unittest/mock.py", line 1176, in __call__
                  return self._mock_call(*args, **kwargs)
                         ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/unittest/mock.py", line 1180, in _mock_call
                  return self._execute_mock_call(*args, **kwargs)
                         ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/unittest/mock.py", line 1247, in _execute_mock_call
                  result = effect(*args, **kwargs)
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 786, in wrapped
                  tracker.files[urlpath] = {"read": 0, "size": int(f.size)}
                                                               ~~~^^^^^^^^
              TypeError: int() argument must be a string, a bytes-like object or a real number, not 'NoneType'
              
              The above exception was the direct cause of the following exception:
              
              Traceback (most recent call last):
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1369, in compute_config_parquet_and_info_response
                  parquet_operations, partial, estimated_dataset_info = stream_convert_to_parquet(
                                                                        ~~~~~~~~~~~~~~~~~~~~~~~~~^
                      builder, max_dataset_size_bytes=max_dataset_size_bytes
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                  )
                  ^
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 948, in stream_convert_to_parquet
                  builder._prepare_split(split_generator=splits_generators[split], file_format="parquet")
                  ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1393, in _prepare_split
                  for job_id, done, content in self._prepare_split_single(
                                               ~~~~~~~~~~~~~~~~~~~~~~~~~~^
                      gen_kwargs=gen_kwargs, job_id=job_id, **_prepare_split_args
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                  ):
                  ^
                File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1571, in _prepare_split_single
                  raise DatasetGenerationError("An error occurred while generating the dataset") from e
              datasets.exceptions.DatasetGenerationError: An error occurred while generating the dataset

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.

0.0
unknown
__key__
string
__url__
string
[ 2, 1, 148, 4, 0, 64, 1, 0, 0, 64, 1, 0, 64, 198, 0, 0, 20, 0, 0, 0, 40, 198, 0, 0, 40, 181, 47, 253, 160, 0, 64, 1, 0, 196, 255, 4, 174, 188, 73, 234, 37, 59, 16, 16, 111, 111, 144, 241, 77, 44, 95, 30, 22, 101...
exams/exam_001a562b7cdc946f5ef966bb/recording_707f0ba3e25218d565549d89.zarr/annotations/la_contour/0
hf://datasets/Ahus-AIM/CAMUS-beamspace@085ea74d8a3284f74149c30796c84afa8a33900b/exams/exam_001a562b7cdc946f5ef966bb.tar
"AgGUBAAIBwAACAcAdH4EABQAAABcfgQAKLUv/aAACAcArCAPnAAdBhObpbvuu+67L78gUlVVySSTXHKJIQIKiuDhBS2WcnKDuID(...TRUNCATED)
"exams/exam_001a562b7cdc946f5ef966bb/recording_707f0ba3e25218d565549d89.zarr/annotations/lv_contour/(...TRUNCATED)
"hf://datasets/Ahus-AIM/CAMUS-beamspace@085ea74d8a3284f74149c30796c84afa8a33900b/exams/exam_001a562b(...TRUNCATED)
"AgGUASCIRwEAAAgA16ueALQAAACLjwMASrYHAG9TCwC1cA8AvBYTAMsoFwCa1xoA5dYeAPuRIgCMiiYAaUwqAFBBLgByBTIAgPk(...TRUNCATED)
"exams/exam_001a562b7cdc946f5ef966bb/recording_707f0ba3e25218d565549d89.zarr/data/2d_brightness_mode(...TRUNCATED)
"hf://datasets/Ahus-AIM/CAMUS-beamspace@085ea74d8a3284f74149c30796c84afa8a33900b/exams/exam_001a562b(...TRUNCATED)
"AgGUBABAAQAAQAEAPLoAABQAAAAkugAAKLUv/aAAQAEAvA8FTpGJaiNFEBDnjgdpwAfJ5w3sCNKxPDvrk1MveB/5EYcngc6UvWB(...TRUNCATED)
"exams/exam_001a562b7cdc946f5ef966bb/recording_bd428518e67ff50ba69d1c76.zarr/annotations/la_contour/(...TRUNCATED)
"hf://datasets/Ahus-AIM/CAMUS-beamspace@085ea74d8a3284f74149c30796c84afa8a33900b/exams/exam_001a562b(...TRUNCATED)
"AgGUBAAIBwAACAcAKIIEABQAAAAQggQAKLUv/aAACAcAhPkOPOIcITIuW5r+YGMR7WYWBG1Kmi6rlm0oqK7ATJX+VcENjYs4Vub(...TRUNCATED)
"exams/exam_001a562b7cdc946f5ef966bb/recording_bd428518e67ff50ba69d1c76.zarr/annotations/lv_contour/(...TRUNCATED)
"hf://datasets/Ahus-AIM/CAMUS-beamspace@085ea74d8a3284f74149c30796c84afa8a33900b/exams/exam_001a562b(...TRUNCATED)
"AgGUAaj1qwEAAAgAnb3JAOgAAACCRgMAqisHAEryCgB1kA4Av40SAGAdFgCA2xkA8fYdADZJIQD6LSUAYfIoAAWGLACWhTAAqBw(...TRUNCATED)
"exams/exam_001a562b7cdc946f5ef966bb/recording_bd428518e67ff50ba69d1c76.zarr/data/2d_brightness_mode(...TRUNCATED)
"hf://datasets/Ahus-AIM/CAMUS-beamspace@085ea74d8a3284f74149c30796c84afa8a33900b/exams/exam_001a562b(...TRUNCATED)
"AgGUBABAAQAAQAEAusQAABQAAACixAAAKLUv/aAAQAEAfBAEzlbIkh89EBizbmREGcZIB9fsL35MOMYgV8VUUqzZUyQvMYLuoF3(...TRUNCATED)
"exams/exam_0035cf6c4c2da4ad7f4ee811/recording_1c4faee15749b44150f520f8.zarr/annotations/la_contour/(...TRUNCATED)
"hf://datasets/Ahus-AIM/CAMUS-beamspace@085ea74d8a3284f74149c30796c84afa8a33900b/exams/exam_0035cf6c(...TRUNCATED)
"AgGUBAAIBwAACAcA4X0EABQAAADJfQQAKLUv/aAACAcALPQODOEcCuuuL3L0Kj0NEWn2PfxOpCGCp4gcgoLWf0+XXsIWH/Bqs/I(...TRUNCATED)
"exams/exam_0035cf6c4c2da4ad7f4ee811/recording_1c4faee15749b44150f520f8.zarr/annotations/lv_contour/(...TRUNCATED)
"hf://datasets/Ahus-AIM/CAMUS-beamspace@085ea74d8a3284f74149c30796c84afa8a33900b/exams/exam_0035cf6c(...TRUNCATED)
"AgGUAaQI4wEAAAgAuULkAAQBAAByVwMAoTkHAK1bCwCsvA4AvZ4SAES7FgBbHBoArfkdAFMTIgCyeSUABF0pAEB3LQBs5jAADMQ(...TRUNCATED)
"exams/exam_0035cf6c4c2da4ad7f4ee811/recording_1c4faee15749b44150f520f8.zarr/data/2d_brightness_mode(...TRUNCATED)
"hf://datasets/Ahus-AIM/CAMUS-beamspace@085ea74d8a3284f74149c30796c84afa8a33900b/exams/exam_0035cf6c(...TRUNCATED)
"AgGUBAAgAQAAIAEAZakAABQAAABNqQAAKLUv/aAAIAEA9KIEvrmIviBBEDh1dljW87KyBw9Ebug/kltmG+9bbIKSpNkerFktQ7i(...TRUNCATED)
"exams/exam_0035cf6c4c2da4ad7f4ee811/recording_5d76cd4c657e29a3517c029b.zarr/annotations/la_contour/(...TRUNCATED)
"hf://datasets/Ahus-AIM/CAMUS-beamspace@085ea74d8a3284f74149c30796c84afa8a33900b/exams/exam_0035cf6c(...TRUNCATED)
End of preview.

CAMUS in EchoXFlow format

The CAMUS echocardiography dataset in the EchoXFlow Croissant + Zarr format: 500 patients, each with an apical two-chamber (A2C) and four-chamber (A4C) half-sequence labelled on every frame with the left-ventricle blood pool, the myocardium and the left atrium (1,000 recordings, 19,232 frames). It opens with the EchoXFlow code (paper). This is not an official CAMUS release.

Why CAMUS in beamspace?

EchoXFlow stores ultrasound in beamspace, the scanner's native polar grid, and its benchmark models are trained on beamspace or scan-converted input. With CAMUS in the same format, models from EchoXFlow Task 3 (LV segmentation) and Task 4 (ECG-conditioned video generation) can be evaluated on an external dataset with the same loaders, geometry and preprocessing as the EchoXFlow data, without a separate conversion step.

Patients Exams Videos Frames
500 500 1,000 19,232

Counts cover the 500 patient examinations in this release.

Source, citation and licence

  • Original data: the CAMUS_public collection of the Human Heart Project database (CREATIS, INSA Lyon), downloaded on 11 October 2026.
  • Cite: S. Leclerc, E. Smistad, J. Pedrosa, A. Østvik, et al., "Deep Learning for Segmentation using an Open Large-Scale Dataset in 2D Echocardiography", IEEE Transactions on Medical Imaging, 38(9):2198–2210, 2019. doi:10.1109/TMI.2019.2900516 (see Citation)
  • If you use the EchoXFlow repository in a publication, please also cite: E. Stenhede, J. Sulkowska, E. B. Orstad, H. Schirmer and A. Ranjbar, "EchoXFlow: A Beamspace Echocardiography Dataset for Cardiac Motion, Flow, and Function", Advances in Neural Information Processing Systems (NeurIPS), Evaluations and Datasets Track, 2026. arXiv:2605.05447
  • Licence: CC BY-NC-SA 4.0, as the original. CAMUS's terms also limit use to scientific research and require citing the paper above; see CAMUS_LICENSE_TERMS.md.

Conversion

  • Files: croissant.json (catalog), one Zarr store per patient and view, exams/exam_<id>/recording_<id>.zarr (two recordings, A2C and A4C, per patient exam), splits.csv (the official 400/50/50 training, validation and test patients, by exam id and CAMUS patient), view_classifier_probabilities.csv (view classifier output per recording), and exam_annotations.csv (the Info_*.cfg fields as text, below) with its counts in publication_report.json.
  • Sector: the imaged fan, fitted to the images: the two straight fan edges give the probe apex and the sector angles, and the deepest imaged pixels give the depth. The half-sequences are resampled onto a polar grid ([time, radial, beam], uint8) with samples at most half a source pixel apart, interpolated with cubic splines.
  • Depth calibration: metres, from CAMUS's 0.308 mm pixel spacing, so lengths and areas are in real units.
  • Timing: frame times from the frame rate in Info_*.cfg; CAMUS has no clock or ECG. Frames keep the CAMUS order (21 sequences run from end-systole to end-diastole; see sequence_order).
  • Labels: every frame, from CAMUS's *_half_sequence_gt, as contour points in metres (x lateral, y depth from the probe apex), in the format of the EchoXFlow strain contours:
    • annotations/lv_contour ([time, 2880, 2]): rows of five points from the endocardium to the epicardium. 512 rows run along the wall from one side of the base around the apex to the other; 64 rows of five equal points continue along the blood-pool border across the base. The endocardial polygon is the blood pool; the band out to the epicardium is the myocardium.
    • annotations/la_contour ([time, 512, 2]): the left atrium as a closed polygon.
    • Redrawn with EchoXFlow on the original grid, the contours reproduce the CAMUS labels.
    • ed_frame_index and es_frame_index give the end-diastole and end-systole frames (from Info_*.cfg).
  • Views: every CAMUS file names its view (2CH or 4CH), published as A2C or A4C. EchoPrime and EchoFine, the two classifiers the EchoXFlow release uses, were also run on the published B-mode (8 frames per recording); their probabilities are in view_classifier_probabilities.csv beside the catalog, where the EchoXFlow loaders read them. Their consensus matches the CAMUS view on 945 of the 1,000 recordings (473 A2C, 472 A4C). On 36 the two classifiers disagree (11 A2C, 25 A4C recordings), and on 19 they agree on another view: A3C on 9 A2C recordings (patients 0008, 0055, 0111, 0120, 0170, 0210, 0225, 0361, 0397), A4C on 6 A2C recordings (0020, 0046, 0067, 0071, 0174, 0370), PSAX on one A2C recording (0091), A2C on 2 A4C recordings (0204, 0375) and Other (EchoPrime A5C, EchoFine a5ch-full) on one A4C recording (0100). The CAMUS view is the reference; the classifier labels are model outputs and are kept as they are.
  • Metadata: recording_manifest.metadata.source holds the CAMUS patient and view, the Info_*.cfg fields, the fitted fan and the official split, and under metadata.source.attributes the views (view_source, the CAMUS view; view_echoprime, view_echofine, view_consensus). Exam and recording ids are hashes; array names carry no dataset name.
  • Source text annotations: exam_annotations.csv holds every line of every Info_2CH.cfg and Info_4CH.cfg (ED, ES, NbFrame, Sex, Age, ImageQuality, EF, FrameRate), one row per line with the value as written: 8,000 rows, 8 per recording of the 1,000. Each row carries exam_id and recording_id (the A2C or A4C recording the file belongs to; association_scope: recording), category (info), label and value (the key and value of the line), source_file and source_locator (database_nifti/<patient>/Info_<view>.cfg, line number). Patient fields that CAMUS repeats in both files (Sex, Age, EF) appear once per file, as in the source. The table has the same columns in every EchoXFlow-format release and is indexed by the exam_annotations record set of croissant.json. The values come unchanged from the public CAMUS release.

Release frames with their contours on the left; the sector scan-converted from beamspace with centimetre depth ticks on the right

Changes from the original release

  • Corrected recordings: in patient0185 A2C and patient0217 A2C, the CAMUS per-frame labels run opposite to the B-mode, so the end-diastole label sits on the contracted frame. Info_2CH.cfg matches the B-mode. Their per-frame labels are reversed in time in this dataset (labels_corrected in the metadata). The build checks, for every recording, that the separate *_ED_gt/*_ES_gt labels match the per-frame labels at the Info_*.cfg ED and ES frames.

    Each animation shows the B-mode, the CAMUS labels in their released order and the published labels, three times slower than the frame clock:

    patient0185 A2C: B-mode, CAMUS labels, published labels patient0217 A2C: B-mode, CAMUS labels, published labels

  • Source frames: this dataset redistributes only the beamspace resampling and the contour labels. No recordings or frames are excluded.

Known limitations

  • CAMUS records no scan geometry, so the sector is an estimate from the displayed fan. A small share of the imaged pixels lies just beyond the fitted fan edges and is outside the sector.
  • Where the annotators drew beyond the imaged fan, the contours follow them and leave the sector.
  • Frame times come from the recorded frame rate, not from an acquisition clock.
  • The classifier view labels are model outputs; where they differ from the CAMUS view (55 recordings), the CAMUS view is the reference.

Download and extraction

The stores are packed as one uncompressed tar archive per exam, exams/<exam_id>.tar, beside croissant.json. Download the repository with the Hugging Face CLI (log in with hf auth login first while it is private):

pip install -U huggingface_hub
hf download Ahus-AIM/CAMUS-beamspace --repo-type dataset --local-dir CAMUS-beamspace

or from Python:

from huggingface_hub import snapshot_download
snapshot_download("Ahus-AIM/CAMUS-beamspace", repo_type="dataset", local_dir="CAMUS-beamspace")

Git with LFS works as well: git lfs install, then git clone https://huggingface.co/datasets/Ahus-AIM/CAMUS-beamspace. To fetch a few exams only, add --include croissant.json "exams/<exam_id>.tar" to hf download.

Then extract every exam archive under one data root. The archives contain the exams/<exam_id>/... prefix, so all of them extract into the layout that croissant.json refers to:

cd CAMUS-beamspace
mkdir -p data
cp croissant.json splits.csv exam_annotations.csv view_classifier_probabilities.csv data/
for archive in exams/*.tar; do
  tar -xf "$archive" -C data
done
cd data

The example below runs in data/. The archives are POSIX tar files with sorted members, modification time 0, owner 0 and modes 0644 (files) and 0755 (directories), so packing the same stores again gives the same bytes.

Reading the data

The stores open with the EchoXFlow repository, which covers installation, loading, scan conversion and the benchmark tasks; the format is described in the EchoXFlow paper. For example:

from echoxflow import find_recordings, load_croissant, open_recording

records = find_recordings(croissant=load_croissant("croissant.json"), array_paths=("2d_brightness_mode",))
store = open_recording(records[0], root=".")
bmode = store.load_stream("2d_brightness_mode")              # frames, timestamps and sector geometry
lv = store.load_array("annotations/lv_contour")              # [time, point, (x, y)] in metres

import csv
info = [row for row in csv.DictReader(open("exam_annotations.csv")) if row["recording_id"] == records[0].recording_id]

Open questions

Decisions for the maintainers before the repository is made public. Each lists the options and the choice this version makes.

  1. Licence and CAMUS terms: CAMUS is CC BY-NC-SA 4.0, and its terms also limit use to scientific research and require citing the paper. Options: redistribute under the same licence with the terms file beside the data, or ask CREATIS first. This version: same licence and terms file, without contacting CREATIS.
  2. Reversed labels in patient0185 A2C and patient0217 A2C: options: reverse the per-frame labels in time so they match the B-mode and Info_2CH.cfg (flagged labels_corrected), or publish them as CAMUS released them with a flag only. This version: reversed.
  3. Sector edges: a small share of imaged pixels lies just beyond the fitted fan edges and is outside the sector. Options: keep the fitted fan, or widen it until every imaged pixel is inside (more black beams). This version: the fitted fan.
  4. Splits: options: the official 400/50/50 patient split as splits.csv, or no split. This version: the official split.

Citation

@article{leclerc_2019_camus,
  title = {Deep Learning for Segmentation Using an Open Large-Scale Dataset in 2D Echocardiography},
  author = {Leclerc, Sarah and Smistad, Erik and Pedrosa, Jo{\~a}o and {\O}stvik, 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}
}
@inproceedings{stenhede_2026_echoxflow,
  title = {EchoXFlow: A Beamspace Echocardiography Dataset for Cardiac Motion, Flow, and Function},
  author = {Stenhede, Elias and Sulkowska, Joanna and Orstad, Eivind Bj{\o}rkan and Schirmer, Henrik and Ranjbar, Arian},
  booktitle = {Advances in Neural Information Processing Systems (NeurIPS), Evaluations and Datasets Track},
  year = {2026},
  eprint = {2605.05447},
  doi = {10.48550/arXiv.2605.05447},
  url = {https://arxiv.org/abs/2605.05447}
}
Downloads last month
7

Paper for Ahus-AIM/CAMUS-beamspace