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

Question about demo.py #8

Open
xzyang123 opened this issue Apr 21, 2022 · 3 comments
Open

Question about demo.py #8

xzyang123 opened this issue Apr 21, 2022 · 3 comments

Comments

@xzyang123
Copy link

Hi,

First of all, thank you so much for sharing this wonderful work. Really appreciate it.

I have a question regarding the demo.py. Could you help me?

In the demo.py, we initialize the pose_estimator, tracker, and action_classifier before we loop over the video frame.

But, if I try to initialize those 3 above functions inside the loop.

I couldn't get a proper prediction.

I only can get the correct prediction if I initialize them before the loop.

May I ask why I can't get a proper prediction?

Thank you so much for reading this message.

Looking forward to hearing from you.

@zin-moe
Copy link

zin-moe commented Apr 23, 2022

You shouldn't initialize these 3 predictors inside the loop. If you do this, you can face these (your tracker can't update properly, fps will slow down).
The reason why you can't get proper prediction is due to the tracker being reinitialized inside the video frame loop and it can't get previous frame data to track the persons.

@xzyang123
Copy link
Author

Hi Zin,

Thank you so much for the reply. I was thinking about the same thing.

In the original model, I tried to comment out 'tracking model', and to see if I can just can the action prediction.

I know I am not able to output the rendered image without tracking model, but I can still get the correct action prediction.

Which means the absence of tracking model won't affect the action prediction.

So, I move the pose and action models inside loop to see if they are still working.

This time, I couldn't get proper action predictions.

I don't know why this happened.

@AlgorithmicPlanet
Copy link

ModuleNotFoundError: No module named 'trt_pose'

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