Skip to content

Commit

Permalink
Add missing SH degree 1 in cpu pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
Willyzw committed Jun 5, 2024
1 parent 5c557d7 commit 1ff3d05
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rasterizer/gsplat-cpu/gsplat_cpu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,9 @@ torch::Tensor compute_sh_forward_tensor_cpu(
torch::Tensor x = xyz[0];
torch::Tensor y = xyz[1];
torch::Tensor z = xyz[2];
result.index_put_({"...", 1}, SH_C1 * -y);
result.index_put_({"...", 2}, SH_C1 * z);
result.index_put_({"...", 3}, SH_C1 * -x);

if (numBases > 4){
torch::Tensor xx = x * x;
Expand Down

0 comments on commit 1ff3d05

Please sign in to comment.