Class-balanced-loss-pytorch
Class-balanced-loss-pytorch copied to clipboard
Line 87 typo
trafficstars
original: cb_loss = F.binary_cross_entropy_with_logits(input = logits,target = labels_one_hot, weights = weights)
update: cb_loss = F.binary_cross_entropy_with_logits(input = logits,target = labels_one_hot, weight = weights)
- pytorch optimizer takes keyword 'weight', not 'weights'
Thanks for the resource, it worked great!!
wo ! useful , it did work !