ScoreCAM icon indicating copy to clipboard operation
ScoreCAM copied to clipboard

Size mismatch error

Open aymanshams07 opened this issue 4 years ago • 1 comments

cam, idx = wrapped_model(tensor)

I get the following error at this step (no changes made to the notebook) : RuntimeError: size mismatch, m1: [1 x 30720], m2: [512 x 1000] at c:\programdata\miniconda3\conda-bld\pytorch_1533090265711\work\aten\src\th\generic/THTensorMath.cpp:2070

aymanshams07 avatar Apr 19 '20 16:04 aymanshams07

cam, idx = wrapped_model(tensor)

I get the following error at this step (no changes made to the notebook) : RuntimeError: size mismatch, m1: [1 x 30720], m2: [512 x 1000] at c:\programdata\miniconda3\conda-bld\pytorch_1533090265711\work\aten\src\th\generic/THTensorMath.cpp:2070

Have you ever solved this problem? Thank you

alwayslj avatar Dec 08 '20 11:12 alwayslj