Skip to content
forked from CalciferZh/SMPL

Numpy and Tensorflow implementation of human body SMPL model.

License

Notifications You must be signed in to change notification settings

liuchenneu/SMPL-1

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SMPL

Numpy and Tensorflow implementation of SMPL model. For any questions, feel free to contact me.

Overview

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.

Usage

  1. Download the model file here.
  2. Run python preprocess.py /PATH/TO/THE/DOWNLOADED/MODEL to preprocess the official model. preprocess.py will create a new file model.pkl. smpl_np.py and smpl_tf.py both rely on model.pkl. NOTE: the official pickle model contains chumpy object, so prerocess.py requires chumpy to extract official model. You need to modify chumpy's cource code a little bit to make it compatible to preprocess.py (and Python 3). Here is an instruction in Chinese about this.
  3. Run python smpl_np.py or python smpl_tf.py to see the example.

About

Numpy and Tensorflow implementation of human body SMPL model.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%