We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
def forward(self, logits, labels): N, C, H, W = logits.size() loss = self.criteria(logits, labels).view(-1) loss, _ = torch.sort(loss, descending=True) if loss[self.n_min] > self.thresh: loss = loss[loss>self.thresh] else: loss = loss[:self.n_min] return torch.mean(loss)
What's the meaning of these codes? And how to decide thresh and n_min?
thresh
n_min
The text was updated successfully, but these errors were encountered:
No branches or pull requests
What's the meaning of these codes? And how to decide
thresh
andn_min
?The text was updated successfully, but these errors were encountered: