forked from PengtaoJiang/L2G
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest_l2g_coco.sh
30 lines (27 loc) · 889 Bytes
/
test_l2g_coco.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/sh
EXP=exp_coco
TYPE=ms
THR=0.25
NUM_CLASSES=80
DATASET=mscoco
GPU_ID=0,1,2,3
CUDA_VISIBLE_DEVICES=${GPU_ID} python3 ./scripts/test_l2g_coco.py \
--img_dir=./data/coco14/JPEGImages/ \
--test_list=./data/coco14/train_cls.txt \
--arch=vgg \
--batch_size=1 \
--dataset=${DATASET} \
--input_size=224 \
--num_classes=${NUM_CLASSES} \
--thr=${THR} \
--restore_from=./runs/${EXP}/model/${DATASET}_epoch_14.pth \
--save_dir=./runs/${EXP}/${TYPE}/attention/ \
--multi_scale \
--cam_png=./runs/${EXP}/cam_png/
CUDA_VISIBLE_DEVICES=${GPU_ID} python3 scripts/evaluate_mthr_coco.py \
--dataset=mscoco \
--datalist=./data/coco14/train_cls.txt \
--gt_dir=./data/coco14/SegmentationClass/ \
--save_path=./runs/${EXP}/${TYPE}/result.txt \
--save_label_path=./runs/${EXP}/${TYPE}/cam_png \
--pred_dir=./runs/${EXP}/${TYPE}/attention/