Skip to content

Commit

Permalink
remove unused
Browse files Browse the repository at this point in the history
  • Loading branch information
kwea123 committed Jul 20, 2022
1 parent 38d9f03 commit 1b7c324
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions models/csrc/volumerendering.cu
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ __global__ void composite_train_bw_kernel(
int samples = 0;
scalar_t R = rgb[ray_idx][0], G = rgb[ray_idx][1], B = rgb[ray_idx][2];
scalar_t O = opacity[ray_idx], D = depth[ray_idx];
scalar_t T = 1.0f, r = 0.0f, g = 0.0f, b = 0.0f, op = 0.0f, d = 0.0f;
scalar_t T = 1.0f, r = 0.0f, g = 0.0f, b = 0.0f, d = 0.0f;

while (samples < N_samples) {
const int s = start_idx + samples;
Expand All @@ -109,7 +109,6 @@ __global__ void composite_train_bw_kernel(

r += w*rgbs[s][0]; g += w*rgbs[s][1]; b += w*rgbs[s][2];
d += w*ts[s];
op += w;
T *= 1.0f-a;

// compute gradients by math...
Expand Down

0 comments on commit 1b7c324

Please sign in to comment.