diff --git a/pytorch3d/io/experimental_gltf_io.py b/pytorch3d/io/experimental_gltf_io.py index 937147ce..411417b9 100644 --- a/pytorch3d/io/experimental_gltf_io.py +++ b/pytorch3d/io/experimental_gltf_io.py @@ -163,6 +163,9 @@ def _read_chunks( if binary_data is not None: binary_data = np.frombuffer(binary_data, dtype=np.uint8) + # pyre-fixme[7]: Expected `Optional[Tuple[Dict[str, typing.Any], + # ndarray[typing.Any, typing.Any]]]` but got `Tuple[typing.Any, + # Optional[ndarray[typing.Any, dtype[typing.Any]]]]`. return json_data, binary_data diff --git a/pytorch3d/io/ply_io.py b/pytorch3d/io/ply_io.py index 99207e6f..13d68532 100644 --- a/pytorch3d/io/ply_io.py +++ b/pytorch3d/io/ply_io.py @@ -1250,6 +1250,9 @@ def _save_ply( if verts_normals is not None: verts_dtype.append(("normals", np.float32, 3)) if verts_colors is not None: + # pyre-fixme[6]: For 1st argument expected `Tuple[str, + # Type[floating[_32Bit]], int]` but got `Tuple[str, + # Type[Union[floating[_32Bit], unsignedinteger[typing.Any]]], int]`. verts_dtype.append(("colors", color_np_type, 3)) vert_data = np.zeros(verts.shape[0], dtype=verts_dtype) diff --git a/pytorch3d/vis/plotly_vis.py b/pytorch3d/vis/plotly_vis.py index cdbc256c..273842ae 100644 --- a/pytorch3d/vis/plotly_vis.py +++ b/pytorch3d/vis/plotly_vis.py @@ -674,7 +674,6 @@ def _add_mesh_trace( verts[~verts_used] = verts_center row, col = subplot_idx // ncols + 1, subplot_idx % ncols + 1 - # pyre-fixme[16]: `Figure` has no attribute `add_trace`. fig.add_trace( go.Mesh3d( x=verts[:, 0], @@ -741,7 +740,6 @@ def _add_pointcloud_trace( row = subplot_idx // ncols + 1 col = subplot_idx % ncols + 1 - # pyre-fixme[16]: `Figure` has no attribute `add_trace`. fig.add_trace( go.Scatter3d( x=verts[:, 0], @@ -803,7 +801,6 @@ def _add_camera_trace( x, y, z = all_cam_wires.detach().cpu().numpy().T.astype(float) row, col = subplot_idx // ncols + 1, subplot_idx % ncols + 1 - # pyre-fixme[16]: `Figure` has no attribute `add_trace`. fig.add_trace( go.Scatter3d(x=x, y=y, z=z, marker={"size": 1}, name=trace_name), row=row, @@ -898,7 +895,6 @@ def _add_ray_bundle_trace( ray_lines = torch.cat((ray_lines, nan_tensor, ray_line)) x, y, z = ray_lines.detach().cpu().numpy().T.astype(float) row, col = subplot_idx // ncols + 1, subplot_idx % ncols + 1 - # pyre-fixme[16]: `Figure` has no attribute `add_trace`. fig.add_trace( go.Scatter3d( x=x, @@ -1010,7 +1006,6 @@ def _update_axes_bounds( # Ensure that within a subplot, the bounds capture all traces old_xrange, old_yrange, old_zrange = ( - # pyre-fixme[16]: `Scene` has no attribute `__getitem__`. current_layout["xaxis"]["range"], current_layout["yaxis"]["range"], current_layout["zaxis"]["range"], @@ -1029,7 +1024,6 @@ def _update_axes_bounds( xaxis = {"range": x_range} yaxis = {"range": y_range} zaxis = {"range": z_range} - # pyre-fixme[16]: `Scene` has no attribute `update`. current_layout.update({"xaxis": xaxis, "yaxis": yaxis, "zaxis": zaxis})