PoseFlow icon indicating copy to clipboard operation
PoseFlow copied to clipboard

Google Colab demo with video input

Open sharmaabhishekk opened this issue 4 years ago • 5 comments

Thank you for this repository.

I am trying to get a AlphaPose+PoseFlow workflow on videos to run on Google Colab. The AlphaPose part is fine - I'm getting the alphapose-results.json.

However, how do I run PoseFlow on it (since I don't have a image directory -just a video - and image_dir is a necessary argument for tracker-general.py)

My notebook is here.

sharmaabhishekk avatar Mar 10 '20 08:03 sharmaabhishekk

The only solution I could find was to extract all the video frames into a directory - run AlphaPose on that directory, then use the result to run PoseFlow.

Also, you may already know this, but I think PoseFlow requires Python 2.7. I had to create separate Google Colab notebooks - one for AlphaPose with Python 3, and one for PoseFlow with Python 2.7. I manually moved the alphapose_results.json from the former to the latter. I may be missing something though, I'm new to Python

jpbranson avatar Mar 27 '20 19:03 jpbranson

Yup, ended up doing that as well. I guess I'll leave this open for now in case the authors have a better solution to this.

sharmaabhishekk avatar Apr 08 '20 12:04 sharmaabhishekk

I just changed xrange to range in the general_tracker.py file and it seemed to work in python, but maybe it impacted the results. Would this fix provide clean results?

FCrSTATS avatar Apr 10 '20 12:04 FCrSTATS

@FCrSTATS It would make sense to provide the same results. We could try running it on the same clip to test?

jpbranson avatar Apr 10 '20 13:04 jpbranson

@sharmaabhishekk hi! Could you please share your code with PoseFlow part?

neeek2303 avatar Oct 05 '20 13:10 neeek2303