Skip to content

Code problem #2

Description

@Gift-OYS

It seems that in /semi_supervised_segmentation/losses.py line 195, it should be ce_loss = self.ce(net_output, target.long()) if self.weight_ce != 0 else 0 instead of ce_loss = self.ce(net_output, target[:, 0].long()) if self.weight_ce != 0 else 0? Because the shape of net_output id (64, 2, 64, 64), and the shape of target.long() is (64, 64, 64)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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