Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
nerfacc
Commits
82baf33d
Commit
82baf33d
authored
Sep 05, 2023
by
Ruilong Li
Browse files
minor fix for prefix_trans
parent
43313061
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
nerfacc/volrend.py
nerfacc/volrend.py
+1
-1
No files found.
nerfacc/volrend.py
View file @
82baf33d
...
@@ -260,7 +260,7 @@ def render_transmittance_from_density(
...
@@ -260,7 +260,7 @@ def render_transmittance_from_density(
alphas
=
1.0
-
torch
.
exp
(
-
sigmas_dt
)
alphas
=
1.0
-
torch
.
exp
(
-
sigmas_dt
)
trans
=
torch
.
exp
(
-
exclusive_sum
(
sigmas_dt
,
packed_info
))
trans
=
torch
.
exp
(
-
exclusive_sum
(
sigmas_dt
,
packed_info
))
if
prefix_trans
is
not
None
:
if
prefix_trans
is
not
None
:
trans
*
=
prefix_trans
trans
=
trans
*
prefix_trans
return
trans
,
alphas
return
trans
,
alphas
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment