mirror of
https://github.com/facebookresearch/pytorch3d.git
synced 2025-12-21 23:00:34 +08:00
suppress errors in vision/fair/pytorch3d
Differential Revision: D41897914 fbshipit-source-id: 675f4ad6938bc12d295bbb63a69e3ff98b319a9a
This commit is contained in:
committed by
Facebook GitHub Bot
parent
a4a29b013b
commit
de3a474d2b
@@ -132,7 +132,6 @@ def ball_query(
|
||||
if lengths2 is None:
|
||||
lengths2 = torch.full((N,), P2, dtype=torch.int64, device=p1.device)
|
||||
|
||||
# pyre-fixme[16]: `_ball_query` has no attribute `apply`.
|
||||
dists, idx = _ball_query.apply(p1, p2, lengths1, lengths2, K, radius)
|
||||
|
||||
# Gather the neighbors if needed
|
||||
|
||||
@@ -171,5 +171,4 @@ class GatherScatter(Function):
|
||||
return grad_input, grad_edges, grad_directed
|
||||
|
||||
|
||||
# pyre-fixme[16]: `GatherScatter` has no attribute `apply`.
|
||||
gather_scatter = GatherScatter.apply
|
||||
|
||||
@@ -56,7 +56,6 @@ def interpolate_face_attributes(
|
||||
pix_to_face = pix_to_face.view(-1)
|
||||
barycentric_coords = barycentric_coords.view(N * H * W * K, 3)
|
||||
args = (pix_to_face, barycentric_coords, face_attributes)
|
||||
# pyre-fixme[16]: `_InterpFaceAttrs` has no attribute `apply`.
|
||||
out = _InterpFaceAttrs.apply(*args)
|
||||
out = out.view(N, H, W, K, -1)
|
||||
return out
|
||||
|
||||
@@ -161,7 +161,6 @@ def box3d_overlap(
|
||||
_check_nonzero(boxes1, eps)
|
||||
_check_nonzero(boxes2, eps)
|
||||
|
||||
# pyre-fixme[16]: `_box3d_overlap` has no attribute `apply`.
|
||||
vol, iou = _box3d_overlap.apply(boxes1, boxes2)
|
||||
|
||||
return vol, iou
|
||||
|
||||
@@ -184,7 +184,6 @@ def knn_points(
|
||||
if lengths2 is None:
|
||||
lengths2 = torch.full((p1.shape[0],), P2, dtype=torch.int64, device=p1.device)
|
||||
|
||||
# pyre-fixme[16]: `_knn_points` has no attribute `apply`.
|
||||
p1_dists, p1_idx = _knn_points.apply(
|
||||
p1, p2, lengths1, lengths2, K, version, norm, return_sorted
|
||||
)
|
||||
|
||||
@@ -278,7 +278,6 @@ def marching_cubes(
|
||||
for i in range(len(vol_batch)):
|
||||
vol = vol_batch[i]
|
||||
thresh = ((vol.max() + vol.min()) / 2).item() if isolevel is None else isolevel
|
||||
# pyre-fixme[16]: `_marching_cubes` has no attribute `apply`.
|
||||
verts, faces, ids = _marching_cubes.apply(vol, thresh)
|
||||
if len(faces) > 0 and len(verts) > 0:
|
||||
# Convert from world coordinates ([0, D-1], [0, H-1], [0, W-1]) to
|
||||
|
||||
@@ -63,5 +63,4 @@ class _MeshFaceAreasNormals(Function):
|
||||
return grad_verts, None
|
||||
|
||||
|
||||
# pyre-fixme[16]: `_MeshFaceAreasNormals` has no attribute `apply`.
|
||||
mesh_face_areas_normals = _MeshFaceAreasNormals.apply
|
||||
|
||||
@@ -91,7 +91,6 @@ def packed_to_padded(
|
||||
inputs = inputs.unsqueeze(1)
|
||||
else:
|
||||
inputs = inputs.reshape(input_shape[0], -1)
|
||||
# pyre-ignore [16]
|
||||
inputs_padded = _PackedToPadded.apply(inputs, first_idxs, max_size)
|
||||
# if flat is True, reshape output to (N, max_size) from (N, max_size, 1)
|
||||
# else reshape output to (N, max_size, ...)
|
||||
@@ -188,7 +187,6 @@ def padded_to_packed(
|
||||
inputs = inputs.unsqueeze(2)
|
||||
else:
|
||||
inputs = inputs.reshape(*input_shape[:2], -1)
|
||||
# pyre-ignore [16]
|
||||
inputs_packed = _PaddedToPacked.apply(inputs, first_idxs, num_inputs)
|
||||
# if input is flat, reshape output to (F,) from (F, 1)
|
||||
# else reshape output to (F, ...)
|
||||
|
||||
@@ -183,7 +183,6 @@ class _points_to_volumes_function(Function):
|
||||
)
|
||||
|
||||
|
||||
# pyre-fixme[16]: `_points_to_volumes_function` has no attribute `apply`.
|
||||
_points_to_volumes = _points_to_volumes_function.apply
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user