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
3090d7bd
Commit
3090d7bd
authored
Nov 20, 2022
by
Ruilong Li
Browse files
rename to "proposal_resampling"
parent
a74f7e7b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
8 deletions
+3
-8
nerfacc/ray_marching.py
nerfacc/ray_marching.py
+2
-7
nerfacc/sampling.py
nerfacc/sampling.py
+1
-1
No files found.
nerfacc/ray_marching.py
View file @
3090d7bd
...
...
@@ -4,7 +4,7 @@ import torch
from
.grid
import
Grid
from
.intersection
import
ray_aabb_intersect
from
.sampling
import
proposal_sampling
_with_filter
,
sample_along_rays
from
.sampling
import
proposal_
re
sampling
,
sample_along_rays
@
torch
.
no_grad
()
...
...
@@ -171,12 +171,7 @@ def ray_marching(
grid
=
grid
,
)
(
ray_indices
,
t_starts
,
t_ends
,
proposal_samples
,
)
=
proposal_sampling_with_filter
(
ray_indices
,
t_starts
,
t_ends
,
proposal_samples
=
proposal_resampling
(
t_starts
=
t_starts
,
t_ends
=
t_ends
,
ray_indices
=
ray_indices
,
...
...
nerfacc/sampling.py
View file @
3090d7bd
...
...
@@ -99,7 +99,7 @@ def sample_along_rays(
@
torch
.
no_grad
()
def
proposal_sampling
_with_filter
(
def
proposal_
re
sampling
(
t_starts
:
torch
.
Tensor
,
# [n_samples, 1]
t_ends
:
torch
.
Tensor
,
# [n_samples, 1]
ray_indices
:
torch
.
Tensor
,
# [n_samples,]
...
...
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