-
Notifications
You must be signed in to change notification settings - Fork 17
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
Using pose-format
for consistent .pose
files
#29
Comments
Hi @AmitMY Thanks for sharing this. Interesting, we did not know about this We had a quick glance through the We had a few questions:
|
|
Adding to Mathias's points:
|
Thanks Mathias & Amit. Makes sense. Regarding this:
I feel it's tricky to say what is "original" underlying data. As you might know, most models/tools (like Holistic) "directly" return the keypoints in range Example:
If the data is in [0,1], this is still achievable by just multiplying the keypoints by (W,H) of video. But yeah, it is indeed good to have |
BTW, thanks a lot for sharing that colab notebook. It was more clear looking at that. One question about the arbitrary pose creation. Mathias had said the following in the other thread:
But I do not see any such headers in |
I'm not sure if I understand your question correctly, are you asking a) where the Openpose and Holistic headers are defined in the library or b) why those header types are not mentioned in Amit's Colab? |
Both. :) |
ah, perhaps now I know what could have been confusing for you: it is not mandatory to pick either the openpose or the holistic header (in this sense, the header part is also generic). You can also construct your own header from simpler parts, such as header components, individual keypoints and so on. That's what Amit is doing in his Colab. The openpose header is defined here: https://github.com/AmitMY/pose-format/blob/master/pose_format/utils/openpose.py and the holistic header is here: https://github.com/AmitMY/pose-format/blob/master/pose_format/utils/holistic.py. (edit: I myself would have expected to find these headers in a more central location, let's say in the file that defines the |
Ohh okay... I get it now, thanks! :) |
Seems like for pose data you are using
pkl
andh5
.Also, that you have a custom mediapipe holistic script
Personally I believe it would be more shareable, and faster, to use a binary format like https://github.com/AmitMY/pose-format
Every pose file also declares its content, so you can transfer them between projects, or convert them to different formats with relative is.
Besides the fact that it has a holistic loading script and multiple formats of OpenPose, it is a binary format which is faster to load, allows loading to
numpy
,torch
andtensorflow
, and can perform several operations on poses.It also allows the visualization of pose files, separately or on top of videos, and while admittedly this repository is not perfect, in my opinion it is better than having
json
orpkl
files.The text was updated successfully, but these errors were encountered: