Skip to content

Commit

Permalink
Adjusting Instant NGP to Inner AABB
Browse files Browse the repository at this point in the history
  • Loading branch information
Anthony-Tafoya committed Sep 20, 2024
1 parent 516fd7c commit 715f96e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nerfstudio/models/instant_ngp.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)
Expand Down

0 comments on commit 715f96e

Please sign in to comment.