Open jcohenadad opened 1 year ago
Additional motivation: mirror padding was used for GM segmentation (with np.pad): https://github.com/spinalcordtoolbox/spinalcordtoolbox/blob/d6d5bace26b96710b3db6666e7bc1903187a154d/spinalcordtoolbox/deepseg_/gm.py#L57
Data are CenterCroped during preparation. However, if images are too small, the output cropped image is zero-padded. I have the intuition that when the model is exposed to data that include zeros, the model performance is reduced because these zeros represent a strong discontinuity:
I would like to try using mirroring instead of zero-padding and see how training goes.
Related to #1259 #1018 #1231