-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfgvc_eval.sh
36 lines (33 loc) · 1.02 KB
/
fgvc_eval.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
31
32
33
34
35
36
methods=(rankfeat msp mls gradnorm)
for method in ${methods[@]}
do
for dataset in fgvc-cub_clean fgvc-cub_symm0.1 fgvc-cub_symm0.2
do
for checkpoint in 'best.ckpt' 'last*.ckpt'
do
python scripts/eval_ood.py \
--id-data ${dataset} \
--root ./results/${dataset}_resnet50_base_e600_lr0.01_default \
--postprocessor $method \
--save-score --save-csv \
--id_loader_split train \
--checkpoint $checkpoint
done
done
done
for method in ${methods[@]}
do
for dataset in fgvc-aircraft_clean fgvc-aircraft_symm0.1 fgvc-aircraft_symm0.2
do
for checkpoint in 'best.ckpt' 'last*.ckpt'
do
python scripts/eval_ood.py \
--id-data ${dataset} \
--root ./results/${dataset}_resnet50_base_e600_lr0.01_default \
--postprocessor $method \
--save-score --save-csv \
--id_loader_split train \
--checkpoint $checkpoint
done
done
done