You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Then, you can install the rest of the dependencies with:
pip install -r requirements.txt
Preprocessing Files
1. Prepare .npy files containing the 3D Keypoint Data
You must preprocess your data to match the input format.
The code will take a .npy file as input containing an array of shape $(N \times J \times 3)$, where $N$ is the number of frames in the sequence, $J$ the number of joints in the 3D Keypoint data. For example, if there is a $(500 \times 24 \times 3)$ array given as input, in the data there are $24 \times 3D$ Joints per frame and $500$ frames in total. Put all the processed .npy files in a single folder, it will be used for the --dataset_dir flag in the demo.
2. Create a configs.json file
You need to have a configs.json file. There is configs/3DPW.json file that I have used for fitting the 3DPW dataset. Make a copy of the file, change the name NAME and PATH according to your data. Make sure to change the DATA_MAP for mapping index of the joints of the data you wish to fit with the original SMPL keypoints.
Demo
To perform fitting, you can run:
python fit.py --dataset_name {name of the data} --dataset_dir {directory of the preprocessed .npy files}
Todo
Add 3DPW Dataset Fitting
Add MANO for accurate hand fitting
Citation
@inproceedings{SMPL-X:2019,
title = {Expressive Body Capture: 3D Hands, Face, and Body from a Single Image},
author = {Pavlakos, Georgios and Choutas, Vasileios and Ghorbani, Nima and Bolkart, Timo and Osman, Ahmed A. A. and Tzionas, Dimitrios and Black, Michael J.},
booktitle = {Proceedings IEEE Conf. on Computer Vision and Pattern Recognition (CVPR)},
year = {2019}
}
@article{SMPL:2015,
author = {Loper, Matthew and Mahmood, Naureen and Romero, Javier and Pons-Moll, Gerard and Black, Michael J.},
title = {{SMPL}: A Skinned Multi-Person Linear Model},
journal = {ACM Transactions on Graphics, (Proc. SIGGRAPH Asia)},
month = oct,
number = {6},
pages = {248:1--248:16},
publisher = {ACM},
volume = {34},
year = {2015}
}
Acknowledgements
Parts of the code are taken or adapted from the following repos: