forked from CSAILVision/semantic-segmentation-pytorch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test_time_all.sh
57 lines (42 loc) · 3.12 KB
/
test_time_all.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
########################################### GPU ###########################################
mkdir -p tmp_results/
echo "(time) GPU..."
echo "(time) using GPU..." > inference_time.res
echo "(time) hrnetv2" >> inference_time.res
python3 predict_img.py -d 0 -i teaser/car_detection_sample.png --cfg config/ade20k-hrnetv2.yaml >> inference_time.res
#sleep 2
echo "(time) mobilenetv2dilated" >> inference_time.res
python3 predict_img.py -d 0 -i teaser/car_detection_sample.png --cfg config/ade20k-mobilenetv2dilated-c1_deepsup.yaml >> inference_time.res
#sleep 2
echo "(time) resnet101dilated" >> inference_time.res
python3 predict_img.py -d 0 -i teaser/car_detection_sample.png --cfg config/ade20k-resnet101dilated-ppm_deepsup.yaml >> inference_time.res
#sleep 2
echo "(time) resnet101" >> inference_time.res
python3 predict_img.py -d 0 -i teaser/car_detection_sample.png --cfg config/ade20k-resnet101-upernet.yaml >> inference_time.res
#sleep 2
echo "(time) resnet18dilated" >> inference_time.res
python3 predict_img.py -d 0 -i teaser/car_detection_sample.png --cfg config/ade20k-resnet18dilated-ppm_deepsup.yaml >> inference_time.res
#sleep 2
echo "(time) resnet50dilated-ppm" >> inference_time.res
python3 predict_img.py -d 0 -i teaser/car_detection_sample.png --cfg config/ade20k-resnet50dilated-ppm_deepsup.yaml >> inference_time.res
#sleep 2
echo "(time) resnet50dilated-upernet" >> inference_time.res
python3 predict_img.py -d 0 -i teaser/car_detection_sample.png --cfg config/ade20k-resnet50-upernet.yaml >> inference_time.res
#sleep 2
########################################### CPU ###########################################
echo "(time) CPU..."
echo "(time) using CPU..." >> inference_time.res
echo "(time) hrnetv2" >> inference_time.res
CUDA_VISIBLE_DEVICES="" python3 predict_img.py -d 0 -i teaser/car_detection_sample.png --cfg config/ade20k-hrnetv2.yaml >> inference_time.res
echo "(time) mobilenetv2dilated" >> inference_time.res
CUDA_VISIBLE_DEVICES="" python3 predict_img.py -d 0 -i teaser/car_detection_sample.png --cfg config/ade20k-mobilenetv2dilated-c1_deepsup.yaml >> inference_time.res
echo "(time) resnet101dilated" >> inference_time.res
CUDA_VISIBLE_DEVICES="" python3 predict_img.py -d 0 -i teaser/car_detection_sample.png --cfg config/ade20k-resnet101dilated-ppm_deepsup.yaml >> inference_time.res
echo "(time) resnet101" >> inference_time.res
CUDA_VISIBLE_DEVICES="" python3 predict_img.py -d 0 -i teaser/car_detection_sample.png --cfg config/ade20k-resnet101-upernet.yaml >> inference_time.res
echo "(time) resnet18dilated" >> inference_time.res
CUDA_VISIBLE_DEVICES="" python3 predict_img.py -d 0 -i teaser/car_detection_sample.png --cfg config/ade20k-resnet18dilated-ppm_deepsup.yaml >> inference_time.res
echo "(time) resnet50dilated-ppm" >> inference_time.res
CUDA_VISIBLE_DEVICES="" python3 predict_img.py -d 0 -i teaser/car_detection_sample.png --cfg config/ade20k-resnet50dilated-ppm_deepsup.yaml >> inference_time.res
echo "(time) resnet50dilated-upernet" >> inference_time.res
CUDA_VISIBLE_DEVICES="" python3 predict_img.py -d 0 -i teaser/car_detection_sample.png --cfg config/ade20k-resnet50-upernet.yaml >> inference_time.res