Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Depth Output 0 or Nan #198

Open
KaiMJ opened this issue May 12, 2024 · 0 comments
Open

Depth Output 0 or Nan #198

KaiMJ opened this issue May 12, 2024 · 0 comments

Comments

@KaiMJ
Copy link

KaiMJ commented May 12, 2024

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant