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
05a1c5b6
Commit
05a1c5b6
authored
Dec 30, 2022
by
Ruilong Li
Browse files
reduce ckpt size for occ grid
parent
4d595ae4
Changes
1
Hide 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 @
05a1c5b6
...
@@ -169,9 +169,9 @@ class OccupancyGrid(Grid):
...
@@ -169,9 +169,9 @@ class OccupancyGrid(Grid):
grid_coords
=
_meshgrid3d
(
resolution
).
reshape
(
grid_coords
=
_meshgrid3d
(
resolution
).
reshape
(
self
.
num_cells
,
self
.
NUM_DIM
self
.
num_cells
,
self
.
NUM_DIM
)
)
self
.
register_buffer
(
"grid_coords"
,
grid_coords
)
self
.
register_buffer
(
"grid_coords"
,
grid_coords
,
persistent
=
False
)
grid_indices
=
torch
.
arange
(
self
.
num_cells
)
grid_indices
=
torch
.
arange
(
self
.
num_cells
)
self
.
register_buffer
(
"grid_indices"
,
grid_indices
)
self
.
register_buffer
(
"grid_indices"
,
grid_indices
,
persistent
=
False
)
@
torch
.
no_grad
()
@
torch
.
no_grad
()
def
_get_all_cells
(
self
)
->
torch
.
Tensor
:
def
_get_all_cells
(
self
)
->
torch
.
Tensor
:
...
...
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