Skip to content

Commit c9a8bf4

Browse files
Adjusting Instant NGP to Inner AABB
1 parent 374e1f9 commit c9a8bf4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

nerfstudio/models/instant_ngp.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def populate_modules(self):
118118
self.config.render_step_size = ((self.scene_aabb[3:] - self.scene_aabb[:3]) ** 2).sum().sqrt().item() / 1000
119119
# Occupancy Grid.
120120
self.occupancy_grid = nerfacc.OccGridEstimator(
121-
roi_aabb=self.scene_aabb,
121+
roi_aabb=self.scene_aabb * 2 ** -(levels - 1),
122122
resolution=self.config.grid_resolution,
123123
levels=self.config.grid_levels,
124124
)

nerfstudio/process_data/process_data_utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def convert_video_to_images(
140140
verbose: If True, logs the output of the command.
141141
image_prefix: Prefix to use for the image filenames.
142142
keep_image_dir: If True, don't delete the output directory if it already exists.
143-
random_seed: If set, the seed used to choose the frames t commit of the video
143+
random_seed: If set, the seed used to choose the frames of the video
144144
Returns:
145145
A tuple containing summary of the conversion and the number of extracted frames.
146146
"""

0 commit comments

Comments
 (0)