mirror of
https://github.com/facebookresearch/pytorch3d.git
synced 2025-12-25 08:40:35 +08:00
suppress errors in vision - batch 1
Summary: This diff is auto-generated to upgrade the Pyre version and suppress errors in vision. The upgrade will affect Pyre local configurations in the following directories: ``` vision/ale/search vision/fair/fvcore vision/fair/pytorch3d vision/ocr/rosetta_hash vision/vogue/personalization ``` Differential Revision: D21688454 fbshipit-source-id: 1f3c3fee42b6da2e162fd0932742ab8c5c96aa45
This commit is contained in:
committed by
Facebook GitHub Bot
parent
d689baac5e
commit
ae68a54f67
@@ -820,6 +820,7 @@ class Meshes(object):
|
||||
|
||||
# NOTE: this is already applying the area weighting as the magnitude
|
||||
# of the cross product is 2 x area of the triangle.
|
||||
# pyre-fixme[16]: `Tensor` has no attribute `index_add`.
|
||||
verts_normals = verts_normals.index_add(
|
||||
0,
|
||||
faces_packed[:, 1],
|
||||
@@ -1392,6 +1393,7 @@ def join_meshes_as_batch(meshes: List[Meshes], include_textures: bool = True):
|
||||
# Meshes objects can be iterated and produce single Meshes. We avoid
|
||||
# letting join_meshes_as_batch(mesh1, mesh2) silently do the wrong thing.
|
||||
raise ValueError("Wrong first argument to join_meshes_as_batch.")
|
||||
# pyre-fixme[10]: Name `mesh` is used but not defined.
|
||||
verts = [v for mesh in meshes for v in mesh.verts_list()]
|
||||
faces = [f for mesh in meshes for f in mesh.faces_list()]
|
||||
if len(meshes) == 0 or not include_textures:
|
||||
|
||||
Reference in New Issue
Block a user