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 loss function #7

Open
LeeCASC opened this issue Apr 3, 2020 · 1 comment
Open

about loss function #7

LeeCASC opened this issue Apr 3, 2020 · 1 comment

Comments

@LeeCASC
Copy link

LeeCASC commented Apr 3, 2020

In this paper, the author said the loss function is perfectly crossentropy, but when I modify the MSELoss to CrossEntropy Loss. The code do not work. How to modify the code better? Thank you!

@elepp
Copy link

elepp commented Jun 19, 2020

use criterion_segment = torch.nn.BCEWithLogitsLoss() and take away nn.ReLU(inplace=True) in models.py at self.layer5 = nn.Sequential( nn.Conv2d(1024, 1, 1), nn.ReLU(inplace=True) )

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