suppress errors in vision - batch 1

Reviewed By: pradeep90

Differential Revision: D22628883

fbshipit-source-id: a19c271b4025c0e3c61408604a7e0f9fbcbdfa5b
This commit is contained in:
generatedunixname89002005307016 2020-07-20 17:12:35 -07:00 committed by Facebook GitHub Bot
parent 8b70aa1e85
commit 7cb9d8ea86
12 changed files with 21 additions and 1 deletions

View File

@ -1,5 +1,6 @@
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
# pyre-fixme[21]: Could not find name `_C` in `pytorch3d`.
from pytorch3d import _C
from pytorch3d.structures import Meshes, Pointclouds
from torch.autograd import Function

View File

@ -44,6 +44,8 @@ def ravel_index(idx, dims) -> torch.Tensor:
return linind
# pyre-fixme[56]: Decorator `torch.no_grad(...)` could not be called, because its
# type `no_grad` is not callable.
@torch.no_grad()
def cubify(voxels, thresh, device=None, align: str = "topleft") -> Meshes:
r"""

View File

@ -3,6 +3,8 @@
import torch
import torch.nn as nn
# pyre-fixme[21]: Could not find name `_C` in `pytorch3d`.
from pytorch3d import _C
from torch.autograd import Function
from torch.autograd.function import once_differentiable

View File

@ -1,6 +1,8 @@
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
import torch
# pyre-fixme[21]: Could not find name `_C` in `pytorch3d`.
from pytorch3d import _C
from torch.autograd import Function
from torch.autograd.function import once_differentiable

View File

@ -4,6 +4,8 @@ from collections import namedtuple
from typing import Union
import torch
# pyre-fixme[21]: Could not find name `_C` in `pytorch3d`.
from pytorch3d import _C
from torch.autograd import Function
from torch.autograd.function import once_differentiable

View File

@ -1,6 +1,8 @@
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
import torch
# pyre-fixme[21]: Could not find name `_C` in `pytorch3d`.
from pytorch3d import _C
from torch.autograd import Function
from torch.autograd.function import once_differentiable

View File

@ -1,6 +1,8 @@
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
import torch
# pyre-fixme[21]: Could not find name `_C` in `pytorch3d`.
from pytorch3d import _C
from torch.autograd import Function
from torch.autograd.function import once_differentiable

View File

@ -5,6 +5,8 @@ from typing import NamedTuple, Sequence
import numpy as np
import torch
# pyre-fixme[21]: Could not find name `_C` in `pytorch3d`.
from pytorch3d import _C

View File

@ -1,6 +1,8 @@
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
import torch
# pyre-fixme[21]: Could not find name `_C` in `pytorch3d`.
from pytorch3d import _C

View File

@ -5,6 +5,8 @@ from typing import Optional
import numpy as np
import torch
# pyre-fixme[21]: Could not find name `_C` in `pytorch3d`.
from pytorch3d import _C

View File

@ -3,6 +3,8 @@
from typing import Optional
import torch
# pyre-fixme[21]: Could not find name `_C` in `pytorch3d`.
from pytorch3d import _C
from pytorch3d.renderer.mesh.rasterize_meshes import pix_to_ndc

View File

@ -1485,7 +1485,6 @@ 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: