Skip to content

About two different loss while in training progress #62

@DISAPPEARED13

Description

@DISAPPEARED13

Hi there, I download this code and adapted them for my semi-supervised segmentation (Pytorch version). And thanks for this genius code you provided!

But I have a question is that I know that mean-teacher model contains two loss, one is for unsupervised loss for paired labeled data and ground-truth, and the other is for contrast loss.

And here is the contrast loss I calculated:

  1. get the consistency weight by 10 * sigmoid_rampup(epoch, 5) at each epoch
  2. compute the logits from student and teacher's output

And then I got contrast loss up to thousands and it seems not right. Is it normal or some bug in my code?
Could you give me some advice if you have some idea? Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions