Skip to content

Commit a8cb7fa

Browse files
Pyre Bot Jrfacebook-github-bot
authored andcommitted
suppress errors in fbcode/vision - batch 2
Differential Revision: D32509948 fbshipit-source-id: 762ad27c7e6c76c30eb97fd44f1739295f63b98b
1 parent 7ce18f3 commit a8cb7fa

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

pytorch3d/io/ply_io.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -839,8 +839,10 @@ def _get_verts_column_indices(
839839
color_scale = 1.0 / 255
840840
return (
841841
point_idxs,
842+
# pyre-fixme[22]: The cast is redundant.
842843
None if None in color_idxs else cast(List[int], color_idxs),
843844
color_scale,
845+
# pyre-fixme[22]: The cast is redundant.
844846
None if None in normal_idxs else cast(List[int], normal_idxs),
845847
)
846848

pytorch3d/renderer/camera_conversions.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ def _opencv_from_cameras_projection(
7979
scale = scale.expand(-1, 2)
8080
c0 = (image_size_wh - 1) / 2.0
8181

82+
# pyre-fixme[29]: `Union[BoundMethod[typing.Callable(torch.Tensor.__neg__)[[Named...
8283
principal_point = -p0_pytorch3d * scale + c0
8384
focal_length = focal_pytorch3d * scale
8485

0 commit comments

Comments
 (0)