Using the SMPL model
Now that you have a high-level understanding of the SMPL model, we will look at how to use it to create 3D models of humans. In this section, we will start with a few basic functions; this will help you explore the SMPL model. We will load the SMPL model, and edit the shape and pose parameters to create a new 3D body. We will then save this as an object file and visualize it.
This code was originally created by the authors of SMPL for python2
. Therefore, we need to create a separate python2
environment. The following are the instructions for this:
cd chap8
conda create -n python2 python=2.7 anaconda
source activate python2
pip install –r requirements.txt
This creates and activates the Python 2.7 conda environment and installs the required modules. Python 2.7 is being deprecated, so you might see warning messages when you try to use it. In order to create a 3D human body with random shape and pose parameters, run the following command.
...