Skip to content

linlany/RAPF-jittor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Class-Incremental Learning with CLIP: Adaptive Representation Adjustment and Parameter Fusion (ECCV24)

This is the jittor implementation for our paper:

Getting Started

Environment

Reference RAPF and JCLIP for environment installation and code running

Running scripts

We provide the scripts for imagenet100. Please run:

python main.py \
    --config-path configs/class \
    --config-name imagenet100_10-10.yaml \
    dataset_root="[imagenet1k_path]" \
    class_order="class_orders/imagenet100.yaml"

The dataset_root folder should contain the train and val folders.

imagenet1k_path
├── train
│   ├── n01440764 
│   └── ···
├── val
│   ├── n01440764 
│   └── ···

imagenet-r_path
├── train
│   ├── n01443537 
│   └── ···
├── val
│   ├── n01443537 
│   └── ···

The command to run the other two datasets is similar, in run_experiment.sh

datasets

Cifar100 will download automatically. Imagenet-R is randomly splited. You can also use our splited list in RAPF/imgr_split/imgr_train_test_split.txt.

The format of imgr_train_test_split.txt:

train
n02051845/art_0.jpg
...
test
n02051845/tattoo_4.jpg
...

Acknowledgement

Our method implementation is based on the Continual-CLIP.

Citation

If you find our repo useful for your research, please consider citing our paper:

@inproceedings{huang2024class,
  title={Class-incremental learning with clip: Adaptive representation adjustment and parameter fusion},
  author={Huang, Linlan and Cao, Xusheng and Lu, Haori and Liu, Xialei},
  booktitle={European Conference on Computer Vision},
  pages={214--231},
  year={2024},
  organization={Springer}
}

License

This code is licensed under the Creative Commons Attribution-NonCommercial 4.0 International for non-commercial use only. Please note that any commercial use of this code requires formal permission prior to use.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •