vchoutas / smplx

SMPL-X
https://smpl-x.is.tue.mpg.de/
Other
1.83k stars 305 forks source link

Warning is always triggered `num_betas=16` with `smplh` as body model #109

Open gngdb opened 2 years ago

gngdb commented 2 years ago

AMASS data typically has 16 beta parameters (at least that's true for the sample data in the AMASS repository). Initializing a SMPL-H body model with num_betas=16 always hits the following warning:

WARNING: You are using a SMPL+H model, with only 10 shape coefficients.

To reproduce (after downloading the model files and putting them in a models subdirectory as described in the README):

python demo.py --model-folder ../models/ --model-type smplh --num-betas 16

I think the shape coefficients it's referring to are the betas so this is extra confusing because num_betas is clearly greater than 10.

gngdb commented 2 years ago

It's not just the warning, that if/else block also sets num_betas=10 whenever the warning is printed. Later this is used to slice the beta parameters. Is that the intended behaviour for all AMASS data? I just checked a random AMASS file and there are 16 beta values in it, so this would be the behaviour for all AMASS data.