SegDecNet icon indicating copy to clipboard operation
SegDecNet copied to clipboard

about loss function

Open LeeCASC opened this issue 4 years ago • 1 comments

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!

LeeCASC avatar Apr 03 '20 05:04 LeeCASC

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) )

elepp avatar Jun 19 '20 06:06 elepp