Turn Hànzì into SMPL poses as demonstrated above for 火,水,木. The pipeline is based on an optimization scheme with PyTorch with some random initialization, so the final poses vary based on the seed.
This is a non-commerical artistic project.
- Download the SMPL model from here.
- Get the graphics.txt from makemeahanzi.
- Install dependencies:
conda create -n hampl python=3.10
conda activate hampl
conda install -c anaconda cairo
pip install -r requirements.txt
python hampl.py -c 火 --device 'cuda' --smpl_path <PATH_TO_SMPL.pkl> --graphics_path <PATH_TO_graphics.txt>
To save the meshes without rendering, omit --no_render
and use --save_mesh
. For arguments and details, check the top of the hampl.py
. Especially, if you want to change the colors and length of the video sequence.
Note that it is pretty slow to render on CPU because I am using PyTorch3D to do so.
Have fun 😊.