I have implemented a 2d UNET which retains image dim:
  
      

      github.com
  

  
    model-implementations-PyTorch/UNET at main ·... 9

  main/UNET

  A collection of pytorch implementations of different models - model-implementations-PyTorch/UNET at main · aryaman4152/model-implementations-PyTorch

  

  
    
    
  

  


have a look the differences between a standard one and the preserve_dim model. Can be easily converted to 3d by changing layers to conv3d…