Skip to content

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

@MichaelWU0726

Description

@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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions