mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-30 04:50:16 +08:00
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:
1 parent
eeda90e697
commit
e94b093b57
4 files changed
+6
-3
No files matched your search
@@ -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),
|
||||
|
||||
Reference in new issue
Block a user