mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-13 03:14:00 +08:00
sorting imports on save; cleanup imports sorting; add isort check (#207)
This commit is contained in:
1 parent
6050dfb6e3
commit
1cd697366e
46 files changed
+160
-80
No files matched your search
@@ -4,6 +4,7 @@ Test the ray classes.
|
||||
|
||||
import pytest
|
||||
import torch
|
||||
|
||||
from nerfactory.cameras.rays import Frustums
|
||||
|
||||
|
||||
|
||||
@@ -3,6 +3,7 @@ Encoding Tests
|
||||
"""
|
||||
import pytest
|
||||
import torch
|
||||
|
||||
from nerfactory.fields.modules import encoding
|
||||
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
"""
|
||||
Field output tests
|
||||
"""
|
||||
import pytest
|
||||
import torch
|
||||
from torch import nn
|
||||
import pytest
|
||||
|
||||
from nerfactory.fields.modules.field_heads import (
|
||||
DensityFieldHead,
|
||||
|
||||
@@ -3,8 +3,8 @@ Test the fields
|
||||
"""
|
||||
import torch
|
||||
|
||||
from nerfactory.fields.instant_ngp_field import TCNNInstantNGPField
|
||||
from nerfactory.cameras.rays import Frustums, RaySamples
|
||||
from nerfactory.fields.instant_ngp_field import TCNNInstantNGPField
|
||||
|
||||
|
||||
def test_tcnn_instant_ngp_field():
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
Test samplers
|
||||
"""
|
||||
import torch
|
||||
|
||||
from nerfactory.cameras.rays import RayBundle
|
||||
from nerfactory.graphs.modules.ray_sampler import (
|
||||
LinearDisparitySampler,
|
||||
LogSampler,
|
||||
@@ -9,8 +11,6 @@ from nerfactory.graphs.modules.ray_sampler import (
|
||||
SqrtSampler,
|
||||
UniformSampler,
|
||||
)
|
||||
|
||||
from nerfactory.cameras.rays import RayBundle
|
||||
from nerfactory.graphs.modules.scene_colliders import NearFarCollider
|
||||
|
||||
|
||||
|
||||
@@ -16,8 +16,11 @@ from nerfactory.cameras.camera_paths import InterpolatedCameraPath
|
||||
from nerfactory.cameras.cameras import get_camera
|
||||
from nerfactory.data.utils import get_dataset_inputs
|
||||
from nerfactory.utils.io import get_absolute_path
|
||||
from nerfactory.viewer.server.transformations import (
|
||||
get_rotation_matrix,
|
||||
get_translation_matrix,
|
||||
)
|
||||
from nerfactory.viewer.server.viewer_utils import get_default_vis, set_camera
|
||||
from nerfactory.viewer.server.transformations import get_rotation_matrix, get_translation_matrix
|
||||
|
||||
|
||||
def test_drawing():
|
||||
|
||||
Reference in new issue
Block a user