Skip to content

Commit

Permalink
fix viewdir checking in ngp.py
Browse files Browse the repository at this point in the history
  • Loading branch information
JunchenLiu77 authored Apr 24, 2024
1 parent 5cea4fe commit 5e08b62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/radiance_fields/ngp.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,8 @@ def forward(
assert (
positions.shape == directions.shape
), f"{positions.shape} v.s. {directions.shape}"
density, embedding = self.query_density(positions, return_feat=True)
rgb = self._query_rgb(directions, embedding=embedding)
density, embedding = self.query_density(positions, return_feat=True)
rgb = self._query_rgb(directions, embedding=embedding)
return rgb, density # type: ignore


Expand Down

0 comments on commit 5e08b62

Please sign in to comment.