mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-20 06:35:36 +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
4 files changed
+24
-7
No files matched your search
@@ -2,8 +2,7 @@
|
||||
Default test to make sure train runs
|
||||
"""
|
||||
import pytest
|
||||
import omegaconf
|
||||
from mattport.utils.io import get_absolute_path
|
||||
from hydra.experimental import compose, initialize
|
||||
|
||||
from scripts.run_train import main
|
||||
|
||||
@@ -11,6 +10,6 @@ from scripts.run_train import main
|
||||
@pytest.mark.filterwarnings("ignore::DeprecationWarning")
|
||||
def test_run_train():
|
||||
"""test run train script works properly"""
|
||||
test_config = get_absolute_path("./tests/configs/test_default.yml")
|
||||
cfg = omegaconf.OmegaConf.load(test_config)
|
||||
main(cfg)
|
||||
initialize(config_path="../configs/")
|
||||
conf = compose("test_dryrun.yaml")
|
||||
main(conf)
|
||||
Reference in new issue
Block a user