Skip to content

Commit

Permalink
Update dataset.py
Browse files Browse the repository at this point in the history
  • Loading branch information
beneisner authored Apr 16, 2024
1 parent c29145f commit e79a8d1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/rpad/partnet_mobility_utils/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ def __init__(
root: Union[str, Path],
split: Union[AVAILABLE_DATASET, List[str]],
renderer: Literal["pybullet", "sapien", "trimesh"] = "pybullet",
use_egl: bool = False,
):
if isinstance(split, str):
if split == "all":
Expand Down Expand Up @@ -88,6 +89,7 @@ def __init__(
}
self.renderers: Dict[str, PMRenderer] = {}
self.renderer_type = renderer
self.use_egl = use_egl

def get(
self,
Expand Down Expand Up @@ -117,6 +119,7 @@ def get(
joints=joints,
camera_xyz=camera_xyz,
seed=seed,
use_egl=use_egl,
)

return pc_render
Expand Down

0 comments on commit e79a8d1

Please sign in to comment.