mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-05 23:38:42 +08:00
Make friends_dataparser path separator agnostic
This commit is contained in:
1 parent
533abb7d2f
commit
4c6cd352d8
1 file changed
+4
-5
@@ -116,12 +116,11 @@ class Friends(DataParser):
|
|||||||
|
|
||||||
# --- semantics ---
|
# --- semantics ---
|
||||||
if self.config.include_semantics:
|
if self.config.include_semantics:
|
||||||
|
empty_path = Path()
|
||||||
|
replace_this_path = str(empty_path / images_folder / empty_path)
|
||||||
|
with_this_path = str(empty_path / segmentations_folder / "thing" / empty_path)
|
||||||
filenames = [
|
filenames = [
|
||||||
Path(
|
Path(str(image_filename).replace(replace_this_path, with_this_path).replace(".jpg", ".png"))
|
||||||
str(image_filename)
|
|
||||||
.replace(f"/{images_folder}/", f"/{segmentations_folder}/thing/")
|
|
||||||
.replace(".jpg", ".png")
|
|
||||||
)
|
|
||||||
for image_filename in image_filenames
|
for image_filename in image_filenames
|
||||||
]
|
]
|
||||||
panoptic_classes = load_from_json(self.config.data / "panoptic_classes.json")
|
panoptic_classes = load_from_json(self.config.data / "panoptic_classes.json")
|
||||||
|
|||||||
Reference in new issue
Block a user