I was looking here, I found this function:
torch.nn.functional. upsample ( input ,  size=None ,  scale_factor=None ,  mode=‘nearest’ ,  align_corners=None )
Do you think that it will work to resize the final image?
I am thinking of applying this function to the output that CNN generates which is a tensor (1, 313, 56, 56). I would apply this function with the original dimensions of the image to this CNN output.
Do you think it works?