This repository aims to provide code snippets and examples for common virtual human utilities, for example, various kinds of representation from skeletons to parametric models. You can regard this project as just a simple starting tutorial.
Tip
👋 Welcome! I hope this project will help you!
📖 If you find any mistakes or have any suggestions, please feel free to open issues or PRs. Thanks!
✨ Problems you will meet in practice will be more complex. I think it's important to learn how to solve a specific problem without a full set of guides. For instance, some researchers will use their own variation of SMPL model.
conda create -n lh python=3.8
conda activate lh
pip install -r requirements.txt # install the required packages
pip install -e . # install the local packageThen, you need to install pytorch3d:
- For macOS user, please use
pip install pytorch3d==0.7.4. - For Linux user, according to this, if you know your environment version, I recommend you to install wheels directly, otherwise, installing from GitHub would be easier (but slower).
Some sections require additional data to be downloaded (such as model checkpoints, datasets, or other resources). The instructions on how to download them will be provided in the specific notebooks where you need those data.
The supporting codes are provided in the lib folder and the ez4d library. Codes in lib are mainly for notebook supports, and things in ez4d should be helpful for general human motion research.
All the snippets are in the jupyter notebooks under the notebooks folder.
Here is one recommended order to read the notebooks:
- Rotation Representation
- (🛠️ WIP) Abstract Skeletons
- SMPL Basic
- SMPLH Basic
- SMPLX Basic
- (🛠️ WIP) SMPL Details
- SKEL Basic
- T.B.C.
I also provide some code snippets for some common tasks:
- Parallel Tasks
- T.B.C.
- Abstract Skeletons (quite rough now)
- Parameter Models
- SMPL basic
- SMPL-H basic (compared to SMPL)
- SMPL-X basic (compared to SMPL)
- SMPL details
- SKEL basic
- Misc
- parallel tasks
This project greatly benefits from the following resources:
- Motivations
- Contents Details
- Check the references in the notebooks.