vandit15 / Class-balanced-loss-pytorch

Pytorch implementation of the paper "Class-Balanced Loss Based on Effective Number of Samples"
MIT License
781 stars 120 forks source link

Line 87 typo #10

Open BenDrewry opened 4 years ago

BenDrewry commented 4 years ago

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)

Thanks for the resource, it worked great!!

Python-Eric commented 2 years ago

wo ! useful , it did work !