Skip to content

qhmiao/P-M-for-Continual-Learning

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

P-M-for-Continual-Learning

Environment

torch==2.1.0
torchvision==0.16.0
timm==0.9.12
einops==0.7.0
ftfy==6.1.3
huggingface-hub==0.18.0
numpy==1.26.0
opencv-python==4.8.1.78
Pillow==10.0.1
regex==2023.12.25
scikit-image==0.22.0
scikit-learn==1.3.2
scipy==1.11.3
tqdm==4.66.1

These packages can be installed easily by pip install -r requirements.txt

Dataset preparation

1. Download the datasets and uncompress them:

2. Rearrange the directory structure:

Directory structure for three datasets:

DATA_ROOT
    |- train
    |    |- class_folder_1
    |    |    |- image_file_1
    |    |    |- image_file_2
    |    |- class_folder_2
    |         |- image_file_2
    |         |- image_file_3
    |- val
         |- class_folder_1
         |    |- image_file_5
         |    |- image_file_6
         |- class_folder_2
              |- image_file_7
              |- image_file_8

We provide the scripts split_[dataset].py in the tools folder to rearange the directory structure. Please change the root_dir in each script to the path of the uncompressed dataset.

Training and evaluation

For three datasets: bash reproduce.sh

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published