Git Product home page Git Product logo

Comments (4)

Foruck avatar Foruck commented on June 14, 2024

Thanks for using our code!

About Q1, I assume you are wondering about the dimensions of theta_b^3D, theta_h^3D, ... Here referring to the orginial paper of SMPL-X:

The total number of model parameters in SMPL-X is 119: 75 for the global body rotation and { body, eyes , jaw } joints, 24 parameters for the lower dimensional hand pose PCA space, 10 for subject shape and 10 for the facial expression,

where theta_b^3D and theta_f^3D are corresponding to the global body rotation and { body, eyes , jaw } joints, theta_h^3D is corresponding to the lower dimensional hand pose PCA space, beta is corresponding to the subject shape and psi is corresponding to the facial expression. While in practical use, theta_b^3D is encoded to a lower dimension latent space by the VPoser proposed in the same paper, with size of 32. Therefore, all of them are not joint coordinates. And since SMPL-X has assembled the latent code decoding process, no conversions need to be done before feeding them to the model.

About Q2, like described in the smplify-x instruction, you could run SMPLify-X on the dataset with filtered pose as:

python smplifyx/main.py --config cfg_files/fit_smplx.yaml 
    --data_folder DATA_FOLDER
    --output_folder OUTPUT_FOLDER 
    --visualize="True/False"
    --model_folder MODEL_FOLDER
    --vposer_ckpt VPOSER_FOLDER
    --part_segm_fn smplx_parts_segm.pkl

where the DATA_FOLDER should contain two subfolders, images, where the images are located, and keypoints, where the filtered OpenPose output should be stored.

About Q3, it is possible, and there are multiple ways. The version of SMPLify-X that we used didn't save the 3D joint locations of the recovered body model. You could modify the SMPLify-X code to make it save the joint location, or you could use this function to extract the 3D joint location from the recovered obj file, where J_regressor is actually the files in the Step. 4 in the Installation section.

def vertices2joints(J_regressor, vertices):

from dj-rn.

huge123 avatar huge123 commented on June 14, 2024

Thanks for the patient reply. I wonder if I understand it correctly: the inputs to the smpl-x model is the coordinates of the detected 2D keypoints, which will be automatically converted to the parameters of the 3D model e.g. theta_h^3D, theta_b^3D, etc. With the 3D parameters, we can get the corresponding mesh or the vertices from the smpl-x model.

from dj-rn.

Foruck avatar Foruck commented on June 14, 2024

The inputs to SMPLifiy-X are the coordinates of the detected 2D keypoints, and SMPLifiy-X will perform the recovery and return the parameters of the SMPL-X 3D model e.g. theta_h^3D, theta_b^3D, etc. And the SMPL-X model takes the parameters as input and output the corresponding mesh and vertices, while the joints could also be fetched with the mesh and vertices.

from dj-rn.

huge123 avatar huge123 commented on June 14, 2024

Got it, thank you very much

from dj-rn.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.