mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-22 07:35:26 +08:00
1 parent
62f492f1bc
commit
e13d401b16
97 files changed
+235712
-235721
No files matched your search
@@ -1,7 +1,7 @@
|
||||
"""
|
||||
Embedding tests
|
||||
"""
|
||||
from nerfstudio.fields.modules.embedding import Embedding
|
||||
from nerfstudio.field_components.embedding import Embedding
|
||||
|
||||
|
||||
def test_indexing():
|
||||
|
||||
@@ -4,7 +4,7 @@ Encoding Tests
|
||||
import pytest
|
||||
import torch
|
||||
|
||||
from nerfstudio.fields.modules import encoding
|
||||
from nerfstudio.field_components import encoding
|
||||
|
||||
|
||||
def test_scaling_and_offset():
|
||||
|
||||
@@ -5,7 +5,7 @@ import pytest
|
||||
import torch
|
||||
from torch import nn
|
||||
|
||||
from nerfstudio.fields.modules.field_heads import (
|
||||
from nerfstudio.field_components.field_heads import (
|
||||
DensityFieldHead,
|
||||
FieldHead,
|
||||
FieldHeadNames,
|
||||
|
||||
@@ -4,7 +4,7 @@ MLP Test
|
||||
import torch
|
||||
from torch import nn
|
||||
|
||||
from nerfstudio.fields.modules import MLP
|
||||
from nerfstudio.field_components import MLP
|
||||
|
||||
|
||||
def test_mlp():
|
||||
|
||||
@@ -5,14 +5,14 @@ Test samplers
|
||||
import torch
|
||||
|
||||
from nerfstudio.cameras.rays import RayBundle
|
||||
from nerfstudio.models.modules.ray_sampler import (
|
||||
from nerfstudio.model_components.ray_sampler import (
|
||||
LinearDisparitySampler,
|
||||
LogSampler,
|
||||
PDFSampler,
|
||||
SqrtSampler,
|
||||
UniformSampler,
|
||||
)
|
||||
from nerfstudio.models.modules.scene_colliders import NearFarCollider
|
||||
from nerfstudio.model_components.scene_colliders import NearFarCollider
|
||||
|
||||
|
||||
def test_uniform_sampler():
|
||||
|
||||
@@ -5,7 +5,7 @@ import pytest
|
||||
import torch
|
||||
|
||||
from nerfstudio.cameras.rays import Frustums, RaySamples
|
||||
from nerfstudio.renderers import renderers
|
||||
from nerfstudio.model_components import renderers
|
||||
|
||||
|
||||
def test_rgb_renderer():
|
||||
|
||||
@@ -9,9 +9,9 @@ from pathlib import Path
|
||||
|
||||
import pytest
|
||||
|
||||
from nerfstudio.configs.base import Config
|
||||
from nerfstudio.configs.base_configs import base_configs
|
||||
from nerfstudio.datamanagers.dataparsers.blender_parser import BlenderDataParserConfig
|
||||
from nerfstudio.configs.base_config import Config
|
||||
from nerfstudio.configs.model_configs import model_configs
|
||||
from nerfstudio.data.dataparsers.blender_dataparser import BlenderDataParserConfig
|
||||
from nerfstudio.engine.trainer import train_loop
|
||||
|
||||
BLACKLIST = ["base", "semantic-nerf", "mipnerf-360", "instant-ngp", "nerfacto"]
|
||||
@@ -48,13 +48,13 @@ def set_reduced_config(config: Config):
|
||||
@pytest.mark.filterwarnings("ignore::DeprecationWarning")
|
||||
def test_train():
|
||||
"""test run train script works properly"""
|
||||
all_config_names = base_configs.keys()
|
||||
all_config_names = model_configs.keys()
|
||||
for config_name in all_config_names:
|
||||
if config_name in BLACKLIST:
|
||||
print("skipping", config_name)
|
||||
continue
|
||||
print(f"testing run for: {config_name}")
|
||||
config = base_configs[config_name]
|
||||
config = model_configs[config_name]
|
||||
config = set_reduced_config(config)
|
||||
|
||||
train_loop(local_rank=0, world_size=0, config=config)
|
||||
|
||||
Reference in new issue
Block a user