sarafridov/K-Planes

Bug in depth rendering?

Opened this issue · 0 comments

I think that there is a bug in the current depth rendering:

one_minus_transmittance = torch.sum(weights, dim=-2)
depth = torch.sum(weights * steps, dim=-2) + one_minus_transmittance * rays_d[..., -1:]

I believe it should actually be:

one_minus_transmittance = torch.sum(weights, dim=-2).clamp(min=1e-6)
depth = torch.sum(weights * steps, dim=-2)/one_minus_transmittance