nghorbani / amass

Data preparation and loader for AMASS
https://amass.is.tue.mpg.de/
Other
649 stars 86 forks source link

Is it possible to have only some parts of the body? #17

Closed marmg closed 3 years ago

marmg commented 4 years ago

Hi,

I would like to use this but only with hands/feet, is it possible to have only these parts of the body?

Thanks!

nghorbani commented 3 years ago

if you still need it here you can find the indices for various body parts of SMPLH model: part2vids.zip and a visualization: part2vids this is a partial snippet to produce the image: `

from psbody.mesh.meshviewer import MeshViewer

mv = MeshViewer(keepalive=True)

meshes = [Mesh(v=body_v[part2vids[partname]], f=[], vc=part_vc) for partname, part_vc in body_part_vc.items()]

mv.set_static_meshes(meshes)

` I hope this helps.