From fe39cc7b806afeabe64593e154bfee7b4153f76f Mon Sep 17 00:00:00 2001 From: Pyre Bot Jr <> Date: Thu, 27 May 2021 18:29:31 -0700 Subject: [PATCH] suppress errors in `vision/fair/pytorch3d` Differential Revision: D28766465 fbshipit-source-id: 9c5b123ac279e25965ebc8827d9a947bbb6f3ac5 --- pytorch3d/vis/plotly_vis.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/pytorch3d/vis/plotly_vis.py b/pytorch3d/vis/plotly_vis.py index 22d5b9a2..bd043d80 100644 --- a/pytorch3d/vis/plotly_vis.py +++ b/pytorch3d/vis/plotly_vis.py @@ -537,7 +537,7 @@ def _add_mesh_trace( row, col = subplot_idx // ncols + 1, subplot_idx % ncols + 1 fig.add_trace( - go.Mesh3d( # pyre-ignore[16] + go.Mesh3d( x=verts[:, 0], y=verts[:, 1], z=verts[:, 2], @@ -621,7 +621,7 @@ def _add_pointcloud_trace( row = subplot_idx // ncols + 1 col = subplot_idx % ncols + 1 fig.add_trace( - go.Scatter3d( # pyre-ignore[16] + go.Scatter3d( x=verts[:, 0], y=verts[:, 1], z=verts[:, 2], @@ -682,9 +682,7 @@ def _add_camera_trace( row, col = subplot_idx // ncols + 1, subplot_idx % ncols + 1 fig.add_trace( - go.Scatter3d( # pyre-ignore [16] - x=x, y=y, z=z, marker={"size": 1}, name=trace_name - ), + go.Scatter3d(x=x, y=y, z=z, marker={"size": 1}, name=trace_name), row=row, col=col, )