mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-03 22:38:48 +08:00
Use ruff as linter and formatter (#2765)
* Switch from black to ruff format * Sort dependencies with ruff check * Run ruff format
This commit is contained in:
1 parent
69ed6d4093
commit
f0aadf9de8
83 files changed
+208
-429
No files matched your search
@@ -14,6 +14,5 @@
|
||||
|
||||
"""init field modules"""
|
||||
from .base_field_component import FieldComponent as FieldComponent
|
||||
from .encodings import Encoding as Encoding
|
||||
from .encodings import ScalingAndOffset as ScalingAndOffset
|
||||
from .encodings import Encoding as Encoding, ScalingAndOffset as ScalingAndOffset
|
||||
from .mlp import MLP as MLP
|
||||
@@ -28,11 +28,7 @@ from torch import Tensor, nn
|
||||
|
||||
from nerfstudio.field_components.base_field_component import FieldComponent
|
||||
from nerfstudio.utils.external import TCNN_EXISTS, tcnn
|
||||
from nerfstudio.utils.math import (
|
||||
components_from_spherical_harmonics,
|
||||
expected_sin,
|
||||
generate_polyhedron_basis,
|
||||
)
|
||||
from nerfstudio.utils.math import components_from_spherical_harmonics, expected_sin, generate_polyhedron_basis
|
||||
from nerfstudio.utils.printing import print_tcnn_speed_warning
|
||||
|
||||
|
||||
|
||||
@@ -23,11 +23,10 @@ from jaxtyping import Float
|
||||
from torch import Tensor, nn
|
||||
|
||||
from nerfstudio.field_components.base_field_component import FieldComponent
|
||||
from nerfstudio.utils.printing import print_tcnn_speed_warning
|
||||
from nerfstudio.field_components.encodings import HashEncoding
|
||||
|
||||
from nerfstudio.utils.rich_utils import CONSOLE
|
||||
from nerfstudio.utils.external import TCNN_EXISTS, tcnn
|
||||
from nerfstudio.utils.printing import print_tcnn_speed_warning
|
||||
from nerfstudio.utils.rich_utils import CONSOLE
|
||||
|
||||
|
||||
def activation_to_tcnn_string(activation: Union[nn.Module, None]) -> str:
|
||||
|
||||
Reference in new issue
Block a user