From b6488bd8a001c00ea74bc222171e6588d23c4d38 Mon Sep 17 00:00:00 2001 From: wyf2020 <69951260+wyf2020@users.noreply.github.com> Date: Sun, 17 Apr 2022 16:42:48 +0800 Subject: [PATCH] Update the value of output_ch This line was mentioned by Xiangjun-Gao on 28 Jan 2021 (https://github.com/yenchenlin/nerf-pytorch/issues/22 ), but I find it has not been fixed yet. --- run_nerf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run_nerf.py b/run_nerf.py index bc270be86..3988a998a 100644 --- a/run_nerf.py +++ b/run_nerf.py @@ -184,7 +184,7 @@ def create_nerf(args): embeddirs_fn = None if args.use_viewdirs: embeddirs_fn, input_ch_views = get_embedder(args.multires_views, args.i_embed) - output_ch = 5 if args.N_importance > 0 else 4 + output_ch = 4 skips = [4] model = NeRF(D=args.netdepth, W=args.netwidth, input_ch=input_ch, output_ch=output_ch, skips=skips,