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 produce a right eye photo? #14

Closed
WithAIGC opened this issue Jun 25, 2023 · 2 comments
Closed

How to produce a right eye photo? #14

WithAIGC opened this issue Jun 25, 2023 · 2 comments

Comments

@WithAIGC
Copy link

If I input an image as the left eye image and generate the right eye image through your code, if the distance between the human eyes is 6.5 cm, how should I modify these parameters?
def gen_translate_path(num_frames=2, r_x=0.065, r_y=0., r_z=0): poses = torch.eye(4).repeat(num_frames, 1, 1) poses[1, 0, 3] = r_x poses[1, 1, 3] = r_y poses[1, 2, 3] = r_z return poses
Here I set the pose of the camera:
`camera path pose: tensor([[[ 1.0000, 0.0000, 0.0000, 0.0000],
[ 0.0000, 1.0000, 0.0000, 0.0000],
[ 0.0000, 0.0000, 1.0000, 0.0000],
[ 0.0000, 0.0000, 0.0000, 1.0000]],

    [[ 1.0000,  0.0000,  0.0000, 0.0650],
     [ 0.0000,  1.0000,  0.0000,  0.0000],
     [ 0.0000,  0.0000,  1.0000,  0.0000],
     [ 0.0000,  0.0000,  0.0000,  1.0000]]])`

The difference between the two images I got is very small, and the left and right views cannot be combined.
I want to ask if I do this, is there a problem? @yxuhan

@yxuhan
Copy link
Owner

yxuhan commented Jun 26, 2023

Hi, the unit of our camera system is not cm, so the x-translation 0.065 does not correspond to 6.5cm. You can first align the scale of our camera system to 'cm', then set 6.5cm as the translation.

@yxuhan yxuhan closed this as completed Jul 5, 2023
@WithAIGC
Copy link
Author

WithAIGC commented Aug 21, 2023 via email

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