Skip to content

Commit 8a66878

Browse files
Update vdb.py
1 parent 1e46cb1 commit 8a66878

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

nerfacc/estimators/vdb.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,8 @@ def __init__(self, init_grid: GridBatch, device="cuda:0") -> None:
8080
)
8181

8282
def state_dict(self):
83-
state_dict = super().state_dict()
83+
state_dict = self.state_dict()
8484
state_dict["grid"] = self.grid
85-
state_dict["occs"] = self.occs.state_dict()
8685
return state_dict
8786

8887
def load_state_dict(
@@ -96,7 +95,7 @@ def load_state_dict(
9695
mutable=True,
9796
)
9897
remaining_state_dict = {
99-
k: v for k, v in state_dict.items() if k not in ["grid", "occs"]
98+
k: v for k, v in state_dict.items() if k not in ["grid"]
10099
}
101100
super().load_state_dict(remaining_state_dict, strict=strict)
102101

0 commit comments

Comments
 (0)