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:    ArrowInvalid
Message:      JSON parse error: Invalid value. in row 0
Traceback:    Traceback (most recent call last):
                File "/usr/local/lib/python3.12/site-packages/datasets/packaged_modules/json/json.py", line 291, in _generate_tables
                  df = pandas_read_json(f)
                       ^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/packaged_modules/json/json.py", line 36, in pandas_read_json
                  return pd.read_json(path_or_buf, **kwargs)
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/pandas/io/json/_json.py", line 791, in read_json
                  json_reader = JsonReader(
                                ^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/pandas/io/json/_json.py", line 905, in __init__
                  self.data = self._preprocess_data(data)
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/pandas/io/json/_json.py", line 917, in _preprocess_data
                  data = data.read()
                         ^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/utils/file_utils.py", line 844, in read_with_retries
                  out = read(*args, **kwargs)
                        ^^^^^^^^^^^^^^^^^^^^^
                File "<frozen codecs>", line 322, in decode
              UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe0 in position 5: invalid continuation byte
              
              During handling of the above exception, another exception occurred:
              
              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 2815, in __iter__
                  for key, example in ex_iterable:
                                      ^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 2352, in __iter__
                  for key, pa_table in self._iter_arrow():
                                       ^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 2377, in _iter_arrow
                  for key, pa_table in self.ex_iterable._iter_arrow():
                                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 536, in _iter_arrow
                  for key, pa_table in iterator:
                                       ^^^^^^^^
                File "/usr/local/lib/python3.12/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.12/site-packages/datasets/packaged_modules/json/json.py", line 294, in _generate_tables
                  raise e
                File "/usr/local/lib/python3.12/site-packages/datasets/packaged_modules/json/json.py", line 257, in _generate_tables
                  pa_table = paj.read_json(
                             ^^^^^^^^^^^^^^
                File "pyarrow/_json.pyx", line 342, in pyarrow._json.read_json
                File "pyarrow/error.pxi", line 155, in pyarrow.lib.pyarrow_internal_check_status
                File "pyarrow/error.pxi", line 92, in pyarrow.lib.check_status
              pyarrow.lib.ArrowInvalid: JSON parse error: Invalid value. in row 0

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.

SSL Ultrasound Representation Dataset

Beamformed multi-focal ultrasound RF data from the Stanford Ultrasound RF Channel dataset, aggregated for self-supervised pre-training (MAE / JEPA / contrastive).

Files

File Description
ultrasonic_dataset.zarr.zip 6D float32 zarr array, Blosc-LZ4 compressed (2.4 GB).
ultrasonic_dataset.metadata.json Per-frame provenance (subject, file, subfolder, indices).
README.md This card (auto-generated by push_to_hf.py).

Array layout

  • Name: rf_iq
  • Shape: (14, 192, 192, 3, 2, 215)
  • Axes: ['frame', 'transducer', 'scanline', 'focal_zone', 'iq', 'sample']
  • Chunks: (1, 32, 32, 1, 2, 215) (one frame per chunk on the leading axis — aligned with DataLoader workers).
  • Dtype: float32
  • IQ index: 0 = in-phase, 1 = quadrature.

Processing pipeline

  1. Source: Verasonics Vantage .mat files with MultiFocal in the filename (each file holds a 2-frame cine via Resource.RcvBuffer.numFrames = 2).
  2. Sub-aperture combination + IQ demodulation via pymust.rf2iq.
  3. Fast-time axis truncated at 860 samples (everything beyond is noise/zeros), then decimated by 215 output samples per signal.
  4. Stacked into a single 6D array with chunks optimised for 3D MAE patching.

See scripts/dataset_scripts/build_mae_dataset.py in the source repo for the exact pipeline; see scripts/dataset_scripts/visualize_beamformed_pymust.py for the reference beamformer.

Frame counts

By subject:

Subject Frames
rat1 8
rat2 6

By subject × subfolder:

Subject Subfolder Frames
rat1 6
rat1 exposed_liver 2
rat2 6

Loading

from src.dataset import build_split_datasets

splits, meta = build_split_datasets(
    "benbarkow/test-us-ssl",
    split_strategy="file",  # or "subject"
    cache_dir="/tmp/hf_cache",
)
train_ds = splits["train"]

The split helpers (split_by_subject, split_by_file) avoid cross-split leakage: both frames of the same 2-frame cine always end up in the same split, and (for split_by_subject) no subject appears in two splits.

Downloads last month
43