Unverified Commit f6ca5ba5 authored by Ruilong Li(李瑞龙)'s avatar Ruilong Li(李瑞龙) Committed by GitHub
Browse files

Hot fix (#43)

* support alpha_thre for rendering and ray marching. default to zero

* bump version

* hot fix
parent 542f4310
...@@ -52,8 +52,8 @@ __global__ void rendering_forward_kernel( ...@@ -52,8 +52,8 @@ __global__ void rendering_forward_kernel(
// accumulated rendering // accumulated rendering
scalar_t T = 1.f; scalar_t T = 1.f;
int j = 0; int cnt = 0;
for (; j < steps; ++j) for (int j = 0; j < steps; ++j)
{ {
if (T < early_stop_eps) if (T < early_stop_eps)
{ {
...@@ -86,10 +86,11 @@ __global__ void rendering_forward_kernel( ...@@ -86,10 +86,11 @@ __global__ void rendering_forward_kernel(
{ {
compact_selector[j] = true; compact_selector[j] = true;
} }
cnt += 1;
} }
if (num_steps != nullptr) if (num_steps != nullptr)
{ {
*num_steps = j; *num_steps = cnt;
} }
return; return;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment