Rethinking-Inpainting-MEDFE icon indicating copy to clipboard operation
Rethinking-Inpainting-MEDFE copied to clipboard

The expanded size of the tensor (313) must match the existing size (256) at non-singleton dimension 2.

Open Jamie-61 opened this issue 2 years ago • 3 comments

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]

Jamie-61 avatar Dec 04 '21 11:12 Jamie-61

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 image

Yaque avatar Dec 07 '21 12:12 Yaque

I am very glad to hear from you.Thank you very much!

camellia120 avatar Dec 07 '21 12:12 camellia120

Thank you very very very much!!! I have solved it!!!

Jamie-61 avatar Dec 07 '21 12:12 Jamie-61