We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9becdf8 commit 507351dCopy full SHA for 507351d
PyTorch/Segmentation/nnUNet/data_preprocessing/preprocessor.py
@@ -217,7 +217,7 @@ def collect_spacings(self):
217
spacing = np.array(spacing)
218
target_spacing = np.median(spacing, axis=0)
219
if max(target_spacing) / min(target_spacing) >= 3:
220
- lowres_axis = np.argmin(target_spacing)
+ lowres_axis = np.argmax(target_spacing)
221
target_spacing[lowres_axis] = np.percentile(spacing[:, lowres_axis], 10)
222
self.target_spacing = list(target_spacing)
223
0 commit comments