mirror of
https://github.com/facebookresearch/pytorch3d.git
synced 2025-12-20 22:30:35 +08:00
Allow get_rgbd_point_cloud to take any #channels
Summary: Fixed `get_rgbd_point_cloud` to take any number of image input channels. Reviewed By: bottler Differential Revision: D52796276 fbshipit-source-id: 3ddc0d1e337a6cc53fc86c40a6ddb136f036f9bc
This commit is contained in:
committed by
Facebook GitHub Bot
parent
292acc71a3
commit
799c1cd21b
@@ -80,7 +80,9 @@ def get_rgbd_point_cloud(
|
||||
mode="bilinear",
|
||||
align_corners=False,
|
||||
)
|
||||
pts_colors = pts_colors.permute(0, 2, 3, 1).reshape(-1, 3)[pts_mask]
|
||||
pts_colors = pts_colors.permute(0, 2, 3, 1).reshape(-1, image_rgb.shape[1])[
|
||||
pts_mask
|
||||
]
|
||||
|
||||
return Pointclouds(points=pts_3d[None], features=pts_colors[None])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user