← 开源
vandit15

Class-balanced-loss-pytorch

Pytorch implementation of the paper "Class-Balanced Loss Based on Effective Number of Samples"

Model DevelopmentDeep Learning FrameworksPython
在 GitHub 打开
增长势头
+024 小时新增 Star0.0%
801
Star
122
Fork
+0
本周
1
贡献者
创建于 2019-08-31 · 更新于 2026-09-08 · 今日第 13685 名
主要开发者
vandit15
README

Class-balanced-loss-pytorch

Pytorch implementation of the paper Class-Balanced Loss Based on Effective Number of Samples presented at CVPR'19.

Yin Cui, Menglin Jia, Tsung-Yi Lin(Google Brain), Yang Song(Google), Serge Belongie

Dependencies

  • Python (>=3.6)
  • Pytorch (>=1.2.0)

Review article of the paper

Medium Article

How it works

It works on the principle of calculating effective number of samples for all classes which is defined as:

Thus, the loss function is defined as:

Visualisation for effective number of samples

References

official tensorflow implementation

排名相邻
同类项目