decisionforce / TPN

[CVPR 2020] Temporal Pyramid Network for Action Recognition
https://decisionforce.github.io/TPN/
Apache License 2.0
394 stars 55 forks source link

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 #32

Open MichaelWU0726 opened 3 years ago

MichaelWU0726 commented 3 years ago

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

4nuragk commented 3 years ago

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.

Tramac commented 2 years ago

@limbo0000 The same error, plz.