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

Add option to render evaluated images #2135

Merged
merged 6 commits into from
Jun 29, 2023

Conversation

hturki
Copy link
Contributor

@hturki hturki commented Jun 27, 2023

Adding an optional "render_output_path" parameter to the eval script that saves the rendered image outputs to the specified path.

@@ -173,7 +175,7 @@ def get_eval_image_metrics_and_images(self, step: int):

@abstractmethod
@profiler.time_function
def get_average_eval_image_metrics(self, step: Optional[int] = None):
def get_average_eval_image_metrics(self, step: Optional[int] = None, output_path: Optional[Path]=None):
"""Iterate over all the images in the eval dataset and get the average."""
Copy link
Contributor

Choose a reason for hiding this comment

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

Add doc for Args

@@ -339,7 +341,7 @@ def get_eval_image_metrics_and_images(self, step: int):
return metrics_dict, images_dict

@profiler.time_function
def get_average_eval_image_metrics(self, step: Optional[int] = None):
def get_average_eval_image_metrics(self, step: Optional[int] = None, output_path: Optional[Path] = None):
Copy link
Contributor

Choose a reason for hiding this comment

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

Add doc for Args

Copy link
Contributor

@tancik tancik left a comment

Choose a reason for hiding this comment

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

LGTM

@tancik tancik enabled auto-merge (squash) June 27, 2023 16:31
auto-merge was automatically disabled June 27, 2023 20:40

Head branch was pushed to by a user without write access

@hturki
Copy link
Contributor Author

hturki commented Jun 29, 2023

sorry for the delay here @tancik - this is now passing the build

@tancik tancik enabled auto-merge (squash) June 29, 2023 23:20
@tancik tancik merged commit 0719026 into nerfstudio-project:main Jun 29, 2023
4 checks passed
@hturki hturki deleted the ht/render-eval branch July 12, 2023 15:58
@smart4654154
Copy link

Adding an optional "render_output_path" parameter to the eval script that saves the rendered image outputs to the specified path.

Thank you for your work. I encountered an error in nerfstudio (1.0.0).
I used this:ns-eval --load-config PATH --render-output-path PATH.
Do you know how to solve it? Thank you very much
image

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

3 participants