Skip to content
/ MDCS Public

πŸ”₯MDCS: More Diverse Experts with Consistency Self-distillation for Long-tailed Recognition [Official, ICCV 2023]

Notifications You must be signed in to change notification settings

fistyee/MDCS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

33 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

MDCS: More Diverse Experts with Consistency Self-distillation for Long-tailed Recognition [Official, ICCV 2023, Paper] πŸ”₯

Qihao Zhao1,2, Chen Jiang1, Wei Hu1, Fan Zhang1, Jun Liu2

1 Beijing University of Chemical Technology

2 Singapore University of Technology and Design

MDCS

0.Citation

If you find our work inspiring or use our codebase in your research, please consider giving a star ⭐ and a citation.

@InProceedings{Zhao_2023_ICCV,
    author    = {Zhao, Qihao and Jiang, Chen and Hu, Wei and Zhang, Fan and Liu, Jun},
    title     = {MDCS: More Diverse Experts with Consistency Self-distillation for Long-tailed Recognition},
    booktitle = {Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV)},
    month     = {October},
    year      = {2023},
    pages     = {11597-11608}
}

1.training

(1) CIFAR100-LT

Training

  • run:
python train.py -c configs/config_cifar100_ir100_mdcs.json

Evaluate

  • run:
python test.py -r checkpoint_path

(2) ImageNet-LT

Training

  • run such as resnext50 400 epochs:
python train.py -c configs/config_imagenet_lt_resnext50_mdcs_e400.json

Evaluate

  • run:
python test.py -r checkpoint_path

(3) Places-LT

Training

  • run:
python train_places.py -c configs/config_places_lt_resnet152_mdcs.json

Evaluate

  • run:
python test_places.py -r checkpoint_path

(4) iNaturalist 2018

Training

  • run :
python train.py -c configs/config_iNaturalist_resnet50_mdcs.json

Evaluate

  • run:
python test.py -r checkpoint_path

2. Requirements

  • To install requirements:
pip install -r requirements.txt
  • Run in linux (may have some problems in windows)

3. Datasets

(1) Four bechmark datasets

  • Please download these datasets and put them to the /data file.
  • ImageNet-LT and Places-LT can be found at here.
  • iNaturalist data should be the 2018 version from here.
  • CIFAR-100 will be downloaded automatically with the dataloader.
data
β”œβ”€β”€ ImageNet_LT
β”‚Β Β  β”œβ”€β”€ test
β”‚Β Β  β”œβ”€β”€ train
β”‚Β Β  └── val
β”œβ”€β”€ CIFAR100
β”‚Β Β  └── cifar-100-python
β”œβ”€β”€ Place365
β”‚Β Β  β”œβ”€β”€ data_256
β”‚Β Β  β”œβ”€β”€ test_256
β”‚Β Β  └── val_256
└── iNaturalist 
 Β Β  β”œβ”€β”€ test2018
    └── train_val2018

(2) Txt files

  • We provide txt files for test-agnostic long-tailed recognition for ImageNet-LT, Places-LT and iNaturalist 2018. CIFAR-100 will be generated automatically with the code.
  • For iNaturalist 2018, please unzip the iNaturalist_train.zip.
data_txt
β”œβ”€β”€ ImageNet_LT
β”‚Β Β  β”œβ”€β”€ ImageNet_LT_test.txt
β”‚Β Β  β”œβ”€β”€ ImageNet_LT_train.txt
β”‚Β Β  └── ImageNet_LT_val.txt
β”œβ”€β”€ Places_LT_v2
β”‚Β Β  β”œβ”€β”€ Places_LT_test.txt
β”‚Β Β  β”œβ”€β”€ Places_LT_train.txt
β”‚Β Β  └── Places_LT_val.txt
└── iNaturalist18
    β”œβ”€β”€ iNaturalist18_train.txt
    β”œβ”€β”€ iNaturalist18_uniform.txt
    └── iNaturalist18_val.txt 

4. Pretrained models

  • For the training on Places-LT, we follow previous methods and use the pre-trained ResNet-152 model.
  • Please download the checkpoint. Unzip and move the checkpoint files to /model/pretrained_model_places/.

5. Acknowledgements

The mutli-expert framework is based on SADE and RIDE. Strong augmentations are based on NCL and PaCo.

About

πŸ”₯MDCS: More Diverse Experts with Consistency Self-distillation for Long-tailed Recognition [Official, ICCV 2023]

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages