bump nerfacc to 0.2.0. bug fix for depth vis. (#744)

* bump nerfacc to 0.2.0. bug fix for depth vis.

* skip emtpy region for nerfacc raymarching
This commit is contained in:
Ruilong Li(李瑞龙) authored and GitHub committed 2022-10-09 19:16:30 -07:00
1 parent eeda90e697
commit e94b093b57
4 files changed
+6 -3

No files matched your search

+2
View File
@@ -139,6 +139,8 @@ class NGPModel(Model):
self, training_callback_attributes: TrainingCallbackAttributes
) -> List[TrainingCallback]:
def update_occupancy_grid(step: int):
# TODO: needs to get access to the sampler, on how the step size is determinated at each x. See
# https://github.com/KAIR-BAIR/nerfacc/blob/127223b11401125a9fce5ce269bb0546ee4de6e8/examples/train_ngp_nerf.py#L190-L213
self.occupancy_grid.every_n_step(
step=step,
occ_eval_fn=lambda x: self.field.get_opacity(x, self.config.render_step_size),