mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-03 14:28:41 +08:00
Multi-gpu improvements (#799)
* initial commit * minor changes * small changes * ddp seems to be working * remove commented out code
This commit is contained in:
1 parent
863fc77ab5
commit
6f4fb506e2
8 files changed
+93
-107
No files matched your search
@@ -227,9 +227,7 @@ class VanillaPipeline(Pipeline):
|
||||
|
||||
self.world_size = world_size
|
||||
if world_size > 1:
|
||||
self._model = typing.cast(
|
||||
Model, typing.cast(Model, DDP(self._model, device_ids=[local_rank], find_unused_parameters=True))
|
||||
)
|
||||
self._model = typing.cast(Model, DDP(self._model, device_ids=[local_rank], find_unused_parameters=True))
|
||||
dist.barrier(device_ids=[local_rank])
|
||||
|
||||
@property
|
||||
|
||||
Reference in new issue
Block a user