body-pose-animation/README.md
2021-01-09 16:50:32 +01:00

1.6 KiB

realtime-body-tracking

Installation

This project is using python version 3.6.0. It is also recommended to use anaconda for managing your python environments.

Downloading SMPL models

The SMPL models can be downloaded from this link. Alternatively just use the following script:

./setup.sh

This should copy and rename the SMPL model to the correct folders. Either way the resulting folder structure should look like this (ignore smplx if you don't intend to use it):

└── models
    ├── smpl
    │   ├── SMPL_FEMALE.npz
    │   ├── SMPL_MALE.npz
    │   └── SMPL_NEUTRAL.pkl
    └── smplx
        ├── SMPLX_FEMALE.npz
        ├── SMPLX_FEMALE.pkl
        ├── SMPLX_MALE.npz
        ├── SMPLX_MALE.pkl
        ├── SMPLX_NEUTRAL.npz
        └── SMPLX_NEUTRAL.pkl

Conda Environment

Create a new conda env by typing

conda create --name tum-3d-proj python=3.6

When using VSCode the IDE should automatically use the python interpreter created by conda.

Pip packages

The required pip packages are stored within the requirements.txt file and can be installed via

pip install -r requirements.txt

Exporting imported packages to pip

Since pip is trash and does not save imported packages in a file within the project you have to force it to do so.

pip freeze > requirements.txt

OpenPose