Unverified Commit f61ca730 by Yen-Chen Lin Committed by GitHub

Merge pull request #4 from holzers/fix/not_a_tensor_error

fixed error that happens when you try to load LLFF data with no NDC: …
parents ea8d78e4 b84f89ee
...@@ -445,8 +445,9 @@ def train(): ...@@ -445,8 +445,9 @@ def train():
print('DEFINING BOUNDS') print('DEFINING BOUNDS')
if args.no_ndc: if args.no_ndc:
near = torch.min(bds) * .9 near = np.ndarray.min(bds) * .9
far = torch.max(bds) * 1. far = np.ndarray.max(bds) * 1.
else: else:
near = 0. near = 0.
far = 1. far = 1.
......
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