unc-openpros: sync data card and main image with GitHub
#27
by tristan-deep - opened
- unc-openpros/README.md +60 -25
- unc-openpros/assets/main.png +3 -0
unc-openpros/README.md
CHANGED
|
@@ -1,15 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
# OpenPros - Limited-View Prostate Ultrasound Computed Tomography
|
| 2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
## Dataset Description
|
| 4 |
|
| 5 |
[OpenPros](https://open-pros.github.io/) is a large-scale benchmark for limited-view prostate ultrasound computed tomography (USCT). Each example pairs simulated full-waveform RF data from transabdominal and transrectal acquisition paths with an anatomically realistic two-dimensional speed-of-sound (SOS) map. The source OpenPros phantoms are derived from expert-annotated clinical MRI/CT anatomy and experimental measurements of ex vivo prostate specimens; the RF measurements in this package are simulated rather than acquired in vivo. The intended research task is quantitative SOS reconstruction from limited-angle ultrasound data.
|
| 6 |
|
| 7 |
## Dataset Contributor(s)
|
| 8 |
|
| 9 |
-
OpenPros was created by
|
| 10 |
-
|
| 11 |
-
-
|
| 12 |
-
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
|
| 14 |
## Dataset Creation Date
|
| 15 |
|
|
@@ -17,7 +56,7 @@ OpenPros was created by Hanchen Wang, Yixuan Wu, Yinan Feng, Peng Jin, Luoyuan Z
|
|
| 17 |
|
| 18 |
## License / Terms of Use
|
| 19 |
|
| 20 |
-
[Creative Commons Attribution 4.0 International
|
| 21 |
|
| 22 |
## Intended Usage
|
| 23 |
|
|
@@ -37,9 +76,19 @@ OpenPros was created by Hanchen Wang, Yixuan Wu, Yinan Feng, Peng Jin, Luoyuan Z
|
|
| 37 |
- **Sampling:** 10 MHz (`dt = 1e-7 s`), 1,000 samples, or 100 microseconds per waveform.
|
| 38 |
- **Image grid:** 401 axial by 161 lateral samples at 0.375 mm spacing, covering approximately 150 mm by 60 mm.
|
| 39 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 40 |
## Dataset Format
|
| 41 |
|
| 42 |
-
|
|
|
|
|
|
|
| 43 |
|
| 44 |
| HDF5 region | Source side | Receiver side | Original transmit channels |
|
| 45 |
|---|---|---|---|
|
|
@@ -54,25 +103,21 @@ The file also stores source positions, probe geometry, scan parameters, subject
|
|
| 54 |
|
| 55 |
**Current OpenH-RF release:** 248 HDF5 files; 6.03 TB (6,031,699,279,872 bytes) stored; root `zea_version` **0.1.5**. Sizes include all HDF5 contents and use decimal units (MB = 10^6 bytes, GB = 10^9 bytes, TB = 10^12 bytes), not decoded-array memory or original-source download sizes.
|
| 56 |
|
| 57 |
-
The original OpenPros source documentation reports 280,000 paired samples (approximately 6.8 TB) with an official split of 224,000 training, 28,000 validation, and 28,000 test samples. It is derived from four patient-level clinical anatomies and 62 ex vivo prostate specimens. Each
|
| 58 |
-
|
| 59 |
-
By default, `flag_single_sample = True` in `convert.py`, so the original converter example `openpros_sample.hdf5` contains only the first example (not the full HF release) and is approximately 20.5 MiB. Set the flag to `False` to convert all 1,140 examples in the selected source pair.
|
| 60 |
|
| 61 |
-
| Field | Shape
|
| 62 |
|---|---|---|---|---|
|
| 63 |
-
| `raw_data` | `(
|
| 64 |
-
| `sos_map.values` | `(
|
| 65 |
| `sos_map.coordinates` | `(401, 161, 3)` | float32 | m | Cartesian `(x, y, z)` grid coordinates |
|
| 66 |
|
| 67 |
-
The leading dimension becomes `1140` when the complete selected source pair is converted.
|
| 68 |
-
|
| 69 |
## Subject Metadata
|
| 70 |
|
| 71 |
The converted release identifies its content as a simulation and stores composite subject IDs such as `1_prostate_00`, combining patient-level anatomy `3_01` with prostate-level index `prostate_00`. The release uses four patient-level anatomy IDs (`3_01` through `3_04`) and 62 prostate indices shared across acquisition positions.
|
| 72 |
|
| 73 |
## Data Validation
|
| 74 |
|
| 75 |
-
|
| 76 |
|
| 77 |
1. Restore the original acquisition-block order: body/body, body/rectum, rectum/rectum, and rectum/body.
|
| 78 |
2. Apply the sign-preserving logarithmic transform `sign(x) * log1p(abs(1e5 * x))`.
|
|
@@ -80,20 +125,10 @@ The converted release identifies its content as a simulation and stores composit
|
|
| 80 |
4. Run the pretrained InversionNet model.
|
| 81 |
5. Denormalize its output from `[-1, 1]` to the physical SOS range `1300–3600 m/s`.
|
| 82 |
|
| 83 |
-
Run the end-to-end example with:
|
| 84 |
-
|
| 85 |
-
```bash
|
| 86 |
-
python convert.py
|
| 87 |
-
python reconstruct.py
|
| 88 |
-
```
|
| 89 |
-
|
| 90 |
-
The reconstruction script checks the input shapes and writes `pred_sos.png`, a side-by-side comparison of the predicted and ground-truth SOS maps. Use `--write_config` to serialize the pipeline to `pipeline.yaml`, `--load_config` to restore it, and `--use_zea_vis_style` to apply the ZEA plotting style.
|
| 91 |
-
|
| 92 |
## Known Issues
|
| 93 |
|
| 94 |
- `focus_distances`, `t0_delays`, `tx_apodizations`, and related transmit fields are compatibility placeholders because the simulation uses external point sources rather than a conventional focused array transmission.
|
| 95 |
|
| 96 |
-
|
| 97 |
## Ethical Considerations
|
| 98 |
|
| 99 |
The packaged RF data and SOS labels are simulated and contain no directly identifying patient information.
|
|
|
|
| 1 |
+
---
|
| 2 |
+
name: unc-openpros
|
| 3 |
+
pretty_name: "OpenPros Limited-View Prostate USCT"
|
| 4 |
+
license: cc-by-4.0
|
| 5 |
+
task_categories:
|
| 6 |
+
- image-to-image
|
| 7 |
+
tags:
|
| 8 |
+
- ultrasound
|
| 9 |
+
- rf
|
| 10 |
+
- openh-rf
|
| 11 |
+
- prostate
|
| 12 |
+
- usct
|
| 13 |
+
- speed-of-sound
|
| 14 |
+
- full-waveform-inversion
|
| 15 |
+
- simulation
|
| 16 |
+
language:
|
| 17 |
+
- en
|
| 18 |
+
size_categories:
|
| 19 |
+
- 100K<n<1M
|
| 20 |
+
---
|
| 21 |
+
|
| 22 |
# OpenPros - Limited-View Prostate Ultrasound Computed Tomography
|
| 23 |
|
| 24 |
+

|
| 25 |
+
|
| 26 |
+
*Speed of sound predicted from the limited-view waveform data of the first acquisition in [`data/3_04_P_prostate_51.hdf5`](https://huggingface.co/datasets/nvidia/OpenH-RF/blob/main/unc-openpros/data/3_04_P_prostate_51.hdf5) with the pretrained OpenPros InversionNet.*
|
| 27 |
+
|
| 28 |
## Dataset Description
|
| 29 |
|
| 30 |
[OpenPros](https://open-pros.github.io/) is a large-scale benchmark for limited-view prostate ultrasound computed tomography (USCT). Each example pairs simulated full-waveform RF data from transabdominal and transrectal acquisition paths with an anatomically realistic two-dimensional speed-of-sound (SOS) map. The source OpenPros phantoms are derived from expert-annotated clinical MRI/CT anatomy and experimental measurements of ex vivo prostate specimens; the RF measurements in this package are simulated rather than acquired in vivo. The intended research task is quantitative SOS reconstruction from limited-angle ultrasound data.
|
| 31 |
|
| 32 |
## Dataset Contributor(s)
|
| 33 |
|
| 34 |
+
OpenPros was created by:
|
| 35 |
+
|
| 36 |
+
- Hanchen Wang
|
| 37 |
+
- Yixuan Wu
|
| 38 |
+
- Yinan Feng
|
| 39 |
+
- Peng Jin
|
| 40 |
+
- Luoyuan Zhang
|
| 41 |
+
- Shihang Feng
|
| 42 |
+
- James Wiskin
|
| 43 |
+
- Baris Turkbey
|
| 44 |
+
- Peter A. Pinto
|
| 45 |
+
- Bradford J. Wood
|
| 46 |
+
- Songting Luo
|
| 47 |
+
- Yinpeng Chen
|
| 48 |
+
- Emad Boctor
|
| 49 |
+
- Youzuo Lin <yzlin@unc.edu> (corresponding author)
|
| 50 |
+
|
| 51 |
+
The affiliations include the University of North Carolina at Chapel Hill, Johns Hopkins University, the National Institutes of Health, the Pennsylvania State University, QT Imaging, Iowa State University, and Google DeepMind. Source repository: <https://github.com/hanchenwang/OpenPros>; dataset website: <https://open-pros.github.io/>.
|
| 52 |
|
| 53 |
## Dataset Creation Date
|
| 54 |
|
|
|
|
| 56 |
|
| 57 |
## License / Terms of Use
|
| 58 |
|
| 59 |
+
[Creative Commons Attribution 4.0 International (CC BY 4.0)](https://creativecommons.org/licenses/by/4.0/legalcode.en). Retain attribution and identify modifications when reusing the data.
|
| 60 |
|
| 61 |
## Intended Usage
|
| 62 |
|
|
|
|
| 76 |
- **Sampling:** 10 MHz (`dt = 1e-7 s`), 1,000 samples, or 100 microseconds per waveform.
|
| 77 |
- **Image grid:** 401 axial by 161 lateral samples at 0.375 mm spacing, covering approximately 150 mm by 60 mm.
|
| 78 |
|
| 79 |
+
## Processing the Dataset
|
| 80 |
+
|
| 81 |
+
The acquisitions can be processed with the `reconstruct.py` [script](https://github.com/open-h/OpenH-RF/blob/main/datasets/unc-openpros/reconstruct.py) as provided in the [OpenH-RF GitHub repository](https://github.com/open-h/OpenH-RF), together with the `pipeline.yaml` definition in this folder and the [zea library](https://github.com/tue-bmd/zea). The script streams the data from the Hugging Face Hub.
|
| 82 |
+
|
| 83 |
+
The reconstruction script checks the input shapes and writes two files: `pred_sos.png`, a side-by-side comparison of the predicted and ground-truth SOS maps, and [`assets/main.png`](assets/main.png), a clean, unlabeled hero image of just the prediction.
|
| 84 |
+
|
| 85 |
+
The custom pipeline operations live in `custom_ops.py` (layout and preprocessing) and `network_ops.py` (runs the pretrained InversionNet from `zea.models.inversionnet`, weights downloaded from the Hugging Face Hub) next to the script.
|
| 86 |
+
|
| 87 |
## Dataset Format
|
| 88 |
|
| 89 |
+
[zea v0.1.5](https://github.com/tue-bmd/zea)
|
| 90 |
+
|
| 91 |
+
The package uses the `zea` HDF5 format. The RF values are carried over from the original OpenPros NumPy arrays without demodulation, decimation, filtering, or normalization. The conversion adds a singleton channel dimension and changes the original four 10-transmit blocks into a physical `20 transmits × 322 receivers` representation:
|
| 92 |
|
| 93 |
| HDF5 region | Source side | Receiver side | Original transmit channels |
|
| 94 |
|---|---|---|---|
|
|
|
|
| 103 |
|
| 104 |
**Current OpenH-RF release:** 248 HDF5 files; 6.03 TB (6,031,699,279,872 bytes) stored; root `zea_version` **0.1.5**. Sizes include all HDF5 contents and use decimal units (MB = 10^6 bytes, GB = 10^9 bytes, TB = 10^12 bytes), not decoded-array memory or original-source download sizes.
|
| 105 |
|
| 106 |
+
The original OpenPros source documentation reports 280,000 paired samples (approximately 6.8 TB) with an official split of 224,000 training, 28,000 validation, and 28,000 test samples. It is derived from four patient-level clinical anatomies and 62 ex vivo prostate specimens. Each published HDF5 file here holds 1,140 acquisitions.
|
|
|
|
|
|
|
| 107 |
|
| 108 |
+
| Field | Shape per file | dtype | Units | Description |
|
| 109 |
|---|---|---|---|---|
|
| 110 |
+
| `raw_data` | `(1140, 20, 1000, 322, 1)` | float32 | — | Simulated full-waveform pressure/RF data |
|
| 111 |
+
| `sos_map.values` | `(1140, 401, 161, 1)` | float32 | m/s | Ground-truth speed-of-sound map |
|
| 112 |
| `sos_map.coordinates` | `(401, 161, 3)` | float32 | m | Cartesian `(x, y, z)` grid coordinates |
|
| 113 |
|
|
|
|
|
|
|
| 114 |
## Subject Metadata
|
| 115 |
|
| 116 |
The converted release identifies its content as a simulation and stores composite subject IDs such as `1_prostate_00`, combining patient-level anatomy `3_01` with prostate-level index `prostate_00`. The release uses four patient-level anatomy IDs (`3_01` through `3_04`) and 62 prostate indices shared across acquisition positions.
|
| 117 |
|
| 118 |
## Data Validation
|
| 119 |
|
| 120 |
+
`reconstruct.py` loads [`pipeline.yaml`](pipeline.yaml) (also published on the Hub at [`hf://nvidia/OpenH-RF/unc-openpros/pipeline.yaml`](https://huggingface.co/datasets/nvidia/OpenH-RF/blob/main/unc-openpros/pipeline.yaml)), a `zea.Pipeline` that reproduces the OpenPros InversionNet preprocessing and postprocessing:
|
| 121 |
|
| 122 |
1. Restore the original acquisition-block order: body/body, body/rectum, rectum/rectum, and rectum/body.
|
| 123 |
2. Apply the sign-preserving logarithmic transform `sign(x) * log1p(abs(1e5 * x))`.
|
|
|
|
| 125 |
4. Run the pretrained InversionNet model.
|
| 126 |
5. Denormalize its output from `[-1, 1]` to the physical SOS range `1300–3600 m/s`.
|
| 127 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 128 |
## Known Issues
|
| 129 |
|
| 130 |
- `focus_distances`, `t0_delays`, `tx_apodizations`, and related transmit fields are compatibility placeholders because the simulation uses external point sources rather than a conventional focused array transmission.
|
| 131 |
|
|
|
|
| 132 |
## Ethical Considerations
|
| 133 |
|
| 134 |
The packaged RF data and SOS labels are simulated and contain no directly identifying patient information.
|
unc-openpros/assets/main.png
ADDED
|
Git LFS Details
|