Datasets:
array_name string | shape list | axes list | chunks list | dtype string | compressor dict | depth_cutoff_samples int64 | downsample_factor int64 | n_samples_out int64 | iq_index dict | scanline_origins_m list | focal_depths_m list | input_dir string | n_source_files_indexed int64 | n_source_files_written int64 | frames list |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
rf_iq | [
162,
192,
192,
3,
2,
215
] | [
"frame",
"transducer",
"scanline",
"focal_zone",
"iq",
"sample"
] | [
1,
192,
192,
3,
2,
215
] | float32 | {
"id": "blosc",
"cname": "lz4",
"clevel": 5,
"shuffle": 1
} | 860 | 4 | 215 | {
"in_phase": 0,
"quadrature": 1
} | [
-0.0191,
-0.0189,
-0.0187,
-0.0185,
-0.0183,
-0.0181,
-0.0179,
-0.0177,
-0.0175,
-0.0173,
-0.0171,
-0.0169,
-0.0167,
-0.0165,
-0.0163,
-0.0161,
-0.0159,
-0.0157,
-0.0155,
-0.0153,
-0.0151,
-0.0149,
-0.0147,
-0.0145,
-0.0143,
-0.0141,
-0.0139,
-0.0137,
-0.0135,... | [
0.01774,
0.029566,
0.041393
] | /tmp/ultrasonic_raw | 81 | 81 | [
{
"global_frame_index": 0,
"filename": "DATA_MultiFocal_20190318_100333.mat",
"relative_path": "Rat1/DATA_MultiFocal_20190318_100333.mat",
"subject": "Rat1",
"subfolder": null,
"file_local_frame_index": 0
},
{
"global_frame_index": 1,
"filename": "DATA_MultiFocal_20190318_100333.... |
SSL Ultrasound Representation Dataset
IQ-demodulated multi-focal ultrasound channel data from the Stanford Ultrasound RF Channel dataset, aggregated for self-supervised pre-training (MAE / JEPA / contrastive). The signals are not beamformed — each frame retains its per-transducer channel data after sub-aperture combination and IQ demodulation.
Files
| File | Description |
|---|---|
ultrasonic_dataset.zarr/ |
6D float32 zarr array, Blosc-LZ4 compressed, stored as an unzipped directory tree (one file per chunk, ~27.7 GB total). One chunk per frame on the leading axis → consumers can fetch just the first N frames. |
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:
(162, 192, 192, 3, 2, 215) - Axes:
['frame', 'transducer', 'scanline', 'focal_zone', 'iq', 'sample'] - Chunks:
(1, 192, 192, 3, 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
- Source: Verasonics Vantage
.matfiles withMultiFocalin the filename (each file holds a 2-frame cine viaResource.RcvBuffer.numFrames = 2). - Sub-aperture combination + IQ demodulation via
pymust.rf2iq. - Fast-time axis truncated at 860 samples (everything beyond is noise/zeros), then decimated by 4× → 215 output samples per signal.
- 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; scripts/dataset_scripts/visualize_beamformed_pymust.py beamforms
the same channel data for visualisation only (the stored array stays unbeamformed).
Frame counts
By subject:
| Subject | Frames |
|---|---|
Rat1 |
12 |
Rat10 |
6 |
Rat11 |
6 |
Rat12 |
6 |
Rat13 |
6 |
Rat14 |
6 |
Rat15 |
6 |
Rat16 |
6 |
Rat18 |
6 |
Rat19 |
6 |
Rat2 |
12 |
Rat20 |
6 |
Rat3 |
12 |
Rat4 |
12 |
Rat5 |
12 |
Rat6 |
12 |
Rat7 |
12 |
Rat8 |
12 |
Rat9 |
6 |
By subject × subfolder:
| Subject | Subfolder | Frames |
|---|---|---|
Rat1 |
— |
6 |
Rat1 |
ExposedLiver |
6 |
Rat10 |
— |
6 |
Rat11 |
— |
6 |
Rat12 |
— |
6 |
Rat13 |
— |
6 |
Rat14 |
— |
6 |
Rat15 |
— |
6 |
Rat16 |
— |
6 |
Rat18 |
— |
6 |
Rat19 |
— |
6 |
Rat2 |
— |
6 |
Rat2 |
ExposedLiver |
6 |
Rat20 |
— |
6 |
Rat3 |
— |
6 |
Rat3 |
ExposedLiver |
6 |
Rat4 |
— |
6 |
Rat4 |
ExposedLiver |
6 |
Rat5 |
— |
6 |
Rat5 |
ExposedLiver |
6 |
Rat6 |
— |
6 |
Rat6 |
ExposedLiver |
6 |
Rat7 |
— |
6 |
Rat7 |
ExposedLiver |
6 |
Rat8 |
— |
6 |
Rat8 |
ExposedLiver |
6 |
Rat9 |
— |
6 |
Loading
from src.dataset import build_split_datasets
splits, meta = build_split_datasets(
"benbarkow/us-ssl-mf",
split_strategy="file", # or "subject"
cache_dir="/tmp/hf_cache",
max_frames=16, # optional: fetch only the first 16 frames' chunks
)
train_ds = splits["train"]
max_frames exploits the per-frame chunking: only the chunks for the first N
frames are downloaded, so you can iterate on a small box without pulling the whole
array. Omit it to fetch everything.
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
- 386