pochih / FCN-pytorch

🚘 Easiest Fully Convolutional Networks
404 stars 143 forks source link

RuntimeError: The size of tensor a (44) must match the size of tensor b (45) at non-singleton dimension 2 #24

Open chokyungjin opened 4 years ago

chokyungjin commented 4 years ago

Hi. I'm demonstrating your code in docker my Mac. But I have this error. How can I solve this problem? I was running it sequentially with your README! Thanks!!

스크린샷 2020-01-29 오전 1 00 36
RokiaAbdeen commented 4 years ago

yes I also have the same error type how we can solve this problem

ghost commented 3 years ago

Has anyone had any luck solving this?

wjj962464 commented 3 years ago

Hi. I'm demonstrating your code in docker my Mac. But I have this error. How can I solve this problem? I was running it sequentially with your README! Thanks!!

스크린샷 2020-01-29 오전 1 00 36

The cause of this error lies in the line 43 and 44 of CamVid_loader.py QQ截图20201127131023

JingyuWu-ZJU commented 3 years ago

Has anyone had any luck solving this?

you need to resize the picture, the original picture in Camvid is 960720, 720%32 !=0 ,so that cause the problem. you can resize the picture to 640480 or 960*704