Skip to content

Commit df6c335

Browse files
committed
fix wrong image_ids in distributed mode
1 parent 4ca04df commit df6c335

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

gsplat/rendering.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -575,6 +575,10 @@ def reshape_view(C: int, world_view: torch.Tensor, N_world: list) -> torch.Tenso
575575
output_splits=collected_splits,
576576
)
577577

578+
# since distributed mode does not support batch dimensions, it is safe
579+
# to set image_ids to camera_ids.
580+
image_ids = camera_ids
581+
578582
# Silently change C from global #Cameras to local #Cameras.
579583
C = C_world[world_rank]
580584

0 commit comments

Comments
 (0)