TPN icon indicating copy to clipboard operation
TPN copied to clipboard

Expected 5-dimensional input for 5-dimensional weight 64 3 1 7 7, but got 4-dimensional input of size [8, 3, 256, 256] instead

Open MichaelWU0726 opened this issue 4 years ago • 2 comments

I have downloaded kinetics400_tpn_r50f32s2.pth in google drive which is provided and run this command: python ./test_video.py config_files/kinetics400/tpn/r50f32s2.py ckpt/kinetics400_tpn_r50f32s2.pth it showed this: Expected 5-dimensional input for 5-dimensional weight 64 3 1 7 7, but got 4-dimensional input of size [8, 3, 256, 256] instead But i have tried to run: python ./test_video.py config_files/sthv2/tsm_tpn.py ckpt/sthv2_tpn.pth it worked successfully. so i want to know whether different models need different test videos ? In addion, the two trys both showed: The model and loaded state dict do not match exactly

MichaelWU0726 avatar Feb 20 '21 11:02 MichaelWU0726

I have downloaded kinetics400_tpn_r50f32s2.pth in google drive which is provided and run this command: python ./test_video.py config_files/kinetics400/tpn/r50f32s2.py ckpt/kinetics400_tpn_r50f32s2.pth it showed this: Expected 5-dimensional input for 5-dimensional weight 64 3 1 7 7, but got 4-dimensional input of size [8, 3, 256, 256] instead But i have tried to run: python ./test_video.py config_files/sthv2/tsm_tpn.py ckpt/sthv2_tpn.pth it worked successfully. so i want to know whether different models need different test videos ? In addion, the two trys both showed: The model and loaded state dict do not match exactly

Hi, were you able to solve this? I am facing the same issue.

4nuragk avatar May 18 '21 18:05 4nuragk

@limbo0000 The same error, plz.

Tramac avatar Nov 23 '21 04:11 Tramac