Your description is a little chaotic for me, sorry. Please try to describe your problem better.
Two ideas:

you can resize the output from the U-NET to yours new dimensions - independently from the PyTorch
you can modify last layers form the U-NET to return specific dimensions. However, to help you with this we need code you work with and furthers explanations.