forked from runhang/caffe-ssd-windows
-
Notifications
You must be signed in to change notification settings - Fork 56
/
detect.cmd
40 lines (38 loc) · 1.34 KB
/
detect.cmd
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
@echo off
@setlocal EnableDelayedExpansion
set detector=1
set confidence_threshold=0.5
set in_dir=data\VOC0712
if !detector! EQU 0 (
set wait_time=1000
scripts\build\examples\ssd\Release\ssd_detect models\VGGNet\VOC0712\SSD_300x300\deploy.prototxt ^
models\VGGNet\VOC0712\SSD_300x300\VGG_VOC0712_SSD_300x300_iter_120000.caffemodel ^
%in_dir% ^
-file_type image ^
-mean_value 104,117,123 ^
-confidence_threshold !confidence_threshold! ^
-wait_time !wait_time!
echo INFO: ============================================================
echo INFO: file_type : image
echo INFO: mean_value : 104,117,123
) else (
set wait_time=1000
scripts\build\examples\ssd\Release\ssd_detect models\MobileNet\MobileNetSSD_deploy.prototxt ^
models\MobileNet\MobileNetSSD_deploy.caffemodel ^
%in_dir% ^
-file_type image ^
-mean_value 0.5,0.5,0.5 ^
-normalize_value 0.007843 ^
-confidence_threshold !confidence_threshold! ^
-wait_time !wait_time!
echo INFO: ============================================================
echo INFO: file_type : image
echo INFO: mean_value : 0.5,0.5,0.5
echo INFO: normalize_value : 0.007843
)
echo INFO: input_folder : !in_dir!
echo INFO: confidence_threshold : !confidence_threshold!
echo INFO: wait_time : !wait_time!
echo INFO: ============================================================
popd
@endlocal