From b84f89eec0d017f7a7aeb5004a6ea649d800571d Mon Sep 17 00:00:00 2001 From: Stefan Holzer Date: Sun, 12 Apr 2020 14:14:27 -0700 Subject: [PATCH] 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 --- run_nerf.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/run_nerf.py b/run_nerf.py index e1c9b63..3633e18 100644 --- a/run_nerf.py +++ b/run_nerf.py @@ -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.