Unverified Commit 1e46cb1d authored by Junchen Liu's avatar Junchen Liu Committed by GitHub
Browse files

fix viewdir checking in ngp.py (#295)

parent 5cea4feb
......@@ -212,8 +212,8 @@ class NGPRadianceField(torch.nn.Module):
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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment