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

Get rid of redundant projection matrix computations in Splatfacto (needs a gsplat update) #3019

Merged

Conversation

oseiskar
Copy link
Contributor

@@ -738,7 +714,7 @@ def get_outputs(self, camera: Cameras) -> Dict[str, Union[torch.Tensor, List]]:
1,
quats_crop / quats_crop.norm(dim=-1, keepdim=True),
viewmat.squeeze()[:3, :],
projmat.squeeze() @ viewmat.squeeze(),
None, # Deprecated projmat
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If nerfstudio-project/gsplat#149 gets merged then this needs to be updated, I think just changing the API all at once one time is better than 2 incremental changes

@kerrj
Copy link
Collaborator

kerrj commented Mar 27, 2024

One more thing, the gsplat version should be bumped to gsplat>=0.1.9 in pyproject.toml

@oseiskar oseiskar force-pushed the remove-gsplat-projection-matrix branch from 6c68012 to d9c2282 Compare March 27, 2024 17:34
@oseiskar
Copy link
Contributor Author

One more thing, the gsplat version should be bumped to gsplat>=0.1.9 in pyproject.toml

Done!

Copy link
Collaborator

@kerrj kerrj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm! will merge once gsplat is bumped

@kerrj kerrj enabled auto-merge (squash) March 28, 2024 18:51
@kerrj kerrj merged commit 05ce76d into nerfstudio-project:main Mar 28, 2024
2 checks passed
Michael-Spleenlab pushed a commit to Michael-Spleenlab/nerfstudio that referenced this pull request Apr 26, 2024
…eds a gsplat update) (nerfstudio-project#3019)

Get rid of projection matrix in ProjectGaussians with gsplat >= 0.1.9
@oseiskar oseiskar deleted the remove-gsplat-projection-matrix branch May 30, 2024 19:53
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

Successfully merging this pull request may close these issues.

None yet

2 participants