Rethinking-Inpainting-MEDFE
Rethinking-Inpainting-MEDFE copied to clipboard
The expanded size of the tensor (313) must match the existing size (256) at non-singleton dimension 2.
I had some problems when remerging your codes: RuntimeError: The expanded size of the tensor (313) must match the existing size (256) at non-singleton dimension 2. Target sizes: [1, 1, 313, 256]. Tensor sizes: [1, 1, 256, 256]
I change this code in the dataprocess.
transforms.Resize(opt.fineSize)
transforms.Resize((opt.fineSize, opt.fineSize))
it works.
my env: torch-1.8.1+cu102 torchaudio-0.8.1 torchtext-0.9.1 torchvision-0.9.1+cu102
I am very glad to hear from you.Thank you very much!
Thank you very very very much!!! I have solved it!!!