Skip to content

Commit 8fa430b

Browse files
committed
Fix bugs of depth backward pass
1 parent a310ef4 commit 8fa430b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: cuda_rasterizer/backward.cu

+2-1
Original file line numberDiff line numberDiff line change
@@ -453,10 +453,11 @@ renderCUDA(
453453
float dL_dpixel[C];
454454
float dL_depth;
455455
float accum_depth_rec = 0;
456-
if (inside)
456+
if (inside){
457457
for (int i = 0; i < C; i++)
458458
dL_dpixel[i] = dL_dpixels[i * H * W + pix_id];
459459
dL_depth = dL_depths[pix_id];
460+
}
460461

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

0 commit comments

Comments
 (0)