Skip to content

Commit

Permalink
Fix bugs of depth backward pass
Browse files Browse the repository at this point in the history
  • Loading branch information
ingra14m committed Sep 29, 2023
1 parent a310ef4 commit 8fa430b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cuda_rasterizer/backward.cu
Original file line number Diff line number Diff line change
@@ -453,10 +453,11 @@ renderCUDA(
float dL_dpixel[C];
float dL_depth;
float accum_depth_rec = 0;
if (inside)
if (inside){
for (int i = 0; i < C; i++)
dL_dpixel[i] = dL_dpixels[i * H * W + pix_id];
dL_depth = dL_depths[pix_id];
}

float last_alpha = 0;
float last_color[C] = { 0 };

0 comments on commit 8fa430b

Please sign in to comment.