Skip to content

Files

Latest commit

e769058 · Apr 8, 2024

History

History
29 lines (19 loc) · 855 Bytes

README.md

File metadata and controls

29 lines (19 loc) · 855 Bytes

CP-Prompt: Composition-Based Cross-modal Prompting for Domain-Incremental Continual Learning

This repository is our PyTorch implementation of CP-Prompt.

Requirements

pip install -r requirements.txt

How to run

You can run the CP-Prompt with the following commands:

# CDDB
python main.py --config configs/prefix_one_prompt/cddb.json >> logs/prefix_one_prompt/cddb.log 2>&1
# CORe50
python main.py --config configs/prefix_one_prompt/core50.json >> logs/prefix_one_prompt/core50.log 2>&1
# Domainnet
python main.py --config configs/prefix_one_prompt/domainnet.json >> logs/prefix_one_prompt/domainnet.log 2>&1

Acknowledgement

Our source code and data processing are built heavily based on the code of Sprompt ([https://github.com/iamwangyabin/S-Prompts]).

The data set download address is provided in the paper.