← all repositories

vandit15/Class-balanced-loss-pytorch

A PyTorch implementation of a class-balanced loss function for training deep neural networks on imbalanced datasets.

803 stars Python ML Frameworks
Class-balanced-loss-pytorch
Not currently ranked — collecting fresh signals.
star history

This repository provides a PyTorch implementation of the class-balanced loss function introduced in the CVPR'19 paper by Cui et al. The loss addresses class imbalance in training data by weighting the loss inversely proportional to the effective number of samples per class, derived from the concept of effective number of samples that models data overlap in feature space. It serves as a drop-in replacement for standard cross-entropy loss in computer vision models trained on imbalanced datasets.

Frequently asked

What is vandit15/Class-balanced-loss-pytorch?
A PyTorch implementation of a class-balanced loss function for training deep neural networks on imbalanced datasets.
Is Class-balanced-loss-pytorch open source?
Yes — vandit15/Class-balanced-loss-pytorch is open source, released under the MIT license.
What language is Class-balanced-loss-pytorch written in?
vandit15/Class-balanced-loss-pytorch is primarily written in Python.
How popular is Class-balanced-loss-pytorch?
vandit15/Class-balanced-loss-pytorch has 803 stars on GitHub.
Where can I find Class-balanced-loss-pytorch?
vandit15/Class-balanced-loss-pytorch is on GitHub at https://github.com/vandit15/Class-balanced-loss-pytorch.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.