Skip to content

Commit

Permalink
fix: wrong torch cat dim when saving colors+depths
Browse files Browse the repository at this point in the history
A minor type in example/simple_trainer_2dgs.py
  • Loading branch information
Crescent-Saturn authored Nov 28, 2024
1 parent 7951619 commit 1382209
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/simple_trainer_2dgs.py
Original file line number Diff line number Diff line change
Expand Up @@ -914,7 +914,7 @@ def render_traj(self, step: int):

# write images
canvas = torch.cat(
[colors, depths.repeat(1, 1, 3)], dim=1 if width > height else 1
[colors, depths.repeat(1, 1, 3)], dim=0 if width > height else 1
)
canvas = (canvas.cpu().numpy() * 255).astype(np.uint8)
canvas_all.append(canvas)
Expand Down

0 comments on commit 1382209

Please sign in to comment.