Skip to content

Commit

Permalink
Merge pull request yenchenlin#4 from holzers/fix/not_a_tensor_error
Browse files Browse the repository at this point in the history
fixed error that happens when you try to load LLFF data with no NDC: …
  • Loading branch information
yenchenlin authored Apr 15, 2020
2 parents ea8d78e + b84f89e commit f61ca73
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions run_nerf.py
Original file line number Diff line number Diff line change
Expand Up @@ -445,8 +445,9 @@ def train():

print('DEFINING BOUNDS')
if args.no_ndc:
near = torch.min(bds) * .9
far = torch.max(bds) * 1.
near = np.ndarray.min(bds) * .9
far = np.ndarray.max(bds) * 1.

else:
near = 0.
far = 1.
Expand Down

0 comments on commit f61ca73

Please sign in to comment.