mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-28 03:50:11 +08:00
added general testing, fixed up config, made writer general
This commit is contained in:
1 parent
e5f436a18d
commit
58f2622f4d
7 files changed
+121
-16
No files matched your search
@@ -0,0 +1,16 @@
|
||||
"""
|
||||
Default test to make sure train runs
|
||||
"""
|
||||
import pytest
|
||||
import omegaconf
|
||||
from mattport.utils.io import get_absolute_path
|
||||
|
||||
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)
|
||||
Reference in new issue
Block a user