forked from jreisam/Unity-OpenPose-Edutable
-
Notifications
You must be signed in to change notification settings - Fork 0
/
testBinary.bat
37 lines (33 loc) · 937 Bytes
/
testBinary.bat
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
:: Avoid printing all the comments in the Windows cmd
@echo on
SET BINARY_ROOT=openpose-binary\
SET MODELS_FOLDER=models
SET GET_MODELS=.\getModels.bat
SET DEMO=.\bin\OPenPoseDemo.exe
SET ARGS=--video .\examples\media\video.avi
SET ARGS_LOWRES=%ARGS% --net_resolution -1x80
SET ARGS_CPU=%ARGS% --render_pose 1
echo ----- Entering binary root folder %BINARY_ROOT% -----
IF EXIST %BINARY_ROOT% (
echo Done
) ELSE (
echo No Binary folder exist, please run get_plugins.bat
pause
exit
)
cd %BINARY_ROOT%
echo:
echo ----- Getting models for openpose binary -----
cd %MODELS_FOLDER%
call %GET_MODELS%
cd ..
echo:
echo ----- Running OpenPose Demo in video mode -----
:: Different configuration, choose one according to your situation
:: With default parameters
%DEMO% %ARGS%
:: With low resolution (if your GPU has not enough memory)
::%DEMO% %ARGS_LOWRES%
:: With CPU mode (if your GPU has not enough memory)
::%DEMO% %ARGS_CPU%
echo: