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

Small fix when evaluating splatfacto model, running ns-eval #3219

Merged

Conversation

ajean757
Copy link
Contributor

In the _get_background_color() function in splatfacto.py, self.background_color is allocated on the cpu, when calling get_outputs(), we get a runtime error "RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu!". Added a .to(self.device) to ensure this doesn't happen

@ichsan2895
Copy link

Copy link
Collaborator

@maturk maturk left a comment

Choose a reason for hiding this comment

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

Thanks for the fix!

@KevinXu02
Copy link
Contributor

Thanks for catching this!

@maturk maturk merged commit 2e3c3c1 into nerfstudio-project:main Jun 13, 2024
2 checks passed
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

4 participants