8000 Depth Output 0 or Nan · Issue #198 · ashawkey/torch-ngp · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Depth Output 0 or Nan #198
Open
Open
@KaiMJ

Description

@KaiMJ

I am trying to implement a depth loss, in nerf/utils.py/Trainer.train_step.

    outputs = self.model.render(rays_o, rays_d, staged=False, bg_color=bg_color, perturb=True, force_all_rays=False if self.opt.patch_size == 1 else True, **vars(self.opt))    

the outputs['depth'] always return 0 or nan during training.

depth = outputs['depth']
print(depth[~depth.isnan()].sum()) --> always 0.

With self.model.eval(), I get an appropriate depth result with some non zero values, but unable to backprop.

Any idea what is going on?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0