From 7887b14ca0489168d33c21f756e1d3a5b7627496 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ruilong=20Li=28=E6=9D=8E=E7=91=9E=E9=BE=99=29?= Date: Fri, 28 Apr 2023 13:44:34 -0700 Subject: [PATCH] Reduce the GPU memory required in viewer for NGP methods (#1837) Fix the issue #1835: - change the default `viewer.num_rays_per_chunk` from `1 << 15` to `1 << 12`. - remove the `render_step_size=0.001` for `instant-ngp-bounded` so that it is automatically calculated based on the scene aabb (target on roughly 1000 samples). --- nerfstudio/configs/method_configs.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/nerfstudio/configs/method_configs.py b/nerfstudio/configs/method_configs.py index 429607115..909c5c388 100644 --- a/nerfstudio/configs/method_configs.py +++ b/nerfstudio/configs/method_configs.py @@ -247,7 +247,7 @@ method_configs["instant-ngp"] = TrainerConfig( "scheduler": ExponentialDecaySchedulerConfig(lr_final=0.0001, max_steps=200000), } }, - viewer=ViewerConfig(num_rays_per_chunk=1 << 15), + viewer=ViewerConfig(num_rays_per_chunk=1 << 12), vis="viewer", ) @@ -265,7 +265,6 @@ method_configs["instant-ngp-bounded"] = TrainerConfig( grid_levels=1, alpha_thre=0.0, cone_angle=0.0, - render_step_size=0.001, disable_scene_contraction=True, near_plane=0.01, background_color="black", @@ -277,7 +276,7 @@ method_configs["instant-ngp-bounded"] = TrainerConfig( "scheduler": ExponentialDecaySchedulerConfig(lr_final=0.0001, max_steps=200000), } }, - viewer=ViewerConfig(num_rays_per_chunk=1 << 15), + viewer=ViewerConfig(num_rays_per_chunk=1 << 12), vis="viewer", )