Repository navigation
NNunet softmax - #161
NNunet softmax#161
Conversation
Benchmark comparisonSpeed (wall time per call)baseline Showing the 5 most-changed measurements per case; the rest are collapsed. Rows with a baseline below 3 ms are tagged
|
| Measurement | baseline ms (median ±½·range) | head ms (median ±½·range) | Δ % | p |
|---|---|---|---|---|
nii_filter_connected_components |
4.46 ±1.21 | 2.66 ±0.06 | -40.3% | 0.067 |
poi_calc_poi_from_subreg_vert |
6.32 ±0.06 | 6.62 ±0.12 | +4.7% | 0.002 |
nii_save |
6.92 ±0.08 | 7.08 ±0.08 | +2.3% | 0.045 |
nii_erode_msk |
3.55 ±0.05 | 3.50 ±0.06 | -1.4% | 0.749 |
nii_load_img |
7.40 ±0.06 | 7.30 ±0.04 | -1.4% | 0.034 |
… 31 more measurements
| Measurement | baseline ms (median ±½·range) | head ms (median ±½·range) | Δ % | p |
|---|---|---|---|---|
nii_resample_from_to |
24.02 ±0.34 | 24.29 ±0.37 | +1.1% | 0.425 |
nii_dilate_msk |
65.41 ±0.17 | 64.70 ±1.36 | -1.1% | 0.660 |
nii_rescale |
23.28 ±0.29 | 23.53 ±2.05 | +1.1% | 0.327 |
metric_voxels |
250463.00 ±0.00 | 250463.00 ±0.00 | +0.0% | — |
metric_labels |
3.00 ±0.00 | 3.00 ±0.00 | +0.0% | — |
metric_foreground_pct |
14.51 ±0.00 | 14.51 ±0.00 | +0.0% | — |
nii_extract_label |
0.29 ±0.02 | 0.18 ±0.01 | -36.2% (noise) | 0.000 |
poi_rescale |
0.15 ±0.02 | 0.12 ±0.01 | -23.8% (noise) | 0.013 |
nii_pad_to |
0.38 ±0.02 | 0.30 ±0.01 | -21.4% (noise) | 0.000 |
nii_apply_crop |
0.36 ±0.03 | 0.29 ±0.02 | -18.9% (noise) | 0.006 |
nii_get_array |
0.02 ±0.00 | 0.02 ±0.00 | +12.3% (noise) | 0.176 |
nii_set_dtype |
0.27 ±0.01 | 0.30 ±0.03 | +12.2% (noise) | 0.043 |
poi_resample_from_to |
0.31 ±0.02 | 0.28 ±0.03 | -10.2% (noise) | 0.147 |
nii_compute_crop |
0.20 ±0.01 | 0.18 ±0.01 | -9.8% (noise) | 0.025 |
nii_reorient |
0.37 ±0.03 | 0.40 ±0.03 | +9.3% (noise) | 0.070 |
poi_calc_centroids |
1.45 ±0.03 | 1.33 ±0.07 | -8.5% (noise) | 0.026 |
poi_map_labels |
0.08 ±0.01 | 0.07 ±0.01 | -8.3% (noise) | 0.128 |
nii_get_connected_components |
1.42 ±0.09 | 1.30 ±0.01 | -8.3% (noise) | 0.105 |
poi_save |
0.24 ±0.01 | 0.26 ±0.05 | +7.5% (noise) | 0.356 |
poi_to_global |
0.13 ±0.01 | 0.12 ±0.01 | -7.5% (noise) | 0.081 |
nii_rescale_seg |
1.76 ±0.05 | 1.65 ±0.04 | -6.5% (noise) | 0.002 |
poi_calc_centroids_nocrop |
2.91 ±0.10 | 2.73 ±0.51 | -6.3% (noise) | 0.794 |
poi_reorient |
0.30 ±0.02 | 0.28 ±0.07 | -6.1% (noise) | 0.453 |
nii_map_labels |
0.48 ±0.02 | 0.45 ±0.05 | -5.1% (noise) | 0.219 |
nii_unique |
0.44 ±0.01 | 0.43 ±0.00 | -3.2% (noise) | 0.025 |
nii_volumes |
1.08 ±0.01 | 1.04 ±0.10 | -3.1% (noise) | 0.641 |
nii_load_seg |
1.64 ±0.07 | 1.69 ±0.03 | +3.1% (noise) | 0.347 |
poi_local_to_global_arr |
0.13 ±0.01 | 0.14 ±0.00 | +2.4% (noise) | 0.990 |
nii_center_of_masses |
1.00 ±0.01 | 0.99 ±0.02 | -1.4% (noise) | 0.430 |
nii_fill_holes |
2.97 ±0.04 | 2.94 ±0.05 | -1.1% (noise) | 0.025 |
poi_load |
0.46 ±0.02 | 0.45 ±0.01 | -1.1% (noise) | 0.323 |
ct_2d — shape (73, 47, 1)
| Measurement | baseline ms (median ±½·range) | head ms (median ±½·range) | Δ % | p |
|---|---|---|---|---|
nii_rescale |
3.27 ±0.05 | 3.53 ±0.09 | +7.9% | 0.000 |
nii_resample_from_to |
4.28 ±0.44 | 4.54 ±0.21 | +6.1% | 0.987 |
nii_dilate_msk |
7.51 ±0.11 | 7.43 ±0.04 | -1.1% | 0.091 |
metric_voxels |
3431.00 ±0.00 | 3431.00 ±0.00 | +0.0% | — |
metric_labels |
3.00 ±0.00 | 3.00 ±0.00 | +0.0% | — |
… 30 more measurements
| Measurement | baseline ms (median ±½·range) | head ms (median ±½·range) | Δ % | p |
|---|---|---|---|---|
metric_foreground_pct |
37.60 ±0.00 | 37.60 ±0.00 | +0.0% | — |
poi_map_labels |
0.14 ±0.01 | 0.19 ±0.03 | +37.9% (noise) | 0.014 |
nii_unique |
0.09 ±0.01 | 0.12 ±0.01 | +31.9% (noise) | 0.005 |
nii_get_array |
0.01 ±0.00 | 0.02 ±0.00 | +25.9% (noise) | 0.830 |
nii_rescale_seg |
0.53 ±0.04 | 0.66 ±0.04 | +24.6% (noise) | 0.000 |
nii_apply_crop |
0.47 ±0.02 | 0.58 ±0.13 | +21.7% (noise) | 0.074 |
nii_get_connected_components |
0.45 ±0.03 | 0.54 ±0.02 | +20.1% (noise) | 0.002 |
nii_save |
0.92 ±0.02 | 1.08 ±0.02 | +16.9% (noise) | 0.000 |
poi_calc_centroids |
0.59 ±0.02 | 0.68 ±0.11 | +16.0% (noise) | 0.081 |
nii_fill_holes |
0.53 ±0.03 | 0.61 ±0.03 | +15.2% (noise) | 0.010 |
nii_volumes |
0.20 ±0.01 | 0.24 ±0.01 | +15.1% (noise) | 0.001 |
nii_load_img |
0.88 ±0.02 | 1.00 ±0.02 | +13.4% (noise) | 0.000 |
nii_load_seg |
1.04 ±0.04 | 1.17 ±0.04 | +12.2% (noise) | 0.001 |
poi_save |
0.38 ±0.03 | 0.43 ±0.02 | +11.7% (noise) | 0.017 |
poi_resample_from_to |
0.50 ±0.07 | 0.56 ±0.05 | +10.9% (noise) | 0.250 |
nii_filter_connected_components |
0.59 ±0.02 | 0.64 ±0.04 | +9.2% (noise) | 0.016 |
poi_to_global |
0.18 ±0.01 | 0.20 ±0.02 | +9.2% (noise) | 0.115 |
nii_compute_crop |
0.11 ±0.01 | 0.12 ±0.01 | +8.9% (noise) | 0.087 |
poi_calc_centroids_nocrop |
0.70 ±0.02 | 0.76 ±0.02 | +8.8% (noise) | 0.001 |
nii_pad_to |
0.45 ±0.03 | 0.48 ±0.02 | +7.4% (noise) | 0.012 |
nii_extract_label |
0.29 ±0.02 | 0.31 ±0.02 | +6.0% (noise) | 0.106 |
poi_reorient |
0.33 ±0.02 | 0.35 ±0.01 | +5.9% (noise) | 0.111 |
poi_rescale |
0.19 ±0.03 | 0.20 ±0.01 | +4.5% (noise) | 0.758 |
nii_center_of_masses |
0.16 ±0.03 | 0.16 ±0.02 | +4.2% (noise) | 0.861 |
nii_erode_msk |
0.61 ±0.02 | 0.63 ±0.04 | +4.2% (noise) | 0.087 |
nii_map_labels |
0.37 ±0.04 | 0.38 ±0.05 | +4.1% (noise) | 0.745 |
nii_reorient |
0.58 ±0.05 | 0.56 ±0.01 | -3.8% (noise) | 0.433 |
poi_load |
0.61 ±0.10 | 0.62 ±0.02 | +3.0% (noise) | 0.734 |
poi_local_to_global_arr |
0.18 ±0.01 | 0.18 ±0.01 | +0.9% (noise) | 0.489 |
nii_set_dtype |
0.31 ±0.03 | 0.31 ±0.03 | -0.5% (noise) | 0.298 |
mri_3d — shape (68, 52, 67)
| Measurement | baseline ms (median ±½·range) | head ms (median ±½·range) | Δ % | p |
|---|---|---|---|---|
nii_save |
5.74 ±0.02 | 5.97 ±1.68 | +4.1% | 0.269 |
nii_rescale |
21.61 ±0.18 | 22.39 ±0.59 | +3.6% | 0.027 |
nii_erode_msk |
4.68 ±0.09 | 4.57 ±0.05 | -2.5% | 0.024 |
poi_calc_poi_from_subreg_vert |
6.10 ±0.09 | 6.24 ±0.23 | +2.3% | 0.240 |
nii_fill_holes |
3.52 ±0.07 | 3.46 ±0.08 | -1.9% | 0.227 |
… 31 more measurements
| Measurement | baseline ms (median ±½·range) | head ms (median ±½·range) | Δ % | p |
|---|---|---|---|---|
nii_load_img |
6.01 ±0.14 | 6.12 ±0.13 | +1.8% | 0.469 |
poi_calc_centroids_nocrop |
5.43 ±0.04 | 5.48 ±0.20 | +0.9% | 0.241 |
nii_dilate_msk |
83.84 ±1.51 | 83.12 ±1.32 | -0.9% | 0.338 |
nii_resample_from_to |
22.59 ±1.46 | 22.55 ±0.35 | -0.2% | 0.444 |
metric_voxels |
236912.00 ±0.00 | 236912.00 ±0.00 | +0.0% | — |
metric_labels |
8.00 ±0.00 | 8.00 ±0.00 | +0.0% | — |
metric_foreground_pct |
18.21 ±0.00 | 18.21 ±0.00 | +0.0% | — |
nii_reorient |
0.51 ±0.02 | 0.70 ±0.07 | +37.1% (noise) | 0.007 |
nii_set_dtype |
0.32 ±0.02 | 0.42 ±0.02 | +32.7% (noise) | 0.000 |
nii_load_seg |
1.75 ±0.04 | 2.07 ±0.13 | +17.8% (noise) | 0.003 |
nii_get_array |
0.03 ±0.00 | 0.03 ±0.00 | +17.0% (noise) | 0.040 |
poi_map_labels |
0.16 ±0.00 | 0.19 ±0.01 | +12.8% (noise) | 0.000 |
poi_local_to_global_arr |
0.17 ±0.01 | 0.19 ±0.01 | +10.3% (noise) | 0.046 |
poi_to_global |
0.18 ±0.01 | 0.20 ±0.01 | +9.0% (noise) | 0.078 |
nii_compute_crop |
0.22 ±0.01 | 0.24 ±0.01 | +8.9% (noise) | 0.002 |
nii_apply_crop |
0.49 ±0.01 | 0.53 ±0.10 | +8.3% (noise) | 0.073 |
nii_extract_label |
0.30 ±0.02 | 0.33 ±0.02 | +7.9% (noise) | 0.057 |
nii_map_labels |
0.58 ±0.03 | 0.62 ±0.03 | +5.9% (noise) | 0.049 |
nii_get_connected_components |
1.46 ±0.04 | 1.38 ±0.03 | -5.5% (noise) | 0.005 |
poi_save |
0.45 ±0.03 | 0.47 ±0.01 | +4.2% (noise) | 0.255 |
poi_rescale |
0.20 ±0.01 | 0.21 ±0.01 | +2.7% (noise) | 0.179 |
nii_pad_to |
0.48 ±0.04 | 0.49 ±0.03 | +2.7% (noise) | 0.887 |
nii_volumes |
1.17 ±0.02 | 1.19 ±0.03 | +1.8% (noise) | 0.849 |
poi_reorient |
0.34 ±0.01 | 0.34 ±0.02 | -1.6% (noise) | 0.898 |
nii_rescale_seg |
1.77 ±0.03 | 1.79 ±0.03 | +1.4% (noise) | 0.076 |
nii_filter_connected_components |
2.82 ±0.06 | 2.79 ±0.03 | -0.9% (noise) | 0.496 |
nii_center_of_masses |
1.16 ±0.04 | 1.16 ±0.29 | +0.8% (noise) | 0.387 |
poi_resample_from_to |
0.56 ±0.03 | 0.56 ±0.03 | -0.7% (noise) | 0.887 |
poi_calc_centroids |
1.73 ±0.05 | 1.73 ±0.06 | +0.3% (noise) | 0.515 |
nii_unique |
0.47 ±0.01 | 0.47 ±0.01 | +0.3% (noise) | 0.870 |
poi_load |
1.17 ±0.02 | 1.17 ±0.03 | +0.2% (noise) | 0.471 |
mri_2d — shape (68, 52, 1)
| Measurement | baseline ms (median ±½·range) | head ms (median ±½·range) | Δ % | p |
|---|---|---|---|---|
nii_dilate_msk |
9.99 ±0.13 | 9.81 ±0.10 | -1.8% | 0.030 |
nii_resample_from_to |
4.41 ±0.20 | 4.34 ±0.14 | -1.7% | 0.713 |
nii_rescale |
3.47 ±0.14 | 3.51 ±0.12 | +1.1% | 0.312 |
metric_voxels |
3536.00 ±0.00 | 3536.00 ±0.00 | +0.0% | — |
metric_labels |
7.00 ±0.00 | 7.00 ±0.00 | +0.0% | — |
… 30 more measurements
| Measurement | baseline ms (median ±½·range) | head ms (median ±½·range) | Δ % | p |
|---|---|---|---|---|
metric_foreground_pct |
50.17 ±0.00 | 50.17 ±0.00 | +0.0% | — |
nii_rescale_seg |
0.48 ±0.06 | 0.63 ±0.03 | +31.8% (noise) | 0.004 |
nii_map_labels |
0.34 ±0.02 | 0.42 ±0.03 | +25.6% (noise) | 0.000 |
nii_get_array |
0.02 ±0.01 | 0.01 ±0.00 | -19.5% (noise) | 0.075 |
poi_to_global |
0.17 ±0.01 | 0.20 ±0.02 | +17.3% (noise) | 0.009 |
nii_pad_to |
0.43 ±0.03 | 0.50 ±0.02 | +15.4% (noise) | 0.010 |
nii_compute_crop |
0.12 ±0.01 | 0.13 ±0.01 | +12.1% (noise) | 0.421 |
poi_save |
0.41 ±0.02 | 0.46 ±0.02 | +11.4% (noise) | 0.015 |
poi_resample_from_to |
0.48 ±0.01 | 0.52 ±0.03 | +10.0% (noise) | 0.016 |
nii_erode_msk |
0.84 ±0.04 | 0.76 ±0.01 | -8.9% (noise) | 0.019 |
nii_fill_holes |
0.73 ±0.03 | 0.67 ±0.03 | -7.3% (noise) | 0.007 |
nii_load_seg |
1.12 ±0.02 | 1.20 ±0.05 | +7.1% (noise) | 0.014 |
poi_map_labels |
0.15 ±0.01 | 0.16 ±0.01 | +6.4% (noise) | 0.062 |
poi_rescale |
0.18 ±0.02 | 0.20 ±0.01 | +6.3% (noise) | 0.552 |
poi_reorient |
0.31 ±0.02 | 0.33 ±0.02 | +6.0% (noise) | 0.151 |
nii_get_connected_components |
0.50 ±0.03 | 0.47 ±0.03 | -5.9% (noise) | 0.144 |
nii_apply_crop |
0.56 ±0.02 | 0.53 ±0.02 | -5.6% (noise) | 0.042 |
poi_calc_centroids |
0.77 ±0.05 | 0.72 ±0.01 | -5.6% (noise) | 0.280 |
nii_set_dtype |
0.33 ±0.05 | 0.34 ±0.01 | +5.6% (noise) | 0.684 |
nii_save |
1.05 ±0.02 | 1.11 ±0.07 | +5.5% (noise) | 0.079 |
nii_center_of_masses |
0.26 ±0.01 | 0.27 ±0.01 | +4.6% (noise) | 0.204 |
nii_volumes |
0.31 ±0.01 | 0.30 ±0.01 | -2.2% (noise) | 0.807 |
nii_unique |
0.12 ±0.02 | 0.12 ±0.01 | -2.0% (noise) | 0.847 |
poi_calc_centroids_nocrop |
0.84 ±0.14 | 0.85 ±0.01 | +1.9% (noise) | 0.835 |
nii_extract_label |
0.36 ±0.14 | 0.36 ±0.01 | +1.8% (noise) | 0.449 |
nii_reorient |
0.62 ±0.03 | 0.61 ±0.03 | -1.4% (noise) | 0.886 |
nii_filter_connected_components |
0.61 ±0.03 | 0.60 ±0.02 | -1.0% (noise) | 0.192 |
poi_local_to_global_arr |
0.17 ±0.01 | 0.16 ±0.01 | -0.9% (noise) | 0.924 |
nii_load_img |
1.01 ±0.02 | 1.01 ±0.05 | +0.1% (noise) | 0.983 |
poi_load |
1.03 ±0.01 | 1.03 ±0.01 | +0.0% (noise) | 0.933 |
Gate: a measurement fails when the baseline is ≥ 1 ms, the median grows by ≥ 50%, and Welch's t-test gives p < 0.05. metric_* rows are context only.
Memory (peak RSS growth per call)
baseline d39d1ce vs head d39d1ce · python 3.11.18 · 5 repeats + 1 warmup · sampler proc-status, isolation fork · measurement floor ≈ 0.78 MiB
Showing the 5 most-changed measurements per case; the rest are collapsed. Rows with a baseline below 3 MiB are tagged (noise) — runner jitter on those swamps any real change.
ct_3d — shape (73, 47, 73)
| Measurement | baseline MiB (median ±½·range) | head MiB (median ±½·range) | Δ % | p |
|---|---|---|---|---|
nii_fill_holes |
12.77 ±0.00 | 12.84 ±0.00 | +0.5% | — |
nii_load_img |
5.12 ±0.00 | 5.14 ±0.00 | +0.5% | — |
nii_load_seg |
12.55 ±0.00 | 12.59 ±0.00 | +0.3% | — |
poi_map_labels |
3.09 ±0.00 | 3.09 ±0.00 | +0.3% | — |
poi_load |
3.11 ±0.00 | 3.12 ±0.00 | +0.3% | — |
… 31 more measurements
| Measurement | baseline MiB (median ±½·range) | head MiB (median ±½·range) | Δ % | p |
|---|---|---|---|---|
poi_resample_from_to |
12.16 ±0.00 | 12.18 ±0.00 | +0.2% | — |
nii_set_dtype |
12.16 ±0.00 | 12.19 ±0.00 | +0.2% | — |
nii_reorient |
12.29 ±0.00 | 12.31 ±0.00 | +0.2% | — |
nii_map_labels |
12.35 ±0.00 | 12.38 ±0.00 | +0.2% | — |
nii_erode_msk |
12.42 ±0.00 | 12.44 ±0.00 | +0.2% | — |
nii_apply_crop |
12.46 ±0.00 | 12.48 ±0.00 | +0.2% | — |
nii_rescale |
12.60 ±0.00 | 12.62 ±0.00 | +0.2% | — |
nii_rescale_seg |
12.60 ±0.00 | 12.62 ±0.00 | +0.2% | — |
poi_calc_centroids |
12.66 ±0.00 | 12.69 ±0.00 | +0.2% | — |
nii_resample_from_to |
12.78 ±0.00 | 12.80 ±0.00 | +0.2% | — |
poi_calc_poi_from_subreg_vert |
13.33 ±0.00 | 13.36 ±0.00 | +0.2% | — |
nii_compute_crop |
4.59 ±0.00 | 4.59 ±0.00 | +0.2% | — |
nii_get_connected_components |
13.98 ±0.00 | 14.00 ±0.00 | +0.2% | — |
nii_filter_connected_components |
14.16 ±0.00 | 14.19 ±0.00 | +0.2% | — |
nii_extract_label |
12.17 ±0.00 | 12.19 ±0.00 | +0.2% | — |
poi_rescale |
5.29 ±0.00 | 5.30 ±0.00 | +0.1% | — |
nii_unique |
5.46 ±0.00 | 5.47 ±0.00 | +0.1% | — |
nii_volumes |
5.96 ±0.00 | 5.97 ±0.00 | +0.1% | — |
nii_pad_to |
12.22 ±0.00 | 12.24 ±0.00 | +0.1% | 0.001 |
poi_calc_centroids_nocrop |
12.48 ±0.00 | 12.49 ±0.00 | +0.1% | — |
nii_save |
7.12 ±0.00 | 7.13 ±0.00 | +0.1% | — |
poi_local_to_global_arr |
7.46 ±0.00 | 7.46 ±0.00 | +0.1% | — |
poi_to_global |
7.52 ±0.00 | 7.53 ±0.00 | +0.1% | — |
poi_reorient |
8.08 ±0.00 | 8.09 ±0.00 | +0.1% | — |
nii_dilate_msk |
12.35 ±0.00 | 12.36 ±0.00 | +0.1% | — |
nii_center_of_masses |
4.90 ±0.00 | 4.91 ±0.00 | +0.1% | — |
metric_voxels |
250463.00 ±0.00 | 250463.00 ±0.00 | +0.0% | — |
metric_labels |
3.00 ±0.00 | 3.00 ±0.00 | +0.0% | — |
metric_foreground_pct |
14.51 ±0.00 | 14.51 ±0.00 | +0.0% | — |
poi_save |
2.07 ±0.00 | 2.07 ±0.00 | +0.4% (noise) | — |
nii_get_array |
2.96 ±0.00 | 2.97 ±0.00 | +0.3% (noise) | — |
ct_2d — shape (73, 47, 1)
| Measurement | baseline MiB (median ±½·range) | head MiB (median ±½·range) | Δ % | p |
|---|---|---|---|---|
nii_fill_holes |
12.77 ±0.00 | 12.84 ±0.00 | +0.5% | 0.000 |
nii_load_img |
5.12 ±0.00 | 5.14 ±0.00 | +0.4% | — |
nii_load_seg |
12.55 ±0.00 | 12.59 ±0.00 | +0.3% | — |
poi_map_labels |
3.09 ±0.00 | 3.09 ±0.00 | +0.3% | — |
poi_load |
3.11 ±0.00 | 3.12 ±0.00 | +0.3% | — |
… 30 more measurements
| Measurement | baseline MiB (median ±½·range) | head MiB (median ±½·range) | Δ % | p |
|---|---|---|---|---|
poi_resample_from_to |
12.16 ±0.00 | 12.18 ±0.00 | +0.2% | — |
nii_set_dtype |
12.16 ±0.00 | 12.19 ±0.00 | +0.2% | — |
nii_extract_label |
12.16 ±0.00 | 12.19 ±0.00 | +0.2% | 0.000 |
nii_reorient |
12.29 ±0.00 | 12.31 ±0.00 | +0.2% | 0.000 |
nii_map_labels |
12.35 ±0.00 | 12.38 ±0.00 | +0.2% | — |
nii_erode_msk |
12.42 ±0.00 | 12.44 ±0.00 | +0.2% | — |
nii_apply_crop |
12.46 ±0.00 | 12.48 ±0.00 | +0.2% | — |
nii_rescale |
12.60 ±0.00 | 12.62 ±0.00 | +0.2% | — |
nii_rescale_seg |
12.60 ±0.00 | 12.62 ±0.00 | +0.2% | — |
poi_calc_centroids |
12.66 ±0.00 | 12.69 ±0.00 | +0.2% | — |
nii_resample_from_to |
12.79 ±0.00 | 12.81 ±0.00 | +0.2% | — |
nii_compute_crop |
4.59 ±0.00 | 4.59 ±0.00 | +0.2% | — |
nii_get_connected_components |
13.98 ±0.00 | 14.00 ±0.00 | +0.2% | — |
nii_filter_connected_components |
14.16 ±0.00 | 14.19 ±0.00 | +0.2% | — |
nii_center_of_masses |
4.90 ±0.00 | 4.91 ±0.00 | +0.2% | 0.016 |
poi_rescale |
5.29 ±0.00 | 5.30 ±0.00 | +0.1% | — |
nii_unique |
5.46 ±0.00 | 5.47 ±0.00 | +0.1% | — |
nii_volumes |
5.96 ±0.00 | 5.97 ±0.00 | +0.1% | — |
nii_pad_to |
12.22 ±0.00 | 12.24 ±0.00 | +0.1% | — |
poi_calc_centroids_nocrop |
12.54 ±0.00 | 12.55 ±0.00 | +0.1% | — |
nii_save |
7.12 ±0.00 | 7.13 ±0.00 | +0.1% | — |
poi_local_to_global_arr |
7.46 ±0.00 | 7.46 ±0.00 | +0.1% | — |
poi_to_global |
7.52 ±0.00 | 7.53 ±0.00 | +0.1% | — |
poi_reorient |
8.08 ±0.00 | 8.09 ±0.00 | +0.1% | — |
nii_dilate_msk |
12.35 ±0.00 | 12.36 ±0.00 | +0.1% | — |
metric_voxels |
3431.00 ±0.00 | 3431.00 ±0.00 | +0.0% | — |
metric_labels |
3.00 ±0.00 | 3.00 ±0.00 | +0.0% | — |
metric_foreground_pct |
37.60 ±0.00 | 37.60 ±0.00 | +0.0% | — |
poi_save |
2.07 ±0.00 | 2.07 ±0.00 | +0.4% (noise) | 0.016 |
nii_get_array |
2.96 ±0.00 | 2.97 ±0.00 | +0.3% (noise) | — |
mri_3d — shape (68, 52, 67)
| Measurement | baseline MiB (median ±½·range) | head MiB (median ±½·range) | Δ % | p |
|---|---|---|---|---|
nii_fill_holes |
12.77 ±0.00 | 12.84 ±0.00 | +0.5% | — |
nii_load_img |
5.12 ±0.00 | 5.14 ±0.00 | +0.4% | — |
nii_load_seg |
12.55 ±0.00 | 12.59 ±0.00 | +0.3% | — |
poi_map_labels |
3.09 ±0.00 | 3.09 ±0.00 | +0.3% | — |
poi_load |
3.11 ±0.00 | 3.12 ±0.00 | +0.3% | — |
… 31 more measurements
| Measurement | baseline MiB (median ±½·range) | head MiB (median ±½·range) | Δ % | p |
|---|---|---|---|---|
poi_resample_from_to |
12.16 ±0.00 | 12.18 ±0.00 | +0.2% | — |
nii_extract_label |
12.16 ±0.00 | 12.19 ±0.00 | +0.2% | — |
nii_set_dtype |
12.23 ±0.00 | 12.25 ±0.00 | +0.2% | 0.000 |
nii_reorient |
12.29 ±0.00 | 12.31 ±0.00 | +0.2% | — |
nii_map_labels |
12.35 ±0.00 | 12.38 ±0.00 | +0.2% | — |
nii_erode_msk |
12.42 ±0.00 | 12.44 ±0.00 | +0.2% | — |
nii_apply_crop |
12.46 ±0.00 | 12.48 ±0.00 | +0.2% | — |
nii_rescale |
12.60 ±0.00 | 12.62 ±0.00 | +0.2% | 0.000 |
nii_rescale_seg |
12.60 ±0.00 | 12.62 ±0.00 | +0.2% | — |
poi_calc_centroids |
12.66 ±0.00 | 12.69 ±0.00 | +0.2% | — |
nii_resample_from_to |
12.78 ±0.00 | 12.80 ±0.00 | +0.2% | — |
poi_calc_poi_from_subreg_vert |
13.33 ±0.00 | 13.35 ±0.00 | +0.2% | 0.000 |
nii_compute_crop |
4.59 ±0.00 | 4.59 ±0.00 | +0.2% | — |
nii_get_connected_components |
13.98 ±0.00 | 14.00 ±0.00 | +0.2% | — |
nii_filter_connected_components |
14.16 ±0.00 | 14.19 ±0.00 | +0.2% | — |
nii_center_of_masses |
4.90 ±0.00 | 4.91 ±0.00 | +0.2% | — |
poi_rescale |
5.29 ±0.00 | 5.30 ±0.00 | +0.1% | — |
nii_unique |
5.46 ±0.00 | 5.47 ±0.00 | +0.1% | — |
nii_volumes |
5.96 ±0.00 | 5.97 ±0.00 | +0.1% | — |
nii_pad_to |
12.22 ±0.00 | 12.24 ±0.00 | +0.1% | — |
poi_calc_centroids_nocrop |
12.47 ±0.00 | 12.49 ±0.00 | +0.1% | — |
nii_save |
7.12 ±0.00 | 7.13 ±0.00 | +0.1% | — |
poi_local_to_global_arr |
7.46 ±0.00 | 7.46 ±0.00 | +0.1% | — |
poi_to_global |
7.52 ±0.00 | 7.53 ±0.00 | +0.1% | — |
poi_reorient |
8.08 ±0.00 | 8.09 ±0.00 | +0.1% | — |
nii_dilate_msk |
12.35 ±0.00 | 12.36 ±0.00 | +0.1% | — |
metric_voxels |
236912.00 ±0.00 | 236912.00 ±0.00 | +0.0% | — |
metric_labels |
8.00 ±0.00 | 8.00 ±0.00 | +0.0% | — |
metric_foreground_pct |
18.21 ±0.00 | 18.21 ±0.00 | +0.0% | — |
poi_save |
2.13 ±0.00 | 2.14 ±0.00 | +0.4% (noise) | — |
nii_get_array |
2.96 ±0.00 | 2.97 ±0.00 | +0.3% (noise) | 0.016 |
mri_2d — shape (68, 52, 1)
| Measurement | baseline MiB (median ±½·range) | head MiB (median ±½·range) | Δ % | p |
|---|---|---|---|---|
nii_fill_holes |
12.77 ±0.00 | 12.84 ±0.00 | +0.5% | — |
nii_load_img |
5.12 ±0.00 | 5.14 ±0.00 | +0.4% | — |
nii_load_seg |
12.55 ±0.00 | 12.59 ±0.00 | +0.3% | — |
poi_map_labels |
3.09 ±0.00 | 3.09 ±0.00 | +0.3% | — |
poi_load |
3.11 ±0.00 | 3.12 ±0.00 | +0.3% | — |
… 30 more measurements
| Measurement | baseline MiB (median ±½·range) | head MiB (median ±½·range) | Δ % | p |
|---|---|---|---|---|
poi_resample_from_to |
12.16 ±0.00 | 12.18 ±0.00 | +0.2% | — |
nii_extract_label |
12.16 ±0.00 | 12.19 ±0.00 | +0.2% | — |
nii_set_dtype |
12.23 ±0.00 | 12.25 ±0.00 | +0.2% | — |
nii_reorient |
12.29 ±0.00 | 12.31 ±0.00 | +0.2% | 0.000 |
nii_map_labels |
12.35 ±0.00 | 12.38 ±0.00 | +0.2% | 0.000 |
nii_erode_msk |
12.42 ±0.00 | 12.44 ±0.00 | +0.2% | — |
nii_apply_crop |
12.46 ±0.00 | 12.48 ±0.00 | +0.2% | — |
nii_rescale |
12.60 ±0.00 | 12.62 ±0.00 | +0.2% | — |
nii_rescale_seg |
12.60 ±0.00 | 12.62 ±0.00 | +0.2% | — |
poi_calc_centroids |
12.66 ±0.00 | 12.69 ±0.00 | +0.2% | — |
nii_resample_from_to |
12.78 ±0.00 | 12.80 ±0.00 | +0.2% | — |
nii_compute_crop |
4.59 ±0.00 | 4.59 ±0.00 | +0.2% | — |
nii_get_connected_components |
13.98 ±0.00 | 14.00 ±0.00 | +0.2% | — |
nii_filter_connected_components |
14.16 ±0.00 | 14.19 ±0.00 | +0.2% | 0.000 |
nii_center_of_masses |
4.90 ±0.00 | 4.91 ±0.00 | +0.2% | — |
poi_reorient |
8.08 ±0.00 | 8.09 ±0.00 | +0.1% | — |
nii_unique |
5.46 ±0.00 | 5.47 ±0.00 | +0.1% | — |
nii_volumes |
5.96 ±0.00 | 5.97 ±0.00 | +0.1% | — |
nii_pad_to |
12.22 ±0.00 | 12.24 ±0.00 | +0.1% | — |
poi_calc_centroids_nocrop |
12.54 ±0.00 | 12.55 ±0.00 | +0.1% | — |
nii_save |
7.12 ±0.00 | 7.13 ±0.00 | +0.1% | — |
poi_local_to_global_arr |
7.46 ±0.00 | 7.46 ±0.00 | +0.1% | — |
poi_to_global |
7.52 ±0.00 | 7.53 ±0.00 | +0.1% | — |
nii_dilate_msk |
12.35 ±0.00 | 12.36 ±0.00 | +0.1% | — |
poi_rescale |
5.30 ±0.00 | 5.30 ±0.00 | +0.1% | — |
metric_voxels |
3536.00 ±0.00 | 3536.00 ±0.00 | +0.0% | — |
metric_labels |
7.00 ±0.00 | 7.00 ±0.00 | +0.0% | — |
metric_foreground_pct |
50.17 ±0.00 | 50.17 ±0.00 | +0.0% | — |
poi_save |
2.13 ±0.00 | 2.14 ±0.00 | +0.4% (noise) | — |
nii_get_array |
2.96 ±0.00 | 2.97 ±0.00 | +0.3% (noise) | — |
Gate: a measurement fails when the baseline is ≥ 1 MiB, the median grows by ≥ 50%, and Welch's t-test gives p < 0.05. metric_* rows are context only.
The old test_logits_are_not_implemented asserted that logits=True raises, which is the behaviour this PR removes. With the mocked predictor still returning a bare label map, run_inference tried to unpack it into (segmentation, probabilities) and the test failed with "ValueError: too many values to unpack (expected 2)" (python 3.11 / heavy-deps CI job). The mock now returns (segmentation, one-hot probabilities) when the predictor is asked for probabilities, and its label map differs along every axis. New tests check that the softmax is float32, shaped (classes, X, Y, Z), on the input grid, that argmax reproduces the segmentation, that it is reoriented together with it (reorient_PIR=True), and that the predictor is only asked for probabilities when logits=True. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Re-add softmax return to nnU-Net inference. Will only affect output if set to True