Skip to content

Loss goes to 0 #4

@jaidmin

Description

@jaidmin

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions