Skip to content

Commit b215776

Browse files
generatedunixname89002005307016facebook-github-bot
generatedunixname89002005307016
authored andcommitted
upgrade pyre version in fbcode/vision - batch 2
Differential Revision: D55395614 fbshipit-source-id: 71677892b5d6f219f6df25b4efb51fb0f6b1441b
1 parent 38cf0dc commit b215776

File tree

11 files changed

+39
-0
lines changed

11 files changed

+39
-0
lines changed

pytorch3d/common/workaround/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@
66

77
# pyre-unsafe
88

9+
# pyre-fixme[21]: Could not find module `pytorch3d.common.workaround.symeig3x3`.
910
from .symeig3x3 import symeig3x3
1011
from .utils import _safe_det_3x3

pytorch3d/loss/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,14 @@
88

99

1010
from .chamfer import chamfer_distance
11+
12+
# pyre-fixme[21]: Could not find module `pytorch3d.loss.mesh_edge_loss`.
1113
from .mesh_edge_loss import mesh_edge_loss
14+
15+
# pyre-fixme[21]: Could not find module `pytorch3d.loss.mesh_laplacian_smoothing`.
1216
from .mesh_laplacian_smoothing import mesh_laplacian_smoothing
17+
18+
# pyre-fixme[21]: Could not find module `pytorch3d.loss.mesh_normal_consistency`.
1319
from .mesh_normal_consistency import mesh_normal_consistency
1420
from .point_mesh_distance import point_mesh_edge_distance, point_mesh_face_distance
1521

pytorch3d/ops/__init__.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,23 @@
66

77
# pyre-unsafe
88

9+
# pyre-fixme[21]: Could not find module `pytorch3d.ops.ball_query`.
910
from .ball_query import ball_query
1011
from .cameras_alignment import corresponding_cameras_alignment
12+
13+
# pyre-fixme[21]: Could not find module `pytorch3d.ops.cubify`.
1114
from .cubify import cubify
1215
from .graph_conv import GraphConv
1316
from .interp_face_attrs import interpolate_face_attributes
1417
from .iou_box3d import box3d_overlap
1518
from .knn import knn_gather, knn_points
1619
from .laplacian_matrices import cot_laplacian, laplacian, norm_laplacian
20+
21+
# pyre-fixme[21]: Could not find module `pytorch3d.ops.mesh_face_areas_normals`.
1722
from .mesh_face_areas_normals import mesh_face_areas_normals
1823
from .mesh_filtering import taubin_smoothing
24+
25+
# pyre-fixme[21]: Could not find module `pytorch3d.ops.packed_to_padded`.
1926
from .packed_to_padded import packed_to_padded, padded_to_packed
2027
from .perspective_n_points import efficient_pnp
2128
from .points_alignment import corresponding_points_alignment, iterative_closest_point
@@ -27,7 +34,11 @@
2734
add_pointclouds_to_volumes,
2835
add_points_features_to_volume_densities_features,
2936
)
37+
38+
# pyre-fixme[21]: Could not find module `pytorch3d.ops.sample_farthest_points`.
3039
from .sample_farthest_points import sample_farthest_points
40+
41+
# pyre-fixme[21]: Could not find module `pytorch3d.ops.sample_points_from_meshes`.
3142
from .sample_points_from_meshes import sample_points_from_meshes
3243
from .subdivide_meshes import SubdivideMeshes
3344
from .utils import (
@@ -37,6 +48,8 @@
3748
is_pointclouds,
3849
wmean,
3950
)
51+
52+
# pyre-fixme[21]: Could not find module `pytorch3d.ops.vert_align`.
4053
from .vert_align import vert_align
4154

4255

pytorch3d/ops/sample_points_from_meshes.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@
1515
from typing import Tuple, Union
1616

1717
import torch
18+
19+
# pyre-fixme[21]: Could not find module `pytorch3d.ops.mesh_face_areas_normals`.
1820
from pytorch3d.ops.mesh_face_areas_normals import mesh_face_areas_normals
21+
22+
# pyre-fixme[21]: Could not find module `pytorch3d.ops.packed_to_padded`.
1923
from pytorch3d.ops.packed_to_padded import packed_to_padded
2024
from pytorch3d.renderer.mesh.rasterizer import Fragments as MeshFragments
2125

pytorch3d/renderer/mesh/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
ClippedFaces,
1313
convert_clipped_rasterization_to_original_faces,
1414
)
15+
16+
# pyre-fixme[21]: Could not find module `pytorch3d.renderer.mesh.rasterize_meshes`.
1517
from .rasterize_meshes import rasterize_meshes
1618
from .rasterizer import MeshRasterizer, RasterizationSettings
1719
from .renderer import MeshRenderer, MeshRendererWithFragments

pytorch3d/renderer/mesh/rasterizer.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
import torch.nn as nn
1414
from pytorch3d.renderer.cameras import try_get_projection_transform
1515

16+
# pyre-fixme[21]: Could not find module `pytorch3d.renderer.mesh.rasterize_meshes`.
1617
from .rasterize_meshes import rasterize_meshes
1718

1819

pytorch3d/renderer/points/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88

99
from .compositor import AlphaCompositor, NormWeightedCompositor
1010
from .pulsar.unified import PulsarPointsRenderer
11+
12+
# pyre-fixme[21]: Could not find module `pytorch3d.renderer.points.rasterize_points`.
1113
from .rasterize_points import rasterize_points
1214
from .rasterizer import PointsRasterizationSettings, PointsRasterizer
1315
from .renderer import PointsRenderer

pytorch3d/renderer/points/rasterize_points.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
import numpy as np
1212
import torch
1313
from pytorch3d import _C
14+
15+
# pyre-fixme[21]: Could not find module `pytorch3d.renderer.mesh.rasterize_meshes`.
1416
from pytorch3d.renderer.mesh.rasterize_meshes import pix_to_non_square_ndc
1517

1618
from ..utils import parse_image_size

pytorch3d/renderer/points/rasterizer.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
from pytorch3d.renderer.cameras import try_get_projection_transform
1616
from pytorch3d.structures import Pointclouds
1717

18+
# pyre-fixme[21]: Could not find module `pytorch3d.renderer.points.rasterize_points`.
1819
from .rasterize_points import rasterize_points
1920

2021

pytorch3d/structures/meshes.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -853,6 +853,7 @@ def _compute_face_areas_normals(self, refresh: bool = False):
853853
refresh: Set to True to force recomputation of face areas.
854854
Default: False.
855855
"""
856+
# pyre-fixme[21]: Could not find module `pytorch3d.ops.mesh_face_areas_normals`.
856857
from ..ops.mesh_face_areas_normals import mesh_face_areas_normals
857858

858859
if not (

pytorch3d/utils/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,14 @@
1212
pulsar_from_cameras_projection,
1313
pulsar_from_opencv_projection,
1414
)
15+
16+
# pyre-fixme[21]: Could not find module `pytorch3d.utils.checkerboard`.
1517
from .checkerboard import checkerboard
18+
19+
# pyre-fixme[21]: Could not find module `pytorch3d.utils.ico_sphere`.
1620
from .ico_sphere import ico_sphere
21+
22+
# pyre-fixme[21]: Could not find module `pytorch3d.utils.torus`.
1723
from .torus import torus
1824

1925

0 commit comments

Comments
 (0)