shunsukesaito / SCANimate

This repository contains the code for the paper "SCANimate: Weakly Supervised Learning of Skinned Clothed Avatar Networks"
https://scanimate.is.tue.mpg.de/
Other
274 stars 31 forks source link

question: can I easily change the pose of the canonical pose from the wide legs to T-pose? #2

Closed codesavory closed 3 years ago

JinlongYANG commented 3 years ago

Although not tested, you should be able to do it. We constructed the smpl_vitruvian class at the beginning with controls of the leg angle. You can find the code for smpl_vitruvian in ./smpl/smpl/body_models.py, starting from line 418. The variable 'half_angle' controls the angles between legs. If you want a T-pose, that equals half_angle=0.

Then you need to change the code whenever you initialize a smpl_vitruvian instance, for example, in apps/train_scanimate.py lin 549 opt['data']['vitruvian_angle']-25 -> opt['data']['vitruvian_angle']=0 Or you can add a new line in the config file ./configs/example.yaml under data: vitruvian_angle=0

But again, this functionality is not tested after the early development of the code, not sure if it runs smoothly. Good luck!

codesavory commented 3 years ago

This works as expected, thank you for your amazing work. This over-compensates in the animations though which is expected I think, but I will try to look into the code. T-Pose Canonical T-pose_scanimate

Animated Frame-1 Animation_learning