Remove useless call to .with_suffix(""), which causes a bug if filename contains dots (#2882)

* Remove useless call to .with_suffix(""), which causes a bug if filename contains dots
Fixes https://github.com/nerfstudio-project/nerfstudio/issues/2881

---------

Co-authored-by: Frédéric Devernay <f-dy@users.noreply.github.com>
This commit is contained in:
Frédéric DevernayandFrédéric Devernay authored and GitHub committed 2024-02-07 11:16:40 -08:00
1 parent dc53517565
commit 66e119485d
1 file changed
+1 -3
+1 -3
View File
@@ -804,9 +804,7 @@ class DatasetRender(BaseRender):
image_name = f"{camera_idx:05d}"
# Try to get the original filename
image_name = (
dataparser_outputs.image_filenames[camera_idx].with_suffix("").relative_to(images_root)
)
image_name = dataparser_outputs.image_filenames[camera_idx].relative_to(images_root)
output_path = self.output_path / split / rendered_output_name / image_name
output_path.parent.mkdir(exist_ok=True, parents=True)