LibContinual
Make continual learning easy.
Introduction
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.
Supported Methods
- BiC (CVPR 2019)
- EWC (PNAS 2017)
- iCaRL (CVPR2017)
- LUCIR (CVPR 2019)
- LwF (ECCV 2016)
- WA (CVPR 2020)
- OCM (PMLR 2022)
- DER (CVPR 2021)
- ERACE,ERAML (ICLR 2022)
- L2P (CVPR 2022)
- DualPrompt (ECCV 2022)
- CodaPrompt (CVPR 2023)
Quick Installation
(待文档部分完成)
请参考文档中安装部分。
完整文档:./docs
Datasets
CIFAR-100, miniImageNet(todo)
将对应数据集的压缩包解压至指定路径:
unzip cifar100.zip -d /path/to/your/dataset
修改.yaml文件的data_root参数:
data_root: /path/to/your/dataset
如何添加自定义数据集请参考文档:添加自定义数据集
Get Start
当您已经完成Quick Installation和Datasets后,我们以LUCIR方法为例展示如何使用LibContinual。
- Step1: 修改
run_trainer.py中Config参数为./config/lucir.yaml - Step2:配置
./config/lucir.yaml文件中的参数,各参数含义请参考配置文件 - Step3: 运行代码
python run_trainer.py - Step4:日志保存在配置文件中
save_path路径下
Acknowledgement
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.
在本项目开发过程中参考了下列仓库:
在我们的工作中参考了这些仓库中有用的模块。我们深深感谢这些仓库的作者们。
License
This project is licensed under the MIT License. See LICENSE for more details.
