Comments (3)
So the output of the network is 24 3x3 rotation matrices. You need to convert the rotation matrices to axis-angle first (you can find documentation for that online).
Alternatively you can use SMPL from this repo and set pose2rot=False when passing in the parameters to the SMPL model here.
from graphcmr.
Thanks for your reply. I tried as you recommended but ran into a problem. Specifically, I tried running the following:
import smplx
model = smplx.create(model_path, model_type='smpl')
output = model(betas=torch.Tensor(a), body_pose=torch.Tensor(b).reshape(1, 24, 9), pose2rot=False)
here a
and b
are smpl_shape
and smpl_pose
respectively. I reshaped tensor b
based on this comment. The original shapes are as follows.
>>> a.shape
(1, 10)
>>> b.shape
(1, 24, 3, 3)
I get the following error (which is probably a shapes mismatch issue here). Any recommendations on a simplest working example with smplx
installed? Really appreciate your time!
result = self.forward(*input, **kwargs)
File "/home/ubuntu/anaconda3/envs/python3/lib/python3.6/site-packages/smplx/body_models.py", line 364, in forward
full_pose = torch.cat([global_orient, body_pose], dim=1)
RuntimeError: invalid argument 0: Tensors must have same number of dimensions: got 2 and 3 at /pytorch/aten/src/TH/generic/THTensor.cpp:603
from graphcmr.
Hey are there any updates on this? Did you figure out a way to extract the 3D position of each of the joints?
from graphcmr.
Related Issues (20)
- How to train model with human3.6m datasets HOT 1
- Preprocess of ground truth keypoints_3d on Human3.6M HOT 1
- question when I read the code HOT 1
- questions about "mesh_downsampling.npz" HOT 1
- Regarding fully connected baseline HOT 4
- Compute 'A', 'D', 'U' matrices HOT 6
- About the SMPLParamRegressor
- Praise from a newbie HOT 1
- Why do you use different focal length for training and inference?
- Running βdemo.py' can't get good results HOT 2
- The problem of camera parameter βscβ HOT 1
- Loading Resnet50 pretrained?
- Asking for the weight of losses
- how to retrain this model in a new dataset with the real SMPL model
- preprocess datasets of h36m.py
- run demo.py
- wrong mesh volume
- The additional files could not be obtained.
- Pretrained model 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 graphcmr.