unc-openpros: drop references to the unshipped convert.py
Browse filesFollow-up to @wsimson 's review comment: convert.py is described in the card but has never been committed to GitHub or the Hub, so every mention is a dead end.
- Describe the conversion itself rather than the script that performed it.
- Drop the flag_single_sample paragraph: a developer workflow, not the published release.
- Report shapes per published file (leading dim 1140, verified against unc-openpros/data/) instead of the converter's single-sample example.
- The example block now runs just `python reconstruct.py`, which streams the file and pipeline.yaml from the Hub.
Matches https://github.com/tristan-deep/OpenH-RF/pull/25 so the two cards stay identical.
- unc-openpros/README.md +6 -11
unc-openpros/README.md
CHANGED
|
@@ -39,7 +39,7 @@ OpenPros was created by Hanchen Wang, Yixuan Wu, Yinan Feng, Peng Jin, Luoyuan Z
|
|
| 39 |
|
| 40 |
## Dataset Format
|
| 41 |
|
| 42 |
-
The package uses the `zea` HDF5 format.
|
| 43 |
|
| 44 |
| HDF5 region | Source side | Receiver side | Original transmit channels |
|
| 45 |
|---|---|---|---|
|
|
@@ -54,18 +54,14 @@ 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 |
-
|
| 60 |
-
|
| 61 |
-
| Field | Shape in default sample | dtype | Units | Description |
|
| 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.
|
|
@@ -80,10 +76,9 @@ 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
|
| 84 |
|
| 85 |
```bash
|
| 86 |
-
python convert.py
|
| 87 |
python reconstruct.py
|
| 88 |
```
|
| 89 |
|
|
|
|
| 39 |
|
| 40 |
## Dataset Format
|
| 41 |
|
| 42 |
+
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:
|
| 43 |
|
| 44 |
| HDF5 region | Source side | Receiver side | Original transmit channels |
|
| 45 |
|---|---|---|---|
|
|
|
|
| 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 published HDF5 file here holds 1,140 acquisitions.
|
| 58 |
|
| 59 |
+
| Field | Shape per file | dtype | Units | Description |
|
|
|
|
|
|
|
| 60 |
|---|---|---|---|---|
|
| 61 |
+
| `raw_data` | `(1140, 20, 1000, 322, 1)` | float32 | — | Simulated full-waveform pressure/RF data |
|
| 62 |
+
| `sos_map.values` | `(1140, 401, 161, 1)` | float32 | m/s | Ground-truth speed-of-sound map |
|
| 63 |
| `sos_map.coordinates` | `(401, 161, 3)` | float32 | m | Cartesian `(x, y, z)` grid coordinates |
|
| 64 |
|
|
|
|
|
|
|
| 65 |
## Subject Metadata
|
| 66 |
|
| 67 |
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.
|
|
|
|
| 76 |
4. Run the pretrained InversionNet model.
|
| 77 |
5. Denormalize its output from `[-1, 1]` to the physical SOS range `1300–3600 m/s`.
|
| 78 |
|
| 79 |
+
Run the example with:
|
| 80 |
|
| 81 |
```bash
|
|
|
|
| 82 |
python reconstruct.py
|
| 83 |
```
|
| 84 |
|