mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-07 00:09:14 +08:00
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:
1 parent
dc53517565
commit
66e119485d
1 file changed
+1
-3
@@ -804,9 +804,7 @@ class DatasetRender(BaseRender):
|
|||||||
image_name = f"{camera_idx:05d}"
|
image_name = f"{camera_idx:05d}"
|
||||||
|
|
||||||
# Try to get the original filename
|
# Try to get the original filename
|
||||||
image_name = (
|
image_name = dataparser_outputs.image_filenames[camera_idx].relative_to(images_root)
|
||||||
dataparser_outputs.image_filenames[camera_idx].with_suffix("").relative_to(images_root)
|
|
||||||
)
|
|
||||||
|
|
||||||
output_path = self.output_path / split / rendered_output_name / image_name
|
output_path = self.output_path / split / rendered_output_name / image_name
|
||||||
output_path.parent.mkdir(exist_ok=True, parents=True)
|
output_path.parent.mkdir(exist_ok=True, parents=True)
|
||||||
|
|||||||
Reference in new issue
Block a user