Tidy comments around imports

Summary: Make black and isort stop disagreeing by removing some unneeded comments around import statements. pyre ignores are moved.

Reviewed By: theschnitz

Differential Revision: D27118137

fbshipit-source-id: 9926d0f21142adcf9b5cfe1d394754317f6386df
This commit is contained in:
Jeremy Reizenstein 2021-03-17 09:22:49 -07:00 committed by Facebook GitHub Bot
parent 1b6182bac2
commit 8e1bcd5568
15 changed files with 14 additions and 47 deletions

View File

@ -11,11 +11,8 @@ from os import path
import imageio
import torch
# Import `look_at_view_transform` as needed in the suggestion later in the
# example.
from pytorch3d.renderer import PerspectiveCameras # , look_at_view_transform
from pytorch3d.renderer import (
PerspectiveCameras,
PointsRasterizationSettings,
PointsRasterizer,
PulsarPointsRenderer,

View File

@ -16,10 +16,7 @@ import cv2
import imageio
import numpy as np
import torch
# Import `look_at_view_transform` as needed in the suggestion later in the
# example.
from pytorch3d.renderer.cameras import PerspectiveCameras # , look_at_view_transform
from pytorch3d.renderer.cameras import PerspectiveCameras
from pytorch3d.renderer.points import (
PointsRasterizationSettings,
PointsRasterizer,

View File

@ -15,10 +15,7 @@ import cv2
import imageio
import numpy as np
import torch
# Import `look_at_view_transform` as needed in the suggestion later in the
# example.
from pytorch3d.renderer.cameras import PerspectiveCameras # , look_at_view_transform
from pytorch3d.renderer.cameras import PerspectiveCameras
from pytorch3d.renderer.points import (
PointsRasterizationSettings,
PointsRasterizer,

View File

@ -4,8 +4,6 @@ import os
import numpy as np
import torch
# Util function for loading meshes
from pytorch3d.io import load_objs_as_meshes
from pytorch3d.renderer import (
BlendParams,

View File

@ -1,9 +1,7 @@
# 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 pytorch3d import _C # pyre-fixme[21]: Could not find name `_C` in `pytorch3d`.
def mesh_normal_consistency(meshes):

View File

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

View File

@ -1,9 +1,7 @@
# 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 pytorch3d import _C # pyre-fixme[21]: Could not find name `_C` in `pytorch3d`.
from torch.autograd import Function
from torch.autograd.function import once_differentiable

View File

@ -4,9 +4,7 @@ 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 pytorch3d import _C # pyre-fixme[21]: Could not find name `_C` in `pytorch3d`.
from torch.autograd import Function
from torch.autograd.function import once_differentiable

View File

@ -1,9 +1,7 @@
# 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 pytorch3d import _C # pyre-fixme[21]: Could not find name `_C` in `pytorch3d`.
from torch.autograd import Function
from torch.autograd.function import once_differentiable

View File

@ -1,9 +1,7 @@
# 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 pytorch3d import _C # pyre-fixme[21]: Could not find name `_C` in `pytorch3d`.
from torch.autograd import Function
from torch.autograd.function import once_differentiable

View File

@ -4,9 +4,7 @@
from typing import NamedTuple, Sequence
import torch
# pyre-fixme[21]: Could not find name `_C` in `pytorch3d`.
from pytorch3d import _C
from pytorch3d import _C # pyre-fixme[21]: Could not find name `_C` in `pytorch3d`.
# Example functions for blending the top K colors per pixel using the outputs

View File

@ -1,9 +1,7 @@
# 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 pytorch3d import _C # pyre-fixme[21]: Could not find name `_C` in `pytorch3d`.
# Example functions for blending the top K features per pixel using the outputs

View File

@ -5,9 +5,7 @@ from typing import List, Optional, Tuple, Union
import numpy as np
import torch
# pyre-fixme[21]: Could not find name `_C` in `pytorch3d`.
from pytorch3d import _C
from pytorch3d import _C # pyre-fixme[21]: Could not find name `_C` in `pytorch3d`.
from .clip import (
ClipFrustum,

View File

@ -11,9 +11,7 @@ import warnings
from typing import Optional, Tuple, Union
import torch
# pyre-fixme[21]: Could not find a name `_C` defined in module `pytorch3d`.
from pytorch3d import _C
from pytorch3d import _C # pyre-fixme[21]: Could not find name `_C` in `pytorch3d`.
from pytorch3d.transforms import axis_angle_to_matrix, rotation_6d_to_matrix

View File

@ -4,9 +4,7 @@ from typing import List, Optional, Tuple, Union
import numpy as np
import torch
# pyre-fixme[21]: Could not find name `_C` in `pytorch3d`.
from pytorch3d import _C
from pytorch3d import _C # pyre-fixme[21]: Could not find name `_C` in `pytorch3d`.
from pytorch3d.renderer.mesh.rasterize_meshes import pix_to_non_square_ndc