Closed eeric closed 3 years ago
cur_weights = torch.exp(target + (1 - target 2) self.weights)
cur_weights are used to control the sample imbalance. See equation (5) in the paper for how to calculate the weights.
cur_weights
cur_weights = torch.exp(target + (1 - target 2) self.weights)