mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-04 06:49:13 +08:00
added kwargs instaed of data (#373)
This commit is contained in:
1 parent
e319b8210a
commit
e344396153
2 files changed
+4
-4
No files matched your search
@@ -32,7 +32,7 @@ from nerfactory.utils.io import get_absolute_path, load_from_json
|
||||
CONSOLE = Console()
|
||||
|
||||
|
||||
def get_semantics_and_masks(semantics: Semantics, image_idx: int):
|
||||
def get_semantics_and_masks(image_idx: int, semantics: Semantics):
|
||||
"""function to process additional semantics and mask information"""
|
||||
# handle mask
|
||||
person_index = semantics.thing_classes.index("person")
|
||||
@@ -160,6 +160,6 @@ class Friends(DataParser):
|
||||
image_filenames=image_filenames,
|
||||
cameras=cameras,
|
||||
scene_bounds=scene_bounds,
|
||||
additional_inputs={"semantics": {"data": semantics, "func": get_semantics_and_masks}},
|
||||
additional_inputs={"semantics": {"func": get_semantics_and_masks, "kwargs": {"semantics": semantics}}},
|
||||
)
|
||||
return dataset_inputs
|
||||
Reference in new issue
Block a user