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 contra_hybrid_loss #1

Open
XCZhou520 opened this issue Feb 24, 2022 · 2 comments
Open

About the contra_hybrid_loss #1

XCZhou520 opened this issue Feb 24, 2022 · 2 comments

Comments

@XCZhou520
Copy link

the loss named bce_loss,but infact you used FOCAL_loss when calculating BCE_loss.Is this the result of negligence?

@qaz670756
Copy link
Owner

when gamma=0 and alpha=None, the Focal loss is equivalent to BCE loss. Note that the contra_hybrid_loss is still hybrid_loss, because "self.contra" didn't used in the forward function.

@XCZhou520
Copy link
Author

Oh,yeah!Thank you!

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