Skip to content

Latest commit

 

History

History
17 lines (13 loc) · 689 Bytes

README.md

File metadata and controls

17 lines (13 loc) · 689 Bytes

long-tail-ldam

This is not the official implementation of LDAM-DRW in the paper Learning Imbalanced Datasets with Label-Distribution-Aware Margin Loss in PyTorch.

How to run the code?

  • To train the ERM baseline on long-tailed imbalance with ratio of 100
python3 lt_train.py --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
python3 lt_train.py --imb_type exp --imb_factor 0.01 --loss_type LDAM --train_rule DRW

Others

Modified from rerpository kaidic/LDAM-DRW