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

Write camera path to output dir if saving to the data dir fails #3476

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

krahets
Copy link
Contributor

@krahets krahets commented Oct 14, 2024

If we load data from a folder without write permissions, the Generate Command button in the render panel will not respond.

A simple solution is to write it to the output directory if writing to the data folder fails.

image

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.

This looks good! can you also add some sort of log statement informing users that the data dir is unwritable and that it instead wrote the path to this location?

@krahets
Copy link
Contributor Author

krahets commented Oct 16, 2024

Sure. Does this meet your expectations?

image

@krahets
Copy link
Contributor Author

krahets commented Nov 6, 2024

Hi @kerrj, is there any comment to be addressed?

@jb-ye
Copy link
Collaborator

jb-ye commented Nov 21, 2024

@krahets can you also fix the linter error in core tests(Details)?

Run ruff check docs/ nerfstudio/ tests/ --output-format=github
Error: nerfstudio/viewer/render_panel.py:15:1: I001 Import block is un-sorted or un-formatted
Error: nerfstudio/viewer/render_panel.py:[11](https://github.com/nerfstudio-project/nerfstudio/actions/runs/11401455191/job/31724388520?pr=3476#step:8:12)36:29: F841 Local variable `e` is assigned to but never used
Error: Process completed with exit code 1.

@krahets
Copy link
Contributor Author

krahets commented Dec 9, 2024

@jb-ye Fixed

@jb-ye jb-ye enabled auto-merge (squash) December 12, 2024 22:10
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.

3 participants