Home

Awesome

Gradient Reweighting: Towards Imbalanced Class-Incremental Learning [CVPR 2024]

This repository is the official PyTorch implementation of Gradient Reweighting: Towards Imbalanced Class-Incremental Learning [paper].

Running with Pre-trained Models:

The implementation of our method DGR by using Pre-Trained Models (PTM) is also available in LAMDA-PILOT: https://github.com/sun-hailong/LAMDA-PILOT

A duplicate of the implementation can be found in '/Continual Learning with Pretrained Models/'

Training Instructions

To run the code, navigate to /script/ and execute the provided bash script with the following format:

bash main.sh <approach> <gpu> <dataset> <scenario> <initial_classes> <total_tasks>

Parameter Specifications:

Examples:

bash main.sh DGR 0 cifar100 lt 5 20
bash main.sh DGR 0 imagenet_subset lt 50 11
bash main.sh DGR 0 Food101 ltio 51 6
bash main.sh DGR 0 imagenet_1000 conv 100 10

Reference:

If you find this work useful, please cite us by:

@article{He_2024_CVPR,
    author    = {He, Jiangpeng},
    title     = {Gradient Reweighting: Towards Imbalanced Class-Incremental Learning},
    journal = {Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)},
    month     = {June},
    year      = {2024},
    pages     = {16668-16677}
}

Acknowledgment:

The main implementation of this repository and existing methods are obtained from "Long-Tailed Class-Incremental Learning": https://github.com/xialeiliu/Long-Tailed-CIL