Class-balanced-loss-pytorch icon indicating copy to clipboard operation
Class-balanced-loss-pytorch copied to clipboard

Line 87 typo

Open BenDrewry opened this issue 5 years ago • 2 comments
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!!

BenDrewry avatar May 02 '20 22:05 BenDrewry

wo ! useful , it did work !

Python-Eric avatar Aug 19 '22 03:08 Python-Eric