mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-20 06:35:36 +08:00
updated logic within Trainer class to allow for multiprocess training
This commit is contained in:
1 parent
ac3e7515ef
commit
62d4218421
3 files changed
+17
-24
No files matched your search
@@ -112,8 +112,11 @@ def _train(local_rank: int, world_size: int, config: DictConfig) -> Any:
|
||||
Returns:
|
||||
Any: TODO(): determine the return type
|
||||
"""
|
||||
# trainer = Trainer(local_rank, world_size, config)
|
||||
# trainer.train()
|
||||
trainer = Trainer(local_rank, world_size, config)
|
||||
trainer.setup_graph()
|
||||
trainer.setup_optimizer()
|
||||
trainer.setup_dataset()
|
||||
trainer.train()
|
||||
return 0
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user