Daily arc lint --take BLACK

Reviewed By: wynsmart

Differential Revision: D30065248

fbshipit-source-id: 600915ab43d3d6d4846f60f976391f9dc1d77d10
This commit is contained in:
CodemodService Bot 2021-08-03 04:33:32 -07:00 committed by Facebook GitHub Bot
parent 0c32f094af
commit 55aaec4d83
2 changed files with 6 additions and 2 deletions

View File

@ -127,7 +127,9 @@ class MeshRasterizer(nn.Module):
)
# view to NDC transform
to_ndc_transform = cameras.get_ndc_camera_transform(**kwargs)
projection_transform = cameras.get_projection_transform(**kwargs).compose(to_ndc_transform)
projection_transform = cameras.get_projection_transform(**kwargs).compose(
to_ndc_transform
)
verts_ndc = projection_transform.transform_points(verts_view, eps=eps)
verts_ndc[..., 2] = verts_view[..., 2]

View File

@ -98,7 +98,9 @@ class PointsRasterizer(nn.Module):
)
# view to NDC transform
to_ndc_transform = cameras.get_ndc_camera_transform(**kwargs)
projection_transform = cameras.get_projection_transform(**kwargs).compose(to_ndc_transform)
projection_transform = cameras.get_projection_transform(**kwargs).compose(
to_ndc_transform
)
pts_ndc = projection_transform.transform_points(pts_view, eps=eps)
pts_ndc[..., 2] = pts_view[..., 2]