@ Joint2SMPL baseline finished. Numpy, Tensorflow and PyTorch implementation of SMPL model. For any questions, feel free to contact me.
Update on 20190130 by [Lotayou](https://github.com/Lotayou
3D-pose to SMPL parameters regressor: training complete, merging with smpl_torch_batch Module.
Update on 20190127 by Lotayou
I write a PyTorch implementation based on CalciferZh's Tensorflow code, which supports batch processing and GPU training. The implementation is hosted in smpl_torch.py along with the testing example.
The implementation is tested under Ubuntu 18.04, Python 3.6 and Pytorch 1.0.0 stable. The output is the same as the original Tensorflow implementation, as can be tested with test.py.
I wrote this because the author-provided implementation was mainly based on chumpy in Python 2, which is kind of unpopular. Meanwhile, the official version cannot run on GPU.
This numpy version is faster (since some computations were rewrote in a vectorized manner) and easier to understand (hope so), and the TensorFlow version can run on GPU.
For more details about SMPL model, see SMPL.
-
Download the model file here.
-
Run
python preprocess.py /PATH/TO/THE/DOWNLOADED/MODELto preprocess the official model.preprocess.pywill create a new filemodel.pkl.smpl_np.pyandsmpl_tf.pyboth rely onmodel.pkl. NOTE: the official pickle model containschumpyobject, soprerocess.pyrequireschumpyto extract official model. You need to modify chumpy's cource code a little bit to make it compatible topreprocess.py(and Python 3). Here is an instruction in Chinese about this. -
Run
python smpl_np.pyorpython smpl_tf.pyorpython smpl_torch.pyto see the example. Additionally, runpython smpl_torch_batch.pyfor batched support.