-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Description
Hi,
first of all thanks for publishing the source code,
I want to try this new method in a segmentation problem I have, to avoid having to weigh the classes by hand.
When I try it, the loss approaches 0 very fast, going down to less than 2e-7 in a single epoch. I use it as follows:
max_pooling_loss = mpl.MaxPoolingLoss(ratio=0.3, p=1.7, reduce=True)
def mask_loss(pred,targ):
return max_pooling_loss(F.cross_entropy(pred, targ, reduce=False))
When I just use crossentropy, the model trains fine.
Any ideas on what might be causing this?
Cheers,
Johannes
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels