mirror of
https://github.com/facebookresearch/pytorch3d.git
synced 2025-08-01 11:22:49 +08:00
lint fixes
Summary: Lint after recent changes. Reviewed By: nikhilaravi Differential Revision: D27682328 fbshipit-source-id: 285d159010d886e4e97902995adbdff875fd3c19
This commit is contained in:
parent
124bb5e391
commit
c18ee9d40a
@ -8,11 +8,7 @@ from pathlib import Path
|
||||
from tempfile import NamedTemporaryFile
|
||||
|
||||
import torch
|
||||
from common_testing import (
|
||||
TestCaseMixin,
|
||||
get_pytorch3d_dir,
|
||||
get_tests_dir,
|
||||
)
|
||||
from common_testing import TestCaseMixin, get_pytorch3d_dir, get_tests_dir
|
||||
from iopath.common.file_io import PathManager
|
||||
from pytorch3d.io import IO, load_obj, load_objs_as_meshes, save_obj
|
||||
from pytorch3d.io.mtl_io import (
|
||||
@ -24,6 +20,7 @@ from pytorch3d.renderer import TexturesAtlas, TexturesUV, TexturesVertex
|
||||
from pytorch3d.structures import Meshes, join_meshes_as_batch
|
||||
from pytorch3d.utils import torus
|
||||
|
||||
|
||||
DATA_DIR = get_tests_dir() / "data"
|
||||
TUTORIAL_DATA_DIR = get_pytorch3d_dir() / "docs/tutorials/data"
|
||||
|
||||
|
@ -5,11 +5,10 @@ Sanity checks for loading R2N2.
|
||||
import json
|
||||
import os
|
||||
import unittest
|
||||
from pathlib import Path
|
||||
|
||||
import numpy as np
|
||||
import torch
|
||||
from common_testing import TestCaseMixin, load_rgb_image, get_tests_dir
|
||||
from common_testing import TestCaseMixin, get_tests_dir, load_rgb_image
|
||||
from PIL import Image
|
||||
from pytorch3d.datasets import (
|
||||
R2N2,
|
||||
|
@ -7,9 +7,9 @@ import numpy as np
|
||||
import torch
|
||||
from common_testing import (
|
||||
TestCaseMixin,
|
||||
load_rgb_image,
|
||||
get_pytorch3d_dir,
|
||||
get_tests_dir,
|
||||
load_rgb_image,
|
||||
)
|
||||
from PIL import Image
|
||||
from pytorch3d.io import load_obj
|
||||
|
@ -11,9 +11,9 @@ import numpy as np
|
||||
import torch
|
||||
from common_testing import (
|
||||
TestCaseMixin,
|
||||
load_rgb_image,
|
||||
get_pytorch3d_dir,
|
||||
get_tests_dir,
|
||||
load_rgb_image,
|
||||
)
|
||||
from PIL import Image
|
||||
from pytorch3d.io import load_obj
|
||||
|
@ -13,7 +13,7 @@ import unittest
|
||||
import imageio
|
||||
import numpy as np
|
||||
import torch
|
||||
from common_testing import TestCaseMixin, load_rgb_image, get_tests_dir
|
||||
from common_testing import TestCaseMixin, get_tests_dir, load_rgb_image
|
||||
from pytorch3d.io import save_obj
|
||||
from pytorch3d.renderer.cameras import FoVPerspectiveCameras, look_at_view_transform
|
||||
from pytorch3d.renderer.lighting import PointLights
|
||||
|
@ -12,9 +12,9 @@ import numpy as np
|
||||
import torch
|
||||
from common_testing import (
|
||||
TestCaseMixin,
|
||||
load_rgb_image,
|
||||
get_pytorch3d_dir,
|
||||
get_tests_dir,
|
||||
load_rgb_image,
|
||||
)
|
||||
from PIL import Image
|
||||
from pytorch3d.renderer.cameras import (
|
||||
|
@ -7,8 +7,8 @@ import numpy as np
|
||||
import torch
|
||||
from common_testing import (
|
||||
TestCaseMixin,
|
||||
get_random_cuda_device,
|
||||
get_pytorch3d_dir,
|
||||
get_random_cuda_device,
|
||||
get_tests_dir,
|
||||
)
|
||||
from PIL import Image
|
||||
|
@ -7,7 +7,7 @@ import unittest
|
||||
|
||||
import numpy as np
|
||||
import torch
|
||||
from common_testing import TestCaseMixin, load_rgb_image, get_tests_dir
|
||||
from common_testing import TestCaseMixin, get_tests_dir, load_rgb_image
|
||||
from PIL import Image
|
||||
from pytorch3d.datasets import ShapeNetCore, collate_batched_meshes
|
||||
from pytorch3d.renderer import (
|
||||
|
Loading…
x
Reference in New Issue
Block a user