First of all, thanks for helping me.
I forgot to update the thread after I’ve solved the problem. Please forgive me. The problem was not because of nn.funtional.interpolate, it was just typical torchvision.transform mistakes.
I really appreciate you!