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
fe75cb86
Unverified
Commit
fe75cb86
authored
Nov 26, 2022
by
Thomas Wang
Committed by
GitHub
Nov 27, 2022
Browse files
Pass boolean tensor instead of the occlusion once. (#123)
parent
0e1e7cb7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
nerfacc/grid.py
nerfacc/grid.py
+2
-2
No files found.
nerfacc/grid.py
View file @
fe75cb86
...
@@ -236,7 +236,7 @@ class OccupancyGrid(Grid):
...
@@ -236,7 +236,7 @@ class OccupancyGrid(Grid):
# )
# )
self
.
_binary
=
(
self
.
_binary
=
(
self
.
occs
>
torch
.
clamp
(
self
.
occs
.
mean
(),
max
=
occ_thre
)
self
.
occs
>
torch
.
clamp
(
self
.
occs
.
mean
(),
max
=
occ_thre
)
).
reshape
(
self
.
_binary
.
shape
)
).
view
(
self
.
_binary
.
shape
)
@
torch
.
no_grad
()
@
torch
.
no_grad
()
def
every_n_step
(
def
every_n_step
(
...
@@ -289,7 +289,7 @@ class OccupancyGrid(Grid):
...
@@ -289,7 +289,7 @@ class OccupancyGrid(Grid):
return
query_grid
(
return
query_grid
(
samples
,
samples
,
self
.
_roi_aabb
,
self
.
_roi_aabb
,
self
.
occs
.
reshape
(
self
.
resolution
.
tolist
())
,
self
.
binary
,
self
.
contraction_type
,
self
.
contraction_type
,
)
)
...
...
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