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

Question about the empty_space_loss #83

Open
Net-Maker opened this issue Jun 7, 2023 · 0 comments
Open

Question about the empty_space_loss #83

Net-Maker opened this issue Jun 7, 2023 · 0 comments

Comments

@Net-Maker
Copy link

I am learning the scene part in this excellent work.
But I found that the empty_space_loss in paper is like that:
image
But in our code,it's like:

coarse_empty_space_loss = torch.zeros_like(coarse_rgb_loss)
        if self.penalize_empty_space > 0:
            depth = batch['depth'][:, None].repeat(1, _n).to(device)
            closer_mask = z_vals < (depth * self.opt.margin)
            coarse_empty_space_loss += self.empty_space_loss_fn(
                torch.tanh(torch.relu(out[closer_mask][:, 3])),
                torch.zeros_like(out[closer_mask][:, 3])
            ) * self.penalize_empty_space

I am kind of confuse. could you tell me the meaning of the double activate functions?
And where to correspond the formula in the paper?

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