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

How to set focal length of demo codes #34

Open
hongsukchoi opened this issue Sep 5, 2021 · 4 comments
Open

How to set focal length of demo codes #34

hongsukchoi opened this issue Sep 5, 2021 · 4 comments

Comments

@hongsukchoi
Copy link

hongsukchoi commented Sep 5, 2021

Hi, thanks for the excellent work.

I want to ask about how you set the focal length of a mesh renderer.
In the demo codes, you set it to 1000 and it works well on the sample FreiHAND images.
However, when I test on other images, I have to set the focal length to 5000 for good projection.
Is there any math or reason behind setting the focal length? Thanks.

And by the way, the model does not perform bad on left hands as you've written in the demo README.
You can flip the input image of a left hand and assume it as a right hand.
스크린샷 2021-09-05 22 24 57

@kevinlin311tw
Copy link
Member

kevinlin311tw commented Sep 7, 2021

We empirically set focal length to 1000, following GraphCMR implementation. I wonder if you could provide an example that requires focal length=5000 for a good projection? I would like to check this issue. Thanks.

Thanks a lot for your brilliant solution! I didn't think of flipping the image 🤣

@hongsukchoi
Copy link
Author

This image required me focal length to be 5000.
height: 720, width: 1040
If you want, I can send you the source video.
스크린샷 2021-09-09 22 33 32

@canghaiyunfan
Copy link

@hongsukchoi How to render on the original image? I try to do it by affine transform, but failed.

@hongsukchoi
Copy link
Author

You can do it by adjusting the intrinsic params of the virtual camera you are using to project.

https://github.com/hongsukchoi/3DCrowdNet_RELEASE/blob/3d84d17797e353aaf49acfd8087637eca2877292/demo/demo.py#L205

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

3 participants