mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-04 14:58:55 +08:00
lint
This commit is contained in:
1 parent
cea1d115d2
commit
58dd2a7eee
2 files changed
+1
-2
No files matched your search
@@ -16,7 +16,7 @@ def components_from_spherical_harmonics(levels: int, directions: TensorType[...,
|
|||||||
num_components = levels**2
|
num_components = levels**2
|
||||||
components = torch.zeros((*directions.shape[:-1], num_components)).to(directions.device)
|
components = torch.zeros((*directions.shape[:-1], num_components)).to(directions.device)
|
||||||
|
|
||||||
assert levels > 0 and levels <= 5, f"SH levels must be in [1,4], got {levels}"
|
assert 1 <= levels <= 5, f"SH levels must be in [1,4], got {levels}"
|
||||||
assert directions.shape[-1] == 3, f"Direction input should have three dimensions. Got {directions.shape[-1]}"
|
assert directions.shape[-1] == 3, f"Direction input should have three dimensions. Got {directions.shape[-1]}"
|
||||||
|
|
||||||
x = directions[..., 0]
|
x = directions[..., 0]
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
"""
|
"""
|
||||||
Encoding Tests
|
Encoding Tests
|
||||||
"""
|
"""
|
||||||
from multiprocessing.sharedctypes import Value
|
|
||||||
import pytest
|
import pytest
|
||||||
import torch
|
import torch
|
||||||
from mattport.nerf.field_modules import encoding
|
from mattport.nerf.field_modules import encoding
|
||||||
|
|||||||
Reference in new issue
Block a user