Home
About
Blog
Products
Forum
Support
Contact
Sunbelt Computer Software
PL/B Language Development and Support
Home
About
Blog
Products
Forum
Support
Contact
openpose/scripts/CI/run_tests.sh at master · CMU-Perceptual-Computing-Lab/openpose · GitHub
Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Events
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
CMU-Perceptual-Computing-Lab
openpose
Repository navigation
Code
Issues
341
(341)
Pull requests
19
(19)
Actions
Projects
Security and quality
Insights
More
items
Files
Expand file tree
master
Breadcrumbs
openpose
/
scripts
/
CI
/
run_tests.sh
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
executable file
·
114 lines (89 loc) · 5.28 KB
master
Breadcrumbs
openpose
/
scripts
/
CI
/
run_tests.sh
Copy path
Top
File metadata and controls
Code
Blame
executable file
·
114 lines (89 loc) · 5.28 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
#!
/bin/bash
#
Test the project
BASEDIR=
$(
dirname
$0
)
source
$BASEDIR
/defaults.sh
#
Only for NAME="default-cmake-cpu" WITH_CUDA=false
if
[[
$RUN_EXAMPLES
==
true
]]
;
then
echo
"
Running demos and tutorials...
"
echo
"
"
echo
"
OpenPose demo...
"
./build/examples/openpose/openpose.bin --image_dir examples/media/ --net_resolution -1x32 --write_json output/ --write_images output/ --display 0
echo
"
"
echo
"
(Deprecated) Tutorial Add Module: Example 1...
"
./build/examples/deprecated/tutorial_add_module_custom_post_processing.bin --image_dir examples/media/ --net_resolution -1x32 --write_json output/ --write_images output/ --display 0
echo
"
"
#
# Note: Examples 1-2 require the whole OpenPose resolution (too much RAM memory) and the GUI
#
echo "Tutorial API C++: Examples 1-2..."
#
./build/examples/tutorial_api_cpp/01_body_from_image_default.bin
#
./build/examples/tutorial_api_cpp/02_whole_body_from_image_default.bin
#
echo " "
echo
"
Tutorial API C++: Example 3...
"
./build/examples/tutorial_api_cpp/03_keypoints_from_image.bin --net_resolution -1x32 --write_json output/ --write_images output/ --no_display
echo
"
"
echo
"
Tutorial API C++: Example 4...
"
./build/examples/tutorial_api_cpp/04_keypoints_from_images.bin --net_resolution -1x32 --write_json output/ --write_images output/ --no_display
echo
"
"
echo
"
Tutorial API C++: Example 5...
"
./build/examples/tutorial_api_cpp/05_keypoints_from_images_multi_gpu.bin --net_resolution -1x32 --write_json output/ --write_images output/ --no_display --latency_is_irrelevant_and_computer_with_lots_of_ram
#
Default configuration of this demo requires getGpuNumber(), which is not implement for CPU-only mode
#
./build/examples/tutorial_api_cpp/05_keypoints_from_images_multi_gpu.bin --net_resolution -1x32 --write_json output/ --write_images output/ --no_display
echo
"
"
echo
"
Tutorial API C++: Example 6...
"
./build/examples/tutorial_api_cpp/06_face_from_image.bin --face_net_resolution 32x32 --write_json output/ --write_images output/ --no_display
echo
"
"
echo
"
Tutorial API C++: Example 7...
"
./build/examples/tutorial_api_cpp/07_hand_from_image.bin --hand_net_resolution 32x32 --write_json output/ --write_images output/ --no_display
echo
"
"
echo
"
Tutorial API C++: Example 8...
"
./build/examples/tutorial_api_cpp/08_heatmaps_from_image.bin --net_resolution -1x32 --write_json output/ --write_images output/ --no_display
echo
"
"
echo
"
Tutorial API C++: Example 9...
"
./build/examples/tutorial_api_cpp/09_keypoints_from_heatmaps.bin --net_resolution -1x32 --write_json output/ --write_images output/ --no_display
echo
"
"
echo
"
Tutorial API C++: Example 10...
"
./build/examples/tutorial_api_cpp/10_asynchronous_custom_input.bin --image_dir examples/media/ --net_resolution -1x32 --write_json output/ --write_images output/ --display 0
echo
"
"
#
# Note: Example 11 would require 3D video and camera parameters
#
echo "Tutorial API C++: Example 11..."
#
./build/examples/tutorial_api_cpp/11_asynchronous_custom_input_multi_camera.bin
#
echo " "
echo
"
Tutorial API C++: Example 12...
"
./build/examples/tutorial_api_cpp/12_asynchronous_custom_output.bin --image_dir examples/media/ --net_resolution -1x32 --write_json output/ --write_images output/ --no_display
echo
"
"
echo
"
Tutorial API C++: Example 13...
"
./build/examples/tutorial_api_cpp/13_asynchronous_custom_input_output_and_datum.bin --image_dir examples/media/ --net_resolution -1x32 --write_json output/ --write_images output/ --no_display
echo
"
"
echo
"
Tutorial API C++: Example 14...
"
./build/examples/tutorial_api_cpp/14_synchronous_custom_input.bin --image_dir examples/media/ --net_resolution -1x32 --write_json output/ --write_images output/ --display 0
echo
"
"
echo
"
Tutorial API C++: Example 15...
"
./build/examples/tutorial_api_cpp/15_synchronous_custom_preprocessing.bin --image_dir examples/media/ --net_resolution -1x32 --write_json output/ --write_images output/ --display 0
echo
"
"
echo
"
Tutorial API C++: Example 16...
"
./build/examples/tutorial_api_cpp/16_synchronous_custom_postprocessing.bin --image_dir examples/media/ --net_resolution -1x32 --write_json output/ --write_images output/ --display 0
echo
"
"
echo
"
Tutorial API C++: Example 17...
"
./build/examples/tutorial_api_cpp/17_synchronous_custom_output.bin --image_dir examples/media/ --net_resolution -1x32 --write_json output/ --write_images output/ --no_display
echo
"
"
echo
"
Tutorial API C++: Example 18...
"
./build/examples/tutorial_api_cpp/18_synchronous_custom_all_and_datum.bin --image_dir examples/media/ --net_resolution -1x32 --write_json output/ --write_images output/ --no_display
echo
"
"
#
Python examples
if
[[
$WITH_PYTHON
==
true
]]
;
then
if
[[
$PYTHON3_VERSION
]]
;
then
PYTHON_COMMAND=python3
else
PYTHON_COMMAND=python
fi
echo
"
Tutorial API Python: OpenPose demo...
"
cd
build/examples/tutorial_api_python
${PYTHON_COMMAND}
openpose_python.py --image_dir ../../../examples/media/ --net_resolution -1x32 --write_json output/ --write_images output/ --display 0
echo
"
"
#
Note: All Python examples require GUI
fi
echo
"
Demos and tutorials successfully finished!
"
#
Disable examples for all other CI Build configurations
else
echo
"
Skipping tests for non CPU-only versions.
"
exit
0
fi
You can’t perform that action at this time.