プロジェクト
kaidic/LDAM-DRW has 701 GitHub stars and 113 forks. GitHot measured 0 stars in 24 hours. Last checked 2026-11-19 10:00 UTC. Last push 2021-12-25.
計測したスター増加
- 24時間
- 0
- 7日間
- 履歴を収集中
- 15日間
- 履歴を収集中
- 1か月
- 履歴を収集中
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
概要
[NeurIPS 2019] Learning Imbalanced Datasets with Label-Distribution-Aware Margin Loss
学習README.md
オリジナルLearning Imbalanced Datasets with Label-Distribution-Aware Margin Loss
Kaidi Cao, Colin Wei, Adrien Gaidon, Nikos Arechiga, Tengyu Ma
This is the official implementation of LDAM-DRW in the paper Learning Imbalanced Datasets with Label-Distribution-Aware Margin Loss in PyTorch.
Dependency
The code is built with following libraries:
Dataset
- Imbalanced CIFAR. The original data will be downloaded and converted by
imbalancec_cifar.py. - The paper also reports results on Tiny ImageNet and iNaturalist 2018. We will update the code for those datasets later.
Training
We provide several training examples with this repo:
- To train the ERM baseline on long-tailed imbalance with ratio of 100
python cifar_train.py --gpu 0 --imb_type exp --imb_factor 0.01 --loss_type CE --train_rule None
- To train the LDAM Loss along with DRW training on long-tailed imbalance with ratio of 100
python cifar_train.py --gpu 0 --imb_type exp --imb_factor 0.01 --loss_type LDAM --train_rule DRW
Reference
If you find our paper and repo useful, please cite as
@inproceedings{cao2019learning,
title={Learning Imbalanced Datasets with Label-Distribution-Aware Margin Loss},
author={Cao, Kaidi and Wei, Colin and Gaidon, Adrien and Arechiga, Nikos and Ma, Tengyu},
booktitle={Advances in Neural Information Processing Systems},
year={2019}
}