-
Notifications
You must be signed in to change notification settings - Fork 395
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
How to get aligned vertex coordinates? #110
Comments
Hi, I think you're almost there but off by just a small amount for not accounting for the crop/scale preprocessing or not projecting the points with the same projection function. The 2D joints that the model/demo returns is projected from the 3D joints and they align to the rendered mesh, so you can simply do the same thing, except project all of the vertices instead of just the joint3d points. This happens here: Line 119 in 5534c9b
This can be tricky, since the model operates on the preprocessed image (scaled and cropped). So first, make sure that you can project the vertices just like the joints2d ( Line 170 in 5534c9b
Then all you have to do is undo the scale and cropping. Best, A |
Hello, do you know how to use mpi_inf_3dhp_to_tfrecords.py to convert mpi_inf_3dhp dataset? I failed because the code use jpg as input but the dataset I downloaded is consisting of videos. Do I need to use ffmpeg and write code to convert avi to jpg? |
Hi @akanazawa thanks for the work. I would also like to get aligned coordinates of all vertices (on 2D image plane), how can I achieve that?
I've tried a simple affine matching strategy but it won't work. The aligned verts deviate from the actual person, as shown below:
Here are the codes I use for alignment, I first save the network output in a single pickle file.
Then I create an affine mapping to get joints3d onto joints2d:
Is there a quick workaround to get aligned vertex coordinates from renderer output? Thanks?
The text was updated successfully, but these errors were encountered: