TPN
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
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
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.
@limbo0000 The same error, plz.