Commit b84f89ee by Stefan Holzer

fixed error that happens when you try to load LLFF data with no NDC: bds…

fixed error that happens when you try to load LLFF data with no NDC: bds variable is a numpy array but torch.min expects a tensor
parent f913df59
......@@ -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.
......
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