awesome-semantic-segmentation-pytorch icon indicating copy to clipboard operation
awesome-semantic-segmentation-pytorch copied to clipboard

RuntimeError: The size of tensor a (120) must match the size of tensor b(128) at non-singleton dimension 3

Open lonelylingoes opened this issue 5 years ago • 2 comments

Hi, when I train the model dfanet, it comes the error, at the core/models/dfanet.py line 77: fusion = fusion + stage1_fca_decoder + stage2_fca_decoder + stage3_fca_decoder RuntimeError: The size of tensor a (120) must match the size of tensor b(128) at non-singleton dimension 3. Is there something wrong?

lonelylingoes avatar Jan 02 '20 08:01 lonelylingoes

Maybe you can have a try to modify the parameter 'crop-size' to 512. Or you can modify the size of input tensors yourself.

ICMoon527 avatar Jan 03 '20 07:01 ICMoon527

RuntimeError: The size of tensor a (1552) must match the size of tensor b(1548) at non-singleton dimension 1

xub-code avatar Jan 17 '23 17:01 xub-code