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: …
This commit is contained in:
Yen-Chen Lin 2020-04-15 10:47:54 +08:00 committed by GitHub
commit f61ca730eb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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.