GuangxingHan / FCT

Code for CVPR 2022 Oral paper: 'Few-Shot Object Detection with Fully Cross-Transformer'
72 stars 13 forks source link

how to eval only? #11

Open VincentL5201 opened 1 year ago

VincentL5201 commented 1 year ago

when I run "python3 fsod_train_net.py --num-gpus 1 --config-file configs/fsod/two_branch_1shot_finetuning_pascalvoc_split1_pvt_v2_b2_li.yaml --eval-only", it occurs error: "FileNotFoundError: [Errno 2] No such file or directory: './datasets/pascal_voc/voc_2007_trainval_all1_1shot.pkl'"

how to fix this, thank u.

GuangxingHan commented 1 year ago

This is right for eval-only.

The error is because the program does not find the 1shot training data. Please run this script 3_gen_support_pool_any_shot.py first.

VincentL5201 commented 1 year ago

thanks a lot,it works.

VincentL5201 commented 1 year ago

And how to execute multiple runs?

VincentL5201 commented 1 year ago

could you provide the single_branch_pretraining_pascalvoc_split1\2\3 model?

GuangxingHan commented 1 year ago

This repo does not include the evaluation code for multiple runs now. To do this, you need to first generate multiple few-shot training sets following TFA. After that, we can get one evaluation result using one of the few-shot training sets, and then take the average of them for the final result.

The VOC split1/2/3 single branch pre-trained models are available at here