Skip to content

Commit 1e46cb1

Browse files
author
Junchen Liu
authored
fix viewdir checking in ngp.py (#295)
1 parent 5cea4fe commit 1e46cb1

File tree

1 file changed

+2
-2
lines changed
  • examples/radiance_fields

1 file changed

+2
-2
lines changed

examples/radiance_fields/ngp.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,8 +212,8 @@ def forward(
212212
assert (
213213
positions.shape == directions.shape
214214
), f"{positions.shape} v.s. {directions.shape}"
215-
density, embedding = self.query_density(positions, return_feat=True)
216-
rgb = self._query_rgb(directions, embedding=embedding)
215+
density, embedding = self.query_density(positions, return_feat=True)
216+
rgb = self._query_rgb(directions, embedding=embedding)
217217
return rgb, density # type: ignore
218218

219219

0 commit comments

Comments
 (0)