Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 this issue Feb 20, 2021 · 2 comments

Comments

@MichaelWU0726
Copy link

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
Copy link

4nuragk commented May 18, 2021

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
Copy link

Tramac commented Nov 23, 2021

@limbo0000 The same error, plz.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants