Skip to content

Latest commit

 

History

History
46 lines (34 loc) · 1.36 KB

README.md

File metadata and controls

46 lines (34 loc) · 1.36 KB

Avatar2FBX

Convert SMPL-like Avatar to FBX format.

TODO

  • Support any pose and any beta SMPL models.
  • Add animation.

Usage

1. Setup conda Environment

# Common
conda create -n smpl python=3.6
conda activate smpl
conda install pytorch==1.6.0 torchvision==0.7.0 cudatoolkit==10.1.243 -c pytorch
conda install tqdm

# Specific
pip install 'smplx[all]'
pip install chumpy

You will also need to download and setup SMPL models in folder ../smpl_models as described here.

2. Install Python FBX SDK

3. Edit paths

Edit the following paths according to your environment:

  • In export_fbx.py and fbx_utils.py:
sys.path.append('/path/to/fbxsdk/FBX202031_FBXPYTHONSDK_LINUX/lib/Python37_x64')

4. Convert models

  • Add all of your .ply files in the folder: meshes
  • Run the script export_fbx.py, the output fbx models will be saved into the folder: outputs.
  • Note that we currently only supports 'stand pose' and 'zero beta'.