Commit 90f1d5c2 authored by John Reese's avatar John Reese Committed by Facebook GitHub Bot
Browse files

apply pyfmt with usort to opted-in sources

Reviewed By: zertosh

Differential Revision: D24880203

fbshipit-source-id: 2034cdfc2712209e86d3d05c119c58f979b05c52
parent 4296fd96
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment