Image tensor spliting

I think this post might be useful, which explains how to use unfold to create patches of the input and how to reshape them back.
Let me know, if this approach would be applicable for your use case and please let me know, if you get stuck implementing it. :wink:

Also, since you are working with medical image data, have a look at MONAI and TorchIO.
I know, that MONAI supports a sliding window inference workflow, but I’m unsure if it’s usable for training or if TorchIO supports it.

CC @MONAI, @fepegar for more information :slight_smile:

1 Like