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

About the loss. #8

Open
qinglew opened this issue Dec 9, 2021 · 0 comments
Open

About the loss. #8

qinglew opened this issue Dec 9, 2021 · 0 comments

Comments

@qinglew
Copy link

qinglew commented Dec 9, 2021

Thank you very much for releasing the code of DPF-Net. I read it carefully and have a doubt for the loss. Here are the details:

  1. In lib/networks/losses.py, the class PointFlowNLL is used to compute the negative log-likelihood loss for point cloud flow.

    return 0.5 * torch.add(
            torch.sum(sum(logvars) + ((samples[0] - mus[0]) ** 2 / torch.exp(logvars[0]))) / samples[0].shape[0],
            np.log(2.0 * np.pi) * samples[0].shape[1] * samples[0].shape[2]
    )

    Why need to / samples[0].shape[0] and why the np.log(2.0 * np.pi) need to multiply samples[0].shape[1] * samples[0].shape[2]? The same doubt lies in the class GaussianFlowNLL.

  2. In class GaussianEntropy, you wrote (1.0 + np.log(2.0 * np.pi). Why need to add 1.0 here?

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