Make continual learning easy.
LibContinual is an open source continual learning toolbox based on PyTorch. The master branch works with PyTorch 1.13. The compatibility to earlier versions of PyTorch is not fully tested.
- LwF (ECCV 2016)
- EWC (PNAS 2017)
- iCaRL (CVPR 2017)
- BiC (CVPR 2019)
- LUCIR (CVPR 2019)
- WA (CVPR 2020)
- DER (CVPR 2021)
- OCM (ICML 2022)
- ERACE,ERAML (ICLR 2022)
- TRGP (ICLR 2022)
- PRAKA (ICCV 2023)
- RanPAC (NeurIPS 2023)
- L2P (CVPR 2022)
- DualPrompt (ECCV 2022)
- CodaPrompt (CVPR 2023)
- InfLoRA (CVPR 2024)
- MoE_Adapter4CL (CVPR 2024)
- RAPF (ECCV 2024)
Please refer to install.md
Complete tutorials can be found at ./docs
CIFAR-100 are available at Google Drive
After the dataset is downloaded, please extract the compressed file to the specified path.
unzip cifar100.zip -d /path/to/your/dataset
Set the data_root
in .yaml
:
data_root: /path/to/your/dataset
To add a custom dataset, please refer to dataset.md
.
Once you have completed the "Quick Installation" and "Datasets" sections, we can now proceed to demonstrate how to use the "LibContinual" framework with the LUCIR
method.
- Step1: Configure the parameters in the
./config/lucir.yaml
file. Please refer toconfig.md
for the meanings of each parameter. - Step2: Run code
python run_trainer.py --config lucir.yaml
- Step3: After the training is completed, the log files will be saved in the path specified by the
save_path
parameter.
LibContinual is an open source project designed to help continual learning researchers quickly understand the classic methods and code structures. We welcome other contributors to use this framework to implement their own or other impressive methods and add them to LibContinual. This library can only be used for academic research. We welcome any feedback during using LibContinual and will try our best to continually improve the library.
This project has been developed with references to the following repositories:
We have referenced useful modules from these repositories in our work. We deeply appreciate the authors of these repositories.
This project is licensed under the MIT License. See LICENSE for more details.