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

Normalize the gt template #43

Open
HRHLALALA opened this issue Mar 16, 2022 · 1 comment
Open

Normalize the gt template #43

HRHLALALA opened this issue Mar 16, 2022 · 1 comment

Comments

@HRHLALALA
Copy link

HRHLALALA commented Mar 16, 2022

Hi, thanks for your excellent work!

I notice that your template is within (0,0.0099) and you do not normalize the template to (0,1) though there is such a choice. Would this affect the sigmoid function and BCE? Because usually, we use binary labels for this. May I ask any reason behind that?

Just want to make sure I am not missing important details! It will be helpful if you can answer these. Thanks!

@ArcaneEmergence
Copy link
Collaborator

The template reflects a probability distribution over positions, so everything should sum up to 1. As you mentioned, usually BCE is used for binary labels, but it can also be used to measure a distribution to another, as negative log-likelihood does.

https://pytorch.org/docs/stable/generated/torch.nn.BCELoss.html

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

2 participants