hongbo-sun / AttriCLIP

CVPR2023: AttriCLIP: A Non-Incremental Learner for Incremental Knowledge Learning

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AttriCLIP

This is the pytorch version code of "AttriCLIP: A Non-Incremental Learner for Incremental Knowledge Learning" in CVPR2023.

Content

AttriCLIP is introduced from《AttriCLIP: A Non-Incremental Learner for Incremental Knowledge Learning》

Paper :Runqi Wang, Xiaoyue Duan, Guoliang Kang, Jianzhuang Liu, Shaohui Lin, Songcen Xu, Jinhu Lv, Baochang Zhang. "Few-Shot Learning with Visual Distribution Calibration and Cross-Modal Distribution Alignment". In CVPR, 2023.

The test Datasets:CIFAR100, Download link
Datasets size:100 classes and 32*32 pixels for each image.

The test Datasets:a subset of ImageNet, Download link
Datasets size:100 classes. The chosen classes are shown in supplementary materials of the paper and dataset/imagenet100.py of this project. The dataset can be generated by running generate_ima100/generate_ima100.py.

We use the pretrained CLIP model from here

pip install -r requirements.txt
python main_incremental_submit.py --root data_path #for cifar100
#or
python main_incremental_ima.py --root data_path #for imagenet100

About

CVPR2023: AttriCLIP: A Non-Incremental Learner for Incremental Knowledge Learning


Languages

Language:Python 100.0%