Continuous Knowledge-Preserving Decomposition with Adaptive Layer Selection for Few-Shot Class-Incremental Learning
This is the official repository for Continuous Knowledge-Preserving Decomposition with Adaptive Layer Selection for Few-Shot Class-Incremental Learning, accepted at ACM Multimedia 2026 (ACM MM 2026).
Continuous Knowledge-Preserving Decomposition with Adaptive Layer Selection for Few-Shot Class-Incremental Learning Xiaojie Li, Wei Liu, Bei Wang, Jianlong Wu, Yue Yu, Min Zhang ACM Multimedia 2026
-
Create a Conda environment:
conda create --name ckpdfscil python=3.10 -y conda activate ckpdfscil
-
Install dependencies:
pip install torch==1.12.1+cu113 torchvision==0.13.1+cu113 torchaudio==0.12.1 \ --extra-index-url https://download.pytorch.org/whl/cu113 pip install -U openmim mim install mmcv-full==1.7.0 mmengine==0.10.4 pip install opencv-python matplotlib einops timm==0.6.12 \ scikit-learn transformers==4.44.2 pip install git+https://github.com/openai/CLIP.git git clone https://github.com/state-spaces/mamba.git cd mamba git checkout v1.2.0.post1 pip install . cd ..
-
Clone this repository:
git clone https://github.com/xiaojieli0903/CKPD-FSCIL.git cd CKPD-FSCIL mkdir -p ./data
-
Download the datasets from the NC-FSCIL dataset repository.
-
Organize the datasets as follows:
./data/ ├── cifar/ ├── CUB_200_2011/ └── miniimagenet/
Use tools/convert_pretrained_model.py to convert pretrained models into the required format.
The following model types are supported:
- CLIP: converts OpenAI CLIP models.
- TIMM: converts TIMM models.
python tools/convert_pretrained_model.py \
ViT-B/32 \
./pretrained_models/clip-vit-base-p32_openai.pth \
--model-type clippython tools/convert_pretrained_model.py \
vit_base_patch16_224 \
./pretrained_models/vit_base_patch16_224.pth \
--model-type timmExecute the corresponding script to start training.
sh train_miniimagenet.shsh train_cub.shIf you find this work useful in your research, please consider citing:
@inproceedings{li2026continuous,
title = {Continuous Knowledge-Preserving Decomposition with Adaptive Layer Selection for Few-Shot Class-Incremental Learning},
author = {Li, Xiaojie and Liu, Wei and Wang, Bei and Wu, Jianlong and Yu, Yue and Zhang, Min},
booktitle = {Proceedings of the ACM International Conference on Multimedia},
year = {2026}
}