Skip to content

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

Notifications You must be signed in to change notification settings

zj-jayzhang/long-tail-ldam

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages