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
8a668783
"...resnet50_tensorflow.git" did not exist on "7d1cfc1e5e1244ee5fbbd83a2dce8b10611caede"
Unverified
Commit
8a668783
authored
Jun 27, 2024
by
Ruilong Li(李瑞龙)
Committed by
GitHub
Jun 27, 2024
Browse files
Update vdb.py
parent
1e46cb1d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
nerfacc/estimators/vdb.py
nerfacc/estimators/vdb.py
+2
-3
No files found.
nerfacc/estimators/vdb.py
View file @
8a668783
...
@@ -80,9 +80,8 @@ class VDBEstimator(AbstractEstimator):
...
@@ -80,9 +80,8 @@ class VDBEstimator(AbstractEstimator):
)
)
def
state_dict
(
self
):
def
state_dict
(
self
):
state_dict
=
s
uper
()
.
state_dict
()
state_dict
=
s
elf
.
state_dict
()
state_dict
[
"grid"
]
=
self
.
grid
state_dict
[
"grid"
]
=
self
.
grid
state_dict
[
"occs"
]
=
self
.
occs
.
state_dict
()
return
state_dict
return
state_dict
def
load_state_dict
(
def
load_state_dict
(
...
@@ -96,7 +95,7 @@ class VDBEstimator(AbstractEstimator):
...
@@ -96,7 +95,7 @@ class VDBEstimator(AbstractEstimator):
mutable
=
True
,
mutable
=
True
,
)
)
remaining_state_dict
=
{
remaining_state_dict
=
{
k
:
v
for
k
,
v
in
state_dict
.
items
()
if
k
not
in
[
"grid"
,
"occs"
]
k
:
v
for
k
,
v
in
state_dict
.
items
()
if
k
not
in
[
"grid"
]
}
}
super
().
load_state_dict
(
remaining_state_dict
,
strict
=
strict
)
super
().
load_state_dict
(
remaining_state_dict
,
strict
=
strict
)
...
...
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