-
Notifications
You must be signed in to change notification settings - Fork 12
/
test_bert_cc.sh
15 lines (15 loc) · 1.57 KB
/
test_bert_cc.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
echo "BERT"
echo "MSCOCO"
echo "evalaute cc_model1"
# python evaluation_bert.py --model BERT/cc_model1 --data_path "$DATA_PATH" --region_bbox_file "$REGION_BBOX_FILE" --feature_path "$FEATURE_PATH"
python evaluation_bert.py --model BERT/cc_model1_ --fold --data_path /remote-home/lyli/Workspace/meltdown/burneddown/ECCV/data --region_bbox_file /remote-home/lyli/Workspace/meltdown/burneddown/ECCV/joint-pretrain/COCO/region_feat_gvd_wo_bgd/coco_detection_vg_thresh0.2_feat_gvd_checkpoint_trainvaltest.h5 --feature_path /remote-home/lyli/Workspace/meltdown/burneddown/ECCV/joint-pretrain/COCO/region_feat_gvd_wo_bgd/feat_cls_1000/coco_detection_vg_100dets_gvd_checkpoint_trainval
mv sims_full_0.npy sims_full_1.npy sims_full_2.npy sims_full_3.npy sims_full_4.npy sims_full_5k.npy ./coco_sims
# mv sims_f_T.npy ./flickr_sims
echo "evalaute cc_model2"
# python evaluation_bert.py --model BERT/cc_model2 --data_path "$DATA_PATH" --region_bbox_file "$REGION_BBOX_FILE" --feature_path "$FEATURE_PATH"
python evaluation_bert.py --model BERT/cc_model2_ --fold --data_path /remote-home/lyli/Workspace/meltdown/burneddown/ECCV/data --region_bbox_file /remote-home/lyli/Workspace/meltdown/burneddown/ECCV/joint-pretrain/COCO/region_feat_gvd_wo_bgd/coco_detection_vg_thresh0.2_feat_gvd_checkpoint_trainvaltest.h5 --feature_path /remote-home/lyli/Workspace/meltdown/burneddown/ECCV/joint-pretrain/COCO/region_feat_gvd_wo_bgd/feat_cls_1000/coco_detection_vg_100dets_gvd_checkpoint_trainval
echo "ensemble and rerank!"
echo "fold5-1K"
python rerank.py --data_name coco --fold
echo "5K"
python rerank.py --data_name coco