Replies: 4 comments 1 reply
-
Hi @lukaskrl, thanks for the reporting.
Hope it helps, thanks. |
Beta Was this translation helpful? Give feedback.
-
For the dtype one which is a known issue, as reported here. |
Beta Was this translation helpful? Give feedback.
-
Convert to the discussion now, feel free to recreate one if face any issues. |
Beta Was this translation helpful? Give feedback.
-
@KumoLiu I'd like to just double check that there isn't another issue. The |
Beta Was this translation helpful? Give feedback.
-
When using lazy transform, specifying an interpolation method still applies the default bilinear interpolation to the image. For instance, when resizing an image mask with nearest neighbors interpolation, the mode is reset to None (defaulting to bilinear), leading to an incorrect mask.
Expected behavior
The interpolation method applied to the mask should be nearest neighbours. The method defaults to bilinear, giving us a mask with float values. It seems the interpolation mode is not passed through the composed transforms when using the lazy flag.
Environment
Python 3.10.12.
monai 1.3
numpy 1.24.4
Beta Was this translation helpful? Give feedback.
All reactions