zju3dv / EasyMocap

Make human motion capture easier.
Other
3.69k stars 456 forks source link

Translator from smpl-x format to easymocap format JSON #126

Open italosalgado14 opened 2 years ago

italosalgado14 commented 2 years ago

Hello!. I'm trying to get an output predicted by an algorithm that gives me different parts of the smpl-x, to the smpl-x json output format of easymocap. Something like this output:

[ { "id": 0, "Rh": [ [1.220, -1.318, -1.252] ], "Th": [ [0.379, 0.287, 1.321] ], "poses": [ [0.000, 0.000, 0.000, -0.019, 0.032, 0.053, -0.154, 0.046, -0.062, -0.000, -0.000, 0.000, 0.037, 0.194, 0.097, 0.157, -0.123, -0.041, 0.000, 0.000, 0.000, -0.143, 0.032, -0.151, -0.084, -0.064, 0.065, -0.000, 0.000, -0.000, 0.000, 0.000, 0.000, -0.000, 0.000, -0.000, 0.020, 0.437, 0.040, -0.000, 0.000, -0.000, 0.000, 0.000, -0.007, -0.059, 0.417, -0.103, 0.109, 0.031, -0.194, -0.168, 0.169, 0.294, 0.103, -0.208, -0.230, -0.290, -0.010, 0.179, -0.150, -0.043, 0.527, 0.487, 0.062, -0.307, 0.017, -0.011, 0.009, -0.042, 0.004, 0.010, -0.018, -0.013, 0.001, 0.069, 0.164, -0.756, 0.328, -0.088, -1.428, -0.313, -0.271, -0.096, -0.692, 0.131, -1.314, 0.026, 0.150, -1.203, 0.090, -0.147, -0.589, -1.476, -0.418, -1.145, -0.107, -0.082, -0.746, -0.486, 0.045, -0.601, -0.577, -0.326, -1.489, -0.396, -0.176, -0.836, -0.175, 0.025, -0.662, 0.963, 0.662, -0.300, -0.339, -0.372, 0.586, 0.340, -0.142, -0.403, 0.042, -0.186, 0.845, 0.370, 0.098, 1.498, -0.340, 0.287, 0.071, -0.669, -0.108, 1.338, 0.022, -0.139, 1.141, 0.083, 0.142, 0.561, -1.291, 0.427, 0.995, -0.180, 0.066, 0.682, -0.413, -0.021, 0.603, -0.504, 0.340, 1.396, -0.394, 0.182, 0.766, -0.178, -0.040, 0.632, 0.930, -0.636, 0.307, -0.307, 0.372, -0.579, 0.342, 0.123, 0.423] ], "expression": [ [-0.000, 0.000, 0.000, 0.000, -0.000, 0.000, -0.000, -0.000, -0.000, -0.000] ], "shapes": [ [0.239, 0.126, 0.171, 0.027, 0.020, -0.056, 0.072, -0.004, 0.023, 0.011] ]

"poses" = 3*(Body + handR + handL + ?) , what is the ?

I have reviewed documentation related to the format (Attention (for SMPL/SMPL-X users) but I am not looking to bring easymocap's output to SMPLX, but to bring other output/data to its format. If anyone has any guidance or has worked with this I appreciate any help.

chingswy commented 2 years ago

Hello, SMPL-X includes body + hand + face.