- VOC-2012: download voc-2007+2012 dataset to folder
examples/data/voc
(you may specify this in configuration files).
code requires cv-lib-PyTorch. You should download this repo and checkout to tag transformer_ka
.
sh train_teacher.sh
Before training the student, you should modify the amalgamation config file (e.g., config/voc/amalgamation/resnet50-amg-seq-task-no_cross.yaml
) so that the ckpt of all teachers are valid.
teachers:
t1:
cfg_fp: config/voc/multitask/resnet50-t1.yaml
weights_fp: /path/to/teacher1.pth
t2:
cfg_fp: config/voc/multitask/resnet50-t2.yaml
weights_fp: /path/to/teacher2.pth
Train the student:
sh KA.sh
@article{zhang2023knowledge,
title={Knowledge Amalgamation for Object Detection With Transformers},
author={Zhang, Haofei and Mao, Feng and Xue, Mengqi and Fang, Gongfan and Feng, Zunlei and Song, Jie and Song, Mingli},
journal={IEEE Transactions on Image Processing},
volume={32},
pages={2093--2106},
year={2023},
publisher={IEEE}
}