mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-11 02:24:38 +08:00
* in progress. camera_indices broken * faster dataloader. starting on pixel sampler logic * imagesampler and pixelsampler * lint and black * continuing merge * pytest working * fixed docs * docs * minor changes
19 lines
413 B
Python
19 lines
413 B
Python
"""
|
|
Default test to make sure train runs
|
|
"""
|
|
import pytest
|
|
from hydra import compose, initialize
|
|
|
|
from scripts.run_train import main
|
|
|
|
|
|
@pytest.mark.filterwarnings("ignore::DeprecationWarning")
|
|
def test_run_train():
|
|
"""test run train script works properly"""
|
|
initialize(config_path="../configs/tests/")
|
|
conf = compose("test_dryrun.yaml")
|
|
main(conf)
|
|
|
|
if __name__ == "__main__":
|
|
test_run_train()
|