mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-14 03:44:02 +08:00
added basic distributed logic for trainer
This commit is contained in:
1 parent
4b131d4358
commit
7dc9d445b2
4 files changed
+71
-9
No files matched your search
@@ -1,3 +1,4 @@
|
||||
world_size: 0
|
||||
network:
|
||||
mlp_0:
|
||||
class_name: MLP
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
from tty import CFLAG
|
||||
import pytest
|
||||
import runpy
|
||||
|
||||
from mattport.nerf.trainer import Trainer
|
||||
from hydra import compose, initialize
|
||||
|
||||
CONFIG_DIR = "configs"
|
||||
|
||||
def test_multiprocess_train():
|
||||
"""Test for trainer to validate distributed data parallel working."""
|
||||
with initialize(config_path=CONFIG_DIR):
|
||||
cfg = compose(config_name='test_basic_graph')
|
||||
trainer = Trainer(cfg)
|
||||
trainer.run_multiprocess_train()
|
||||
Reference in new issue
Block a user