apply pyfmt with usort to opted-in sources

Reviewed By: zertosh

Differential Revision: D24880203

fbshipit-source-id: 2034cdfc2712209e86d3d05c119c58f979b05c52
This commit is contained in:
John Reese 2020-11-10 21:23:10 -08:00 committed by Facebook GitHub Bot
parent 4296fd96c5
commit 90f1d5c258
4 changed files with 10 additions and 9 deletions

View File

@ -11,15 +11,15 @@ sys.path.insert(0, path.join(path.dirname(__file__), "..", ".."))
def create_multiview():
"""Test multiview optimization."""
from pytorch3d.renderer.points.pulsar import Renderer
import torch
from torch import nn
import imageio
from torch.autograd import Variable
# import cv2
# import skvideo.io
import numpy as np
import torch
from pytorch3d.renderer.points.pulsar import Renderer
from torch import nn
from torch.autograd import Variable
# Constructor.
n_points = 10

View File

@ -24,8 +24,8 @@ class TestChannels(TestCaseMixin, unittest.TestCase):
def test_basic(self):
"""Basic forward test."""
from pytorch3d.renderer.points.pulsar import Renderer
import torch
from pytorch3d.renderer.points.pulsar import Renderer
n_points = 10
width = 1_000

View File

@ -32,10 +32,6 @@ import unittest
import numpy as np
import torch
from common_testing import TestCaseMixin
from pytorch3d.renderer.cameras import OpenGLOrthographicCameras # deprecated
from pytorch3d.renderer.cameras import OpenGLPerspectiveCameras # deprecated
from pytorch3d.renderer.cameras import SfMOrthographicCameras # deprecated
from pytorch3d.renderer.cameras import SfMPerspectiveCameras # deprecated
from pytorch3d.renderer.cameras import (
CamerasBase,
FoVOrthographicCameras,
@ -47,6 +43,10 @@ from pytorch3d.renderer.cameras import (
look_at_rotation,
look_at_view_transform,
)
from pytorch3d.renderer.cameras import OpenGLOrthographicCameras # deprecated
from pytorch3d.renderer.cameras import OpenGLPerspectiveCameras # deprecated
from pytorch3d.renderer.cameras import SfMOrthographicCameras # deprecated
from pytorch3d.renderer.cameras import SfMPerspectiveCameras # deprecated
from pytorch3d.transforms import Transform3d
from pytorch3d.transforms.rotation_conversions import random_rotations
from pytorch3d.transforms.so3 import so3_exponential_map

View File

@ -137,6 +137,7 @@ class TestPCLNormals(TestCaseMixin, unittest.TestCase):
if DEBUG and run_idx == 0 and not use_pointclouds:
import os
from pytorch3d.io.ply_io import save_ply
# export to .ply