/
run_demo.sh
37 lines (32 loc) · 1.29 KB
/
run_demo.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
37
#Runing Demo with our checkpoint
check_path=""
CUDA_VISIBLE_DEVICES=1 python demo.py \
--img_dir "./demo_birds" \
--check_path $check_path \
--save_path "./birds_results" \
--post_method "BagCAMs" \
--target_layer "layer3"
CUDA_VISIBLE_DEVICES=1 python demo.py \
--img_dir "./demo_birds" \
--check_path $check_path \
--save_path "./birds_results" \
--post_method "CAM" \
--target_layer "layer3"
CUDA_VISIBLE_DEVICES=1 python demo.py \
--img_dir "./demo_birds" \
--check_path $check_path \
--save_path "./birds_results" \
--post_method "GradCAM" \
--target_layer "layer3"
CUDA_VISIBLE_DEVICES=1 python demo.py \
--img_dir "./demo_birds" \
--check_path $check_path \
--save_path "./birds_results" \
--post_method "GradCAM++" \
--target_layer "layer3"
CUDA_VISIBLE_DEVICES=1 python demo.py \
--img_dir "./demo_birds" \
--check_path $check_path \
--save_path "./birds_results" \
--post_method "PCS" \
--target_layer "layer3"