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 eval data to image_rename_map #3396

Merged

Conversation

jiaruiyu99
Copy link
Contributor

I tried to run COLMAP with both training images and eval images but had an error message saying that

  • ".../INPUT_eval_data_path/frame_eval_00001.PNG' is not in the subpath of '...INPUT_data' OR one path is relative and the other is absolute."

I spent some time and found that in images_to_nerfstudio_dataset.py file (line 90-92), only train image folder (self.data) is in the relative_to(), while image_rename_map_paths contains both train and test images.

Therefore, I have tried to create a image_rename_map_eval for self.eval_data and update the image_rename_map with it. Now the COLMAP can successfully run with both train and test dataset.

@jiaruiyu99
Copy link
Contributor Author

Hi, in the core Tests, I got an error saying

  • /home/runner/work/nerfstudio/nerfstudio/nerfstudio/utils/writer.py:337:9 - error: Argument missing for parameter "d" (reportGeneralTypeIssues)

However, I have not modified this file. Could you have a look what's happening?

@@ -85,11 +88,11 @@ def main(self) -> None:
same_dimensions=self.same_dimensions,
keep_image_dir=True,
)
image_rename_map_paths.update(eval_image_rename_map_paths)
image_rename_map_eval = dict(
Copy link
Collaborator

Choose a reason for hiding this comment

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

just to follow the name convention, could we rename it to eval_image_rename_map?

@jiaruiyu99 jiaruiyu99 requested a review from jb-ye September 2, 2024 07:59
@jb-ye jb-ye enabled auto-merge (squash) September 3, 2024 01:33
@jb-ye jb-ye merged commit a621492 into nerfstudio-project:main Sep 3, 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.

3 participants