Well, the Unet network you have referred handles 4D arrays only (batch, channel, height, width). You need to find a UNet model that handles 5D array(batch, channel, height, width, Depth) (you will find conv3d layers, etc.)