Datasets:
Update dataset card after external splits upload: README.md
Browse files
README.md
CHANGED
|
@@ -30,18 +30,27 @@ configs:
|
|
| 30 |
|
| 31 |
## Dataset Summary
|
| 32 |
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
|
|
|
| 36 |
|
| 37 |
-
Current
|
| 38 |
-
|
| 39 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 40 |
|
| 41 |
## Task Definition
|
| 42 |
|
| 43 |
-
|
| 44 |
-
|
| 45 |
|
| 46 |
- Input: Mueller matrix tensor, shape `[16, H, W]`, channel-first.
|
| 47 |
- Output: target modality tensor, shape `[6, H, W]`, channel-first.
|
|
@@ -49,9 +58,14 @@ polarimetric target modalities.
|
|
| 49 |
|
| 50 |
## Data Sources
|
| 51 |
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 55 |
|
| 56 |
## File Structure
|
| 57 |
|
|
@@ -59,41 +73,62 @@ statement if applicable.
|
|
| 59 |
MMPD-Bench/
|
| 60 |
├── README.md
|
| 61 |
├── data/
|
| 62 |
-
├──
|
| 63 |
-
├──
|
| 64 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 65 |
```
|
| 66 |
|
| 67 |
-
TODO: Replace this with final shard counts and file sizes after conversion.
|
| 68 |
-
|
| 69 |
## Tensor Schema
|
| 70 |
|
| 71 |
-
|
| 72 |
|
| 73 |
```python
|
| 74 |
{
|
| 75 |
"sample_id": str,
|
| 76 |
"source_id": str,
|
| 77 |
"split": str,
|
| 78 |
-
"subset": str,
|
| 79 |
-
"specimen_type": str,
|
| 80 |
"wavelength_nm": int,
|
| 81 |
-
"
|
| 82 |
-
"target_encoding": str,
|
| 83 |
"mueller_shape": list[int],
|
| 84 |
"target_shape": list[int],
|
| 85 |
-
"mueller": array,
|
| 86 |
-
"target": array,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 87 |
}
|
| 88 |
```
|
| 89 |
|
| 90 |
-
|
| 91 |
-
normalized values, or both. Current pilot encoding:
|
| 92 |
|
| 93 |
-
|
| 94 |
-
|
| 95 |
-
|
| 96 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 97 |
|
| 98 |
## Channel Conventions
|
| 99 |
|
|
@@ -112,12 +147,12 @@ Target channel order:
|
|
| 112 |
D, Delta, eta, theta, psi, R
|
| 113 |
```
|
| 114 |
|
| 115 |
-
|
| 116 |
-
|
| 117 |
|
| 118 |
## Physical Parameter Definitions
|
| 119 |
|
| 120 |
-
|
| 121 |
|
| 122 |
```text
|
| 123 |
D, Delta: [0, 1]
|
|
@@ -125,81 +160,113 @@ eta, R: [0, pi)
|
|
| 125 |
theta, psi: [-pi/2, pi/2)
|
| 126 |
```
|
| 127 |
|
| 128 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 129 |
|
| 130 |
-
|
| 131 |
-
measured Mueller matrices. They should be interpreted as reference solver
|
| 132 |
-
outputs for benchmarking surrogate models and physics consistency, rather than
|
| 133 |
-
direct human annotations or absolute ground truth for biological tissue.
|
| 134 |
|
| 135 |
-
|
| 136 |
-
|
|
|
|
|
|
|
| 137 |
|
| 138 |
## Splits
|
| 139 |
|
| 140 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 141 |
|
| 142 |
-
|
| 143 |
-
|---|---:|---:|---|
|
| 144 |
-
| train | healthy_bone_cell | TODO | Primary training split |
|
| 145 |
-
| validation | healthy_bone_cell | TODO | Model selection split |
|
| 146 |
-
| test | healthy_bone_cell | TODO | Clean healthy bone cell test |
|
| 147 |
-
| external_waveplate | waveplate | 18 | External generalisation at 633 nm |
|
| 148 |
-
| external_spectral_610 | spectral | 165 | External wavelength test |
|
| 149 |
-
| external_spectral_650 | spectral | 165 | External wavelength test |
|
| 150 |
-
| external_spectral_690 | spectral | 165 | External wavelength test |
|
| 151 |
|
| 152 |
-
|
| 153 |
-
If patch-level, describe leakage risk as a limitation.
|
| 154 |
|
| 155 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 156 |
|
| 157 |
-
|
| 158 |
-
sample source, and intended usage.
|
| 159 |
|
| 160 |
-
|
|
|
|
|
|
|
|
|
|
| 161 |
|
| 162 |
-
|
| 163 |
-
`test`.
|
| 164 |
-
2. Noisy healthy bone cell robustness: evaluate the test set with
|
| 165 |
-
`sigma_noise = 0.1 * sigma_pixel`.
|
| 166 |
-
3. External generalisation: train only on healthy bone cell training data and
|
| 167 |
-
report on `external_waveplate` and each `external_spectral_*` split.
|
| 168 |
|
| 169 |
-
|
| 170 |
|
| 171 |
-
|
|
|
|
|
|
|
| 172 |
|
| 173 |
-
|
| 174 |
|
| 175 |
```python
|
| 176 |
from datasets import load_dataset
|
| 177 |
-
|
| 178 |
-
|
| 179 |
-
|
| 180 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 181 |
```
|
| 182 |
|
|
|
|
|
|
|
| 183 |
```python
|
| 184 |
-
import
|
| 185 |
|
| 186 |
-
|
| 187 |
-
|
| 188 |
-
target = torch.tensor(row["target"], dtype=torch.float32)
|
| 189 |
```
|
| 190 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 191 |
## Ethics and Limitations
|
| 192 |
|
| 193 |
-
|
| 194 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 195 |
|
| 196 |
## License
|
| 197 |
|
| 198 |
-
|
| 199 |
|
| 200 |
## Citation
|
| 201 |
|
| 202 |
-
TODO: Add paper citation and BibTeX.
|
| 203 |
|
| 204 |
## Contact
|
| 205 |
|
|
|
|
| 30 |
|
| 31 |
## Dataset Summary
|
| 32 |
|
| 33 |
+
MMPD-Bench is a polarimetric imaging benchmark for learning mappings from
|
| 34 |
+
Mueller matrix observations to polarimetric decomposition modalities. Each
|
| 35 |
+
sample contains a channel-first Mueller matrix tensor and a channel-first target
|
| 36 |
+
tensor with six Lu-Chipman reference modalities.
|
| 37 |
|
| 38 |
+
Current Hugging Face release status:
|
| 39 |
+
|
| 40 |
+
- Uploaded: external waveplate test data at 633 nm.
|
| 41 |
+
- Uploaded: external spectral test data at 610, 650, and 690 nm.
|
| 42 |
+
- Not yet uploaded: healthy bone cell `train`, `validation`, and `test` splits.
|
| 43 |
+
|
| 44 |
+
Because the waveplate tensors are 200 x 200 while the spectral tensors are
|
| 45 |
+
256 x 256, the external data is published as two separate configs:
|
| 46 |
+
|
| 47 |
+
- `external_waveplate`
|
| 48 |
+
- `external_spectral`
|
| 49 |
|
| 50 |
## Task Definition
|
| 51 |
|
| 52 |
+
The task is modality fission from a Mueller matrix tensor to six polarimetric
|
| 53 |
+
target modalities. It is not a segmentation or classification dataset.
|
| 54 |
|
| 55 |
- Input: Mueller matrix tensor, shape `[16, H, W]`, channel-first.
|
| 56 |
- Output: target modality tensor, shape `[6, H, W]`, channel-first.
|
|
|
|
| 58 |
|
| 59 |
## Data Sources
|
| 60 |
|
| 61 |
+
This release contains external test data from `polarization_v3`:
|
| 62 |
+
|
| 63 |
+
- Waveplate data: `hwp633` and `qwp633`, measured at 633 nm.
|
| 64 |
+
- Multi-wavelength spectral data: selected wavelengths from `mwl_530_690`,
|
| 65 |
+
currently 610, 650, and 690 nm.
|
| 66 |
+
|
| 67 |
+
The healthy bone cell data from `polarization_v2` is planned for a later upload
|
| 68 |
+
as `train`, `validation`, and `test`.
|
| 69 |
|
| 70 |
## File Structure
|
| 71 |
|
|
|
|
| 73 |
MMPD-Bench/
|
| 74 |
├── README.md
|
| 75 |
├── data/
|
| 76 |
+
│ ├── external_waveplate-00000-of-00001.parquet
|
| 77 |
+
│ ├── external_spectral_610-00000-of-00001.parquet
|
| 78 |
+
│ ├── external_spectral_650-00000-of-00001.parquet
|
| 79 |
+
│ └── external_spectral_690-00000-of-00001.parquet
|
| 80 |
+
└── metadata/
|
| 81 |
+
├── acquisition_info.json
|
| 82 |
+
├── channel_order.json
|
| 83 |
+
├── parameter_ranges.json
|
| 84 |
+
├── schema.json
|
| 85 |
+
└── split_summary.json
|
| 86 |
```
|
| 87 |
|
|
|
|
|
|
|
| 88 |
## Tensor Schema
|
| 89 |
|
| 90 |
+
Common columns:
|
| 91 |
|
| 92 |
```python
|
| 93 |
{
|
| 94 |
"sample_id": str,
|
| 95 |
"source_id": str,
|
| 96 |
"split": str,
|
| 97 |
+
"subset": str, # waveplate or spectral in the current release
|
| 98 |
+
"specimen_type": str, # waveplate or spectral in the current release
|
| 99 |
"wavelength_nm": int,
|
| 100 |
+
"source_path": str,
|
|
|
|
| 101 |
"mueller_shape": list[int],
|
| 102 |
"target_shape": list[int],
|
| 103 |
+
"mueller": array, # float32, channel-first
|
| 104 |
+
"target": array, # float32, channel-first
|
| 105 |
+
}
|
| 106 |
+
```
|
| 107 |
+
|
| 108 |
+
Waveplate-specific columns:
|
| 109 |
+
|
| 110 |
+
```python
|
| 111 |
+
{
|
| 112 |
+
"plate_type": str, # hwp or qwp
|
| 113 |
+
"angle_label": str, # e.g. 0deg, n22, p45
|
| 114 |
+
"angle_deg": float,
|
| 115 |
}
|
| 116 |
```
|
| 117 |
|
| 118 |
+
Spectral-specific columns:
|
|
|
|
| 119 |
|
| 120 |
+
```python
|
| 121 |
+
{
|
| 122 |
+
"patch_id": str,
|
| 123 |
+
"target_encoding": str, # png_uint8_normalized_to_float32_0_1
|
| 124 |
+
}
|
| 125 |
+
```
|
| 126 |
+
|
| 127 |
+
Current tensor shapes:
|
| 128 |
+
|
| 129 |
+
- `external_waveplate`: `mueller = [16, 200, 200]`, `target = [6, 200, 200]`.
|
| 130 |
+
- `external_spectral_*`: `mueller = [16, 256, 256]`,
|
| 131 |
+
`target = [6, 256, 256]`.
|
| 132 |
|
| 133 |
## Channel Conventions
|
| 134 |
|
|
|
|
| 147 |
D, Delta, eta, theta, psi, R
|
| 148 |
```
|
| 149 |
|
| 150 |
+
Local source files may use names such as `Ita`, `ita`, or `Eta`; the public
|
| 151 |
+
channel name is normalized to `eta`.
|
| 152 |
|
| 153 |
## Physical Parameter Definitions
|
| 154 |
|
| 155 |
+
The target tensor follows this channel order and nominal parameter range:
|
| 156 |
|
| 157 |
```text
|
| 158 |
D, Delta: [0, 1]
|
|
|
|
| 160 |
theta, psi: [-pi/2, pi/2)
|
| 161 |
```
|
| 162 |
|
| 163 |
+
Important encoding note:
|
| 164 |
+
|
| 165 |
+
- Waveplate target arrays are stored from the source `.npy` files as float32.
|
| 166 |
+
- Spectral target arrays were converted from grayscale PNG files to float32
|
| 167 |
+
values normalized to `[0, 1]`; see `target_encoding`.
|
| 168 |
|
| 169 |
+
## Reference Label Generation
|
|
|
|
|
|
|
|
|
|
| 170 |
|
| 171 |
+
The target modalities are generated using Lu-Chipman decomposition from measured
|
| 172 |
+
Mueller matrices. They should be interpreted as physics-solver reference labels
|
| 173 |
+
for benchmarking surrogate models and physics consistency, not as direct human
|
| 174 |
+
annotations or absolute biological ground truth.
|
| 175 |
|
| 176 |
## Splits
|
| 177 |
|
| 178 |
+
| Split | Config | Subset | Samples | Shape | Notes |
|
| 179 |
+
|---|---|---:|---:|---|---|
|
| 180 |
+
| external_waveplate | external_waveplate | waveplate | 18 | `[16, 200, 200] -> [6, 200, 200]` | 633 nm HWP/QWP |
|
| 181 |
+
| external_spectral_610 | external_spectral | spectral | 165 | `[16, 256, 256] -> [6, 256, 256]` | 610 nm |
|
| 182 |
+
| external_spectral_650 | external_spectral | spectral | 165 | `[16, 256, 256] -> [6, 256, 256]` | 650 nm |
|
| 183 |
+
| external_spectral_690 | external_spectral | spectral | 165 | `[16, 256, 256] -> [6, 256, 256]` | 690 nm |
|
| 184 |
+
| train | not uploaded yet | healthy_bone_cell | TBD | TBD | planned |
|
| 185 |
+
| validation | not uploaded yet | healthy_bone_cell | TBD | TBD | planned |
|
| 186 |
+
| test | not uploaded yet | healthy_bone_cell | TBD | TBD | planned |
|
| 187 |
|
| 188 |
+
## Benchmark Protocols
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 189 |
|
| 190 |
+
Current release:
|
|
|
|
| 191 |
|
| 192 |
+
1. External waveplate evaluation: use config `external_waveplate`, split
|
| 193 |
+
`external_waveplate`.
|
| 194 |
+
2. External spectral evaluation: use config `external_spectral`, then evaluate
|
| 195 |
+
`external_spectral_610`, `external_spectral_650`, and
|
| 196 |
+
`external_spectral_690`.
|
| 197 |
|
| 198 |
+
Planned full benchmark:
|
|
|
|
| 199 |
|
| 200 |
+
1. Train on healthy bone cell `train`.
|
| 201 |
+
2. Tune on healthy bone cell `validation`.
|
| 202 |
+
3. Report clean performance on healthy bone cell `test`.
|
| 203 |
+
4. Report external generalisation on waveplate and spectral splits.
|
| 204 |
|
| 205 |
+
## Loading Instructions
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 206 |
|
| 207 |
+
Install the Hugging Face datasets package:
|
| 208 |
|
| 209 |
+
```bash
|
| 210 |
+
pip install datasets
|
| 211 |
+
```
|
| 212 |
|
| 213 |
+
Load one external spectral split:
|
| 214 |
|
| 215 |
```python
|
| 216 |
from datasets import load_dataset
|
| 217 |
+
import numpy as np
|
| 218 |
+
|
| 219 |
+
ds = load_dataset(
|
| 220 |
+
"parquet",
|
| 221 |
+
data_files={
|
| 222 |
+
"external_spectral_610": (
|
| 223 |
+
"hf://datasets/HY2333/MMPD_Bench/"
|
| 224 |
+
"data/external_spectral_610-*.parquet"
|
| 225 |
+
)
|
| 226 |
+
},
|
| 227 |
+
split="external_spectral_610",
|
| 228 |
+
)
|
| 229 |
+
|
| 230 |
+
row = ds[0]
|
| 231 |
+
mueller = np.array(row["mueller"], dtype=np.float32)
|
| 232 |
+
target = np.array(row["target"], dtype=np.float32)
|
| 233 |
+
|
| 234 |
+
print(row["sample_id"])
|
| 235 |
+
print(mueller.shape)
|
| 236 |
+
print(target.shape)
|
| 237 |
```
|
| 238 |
|
| 239 |
+
Load via dataset config:
|
| 240 |
+
|
| 241 |
```python
|
| 242 |
+
from datasets import load_dataset
|
| 243 |
|
| 244 |
+
spectral = load_dataset("HY2333/MMPD_Bench", "external_spectral")
|
| 245 |
+
waveplate = load_dataset("HY2333/MMPD_Bench", "external_waveplate")
|
|
|
|
| 246 |
```
|
| 247 |
|
| 248 |
+
Note: in some environments, streaming reads of large nested Parquet tensors can
|
| 249 |
+
trigger a PyArrow shutdown issue after successful iteration. For a stable smoke
|
| 250 |
+
test, use non-streaming loading on a single split as shown above.
|
| 251 |
+
|
| 252 |
## Ethics and Limitations
|
| 253 |
|
| 254 |
+
The current release contains external physical/spectral evaluation data, not the
|
| 255 |
+
healthy bone cell train/validation/test splits. Biological-data ethics and
|
| 256 |
+
de-identification details should be completed before publishing the healthy bone
|
| 257 |
+
cell splits.
|
| 258 |
+
|
| 259 |
+
The targets are Lu-Chipman reference outputs. Evaluation should be interpreted
|
| 260 |
+
as agreement with a physics-solver reference and related physics consistency,
|
| 261 |
+
not as proof of absolute biological ground truth.
|
| 262 |
|
| 263 |
## License
|
| 264 |
|
| 265 |
+
This dataset is released under CC BY-NC 4.0.
|
| 266 |
|
| 267 |
## Citation
|
| 268 |
|
| 269 |
+
TODO: Add the MMPD-Bench paper citation and BibTeX entry.
|
| 270 |
|
| 271 |
## Contact
|
| 272 |
|