Comments (1)
Hi jiaxilv,
I'm sorry for the late reply.
- 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!
- 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)
- why is the bvh upside down? HOT 3
- about args -- mirror ? HOT 3
- bvh2smpl HOT 11
- How to download the smplx model? An where to put it? HOT 1
- How to fix shoulder rotation error
- error when try convert! HOT 3
- different skeleton offsets got of repo smpl2bvh and CharacterAnimationTools HOT 2
- The reason using reimplemented Euler to Quaternion instead of using scipy HOT 2
- rest pose and actions poses are rotated 180° HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from smpl2bvh.