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

Novel view #34

Closed
ggfresh opened this issue Jan 12, 2024 · 2 comments
Closed

Novel view #34

ggfresh opened this issue Jan 12, 2024 · 2 comments

Comments

@ggfresh
Copy link

ggfresh commented Jan 12, 2024

Awesome project! Where could I set the camera params for rendering novel view?

@evonneng
Copy link
Collaborator

Hi, thanks!! For the camera params, you could change the K and Rt matrix that is getting passed into the renderer.

So for instance, I am just loading in some default camera parameters as per this line here:

self.default_inputs = th.load(f"assets/render_defaults_{person}.pth")

And passing in the parameters to the model here

preds = self.model(**default_inputs_copy)

This is where these things get ingested.

K: Optional[th.Tensor] = None,
Rt: Optional[th.Tensor] = None,
image_bg: Optional[th.Tensor] = None,

Since different parts of the body decoder use either the K or the Rt, you will need to set both. Hope this helps!

@alexanderrichard
Copy link
Contributor

Closing this issue as it seems resolved. Please reopen if you have more questions.

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