Comments (1)
This probably happens because you use the hrnet version of HybrIK which produces 3x3 rotation matrices, not quaternions (i.e. the dimension you get from HybrIK is 216, which correspond to 24 3x3 rotation matrices, not 54 quaternions). It seems to work for me if I do this instead:
from scipy.spatial.transform import Rotation as R
hybrik_poses_rot = pose_dict['smpl_pose_quat_wroot']
batch_size = hybrik_poses_rot.shape[0]
smpl_pose_wroot = R.as_rotvec(R.from_matrix(hybrik_poses_rot.reshape((-1, 3, 3)))).reshape((batch_size, -1, 3))
smpl_pose_wroot = smpl_pose_wroot.astype(np.float32)
new_dict['smpl_pose'] = smpl_pose_wroot[:, 1:].reshape(-1, 69)
from glamr.
Related Issues (20)
- Evaluation code HOT 3
- How to export the fbx files?
- Whether windows10 system is supported?
- How to support other 3D human body estimator
- Errors may occur in the multi person mode due to occlusion
- The world is not aligned with the camera direction
- Can anyone who run GLAMR successfully share a docker image?
- Is it possible to use GLAMR by providing a dataset of videos?
- Worse Than Original HybrIK HOT 1
- windows install ?
- pose.pkl not getting generated/dumped
- cannot reshape into shape 69 HOT 2
- Questions regarding evaluation code
- Transformer Decoder
- VTK and PYVISTA errors HOT 2
- Missing a 4th representation HybrIK(World)
- new_dict['smpl_pose'] = smpl_pose_wroot[:, 1:].reshape(-1, 70) ValueError: cannot reshape array of size 32277 into shape (70)
- camera position is in xyz or zxy?
- How to know the position of the mesh model in world?
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 glamr.