-
Notifications
You must be signed in to change notification settings - Fork 14
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
About .pkl of Smplify-x and SMPLX #10
Comments
Hi! I added this to fit_single_frame.py somewhere after line 470. But you can assemble these matrices in a dataloader using 'camera_rotation' and 'camera_translation'. |
Thank you very much for your reply. I will try it immediately. |
It seems you need to decode the vector from vposer: |
Is the function(camera.get_camera_matrix) self defined? Could you provide me with the code? And if I have my own camera parameters, do I need to modify the content of. pkl or other places to display it correctly. Thank you very much. |
I have encountered the same problem when I want to convert my dataset into this format: https://drive.google.com/file/d/1peE2RNuYoeouA8YS0XwyR2YEbLT5gseW/view?usp=sharing Could you explain the data processing process in detail, especially get camera_matrix from Smplify-x? It would be even better if could provide the code. |
In the camera.py add this to the PerspectiveCamera class:
|
Thank you for your reply. Are size_x and size_y the W and H of img here? |
Yup |
Another question is, how should SMPLX's “tranl” be calculated? Does it mean it is the "camera_translation" in Smplify-x. |
Everything should be fine if you just ignore "transl". |
Thank you for your kindness. I have verified the data preprocessing on male-4-casual using Simplify-X and added your code in camera.py. However, I could not achieve the same results with the data you provided:[ Google Drive link](https://drive.google.com/file/d/1peE2RNuYoeouA8YS0XwyR2YEbLT5gseW/view?usp=sharing). |
I also have the same problem, I think it's because smplify-x has a default focal_length=5000, so I give smplify_x a focal_length which comes from the camera.pkl. |
First, it's good to understand whether there's a problem with Smplify-x convergence or the data format.
|
@zyms5244 |
Thanks. I reproduced the effect of male4 with my processed data, and it seems that the position of the smplx model and the 3DGS are not well aligned. now, I try to opt the cam pose and 3d human to align this, before the results from your MoRF |
Hi! @zyms5244 I would like to know how you handle the differences between these two .pkl, especially camera_matrix and camera_transform. Thank you. |
add get_camera_matrix function to camera.py
|
Hi @david-svitov, could you kindly share the rest of your camera.py implementation? I followed the instructions in this thread, and my projection seems fine by setting visualize=True; however, the nvdiffrast rendering is slightly misaligned with GT. Do you have any insights on this? Thanks. |
@dilinwang820 |
Thank you, this is extremely helpful! |
Very Nice job!
But when I tried to train my model using the pkl file processed by smplify-x, I found that there is a certain difference between the. pkl output of Smplify-x and SMPLX.
Smplify-x:
{'camera_rotation', 'camera_translation', 'betas', 'global_orient', 'left_hand_pose', 'right_hand_pose', 'jaw_pose', 'leye_pose', 'reye_pose', 'expression', 'body_pose'}
SMPLX:
{'betas', 'global_orient', 'body_pose', 'transl', 'left_hand_pose', 'right_hand_pose', 'jaw_pose', 'leye_pose', 'reye_pose', 'expression', 'camera_matrix', 'camera_transform'}
Could you tell me how you handled it at that time. Thank you very much.
The text was updated successfully, but these errors were encountered: