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

Fix bug when trying to create a camera path in viewer #3016

Merged
merged 2 commits into from
Mar 24, 2024

Conversation

MildMystery
Copy link
Contributor

This PR fixes the issue that I see when trying to add multiple keyframes in the viewer to generate a camera path for rendering. I get the following error:

  File "repos/nerfstudio/nerfstudio/viewer/render_panel.py", line 269, in spline_t_from_t_sec                                                                                                             interpolator = scipy.interpolate.PchipInterpolator(                                                                                                                                                            
AttributeError: module 'scipy' has no attribute 'interpolate'  

FYI, I don't see this error when trying to create a camera path running the legacy viewer i.e. when I try to create a path after running ns-viewer --load-config outputs/test_data/nerfacto/2024-03-23_151802/config.yml --vis viewer-legacy instead of ns-viewer --load-config outputs/test_data/nerfacto/2024-03-23_151802/config.yml

@MildMystery MildMystery changed the title Directly import interpolate function Fix bug when trying to create a camera path in viewer Mar 23, 2024
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.

Seems reasonable, I wonder if it's dependent on the version of scipy?

@kerrj kerrj merged commit 0e889f7 into nerfstudio-project:main Mar 24, 2024
2 checks passed
Michael-Spleenlab pushed a commit to Michael-Spleenlab/nerfstudio that referenced this pull request Apr 26, 2024
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