From 715f96ed80d5b9430eed807ce91b33d6f7a07349 Mon Sep 17 00:00:00 2001 From: Anthony-Tafoya Date: Fri, 20 Sep 2024 00:31:21 +0000 Subject: [PATCH] Adjusting Instant NGP to Inner AABB --- nerfstudio/models/instant_ngp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nerfstudio/models/instant_ngp.py b/nerfstudio/models/instant_ngp.py index 1dd00af8da..c49826a121 100644 --- a/nerfstudio/models/instant_ngp.py +++ b/nerfstudio/models/instant_ngp.py @@ -118,7 +118,7 @@ def populate_modules(self): self.config.render_step_size = ((self.scene_aabb[3:] - self.scene_aabb[:3]) ** 2).sum().sqrt().item() / 1000 # Occupancy Grid. self.occupancy_grid = nerfacc.OccGridEstimator( - roi_aabb=self.scene_aabb, + roi_aabb=self.scene_aabb * 2 ** -(self.config.grid_levels - 1), resolution=self.config.grid_resolution, levels=self.config.grid_levels, )