mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-03 14:28:41 +08:00
changed test config file to inherit from default (#49)
* lint * reconfigured modules in yaml * added data module * changed test config file
This commit is contained in:
1 parent
d79c112248
commit
e874e856ec
3 files changed
+23
-6
No files matched your search
+1
-1
@@ -164,7 +164,7 @@ runs/
|
|||||||
outputs/
|
outputs/
|
||||||
|
|
||||||
# Data
|
# Data
|
||||||
data/
|
./data/
|
||||||
|
|
||||||
# Misc
|
# Misc
|
||||||
old/
|
old/
|
||||||
|
|||||||
@@ -0,0 +1,18 @@
|
|||||||
|
defaults:
|
||||||
|
- default
|
||||||
|
|
||||||
|
dry_run: true
|
||||||
|
|
||||||
|
machine_config:
|
||||||
|
num_gpus: 0
|
||||||
|
|
||||||
|
data:
|
||||||
|
dataset:
|
||||||
|
data_directory: data/blender/lego_test
|
||||||
|
validation_image_indices: [0]
|
||||||
|
dataloader:
|
||||||
|
num_images_to_sample_from: 1
|
||||||
|
num_rays_per_batch: 8
|
||||||
|
|
||||||
|
graph:
|
||||||
|
max_num_iterations: 5
|
||||||
@@ -2,8 +2,7 @@
|
|||||||
Default test to make sure train runs
|
Default test to make sure train runs
|
||||||
"""
|
"""
|
||||||
import pytest
|
import pytest
|
||||||
import omegaconf
|
from hydra.experimental import compose, initialize
|
||||||
from mattport.utils.io import get_absolute_path
|
|
||||||
|
|
||||||
from scripts.run_train import main
|
from scripts.run_train import main
|
||||||
|
|
||||||
@@ -11,6 +10,6 @@ from scripts.run_train import main
|
|||||||
@pytest.mark.filterwarnings("ignore::DeprecationWarning")
|
@pytest.mark.filterwarnings("ignore::DeprecationWarning")
|
||||||
def test_run_train():
|
def test_run_train():
|
||||||
"""test run train script works properly"""
|
"""test run train script works properly"""
|
||||||
test_config = get_absolute_path("./tests/configs/test_default.yml")
|
initialize(config_path="../configs/")
|
||||||
cfg = omegaconf.OmegaConf.load(test_config)
|
conf = compose("test_dryrun.yaml")
|
||||||
main(cfg)
|
main(conf)
|
||||||
Reference in new issue
Block a user