Lifelong Visible-Infrared Person Re-Identification with Prompt Pool and Instance-level Prompt Generator
- RegDB can be downloaded at this website
- SYSU-MM01 is released at this link. SYSU-MM01
- LLCM is released at this link. LLCM
- HITSZ-VCM is released this link. HITSZ-VCM
You need run python pre_process_sysu.pybefore training.
Please prepare the datasets in below structure:
data_path/
├── RegDB/
│ ├── idx/
│ ├── Thermal/
│ └── Visible/
├── SYSU-MM01/
│ ├── ori_data/
│ ├── train_ir_resized_img.npy
│ ├── train_ir_resized_label.npy
│ ├── train_rgb_resized_img.npy
│ └── train_rgb_resized_label.npy
├── LLCM/
│ ├── idx/
│ ├── nir/
│ ├── test_nir/
│ ├── test_vis/
│ └── vis/
├── HITSZ-VCM/
│ ├── info/
│ ├── Test/
│ └── Train/
After preparing dataset in the above structure, you can start training with below command:
python Continual_train.py --data_dir your_data_pathNotice:
-
You may also need modify the data path in
Class VCMindata_manager.py. -
The logs will be saved in
./logs/and model will be saved in./save_model/ -
You may need to download the ImageNet pretrained transformer model ViT-Base and ajust the pretrain-path.
When the training is finished, you may use the following command to test the model.
python test.py --resume last_stage_checkpoint.tar