Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why SMPL rotation is 3 not 3*3? #18

Closed
lucasjinreal opened this issue Aug 17, 2022 · 7 comments
Closed

Why SMPL rotation is 3 not 3*3? #18

lucasjinreal opened this issue Aug 17, 2022 · 7 comments

Comments

@lucasjinreal
Copy link

HI., I saw there has an option, smpl 6d, why it only have 243 and 246

rotation matrix why not be 24 * 3 *3? what's this 6d stands for?

@ailingzengzzz
Copy link
Contributor

Hi @jinfagang,

All existing SMPL-Based methods directly regress 6D rotation matrix from the model (e.g., SPIN, PARE). You can find the function to transform 6d into 9d (3*3) matrix (rot6d_to_rotmat).
You can refer to this paper ( On the continuity of rotation representations in neural networks) to understand why existing SMPL-Based models use it. Thanks!

@lucasjinreal
Copy link
Author

My question is why your input shape is 24x3 and 24x6, in rotation matrix, shouldn't it be 24x3x3 and 24x3x4 (rot6d is R and T)?

@ailingzengzzz
Copy link
Contributor

Sure, but 6D representation is enough. You can transform them into each other. Try it.

@lucasjinreal
Copy link
Author

lucasjinreal commented Aug 17, 2022

My output is rotmat 3x3, I reshape it like (-1, 3) seems not logically right, if I reshape to (-1, 9), it can not feed into model. I want avoid conversion to rot6d, if keep original output would save processing time. and I just need output from SmoothNet be rotmat 3x3.

BTW, does there a ready to use function to convert a [1789, 24, 3, 3] to SmoothNet input need windowed input function? Hardlly to tell how to convert my data from datasets.py massive codes. I think it need something like [B, 32, 3]

@ailingzengzzz
Copy link
Contributor

Please try to reshape the input of SmoothNet as [N, C, T]. C is 24*3*3. T is a window size.

@lucasjinreal
Copy link
Author

@ailingzengzzz Does NxT=Seqlen?

@ailingzengzzz
Copy link
Contributor

Yes, if there is no overlap among the sliding windows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants