Skip to content

Commit 4175fc0

Browse files
committed
fix wrong image_ids in distributed mode
1 parent 981f99f commit 4175fc0

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
@@ -568,6 +568,10 @@ def reshape_view(C: int, world_view: torch.Tensor, N_world: list) -> torch.Tenso
568568
output_splits=collected_splits,
569569
)
570570

571+
# since distributed mode does not support batch dimensions, it is safe
572+
# to set image_ids to camera_ids.
573+
image_ids = camera_ids
574+
571575
# Silently change C from global #Cameras to local #Cameras.
572576
C = C_world[world_rank]
573577

0 commit comments

Comments
 (0)