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

TypeError: forward() missing 1 required positional argument: 'img_meta' #6

Closed DAVEISHAN closed 4 years ago

DAVEISHAN commented 4 years ago

Hi, First of all, thank you for sharing the code! I am excited to try it on my dataset.

Just to make sure my code works, I am trying to pass the random input to the TPN model and getting this error 'TypeError: forward() missing 1 required positional argument: 'img_meta'. (link to the code shared below)

I am using the config file from this file: TPN/config_files/kinetics400/tpn/r101f16s4.py

pl find my code at: https://knightsucfedu39751-my.sharepoint.com/:u:/g/personal/ishandave_knights_ucf_edu/EdLeO1o7QFlLizGP7KBg0WwBgIOOICwL8PEjy4yYZjLyxg?e=M9IdyZ

output of the code: https://knightsucfedu39751-my.sharepoint.com/:t:/g/personal/ishandave_knights_ucf_edu/EVtXye2qsFxCvcBqkddxiwABbN2EXjYoGLBUEcSTcoJVHA?e=VwiypD

Hope to hear from you soon.

-Ishan

limbo0000 commented 4 years ago

Hi @DAVEISHAN, Please refer to the forward of TSN3D and BaseRecognizer and be careful about the type and parameters of input. Perhaps you could call model.forward_test explicitly and generate a dictionary to contain your input data whose keys are declared in dataloader.

Note-Liu commented 3 years ago

I also meet this bug,how did you solve it?