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

about the last fitting stage #25

Open
ZephirGe opened this issue May 7, 2019 · 11 comments
Open

about the last fitting stage #25

ZephirGe opened this issue May 7, 2019 · 11 comments

Comments

@ZephirGe
Copy link

ZephirGe commented May 7, 2019

Can you provide the code about how to get SMPL parameter from the resampled mesh?

@ypflll
Copy link

ypflll commented May 11, 2019

@ZephirGe You can use Bodynet's code to do this.
https://github.com/gulvarol/bodynet/blob/master/fitting/fit_surreal.py

@gaizixuan0128
Copy link

@ypflll
The Bodynet's code is about fitting SMPL to the volumetric results.
As for fitting SMPL to UV maps, we should first transform UV map to SMPL-type vertices, right? Do you know how to do this transformation? Thanks!

@ypflll
Copy link

ypflll commented Jul 2, 2019

@gaizixuan0128 You can resample smpl vertices from UV map by interpolation.
Or you can directly use all valid vertices on the UV map(about 50k) as the fitting input, and this will make the fitting slower.

@gaizixuan0128
Copy link

You can resample smpl vertices from UV map by interpolation.
Or you can directly use all valid vertices on the UV map(about 50k) as the fitting input, and this will make the fitting slower.

thanks!I‘ll try it!

@tszhang97
Copy link

@gaizixuan0128 Have you tried the BodyNet fitting code? I've resampled 6890 smpl vertices, the fitting code also needs the 3D joints as input. Right?

@Rhyssiyan
Copy link

@willie1997 I think it's right. The fitting code in the bodynet takes the 3D joints as input which could be regressed from the resampled smpl vertices.

I have another question. I find that the fitting stage introduced in the paper needs scale s, rotation R, translation t. So do we still need to optimize theta,beta,s,R,t jointly if follows the densebody paper?

@tszhang97
Copy link

@Rhyssiyan I feel confused too. The objective function written in the paper uses the smpl model after s, R, t. The resampled result is the transformed vertices without the parameter s,R,T. But the output doesn't include the s,r,t. As far as I know, smpl model has a parameter for global rotation and trans and the 1st PCA of shape is related to the scale change. Maybe these are inlucded in the theta,beta.
@ypflll How can we get the s,r,t used in the fitting stage? Or just add them to the param list when optimize.
image

@ypflll
Copy link

ypflll commented Aug 7, 2019

@willie1997 Camera paras are konwn on the testset.

@tszhang97
Copy link

@ypflll which means if the input is a new image taken by myself without the cameara paras, we cannot use the fitting stage?

@ypflll
Copy link

ypflll commented Aug 7, 2019

@willie1997 Absolutely you can optimize by adding extra camera paras, but I didn't tried this.
Maybe you can take a look at smpl-x or smplify-x.

@Rhyssiyan
Copy link

Hi,@ypflll what do you mean by camera paras? Is it camera intrinsics? if it's camera intrinsics, could you explain how to infer s,R,t from camera intrinsics? In my understanding s,R,t are obtained by aligning the predicted joints with the ground truth 2d,3d joints.

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

5 participants