Giter VIP home page Giter VIP logo

Comments (1)

KosukeFukazawa avatar KosukeFukazawa commented on June 12, 2024

Hi jiaxilv,
I'm sorry for the late reply.

  1. How can I convert the rest pose from the default T pose to an A pose? (I need to perform this operation in bulk.)

If you want to change to A-pose, it is necessary to change joint positions of the rest pose and change joint rotations accordingly.

First, we need to create A-pose rotations before create the rest pose(87 line on smpl2bvh.py)

A_pose = torch.zeros((1, 72), dtype=torch.float32)
A_pose[:, 3 * 16 + 2] = -torch.pi / 3
A_pose[:, 3 * 17 + 2] =  torch.pi / 3
A_pose_quat = quat.from_scaled_angle_axis(
    A_pose.numpy().reshape(1, 24, 3)
)

Then, create the rest pose as A-pose (89~91 lines)

rest = model(
    # betas = torch.randn([1, num_betas], dtype=torch.float32)
    body_pose=A_pose[:, 3:]
)

After that, you need to add A-pose inverse rotations to rotations on your data, it will fix the change of the rest pose. (123 line)

rots = quat.inv_mul(A_pose_quat, rots)

I haven't tested it, but perhaps this will work!

  1. Have you considered adding SMPL-X support to the existing script? Even just including hand gestures would be a great addition.

I added SMPL+H support on my another repo(https://github.com/KosukeFukazawa/CharacterAnimationTools), but I don't maintain for a long time.
SMPL-X uses face joints, which can be quite complex to define in a hierarchical structure like bvh.

If you face some problem, feel free to contact me again.

from smpl2bvh.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.