Spaces:
Build error
Build error
HansGan commited on
Commit ·
ea82a7d
1
Parent(s): 0e9f711
asd
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- .gitattributes +5 -0
- openpose/.github/CI_deprecated/.travis.yml +162 -0
- openpose/.github/CI_deprecated/Readme_Travis_badges_table_and_backup_instructions.md +13 -0
- openpose/.github/CI_deprecated/generate_gh_pages.sh +104 -0
- openpose/.github/Logo_doxygen_black.png +3 -0
- openpose/.github/Logo_main_black.png +3 -0
- openpose/.github/issue_template.md +85 -0
- openpose/.github/media/body_heat_maps.png +3 -0
- openpose/.github/media/dance_foot.gif +3 -0
- openpose/.github/media/installation/cmake_im_1.png +3 -0
- openpose/.github/media/installation/cmake_im_1_windows.png +3 -0
- openpose/.github/media/installation/cmake_im_2.png +3 -0
- openpose/.github/media/installation/cmake_im_2_windows.png +3 -0
- openpose/.github/media/installation/cmake_im_2_windows_new.png +3 -0
- openpose/.github/media/installation/cmake_im_3.png +3 -0
- openpose/.github/media/installation/cmake_im_3_windows.png +3 -0
- openpose/.github/media/installation/cmake_im_5.png +3 -0
- openpose/.github/media/keypoints_face.png +3 -0
- openpose/.github/media/keypoints_hand.odt +0 -0
- openpose/.github/media/keypoints_hand.png +3 -0
- openpose/.github/media/keypoints_pose_18.png +3 -0
- openpose/.github/media/keypoints_pose_25.png +3 -0
- openpose/.github/media/openpose3d.gif +3 -0
- openpose/.github/media/openpose_vs_competition.png +3 -0
- openpose/.github/media/paf_heat_maps.png +3 -0
- openpose/.github/media/pose_face.gif +3 -0
- openpose/.github/media/pose_face_hands.gif +3 -0
- openpose/.github/media/pose_hands.gif +3 -0
- openpose/.github/media/shake.gif +3 -0
- openpose/.github/media/unity_body_foot.png +3 -0
- openpose/.github/media/unity_hand_face.png +3 -0
- openpose/.github/media/unity_main.png +3 -0
- openpose/.github/root_index.html +8 -0
- openpose/.github/stale.yml +17 -0
- openpose/.github/workflows/main.yml +291 -0
- openpose/.gitignore +139 -0
- openpose/.gitmodules +6 -0
- openpose/3rdparty/Versions.txt +38 -0
- openpose/3rdparty/windows/getCaffe.bat +22 -0
- openpose/3rdparty/windows/getCaffe3rdparty.bat +22 -0
- openpose/3rdparty/windows/getFreeglut.bat +22 -0
- openpose/3rdparty/windows/getOpenCV.bat +22 -0
- openpose/3rdparty/windows/getSpinnaker.bat +22 -0
- openpose/3rdparty/windows/wget/COPYING +674 -0
- openpose/3rdparty/windows/wget/Version_wget-1.20.3-win64.txt +2 -0
- openpose/3rdparty/windows/wget/wget.exe +3 -0
- openpose/3rdparty/windows/wget/wget.exe.debug +3 -0
- openpose/3rdparty/windows/wget/wget.html +0 -0
- openpose/CMakeLists.txt +1069 -0
- openpose/LICENSE +108 -0
.gitattributes
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
openpose/.github/media/pose_hands.gif filter=lfs diff=lfs merge=lfs -text
|
| 2 |
+
*.exe filter=lfs diff=lfs merge=lfs -text
|
| 3 |
+
*.gif filter=lfs diff=lfs merge=lfs -text
|
| 4 |
+
*.png filter=lfs diff=lfs merge=lfs -text
|
| 5 |
+
openpose/3rdparty/windows/wget/wget.exe.debug filter=lfs diff=lfs merge=lfs -text
|
openpose/.github/CI_deprecated/.travis.yml
ADDED
|
@@ -0,0 +1,162 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# # This will run on Travis' 'new' container-based infrastructure
|
| 2 |
+
|
| 3 |
+
# # Blacklist
|
| 4 |
+
# branches:
|
| 5 |
+
# only:
|
| 6 |
+
# - master
|
| 7 |
+
|
| 8 |
+
# # Environment variables + OS + other parameters
|
| 9 |
+
# global:
|
| 10 |
+
# - GH_REPO_NAME: openpose
|
| 11 |
+
# - DOXYFILE: $CI_BUILD_DIR/.doc_autogeneration.doxygen
|
| 12 |
+
# # Set this in Environment Variables on travis-ci.org
|
| 13 |
+
# # - GH_REPO_REF: github.com/<user_name>/openpose.git
|
| 14 |
+
# matrix:
|
| 15 |
+
# # Use a build matrix to test many builds in parallel
|
| 16 |
+
# # envvar defaults:
|
| 17 |
+
# # WITH_CMAKE: true
|
| 18 |
+
# # WITH_PYTHON: false
|
| 19 |
+
# # WITH_CUDA: true
|
| 20 |
+
# # WITH_CUDNN: true
|
| 21 |
+
# # WITH_OPEN_CL: false
|
| 22 |
+
# # WITH_MKL: false
|
| 23 |
+
# include:
|
| 24 |
+
# # Ubuntu 16.04
|
| 25 |
+
# # Ubuntu 16.04 - Default - CMake - CUDA
|
| 26 |
+
# - os: linux
|
| 27 |
+
# dist: xenial
|
| 28 |
+
# env: NAME="U16-default-cmake-cuda8"
|
| 29 |
+
# sudo: required
|
| 30 |
+
# # Ubuntu 16.04 - Python - CMake - CUDA
|
| 31 |
+
# - os: linux
|
| 32 |
+
# dist: xenial
|
| 33 |
+
# env: NAME="U16-python-cmake-cuda8" WITH_PYTHON=true
|
| 34 |
+
# sudo: required
|
| 35 |
+
# # Generate and deploy documentation
|
| 36 |
+
# after_success:
|
| 37 |
+
# - cd $CI_BUILD_DIR
|
| 38 |
+
# - chmod +x scripts/generate_gh_pages.sh
|
| 39 |
+
# - ./scripts/generate_gh_pages.sh
|
| 40 |
+
# # Ubuntu 16.04 - Python - CMake - CPU
|
| 41 |
+
# - os: linux
|
| 42 |
+
# dist: xenial
|
| 43 |
+
# env: NAME="U16-python-cmake-cpu" WITH_PYTHON=true WITH_CUDA=false
|
| 44 |
+
# sudo: required
|
| 45 |
+
# # Ubuntu 16.04 - Python - CMake - OpenCL
|
| 46 |
+
# - os: linux
|
| 47 |
+
# dist: xenial
|
| 48 |
+
# env: NAME="U16-python-cmake-opencl" WITH_PYTHON=true WITH_CUDA=false WITH_OPEN_CL=true
|
| 49 |
+
# sudo: required
|
| 50 |
+
# # Ubuntu 16.04 - Python - CMake - CPU - Debug
|
| 51 |
+
# - os: linux
|
| 52 |
+
# dist: xenial
|
| 53 |
+
# env: NAME="U16-python-cmake-cpu-debug" WITH_PYTHON=true WITH_CUDA=false WITH_DEBUG=true
|
| 54 |
+
# sudo: required
|
| 55 |
+
# # Ubuntu 16.04 - Python - CMake - CPU - Unity
|
| 56 |
+
# - os: linux
|
| 57 |
+
# dist: xenial
|
| 58 |
+
# env: NAME="U16-python-cmake-cpu-unity" WITH_PYTHON=true WITH_UNITY=true WITH_CUDA=false
|
| 59 |
+
# sudo: required
|
| 60 |
+
|
| 61 |
+
# # Mac OSX
|
| 62 |
+
# # Mac OSX - Python - CMake - CPU
|
| 63 |
+
# - os: osx
|
| 64 |
+
# osx_image: xcode9.4 # xcode10.1 does not work with Python # Versions: https://docs.travis-ci.com/user/languages/objective-c#supported-xcode-versions
|
| 65 |
+
# env: NAME="OSX-python-cmake-cpu" WITH_CUDA=false WITH_PYTHON=true
|
| 66 |
+
# sudo: required
|
| 67 |
+
# # Mac OSX - Python - CMake - OpenCL
|
| 68 |
+
# - os: osx
|
| 69 |
+
# osx_image: xcode10.1 # Versions: https://docs.travis-ci.com/user/languages/objective-c#supported-xcode-versions
|
| 70 |
+
# env: NAME="OSX-default-cmake-opencl" WITH_CUDA=false WITH_OPEN_CL=true
|
| 71 |
+
# sudo: required
|
| 72 |
+
# # Mac OSX - Python - CMake - CPU - Debug
|
| 73 |
+
# - os: osx
|
| 74 |
+
# osx_image: xcode9.4 # xcode10.1 does not work with Python # Versions: https://docs.travis-ci.com/user/languages/objective-c#supported-xcode-versions
|
| 75 |
+
# env: NAME="OSX-python-cmake-cpu-debug" WITH_CUDA=false WITH_PYTHON=true WITH_DEBUG=true
|
| 76 |
+
# sudo: required
|
| 77 |
+
# # Mac OSX - Python - CMake - CPU - Unity
|
| 78 |
+
# - os: osx
|
| 79 |
+
# osx_image: xcode9.4 # xcode10.1 does not work with Python # Versions: https://docs.travis-ci.com/user/languages/objective-c#supported-xcode-versions
|
| 80 |
+
# env: NAME="OSX-python-cmake-cpu-unity" WITH_CUDA=false WITH_PYTHON=true WITH_UNITY=true
|
| 81 |
+
# sudo: required
|
| 82 |
+
# # Mac OSX - Default - CMake - CPU
|
| 83 |
+
# - os: osx
|
| 84 |
+
# osx_image: xcode10.1 # Versions: https://docs.travis-ci.com/user/languages/objective-c#supported-xcode-versions
|
| 85 |
+
# env: NAME="OSX-default-cmake-cpu" WITH_CUDA=false
|
| 86 |
+
# sudo: required
|
| 87 |
+
|
| 88 |
+
# # # TO-DO: To be implemented
|
| 89 |
+
# # # Windows
|
| 90 |
+
# # # Windows - Default - CMake - CUDA
|
| 91 |
+
# # - os: windows
|
| 92 |
+
# # env: NAME="W10-default-cmake-cuda8"
|
| 93 |
+
|
| 94 |
+
# # Ubuntu (others)
|
| 95 |
+
# # Ubuntu 16.04 - Default - CMake - CPU
|
| 96 |
+
# - os: linux
|
| 97 |
+
# dist: xenial
|
| 98 |
+
# env: NAME="U16-default-cmake-cpu" WITH_CUDA=false
|
| 99 |
+
# sudo: required
|
| 100 |
+
# # Ubuntu 16.04 - Default - Make - CUDA
|
| 101 |
+
# - os: linux
|
| 102 |
+
# dist: xenial
|
| 103 |
+
# env: NAME="U16-default-make-cuda8" WITH_CMAKE=false
|
| 104 |
+
# sudo: required
|
| 105 |
+
# # # TO-DO: To be implemented
|
| 106 |
+
# # # Ubuntu 16.04 - Default - CMake - CPU MKL
|
| 107 |
+
# # - os: linux
|
| 108 |
+
# # dist: xenial
|
| 109 |
+
# # env: NAME="U16-default-cmake-cpu-mkl" WITH_CUDA=false WITH_MKL=true
|
| 110 |
+
# # sudo: required
|
| 111 |
+
# # # Ubuntu 16.04 - Python - CMake - OpenCL
|
| 112 |
+
# # - os: linux
|
| 113 |
+
# # dist: xenial
|
| 114 |
+
# # env: NAME="U16-python-cmake-opencl" WITH_PYTHON=true WITH_CUDA=false WITH_OPEN_CL=true
|
| 115 |
+
# # sudo: required
|
| 116 |
+
# # # Unnecessary/redundant ones
|
| 117 |
+
# # # Ubuntu 16.04 - Default - CMake - CUDA - no cuDNN
|
| 118 |
+
# # - os: linux
|
| 119 |
+
# # dist: xenial
|
| 120 |
+
# # env: NAME="U16-default-cmake-cuda8-nocudnn" WITH_CUDNN=false
|
| 121 |
+
# # sudo: required
|
| 122 |
+
# # Ubuntu 14.04 - Default - CMake - CPU
|
| 123 |
+
# - os: linux
|
| 124 |
+
# dist: trusty
|
| 125 |
+
# env: NAME="U14-default-cmake-cpu" WITH_CUDA=false
|
| 126 |
+
# sudo: required
|
| 127 |
+
# # Ubuntu 14.04 - Default - Make - CUDA
|
| 128 |
+
# - os: linux
|
| 129 |
+
# dist: trusty
|
| 130 |
+
# env: NAME="U14-default-make-cuda8" WITH_CMAKE=false
|
| 131 |
+
# sudo: required
|
| 132 |
+
# # # Unnecessary/redundant ones
|
| 133 |
+
# # # Ubuntu 14.04 - Default - CMake - CUDA
|
| 134 |
+
# # - os: linux
|
| 135 |
+
# # dist: trusty
|
| 136 |
+
# # env: NAME="U14-default-cmake-cuda8"
|
| 137 |
+
# # sudo: required
|
| 138 |
+
|
| 139 |
+
# # Install apt dependencies
|
| 140 |
+
# addons:
|
| 141 |
+
# apt:
|
| 142 |
+
# packages:
|
| 143 |
+
# - doxygen
|
| 144 |
+
# - doxygen-doc
|
| 145 |
+
# - doxygen-latex
|
| 146 |
+
# - doxygen-gui
|
| 147 |
+
# - graphviz
|
| 148 |
+
|
| 149 |
+
# # Install Caffe and OP dependencies
|
| 150 |
+
# install:
|
| 151 |
+
# - if [[ "$CI_OS_NAME" == "linux" ]]; then sudo bash scripts/CI/install_deps_ubuntu.sh ; fi
|
| 152 |
+
# - if [[ "$CI_OS_NAME" == "osx" ]]; then bash scripts/CI/install_deps_osx.sh ; fi
|
| 153 |
+
# - if [[ "$CI_OS_NAME" == "windows" ]]; then exit 99 ; fi
|
| 154 |
+
|
| 155 |
+
# # Running CMake
|
| 156 |
+
# before_script:
|
| 157 |
+
# - bash scripts/CI/configure.sh
|
| 158 |
+
|
| 159 |
+
# # Build your code e.g., by calling make
|
| 160 |
+
# script:
|
| 161 |
+
# - bash scripts/CI/run_make.sh
|
| 162 |
+
# - bash scripts/CI/run_tests.sh
|
openpose/.github/CI_deprecated/Readme_Travis_badges_table_and_backup_instructions.md
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
In order to recover Travis:
|
| 2 |
+
1. Uncomment all the lines of code in ".travis.yml" and move it back to the main folder (e.g., at the same level than the global README.md and CMakeLists.txt files).
|
| 3 |
+
2. Move `generate_gh_pages.sh` back to `scripts/generate_gh_pages.sh`.
|
| 4 |
+
3. Re-add the table of badges in the README.md:
|
| 5 |
+
|
| 6 |
+
| |`Default Config` |`CUDA (+Python)` |`CPU (+Python)` |`OpenCL (+Python)`| `Debug` | `Unity` |
|
| 7 |
+
| :---: | :---: | :---: | :---: | :---: | :---: | :---: |
|
| 8 |
+
| **`Linux`** | [](https://travis-ci.org/CMU-Perceptual-Computing-Lab/openpose) | [](https://travis-ci.org/CMU-Perceptual-Computing-Lab/openpose) | [](https://travis-ci.org/CMU-Perceptual-Computing-Lab/openpose) | [](https://travis-ci.org/CMU-Perceptual-Computing-Lab/openpose) | [](https://travis-ci.org/CMU-Perceptual-Computing-Lab/openpose) | [](https://travis-ci.org/CMU-Perceptual-Computing-Lab/openpose) |
|
| 9 |
+
| **`MacOS`** | [](https://travis-ci.org/CMU-Perceptual-Computing-Lab/openpose) | | [](https://travis-ci.org/CMU-Perceptual-Computing-Lab/openpose) | [](https://travis-ci.org/CMU-Perceptual-Computing-Lab/openpose) | [](https://travis-ci.org/CMU-Perceptual-Computing-Lab/openpose) | [](https://travis-ci.org/CMU-Perceptual-Computing-Lab/openpose) | [](https://travis-ci.org/CMU-Perceptual-Computing-Lab/openpose) |
|
| 10 |
+
| **`Windows`** | [](https://ci.appveyor.com/project/gineshidalgo99/openpose/branch/master) | | | | |
|
| 11 |
+
<!--
|
| 12 |
+
Note: Currently using [travis-matrix-badges](https://github.com/bjfish/travis-matrix-badges) vs. traditional [](https://travis-ci.org/CMU-Perceptual-Computing-Lab/openpose)
|
| 13 |
+
-->
|
openpose/.github/CI_deprecated/generate_gh_pages.sh
ADDED
|
@@ -0,0 +1,104 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/sh
|
| 2 |
+
################################################################################
|
| 3 |
+
# Title : generate_gh_pages.sh
|
| 4 |
+
# Date created : 2016/02/22
|
| 5 |
+
# Notes :
|
| 6 |
+
__AUTHOR__="openpose"
|
| 7 |
+
# Preconditions:
|
| 8 |
+
# - Packages doxygen doxygen-doc doxygen-latex doxygen-gui graphviz
|
| 9 |
+
# must be installed.
|
| 10 |
+
# - Doxygen configuration file must have the destination directory empty and
|
| 11 |
+
# source code directory with a $(CI_BUILD_DIR) prefix.
|
| 12 |
+
# - An gh-pages branch should already exist. See below for more info on how to
|
| 13 |
+
# create a gh-pages branch.
|
| 14 |
+
#
|
| 15 |
+
# Required global variables:
|
| 16 |
+
# - CI_BUILD_NUMBER : The number of the current build.
|
| 17 |
+
# - CI_COMMIT : The commit that the current build is testing.
|
| 18 |
+
# - DOXYFILE : The Doxygen configuration file.
|
| 19 |
+
# - GH_REPO_NAME : The name of the repository.
|
| 20 |
+
# - GH_REPO_REF : The GitHub reference to the repository.
|
| 21 |
+
# - GH_REPO_TOKEN : Secure token to the github repository.
|
| 22 |
+
#
|
| 23 |
+
# For information on how to encrypt variables for Travis CI please go to
|
| 24 |
+
# https://docs.travis-ci.com/user/environment-variables/#Encrypted-Variables
|
| 25 |
+
# or https://gist.github.com/vidavidorra/7ed6166a46c537d3cbd2
|
| 26 |
+
# For information on how to create a clean gh-pages branch from the master
|
| 27 |
+
# branch, please go to https://gist.github.com/vidavidorra/846a2fc7dd51f4fe56a0
|
| 28 |
+
#
|
| 29 |
+
# This script will generate Doxygen documentation and push the documentation to
|
| 30 |
+
# the gh-pages branch of a repository specified by GH_REPO_REF.
|
| 31 |
+
# Before this script is used there should already be a gh-pages branch in the
|
| 32 |
+
# repository.
|
| 33 |
+
#
|
| 34 |
+
################################################################################
|
| 35 |
+
|
| 36 |
+
################################################################################
|
| 37 |
+
##### Setup this script and get the current gh-pages branch. #####
|
| 38 |
+
echo 'Setting up the script...'
|
| 39 |
+
# Exit with nonzero exit code if anything fails
|
| 40 |
+
set -e
|
| 41 |
+
|
| 42 |
+
# Create a clean working directory for this script.
|
| 43 |
+
mkdir code_docs
|
| 44 |
+
cd code_docs
|
| 45 |
+
|
| 46 |
+
# Get the current gh-pages branch
|
| 47 |
+
git clone -b gh-pages https://git@$GH_REPO_REF
|
| 48 |
+
cd $GH_REPO_NAME
|
| 49 |
+
|
| 50 |
+
##### Configure git.
|
| 51 |
+
# Set the push default to simple i.e. push only the current branch.
|
| 52 |
+
git config --global push.default simple
|
| 53 |
+
# Pretend to be an user called Travis CI.
|
| 54 |
+
git config user.name "Travis CI"
|
| 55 |
+
git config user.email "travis@travis-ci.org"
|
| 56 |
+
|
| 57 |
+
# Remove everything currently in the gh-pages branch.
|
| 58 |
+
# GitHub is smart enough to know which files have changed and which files have
|
| 59 |
+
# stayed the same and will only update the changed files. So the gh-pages branch
|
| 60 |
+
# can be safely cleaned, and it is sure that everything pushed later is the new
|
| 61 |
+
# documentation.
|
| 62 |
+
rm -rf *
|
| 63 |
+
|
| 64 |
+
# Need to create a .nojekyll file to allow filenames starting with an underscore
|
| 65 |
+
# to be seen on the gh-pages site. Therefore creating an empty .nojekyll file.
|
| 66 |
+
# Presumably this is only needed when the SHORT_NAMES option in Doxygen is set
|
| 67 |
+
# to NO, which it is by default. So creating the file just in case.
|
| 68 |
+
echo "" > .nojekyll
|
| 69 |
+
|
| 70 |
+
################################################################################
|
| 71 |
+
##### Generate the Doxygen code documentation and log the output. #####
|
| 72 |
+
echo 'Generating Doxygen code documentation...'
|
| 73 |
+
# Redirect both stderr and stdout to the log file AND the console.
|
| 74 |
+
echo "OUTPUT_DIRECTORY = " >> $DOXYFILE
|
| 75 |
+
doxygen $DOXYFILE 2>&1 | tee doxygen.log
|
| 76 |
+
|
| 77 |
+
################################################################################
|
| 78 |
+
##### Upload the documentation to the gh-pages branch of the repository. #####
|
| 79 |
+
# Only upload if Doxygen successfully created the documentation.
|
| 80 |
+
# Check this by verifying that the html directory and the file html/index.html
|
| 81 |
+
# both exist. This is a good indication that Doxygen did it's work.
|
| 82 |
+
if [ -d "html" ] && [ -f "html/index.html" ]; then
|
| 83 |
+
|
| 84 |
+
echo 'Uploading documentation to the gh-pages branch...'
|
| 85 |
+
# Add everything in this directory (the Doxygen code documentation) to the
|
| 86 |
+
# gh-pages branch.
|
| 87 |
+
# GitHub is smart enough to know which files have changed and which files have
|
| 88 |
+
# stayed the same and will only update the changed files.
|
| 89 |
+
git add --all
|
| 90 |
+
|
| 91 |
+
# Commit the added files with a title and description containing the Travis CI
|
| 92 |
+
# build number and the GitHub commit reference that issued this build.
|
| 93 |
+
git commit -m "Deploy code docs to GitHub Pages Travis build: ${CI_BUILD_NUMBER}" -m "Commit: ${CI_COMMIT}"
|
| 94 |
+
|
| 95 |
+
# Force push to the remote gh-pages branch.
|
| 96 |
+
# The output is redirected to /dev/null to hide any sensitive credential data
|
| 97 |
+
# that might otherwise be exposed.
|
| 98 |
+
git push --force "https://${GH_REPO_TOKEN}@${GH_REPO_REF}" > /dev/null 2>&1
|
| 99 |
+
else
|
| 100 |
+
echo '' >&2
|
| 101 |
+
echo 'Warning: No documentation (html) files have been found!' >&2
|
| 102 |
+
echo 'Warning: Not going to push the documentation to GitHub!' >&2
|
| 103 |
+
exit 1
|
| 104 |
+
fi
|
openpose/.github/Logo_doxygen_black.png
ADDED
|
Git LFS Details
|
openpose/.github/Logo_main_black.png
ADDED
|
Git LFS Details
|
openpose/.github/issue_template.md
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
### Posting rules
|
| 2 |
+
1. **No duplicated posts, only 1 new post opened a day, and up to 2 opened a week**. Otherwise, extrict user bans will occur.
|
| 3 |
+
- Check the [FAQ](https://github.com/CMU-Perceptual-Computing-Lab/openpose/blob/master/doc/05_faq.md) section, other GitHub issues, and general documentation before posting. E.g., **low-speed, out-of-memory, output format, 0-people detected, installation issues, ...**).
|
| 4 |
+
- Keep posting all your issues in the same post.
|
| 5 |
+
- No bans if you are unsure whether the post is duplicated!
|
| 6 |
+
2. **Fill all** the **Your System Configuration section** if you are facing an error or unexpected behavior. Some posts (e.g., feature requests) might not require it.
|
| 7 |
+
3. **No questions about training or 3rd party libraries**:
|
| 8 |
+
- OpenPose only implements testing. For training, check [OpenPose train](https://github.com/CMU-Perceptual-Computing-Lab/openpose_train).
|
| 9 |
+
- Caffe errors/issues: Check [Caffe](http://caffe.berkeleyvision.org) documentation.
|
| 10 |
+
- CUDA/cuDNN check failed errors: They are usually fixed by re-installing CUDA, then re-installing the proper cuDNN version, then rebooting, and then re-installing OpenPose. Otherwise, check Nvidia/CUDA/cuDNN forums.
|
| 11 |
+
- OpenCV errors: Install the default/pre-compiled OpenCV or check for OpenCV online help.
|
| 12 |
+
4. Set a **proper issue title**: Add the OS (Ubuntu, Windows) and be specific (e.g., do not call it: `Error`).
|
| 13 |
+
5. Only English comments.
|
| 14 |
+
6. Remove these posting rules from your post but follow them!
|
| 15 |
+
Posts which do not follow these rules will be **ignored/deleted** and those **users banned** with no further clarification.
|
| 16 |
+
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+
### Issue Summary
|
| 20 |
+
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
### Executed Command (if any)
|
| 24 |
+
Note: add `--logging_level 0 --disable_multi_thread` to get higher debug information.
|
| 25 |
+
|
| 26 |
+
|
| 27 |
+
|
| 28 |
+
### OpenPose Output (if any)
|
| 29 |
+
|
| 30 |
+
|
| 31 |
+
|
| 32 |
+
### Errors (if any)
|
| 33 |
+
|
| 34 |
+
|
| 35 |
+
|
| 36 |
+
### Type of Issue
|
| 37 |
+
Select the topic(s) on your post, delete the rest:
|
| 38 |
+
- Compilation/installation error
|
| 39 |
+
- Execution error
|
| 40 |
+
- Help wanted
|
| 41 |
+
- Question
|
| 42 |
+
- Enhancement / offering possible extensions / pull request / etc
|
| 43 |
+
- Other (type your own type)
|
| 44 |
+
|
| 45 |
+
|
| 46 |
+
|
| 47 |
+
### Your System Configuration
|
| 48 |
+
1. **Whole console output** (if errors appeared), paste the error to [PasteBin](https://pastebin.com/) and then paste the link here: LINK
|
| 49 |
+
|
| 50 |
+
2. **OpenPose version**: Latest GitHub code? Or specific commit (e.g., d52878f)? Or specific version from `Release` section (e.g., 1.2.0)?
|
| 51 |
+
|
| 52 |
+
3. **General configuration**:
|
| 53 |
+
- **Installation mode**: CMake, sh script, manual Makefile installation, ... (Ubuntu); CMake, ... (Windows); ...?
|
| 54 |
+
- **Operating system** (`lsb_release -a` in Ubuntu):
|
| 55 |
+
- **Operating system version** (e.g., Ubuntu 16, Windows 10, ...):
|
| 56 |
+
- **Release or Debug mode**? (by default: release):
|
| 57 |
+
- Compiler (`gcc --version` in Ubuntu or VS version in Windows): 5.4.0, ... (Ubuntu); VS2015 Enterprise Update 3, VS2017 community, ... (Windows); ...?
|
| 58 |
+
|
| 59 |
+
4. **Non-default settings**:
|
| 60 |
+
- **3-D Reconstruction module added**? (by default: no):
|
| 61 |
+
- Any other custom CMake configuration with respect to the default version? (by default: no):
|
| 62 |
+
|
| 63 |
+
5. **3rd-party software**:
|
| 64 |
+
- **Caffe version**: Default from OpenPose, custom version, ...?
|
| 65 |
+
- **CMake version** (`cmake --version` in Ubuntu):
|
| 66 |
+
- **OpenCV version**: pre-compiled `apt-get install libopencv-dev` (only Ubuntu); OpenPose default (only Windows); compiled from source? If so, 2.4.9, 2.4.12, 3.1, 3.2?; ...?
|
| 67 |
+
|
| 68 |
+
6. If **GPU mode** issue:
|
| 69 |
+
- **CUDA version** (`cat /usr/local/cuda/version.txt` in most cases):
|
| 70 |
+
- **cuDNN version**:
|
| 71 |
+
- **GPU model** (`nvidia-smi` in Ubuntu):
|
| 72 |
+
|
| 73 |
+
7. If **CPU-only mode** issue:
|
| 74 |
+
- **CPU brand & model**:
|
| 75 |
+
- Total **RAM memory** available:
|
| 76 |
+
|
| 77 |
+
8. If **Python** API:
|
| 78 |
+
- **Python version**: 2.7, 3.7, ...?
|
| 79 |
+
- **Numpy version** (`python -c "import numpy; print numpy.version.version"` in Ubuntu):
|
| 80 |
+
|
| 81 |
+
9. If **Windows** system:
|
| 82 |
+
- Portable demo or compiled library?
|
| 83 |
+
|
| 84 |
+
10. If **speed performance** issue:
|
| 85 |
+
- Report OpenPose timing speed based on the [profiling documentation](https://github.com/CMU-Perceptual-Computing-Lab/openpose/blob/master/doc/06_maximizing_openpose_speed.md#profiling-speed).
|
openpose/.github/media/body_heat_maps.png
ADDED
|
Git LFS Details
|
openpose/.github/media/dance_foot.gif
ADDED
|
Git LFS Details
|
openpose/.github/media/installation/cmake_im_1.png
ADDED
|
Git LFS Details
|
openpose/.github/media/installation/cmake_im_1_windows.png
ADDED
|
Git LFS Details
|
openpose/.github/media/installation/cmake_im_2.png
ADDED
|
Git LFS Details
|
openpose/.github/media/installation/cmake_im_2_windows.png
ADDED
|
Git LFS Details
|
openpose/.github/media/installation/cmake_im_2_windows_new.png
ADDED
|
Git LFS Details
|
openpose/.github/media/installation/cmake_im_3.png
ADDED
|
Git LFS Details
|
openpose/.github/media/installation/cmake_im_3_windows.png
ADDED
|
Git LFS Details
|
openpose/.github/media/installation/cmake_im_5.png
ADDED
|
Git LFS Details
|
openpose/.github/media/keypoints_face.png
ADDED
|
Git LFS Details
|
openpose/.github/media/keypoints_hand.odt
ADDED
|
Binary file (137 kB). View file
|
|
|
openpose/.github/media/keypoints_hand.png
ADDED
|
Git LFS Details
|
openpose/.github/media/keypoints_pose_18.png
ADDED
|
Git LFS Details
|
openpose/.github/media/keypoints_pose_25.png
ADDED
|
Git LFS Details
|
openpose/.github/media/openpose3d.gif
ADDED
|
Git LFS Details
|
openpose/.github/media/openpose_vs_competition.png
ADDED
|
Git LFS Details
|
openpose/.github/media/paf_heat_maps.png
ADDED
|
Git LFS Details
|
openpose/.github/media/pose_face.gif
ADDED
|
Git LFS Details
|
openpose/.github/media/pose_face_hands.gif
ADDED
|
Git LFS Details
|
openpose/.github/media/pose_hands.gif
ADDED
|
Git LFS Details
|
openpose/.github/media/shake.gif
ADDED
|
Git LFS Details
|
openpose/.github/media/unity_body_foot.png
ADDED
|
Git LFS Details
|
openpose/.github/media/unity_hand_face.png
ADDED
|
Git LFS Details
|
openpose/.github/media/unity_main.png
ADDED
|
Git LFS Details
|
openpose/.github/root_index.html
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html>
|
| 3 |
+
<head>
|
| 4 |
+
<meta http-equiv = "refresh" content = "0; url = web/html/doc/index.html" />
|
| 5 |
+
</head>
|
| 6 |
+
<body>
|
| 7 |
+
</body>
|
| 8 |
+
</html>
|
openpose/.github/stale.yml
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Number of days of inactivity before an issue becomes stale
|
| 2 |
+
daysUntilStale: 60
|
| 3 |
+
# Number of days of inactivity before a stale issue is closed
|
| 4 |
+
daysUntilClose: 7
|
| 5 |
+
# Issues with these labels will never be considered stale
|
| 6 |
+
exemptLabels:
|
| 7 |
+
- bug/typo
|
| 8 |
+
- enhancement
|
| 9 |
+
# Label to use when marking an issue as stale
|
| 10 |
+
staleLabel: stale/old
|
| 11 |
+
# Comment to post when marking an issue as stale. Set to `false` to disable
|
| 12 |
+
markComment: >
|
| 13 |
+
This issue has been automatically marked as stale because it has not had
|
| 14 |
+
recent activity. It will be closed if no further activity occurs. Thank you
|
| 15 |
+
for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YTHON3_VERSION: python3.8
|
| 10 |
+
|
| 11 |
+
jobs:
|
| 12 |
+
build:
|
| 13 |
+
name: ${{ matrix.env.NAME }}
|
| 14 |
+
runs-on: ${{ matrix.os }}
|
| 15 |
+
env: ${{ matrix.env }}
|
| 16 |
+
strategy:
|
| 17 |
+
fail-fast: false
|
| 18 |
+
matrix:
|
| 19 |
+
include:
|
| 20 |
+
# Ubuntu
|
| 21 |
+
# Ubuntu 20.04 - Default - CMake - CUDA
|
| 22 |
+
- os: ubuntu-20.04
|
| 23 |
+
os_name: linux
|
| 24 |
+
env:
|
| 25 |
+
NAME: U20-default-cmake-cuda
|
| 26 |
+
WITH_CUDNN: false
|
| 27 |
+
CI_OS_NAME: linux
|
| 28 |
+
# Ubuntu 18.04 - Default - CMake - CUDA
|
| 29 |
+
- os: ubuntu-18.04
|
| 30 |
+
os_name: linux
|
| 31 |
+
env:
|
| 32 |
+
NAME: U18-default-cmake-cuda
|
| 33 |
+
WITH_CUDNN: false
|
| 34 |
+
CI_OS_NAME: linux
|
| 35 |
+
# Ubuntu 20.04 - Python - CMake - CUDA
|
| 36 |
+
- os: ubuntu-20.04
|
| 37 |
+
os_name: linux
|
| 38 |
+
env:
|
| 39 |
+
NAME: U20-python-cmake-cuda
|
| 40 |
+
WITH_CUDNN: false
|
| 41 |
+
WITH_PYTHON: true
|
| 42 |
+
CI_OS_NAME: linux
|
| 43 |
+
CI_BUILD_NUMBER: ${{ github.run_number }}
|
| 44 |
+
CI_COMMIT: ${{ github.sha }}
|
| 45 |
+
DOCS: true
|
| 46 |
+
# Ubuntu 18.04 - Python - CMake - CUDA
|
| 47 |
+
- os: ubuntu-18.04
|
| 48 |
+
os_name: linux
|
| 49 |
+
env:
|
| 50 |
+
NAME: U18-python-cmake-cuda
|
| 51 |
+
WITH_CUDNN: false
|
| 52 |
+
WITH_PYTHON: true
|
| 53 |
+
CI_OS_NAME: linux
|
| 54 |
+
# Ubuntu 20.04 - Python - CMake - CPU
|
| 55 |
+
- os: ubuntu-20.04
|
| 56 |
+
os_name: linux
|
| 57 |
+
env:
|
| 58 |
+
NAME: U20-python-cmake-cpu
|
| 59 |
+
WITH_PYTHON: true
|
| 60 |
+
WITH_CUDA: false
|
| 61 |
+
WITH_CUDNN: false
|
| 62 |
+
CI_OS_NAME: linux
|
| 63 |
+
# Ubuntu 18.04 - Python - CMake - CPU
|
| 64 |
+
- os: ubuntu-18.04
|
| 65 |
+
os_name: linux
|
| 66 |
+
env:
|
| 67 |
+
NAME: U18-python-cmake-cpu
|
| 68 |
+
WITH_PYTHON: true
|
| 69 |
+
WITH_CUDA: false
|
| 70 |
+
WITH_CUDNN: false
|
| 71 |
+
CI_OS_NAME: linux
|
| 72 |
+
# TO-DO (not passing)
|
| 73 |
+
# # Ubuntu 20.04 - Python - CMake - OpenCL
|
| 74 |
+
# - os: ubuntu-20.04
|
| 75 |
+
# os_name: linux
|
| 76 |
+
# env:
|
| 77 |
+
# NAME: U20-python-cmake-opencl
|
| 78 |
+
# WITH_PYTHON: true
|
| 79 |
+
# WITH_CUDA: false
|
| 80 |
+
# WITH_CUDNN: false
|
| 81 |
+
# WITH_OPEN_CL: true
|
| 82 |
+
# CI_OS_NAME: linux
|
| 83 |
+
# Ubuntu 18.04 - Python - CMake - OpenCL
|
| 84 |
+
- os: ubuntu-18.04
|
| 85 |
+
os_name: linux
|
| 86 |
+
env:
|
| 87 |
+
NAME: U18-python-cmake-opencl
|
| 88 |
+
WITH_PYTHON: true
|
| 89 |
+
WITH_CUDA: false
|
| 90 |
+
WITH_CUDNN: false
|
| 91 |
+
WITH_OPEN_CL: true
|
| 92 |
+
CI_OS_NAME: linux
|
| 93 |
+
# Ubuntu 20.04 - Python - CMake - CPU - Debug
|
| 94 |
+
- os: ubuntu-20.04
|
| 95 |
+
os_name: linux
|
| 96 |
+
env:
|
| 97 |
+
NAME: U20-python-cmake-cpu-debug
|
| 98 |
+
WITH_PYTHON: true
|
| 99 |
+
WITH_CUDA: false
|
| 100 |
+
WITH_CUDNN: false
|
| 101 |
+
WITH_DEBUG: true
|
| 102 |
+
CI_OS_NAME: linux
|
| 103 |
+
# Ubuntu 18.04 - Python - CMake - CPU - Debug
|
| 104 |
+
- os: ubuntu-18.04
|
| 105 |
+
os_name: linux
|
| 106 |
+
env:
|
| 107 |
+
NAME: U18-python-cmake-cpu-debug
|
| 108 |
+
WITH_PYTHON: true
|
| 109 |
+
WITH_CUDA: false
|
| 110 |
+
WITH_CUDNN: false
|
| 111 |
+
WITH_DEBUG: true
|
| 112 |
+
CI_OS_NAME: linux
|
| 113 |
+
# Ubuntu 20.04 - Python - CMake - CPU - Unity
|
| 114 |
+
- os: ubuntu-20.04
|
| 115 |
+
os_name: linux
|
| 116 |
+
env:
|
| 117 |
+
NAME: U20-python-cmake-cpu-unity
|
| 118 |
+
WITH_PYTHON: true
|
| 119 |
+
WITH_UNITY: true
|
| 120 |
+
WITH_CUDA: false
|
| 121 |
+
WITH_CUDNN: false
|
| 122 |
+
CI_OS_NAME: linux
|
| 123 |
+
# Ubuntu 20.04 - Default - CMake - CPU
|
| 124 |
+
- os: ubuntu-20.04
|
| 125 |
+
os_name: linux
|
| 126 |
+
env:
|
| 127 |
+
NAME: U20-default-cmake-cpu
|
| 128 |
+
WITH_CUDA: false
|
| 129 |
+
WITH_CUDNN: false
|
| 130 |
+
CI_OS_NAME: linux
|
| 131 |
+
|
| 132 |
+
# Mac OSX
|
| 133 |
+
# Mac OSX - Python - CMake - CPU
|
| 134 |
+
- os: macos-10.15
|
| 135 |
+
os_name: osx
|
| 136 |
+
env:
|
| 137 |
+
NAME: OSX-python-cmake-cpu
|
| 138 |
+
WITH_CUDA: false
|
| 139 |
+
WITH_CUDNN: false
|
| 140 |
+
WITH_PYTHON: true
|
| 141 |
+
CI_OS_NAME: osx
|
| 142 |
+
# Mac OSX - Python - CMake - OpenCL
|
| 143 |
+
- os: macos-10.15
|
| 144 |
+
os_name: osx
|
| 145 |
+
env:
|
| 146 |
+
NAME: OSX-default-cmake-opencl
|
| 147 |
+
WITH_CUDA: false
|
| 148 |
+
WITH_CUDNN: false
|
| 149 |
+
WITH_OPEN_CL: true
|
| 150 |
+
CI_OS_NAME: osx
|
| 151 |
+
# Mac OSX - Python - CMake - CPU - Debug
|
| 152 |
+
- os: macos-10.15
|
| 153 |
+
os_name: osx
|
| 154 |
+
env:
|
| 155 |
+
NAME: OSX-python-cmake-cpu-debug
|
| 156 |
+
WITH_CUDA: false
|
| 157 |
+
WITH_CUDNN: false
|
| 158 |
+
WITH_PYTHON: true
|
| 159 |
+
WITH_DEBUG: true
|
| 160 |
+
CI_OS_NAME: osx
|
| 161 |
+
# Mac OSX - Python - CMake - CPU - Unity
|
| 162 |
+
- os: macos-10.15
|
| 163 |
+
os_name: osx
|
| 164 |
+
env:
|
| 165 |
+
NAME: OSX-python-cmake-cpu-unity
|
| 166 |
+
WITH_CUDA: false
|
| 167 |
+
WITH_CUDNN: false
|
| 168 |
+
WITH_PYTHON: true
|
| 169 |
+
WITH_UNITY: true
|
| 170 |
+
CI_OS_NAME: osx
|
| 171 |
+
# Mac OSX - Default - CMake - CPU
|
| 172 |
+
- os: macos-10.15
|
| 173 |
+
os_name: osx
|
| 174 |
+
env:
|
| 175 |
+
NAME: OSX-default-cmake-cpu
|
| 176 |
+
WITH_CUDA: false
|
| 177 |
+
WITH_CUDNN: false
|
| 178 |
+
CI_OS_NAME: osx
|
| 179 |
+
|
| 180 |
+
# TO-DO (not passing)
|
| 181 |
+
# Note: CUDA jobs fail in U16 because of an issue with GCC 5.5 (https://github.com/NVIDIA/apex/issues/529). GH Actions doesn't support
|
| 182 |
+
# GCC 5.4 and CUDA does not support newer than GCC 5.X. Thus, cuDNN (sh file only for Ubuntu 16) is no longer tested.
|
| 183 |
+
# # Ubuntu 16.04
|
| 184 |
+
# # Ubuntu 16.04 - Default - CMake - CUDA
|
| 185 |
+
# - os: ubuntu-16.04
|
| 186 |
+
# os_name: linux
|
| 187 |
+
# env:
|
| 188 |
+
# NAME: U16-default-cmake-cuda8
|
| 189 |
+
# CI_OS_NAME: linux
|
| 190 |
+
|
| 191 |
+
# # Deprecated (not working for the above issue between CUDA and the Ubuntu16 from GitHub Actions)
|
| 192 |
+
# # Ubuntu 16.04 - Default - Make - CUDA
|
| 193 |
+
# - os: ubuntu-16.04
|
| 194 |
+
# os_name: linux
|
| 195 |
+
# env:
|
| 196 |
+
# NAME: U16-default-make-cuda
|
| 197 |
+
# WITH_CUDNN: false
|
| 198 |
+
# WITH_CMAKE: false
|
| 199 |
+
# CI_OS_NAME: linux
|
| 200 |
+
|
| 201 |
+
# Ubuntu 16 no longer works
|
| 202 |
+
# # Ubuntu 16.04 - Python - CMake - CPU
|
| 203 |
+
# - os: ubuntu-16.04
|
| 204 |
+
# os_name: linux
|
| 205 |
+
# env:
|
| 206 |
+
# NAME: U16-python-cmake-cpu
|
| 207 |
+
# WITH_PYTHON: true
|
| 208 |
+
# WITH_CUDA: false
|
| 209 |
+
# WITH_CUDNN: false
|
| 210 |
+
# CI_OS_NAME: linux
|
| 211 |
+
# # Ubuntu 16.04 - Python - CMake - OpenCL
|
| 212 |
+
# - os: ubuntu-16.04
|
| 213 |
+
# os_name: linux
|
| 214 |
+
# env:
|
| 215 |
+
# NAME: U16-python-cmake-opencl
|
| 216 |
+
# WITH_PYTHON: true
|
| 217 |
+
# WITH_CUDA: false
|
| 218 |
+
# WITH_CUDNN: false
|
| 219 |
+
# WITH_OPEN_CL: true
|
| 220 |
+
# CI_OS_NAME: linux
|
| 221 |
+
# # Ubuntu 16.04 - Python - CMake - CPU - Debug
|
| 222 |
+
# - os: ubuntu-16.04
|
| 223 |
+
# os_name: linux
|
| 224 |
+
# env:
|
| 225 |
+
# NAME: U16-python-cmake-cpu-debug
|
| 226 |
+
# WITH_PYTHON: true
|
| 227 |
+
# WITH_CUDA: false
|
| 228 |
+
# WITH_CUDNN: false
|
| 229 |
+
# WITH_DEBUG: true
|
| 230 |
+
# CI_OS_NAME: linux
|
| 231 |
+
|
| 232 |
+
steps:
|
| 233 |
+
- uses: actions/checkout@v2
|
| 234 |
+
with:
|
| 235 |
+
fetch-depth: 0
|
| 236 |
+
submodules: recursive
|
| 237 |
+
- uses: actions/setup-python@v5
|
| 238 |
+
with:
|
| 239 |
+
python-version: 3.8
|
| 240 |
+
if: ${{ matrix.env.WITH_PYTHON }}
|
| 241 |
+
- name: Install (Linux)
|
| 242 |
+
run: scripts/CI/install_deps_ubuntu.sh
|
| 243 |
+
if: ${{ matrix.os_name == 'linux' }}
|
| 244 |
+
- name: Install (Mac OS)
|
| 245 |
+
run: scripts/CI/install_deps_osx.sh
|
| 246 |
+
if: ${{ matrix.os_name == 'osx' }}
|
| 247 |
+
|
| 248 |
+
- name: Configure
|
| 249 |
+
run: scripts/CI/configure.sh
|
| 250 |
+
- name: Make
|
| 251 |
+
run: scripts/CI/run_make.sh
|
| 252 |
+
- name: Tests
|
| 253 |
+
run: scripts/CI/run_tests.sh
|
| 254 |
+
|
| 255 |
+
- name: Docs APT packages
|
| 256 |
+
run: |
|
| 257 |
+
# The Doxygen apt-get version for Ubuntu 20 is 1.8.17, which has some bugs fixed in 1.9.1
|
| 258 |
+
# run: sudo apt-get -yq install doxygen doxygen-doc doxygen-latex doxygen-gui graphviz
|
| 259 |
+
git clone https://github.com/doxygen/doxygen.git && cd doxygen && git checkout Release_1_9_1
|
| 260 |
+
mkdir build && cd build
|
| 261 |
+
cmake -G "Unix Makefiles" ..
|
| 262 |
+
make -j`nproc`
|
| 263 |
+
sudo make install
|
| 264 |
+
if: ${{ matrix.DOCS }}
|
| 265 |
+
- name: Generate docs
|
| 266 |
+
run: |
|
| 267 |
+
cd ${{ github.workspace }}
|
| 268 |
+
echo 'Generating Doxygen code documentation...'
|
| 269 |
+
doxygen $DOXYFILE 2>&1 | tee doxygen.log
|
| 270 |
+
# Required so Doxygen links/finds the license file
|
| 271 |
+
cp LICENSE doxygen/html/LICENSE
|
| 272 |
+
# Required in order to link .github/media/ images with doc without modifying doc links. Remove if using `publish_dir: doxygen/html/`
|
| 273 |
+
mkdir -p doxygen_final/web/html/ && mv doxygen/html doxygen_final/web/html/doc
|
| 274 |
+
mkdir -p doxygen_final/web/.github/media/ && cp -rf .github/media/ doxygen_final/web/.github/
|
| 275 |
+
mkdir -p doxygen_final/web/html/.github/media/ && cp -rf .github/media/ doxygen_final/web/html/.github/
|
| 276 |
+
mkdir -p doxygen_final/web/html/doc/.github/media/ && cp -rf .github/media/ doxygen_final/web/html/doc/.github/
|
| 277 |
+
echo 'Copying log...'
|
| 278 |
+
cp doxygen.log doxygen_final/doxygen.log
|
| 279 |
+
echo 'Copying index.html to root pointing to actual docs'
|
| 280 |
+
cp .github/root_index.html doxygen_final/index.html
|
| 281 |
+
if: ${{ matrix.DOCS }}
|
| 282 |
+
- name: Deploy Docs
|
| 283 |
+
uses: peaceiris/actions-gh-pages@v3
|
| 284 |
+
with:
|
| 285 |
+
github_token: ${{ secrets.GITHUB_TOKEN }}
|
| 286 |
+
publish_dir: doxygen_final/
|
| 287 |
+
# publish_dir: doxygen/html/ # Original one, it would turn [...].github.io/openpose/web/html/doc/ into [...].github.io/openpose/, but images would not work
|
| 288 |
+
destination_dir: .
|
| 289 |
+
enable_jekyll: false
|
| 290 |
+
force_orphan: true
|
| 291 |
+
if: ${{ matrix.DOCS && github.event_name == 'push' && github.ref == 'refs/heads/master' }}
|
openpose/.gitignore
ADDED
|
@@ -0,0 +1,139 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
######################### Binary Files #########################
|
| 2 |
+
# Compiled Object files
|
| 3 |
+
*.slo
|
| 4 |
+
*.lo
|
| 5 |
+
*.o
|
| 6 |
+
*.cuo
|
| 7 |
+
|
| 8 |
+
# Compiled Dynamic libraries
|
| 9 |
+
*.so*
|
| 10 |
+
*.dylib
|
| 11 |
+
|
| 12 |
+
# Compiled Static libraries
|
| 13 |
+
*.lai
|
| 14 |
+
*.la
|
| 15 |
+
*.a
|
| 16 |
+
|
| 17 |
+
# Compiled protocol buffers
|
| 18 |
+
*.pb.h
|
| 19 |
+
*.pb.cc
|
| 20 |
+
*_pb2.py
|
| 21 |
+
|
| 22 |
+
# Compiled python
|
| 23 |
+
*.pyc
|
| 24 |
+
|
| 25 |
+
# Compiled MATLAB
|
| 26 |
+
*.mex*
|
| 27 |
+
|
| 28 |
+
# IPython notebook checkpoints
|
| 29 |
+
.ipynb_checkpoints
|
| 30 |
+
|
| 31 |
+
# LevelDB files
|
| 32 |
+
*.sst
|
| 33 |
+
*.ldb
|
| 34 |
+
LOCK
|
| 35 |
+
CURRENT
|
| 36 |
+
MANIFEST-*
|
| 37 |
+
|
| 38 |
+
######################### IDEs Files #########################
|
| 39 |
+
# Editor temporaries
|
| 40 |
+
*.swp
|
| 41 |
+
*~
|
| 42 |
+
|
| 43 |
+
# Sublime Text settings
|
| 44 |
+
*.sublime-workspace
|
| 45 |
+
*.sublime-project
|
| 46 |
+
|
| 47 |
+
# Eclipse Project settings
|
| 48 |
+
*.*project
|
| 49 |
+
.settings
|
| 50 |
+
|
| 51 |
+
# QtCreator files
|
| 52 |
+
*.user
|
| 53 |
+
|
| 54 |
+
# PyCharm files
|
| 55 |
+
.idea
|
| 56 |
+
|
| 57 |
+
# OSX dir files
|
| 58 |
+
.DS_Store
|
| 59 |
+
._.DS_Store
|
| 60 |
+
|
| 61 |
+
# Vim files
|
| 62 |
+
cscope.*
|
| 63 |
+
tags
|
| 64 |
+
.clang_complete
|
| 65 |
+
.vim
|
| 66 |
+
|
| 67 |
+
######################### Windows (Visual Studio) Files #########################
|
| 68 |
+
*.db
|
| 69 |
+
*.deps
|
| 70 |
+
*.obj
|
| 71 |
+
*.opendb
|
| 72 |
+
*.pdb
|
| 73 |
+
|
| 74 |
+
######################### Windows (Visual Studio) Folders and Compressed files #########################
|
| 75 |
+
*.vs/
|
| 76 |
+
*x64/
|
| 77 |
+
# Allowing this file (removed *.user for Qt)
|
| 78 |
+
!*.vcxproj.user
|
| 79 |
+
|
| 80 |
+
######################### Caffe Files / Folders #########################
|
| 81 |
+
# User's build configuration
|
| 82 |
+
Makefile
|
| 83 |
+
Makefile.config
|
| 84 |
+
|
| 85 |
+
# Data and models are either
|
| 86 |
+
# 1. reference, and not casually committed
|
| 87 |
+
# 2. custom, and live on their own unless they're deliberated contributed
|
| 88 |
+
distribute/
|
| 89 |
+
*.caffemodel
|
| 90 |
+
*.caffemodel.h5
|
| 91 |
+
*.solverstate
|
| 92 |
+
*.solverstate.h5
|
| 93 |
+
*.binaryproto
|
| 94 |
+
*leveldb
|
| 95 |
+
*lmdb
|
| 96 |
+
|
| 97 |
+
# Camera parameters
|
| 98 |
+
*.xml
|
| 99 |
+
|
| 100 |
+
######################### 3rd-party Folders and Zip Files #########################
|
| 101 |
+
3rdparty/caffe/.git
|
| 102 |
+
3rdparty/caffe/.github
|
| 103 |
+
3rdparty/asio/
|
| 104 |
+
3rdparty/eigen/
|
| 105 |
+
3rdparty/windows/caffe/
|
| 106 |
+
3rdparty/windows/caffe_cpu/
|
| 107 |
+
3rdparty/windows/caffe_opencl/
|
| 108 |
+
3rdparty/windows/caffe3rdparty/
|
| 109 |
+
3rdparty/windows/opencv/
|
| 110 |
+
3rdparty/windows/freeglut/
|
| 111 |
+
3rdparty/windows/spinnaker/
|
| 112 |
+
3rdparty/*zip
|
| 113 |
+
3rdparty/windows/*zip
|
| 114 |
+
|
| 115 |
+
######################### Compilation (build, distribute & bins) Files / Folders #########################
|
| 116 |
+
*.bin
|
| 117 |
+
*.testbin
|
| 118 |
+
build
|
| 119 |
+
build*
|
| 120 |
+
.build*
|
| 121 |
+
*cmake_build
|
| 122 |
+
distribute/*
|
| 123 |
+
python/caffe/proto/
|
| 124 |
+
|
| 125 |
+
######################### Generated Documentation #########################
|
| 126 |
+
_site
|
| 127 |
+
docs/_site
|
| 128 |
+
docs/dev
|
| 129 |
+
docs/gathered
|
| 130 |
+
doxygen
|
| 131 |
+
html/
|
| 132 |
+
|
| 133 |
+
######################### Video Files #########################
|
| 134 |
+
# Testing videos
|
| 135 |
+
*.mp4
|
| 136 |
+
*.mov
|
| 137 |
+
|
| 138 |
+
######################### Validation Scripts & Testing #########################
|
| 139 |
+
output*/
|
openpose/.gitmodules
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[submodule "3rdparty/caffe"]
|
| 2 |
+
path = 3rdparty/caffe
|
| 3 |
+
url = https://github.com/CMU-Perceptual-Computing-Lab/caffe.git
|
| 4 |
+
[submodule "3rdparty/pybind11"]
|
| 5 |
+
path = 3rdparty/pybind11
|
| 6 |
+
url = https://github.com/pybind/pybind11.git
|
openpose/3rdparty/Versions.txt
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Asio:
|
| 2 |
+
- Version 1.12.1.
|
| 3 |
+
- Link: https://think-async.com/Asio/Download
|
| 4 |
+
|
| 5 |
+
Eigen:
|
| 6 |
+
- Version 3.3.8
|
| 7 |
+
- Link: http://eigen.tuxfamily.org/index.php
|
| 8 |
+
|
| 9 |
+
Unix:
|
| 10 |
+
- Caffe:
|
| 11 |
+
- Version 1.0.0, extracted from GitHub from its master branch.
|
| 12 |
+
- Link: https://github.com/BVLC/caffe
|
| 13 |
+
- GitHub SHA: 864520713a4c5ffae7382ced5d34e4cadc608473
|
| 14 |
+
|
| 15 |
+
- Spinnaker:
|
| 16 |
+
- Tested on Spinnaker 1.13.0.31 SDK - Linux Ubuntu 16.04 (64-bit) - 05/25/2018 - 41.580MB.
|
| 17 |
+
- Prerequisites: https://www.ptgrey.com/tan/10685
|
| 18 |
+
|
| 19 |
+
Windows:
|
| 20 |
+
- Caffe & Caffe dependencies (caffe3rdparty):
|
| 21 |
+
- Version 1.0.0, extracted from GitHub from its master branch.
|
| 22 |
+
- Link: https://github.com/BVLC/caffe/tree/windows
|
| 23 |
+
|
| 24 |
+
- FreeGLUT (only for the 3-D reconstruction demo):
|
| 25 |
+
- Version 3.0.0-2 (MSVC), extracted from their oficial website.
|
| 26 |
+
- Link: https://www.transmissionzero.co.uk/software/freeglut-devel/
|
| 27 |
+
|
| 28 |
+
- OpenCV:
|
| 29 |
+
- Version 4.5.0, extracted from their oficial website: section `Releases`, subsection `OpenCV - 4.5.0`, `Windows` version.
|
| 30 |
+
- Link: https://opencv.org/releases/
|
| 31 |
+
|
| 32 |
+
- Unzip:
|
| 33 |
+
- Version 5.52.
|
| 34 |
+
- Link: http://stahlworks.com/dev/?tool=zipunzip
|
| 35 |
+
|
| 36 |
+
- Wget:
|
| 37 |
+
- Version wget-1.20.3-win64.
|
| 38 |
+
- Link: https://eternallybored.org/misc/wget/
|
openpose/3rdparty/windows/getCaffe.bat
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
:: Avoid printing all the comments in the Windows cmd
|
| 2 |
+
@echo off
|
| 3 |
+
|
| 4 |
+
SET UNZIP_EXE=unzip\unzip.exe
|
| 5 |
+
SET WGET_EXE=wget\wget.exe
|
| 6 |
+
|
| 7 |
+
:: Download temporary zip
|
| 8 |
+
echo ----- Downloading Caffe -----
|
| 9 |
+
SET CAFEE_FOLDER=caffe\
|
| 10 |
+
SET ZIP_NAME=caffe_16_2020_11_14.zip
|
| 11 |
+
SET ZIP_FULL_PATH=%CAFEE_FOLDER%%ZIP_NAME%
|
| 12 |
+
%WGET_EXE% -c http://vcl.snu.ac.kr/OpenPose/3rdparty/windows/%ZIP_NAME% -P %CAFEE_FOLDER%
|
| 13 |
+
echo:
|
| 14 |
+
|
| 15 |
+
echo ----- Unzipping Caffe -----
|
| 16 |
+
%UNZIP_EXE% %ZIP_FULL_PATH%
|
| 17 |
+
echo:
|
| 18 |
+
|
| 19 |
+
echo ----- Deleting Temporary Zip File %ZIP_FULL_PATH% -----
|
| 20 |
+
del "%ZIP_FULL_PATH%"
|
| 21 |
+
|
| 22 |
+
echo ----- Caffe Downloaded and Unzipped -----
|
openpose/3rdparty/windows/getCaffe3rdparty.bat
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
:: Avoid printing all the comments in the Windows cmd
|
| 2 |
+
@echo off
|
| 3 |
+
|
| 4 |
+
SET UNZIP_EXE=unzip\unzip.exe
|
| 5 |
+
SET WGET_EXE=wget\wget.exe
|
| 6 |
+
|
| 7 |
+
:: Download temporary zip
|
| 8 |
+
echo ----- Downloading Caffe -----
|
| 9 |
+
SET CAFEE_FOLDER=caffe3rdparty\
|
| 10 |
+
SET ZIP_NAME=caffe3rdparty_16_2020_11_14.zip
|
| 11 |
+
SET ZIP_FULL_PATH=%CAFEE_FOLDER%%ZIP_NAME%
|
| 12 |
+
%WGET_EXE% -c http://vcl.snu.ac.kr/OpenPose/3rdparty/windows/%ZIP_NAME% -P %CAFEE_FOLDER%
|
| 13 |
+
echo:
|
| 14 |
+
|
| 15 |
+
echo ----- Unzipping Caffe -----
|
| 16 |
+
%UNZIP_EXE% %ZIP_FULL_PATH%
|
| 17 |
+
echo:
|
| 18 |
+
|
| 19 |
+
echo ----- Deleting Temporary Zip File %ZIP_FULL_PATH% -----
|
| 20 |
+
del "%ZIP_FULL_PATH%"
|
| 21 |
+
|
| 22 |
+
echo ----- Caffe Downloaded and Unzipped -----
|
openpose/3rdparty/windows/getFreeglut.bat
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
:: Avoid printing all the comments in the Windows cmd
|
| 2 |
+
@echo off
|
| 3 |
+
|
| 4 |
+
SET UNZIP_EXE=unzip\unzip.exe
|
| 5 |
+
SET WGET_EXE=wget\wget.exe
|
| 6 |
+
|
| 7 |
+
:: Download temporary zip
|
| 8 |
+
echo ----- Downloading Caffe -----
|
| 9 |
+
SET FREEGLUT_FOLDER=freeglut\
|
| 10 |
+
SET ZIP_NAME=freeglut_2018_01_14.zip
|
| 11 |
+
SET ZIP_FULL_PATH=%FREEGLUT_FOLDER%%ZIP_NAME%
|
| 12 |
+
%WGET_EXE% -c http://vcl.snu.ac.kr/OpenPose/3rdparty/windows/%ZIP_NAME% -P %FREEGLUT_FOLDER%
|
| 13 |
+
echo:
|
| 14 |
+
|
| 15 |
+
echo ----- Unzipping Caffe -----
|
| 16 |
+
%UNZIP_EXE% %ZIP_FULL_PATH%
|
| 17 |
+
echo:
|
| 18 |
+
|
| 19 |
+
echo ----- Deleting Temporary Zip File %ZIP_FULL_PATH% -----
|
| 20 |
+
del "%ZIP_FULL_PATH%"
|
| 21 |
+
|
| 22 |
+
echo ----- Caffe Downloaded and Unzipped -----
|
openpose/3rdparty/windows/getOpenCV.bat
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
:: Avoid printing all the comments in the Windows cmd
|
| 2 |
+
@echo off
|
| 3 |
+
|
| 4 |
+
SET UNZIP_EXE=unzip\unzip.exe
|
| 5 |
+
SET WGET_EXE=wget\wget.exe
|
| 6 |
+
|
| 7 |
+
:: Download temporary zip
|
| 8 |
+
echo ----- Downloading OpenCV -----
|
| 9 |
+
SET OPENCV_FOLDER=opencv\
|
| 10 |
+
SET ZIP_NAME=opencv_450_v15_2020_11_18.zip
|
| 11 |
+
SET ZIP_FULL_PATH=%OPENCV_FOLDER%%ZIP_NAME%
|
| 12 |
+
%WGET_EXE% -c http://vcl.snu.ac.kr/OpenPose/3rdparty/windows/%ZIP_NAME% -P %OPENCV_FOLDER%
|
| 13 |
+
echo:
|
| 14 |
+
|
| 15 |
+
echo ----- Unzipping OpenCV -----
|
| 16 |
+
%UNZIP_EXE% %ZIP_FULL_PATH%
|
| 17 |
+
echo:
|
| 18 |
+
|
| 19 |
+
echo ----- Deleting Temporary Zip File %ZIP_FULL_PATH% -----
|
| 20 |
+
del "%ZIP_FULL_PATH%"
|
| 21 |
+
|
| 22 |
+
echo ----- OpenCV Downloaded and Unzipped -----
|
openpose/3rdparty/windows/getSpinnaker.bat
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
:: Avoid printing all the comments in the Windows cmd
|
| 2 |
+
@echo off
|
| 3 |
+
|
| 4 |
+
SET UNZIP_EXE=unzip\unzip.exe
|
| 5 |
+
SET WGET_EXE=wget\wget.exe
|
| 6 |
+
|
| 7 |
+
:: Download temporary zip
|
| 8 |
+
echo ----- Downloading Caffe -----
|
| 9 |
+
SET SPINNAKER_FOLDER=spinnaker\
|
| 10 |
+
SET ZIP_NAME=spinnaker_2018_01_24.zip
|
| 11 |
+
SET ZIP_FULL_PATH=%SPINNAKER_FOLDER%%ZIP_NAME%
|
| 12 |
+
%WGET_EXE% -c http://vcl.snu.ac.kr/OpenPose/3rdparty/windows/%ZIP_NAME% -P %SPINNAKER_FOLDER%
|
| 13 |
+
echo:
|
| 14 |
+
|
| 15 |
+
echo ----- Unzipping Caffe -----
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
GNU GENERAL PUBLIC LICENSE
|
| 2 |
+
Version 3, 29 June 2007
|
| 3 |
+
|
| 4 |
+
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
| 5 |
+
Everyone is permitted to copy and distribute verbatim copies
|
| 6 |
+
of this license document, but changing it is not allowed.
|
| 7 |
+
|
| 8 |
+
Preamble
|
| 9 |
+
|
| 10 |
+
The GNU General Public License is a free, copyleft license for
|
| 11 |
+
software and other kinds of works.
|
| 12 |
+
|
| 13 |
+
The licenses for most software and other practical works are designed
|
| 14 |
+
to take away your freedom to share and change the works. By contrast,
|
| 15 |
+
the GNU General Public License is intended to guarantee your freedom to
|
| 16 |
+
share and change all versions of a program--to make sure it remains free
|
| 17 |
+
software for all its users. We, the Free Software Foundation, use the
|
| 18 |
+
GNU General Public License for most of our software; it applies also to
|
| 19 |
+
any other work released this way by its authors. You can apply it to
|
| 20 |
+
your programs, too.
|
| 21 |
+
|
| 22 |
+
When we speak of free software, we are referring to freedom, not
|
| 23 |
+
price. Our General Public Licenses are designed to make sure that you
|
| 24 |
+
have the freedom to distribute copies of free software (and charge for
|
| 25 |
+
them if you wish), that you receive source code or can get it if you
|
| 26 |
+
want it, that you can change the software or use pieces of it in new
|
| 27 |
+
free programs, and that you know you can do these things.
|
| 28 |
+
|
| 29 |
+
To protect your rights, we need to prevent others from denying you
|
| 30 |
+
these rights or asking you to surrender the rights. Therefore, you have
|
| 31 |
+
certain responsibilities if you distribute copies of the software, or if
|
| 32 |
+
you modify it: responsibilities to respect the freedom of others.
|
| 33 |
+
|
| 34 |
+
For example, if you distribute copies of such a program, whether
|
| 35 |
+
gratis or for a fee, you must pass on to the recipients the same
|
| 36 |
+
freedoms that you received. You must make sure that they, too, receive
|
| 37 |
+
or can get the source code. And you must show them these terms so they
|
| 38 |
+
know their rights.
|
| 39 |
+
|
| 40 |
+
Developers that use the GNU GPL protect your rights with two steps:
|
| 41 |
+
(1) assert copyright on the software, and (2) offer you this License
|
| 42 |
+
giving you legal permission to copy, distribute and/or modify it.
|
| 43 |
+
|
| 44 |
+
For the developers' and authors' protection, the GPL clearly explains
|
| 45 |
+
that there is no warranty for this free software. For both users' and
|
| 46 |
+
authors' sake, the GPL requires that modified versions be marked as
|
| 47 |
+
changed, so that their problems will not be attributed erroneously to
|
| 48 |
+
authors of previous versions.
|
| 49 |
+
|
| 50 |
+
Some devices are designed to deny users access to install or run
|
| 51 |
+
modified versions of the software inside them, although the manufacturer
|
| 52 |
+
can do so. This is fundamentally incompatible with the aim of
|
| 53 |
+
protecting users' freedom to change the software. The systematic
|
| 54 |
+
pattern of such abuse occurs in the area of products for individuals to
|
| 55 |
+
use, which is precisely where it is most unacceptable. Therefore, we
|
| 56 |
+
have designed this version of the GPL to prohibit the practice for those
|
| 57 |
+
products. If such problems arise substantially in other domains, we
|
| 58 |
+
stand ready to extend this provision to those domains in future versions
|
| 59 |
+
of the GPL, as needed to protect the freedom of users.
|
| 60 |
+
|
| 61 |
+
Finally, every program is threatened constantly by software patents.
|
| 62 |
+
States should not allow patents to restrict development and use of
|
| 63 |
+
software on general-purpose computers, but in those that do, we wish to
|
| 64 |
+
avoid the special danger that patents applied to a free program could
|
| 65 |
+
make it effectively proprietary. To prevent this, the GPL assures that
|
| 66 |
+
patents cannot be used to render the program non-free.
|
| 67 |
+
|
| 68 |
+
The precise terms and conditions for copying, distribution and
|
| 69 |
+
modification follow.
|
| 70 |
+
|
| 71 |
+
TERMS AND CONDITIONS
|
| 72 |
+
|
| 73 |
+
0. Definitions.
|
| 74 |
+
|
| 75 |
+
"This License" refers to version 3 of the GNU General Public License.
|
| 76 |
+
|
| 77 |
+
"Copyright" also means copyright-like laws that apply to other kinds of
|
| 78 |
+
works, such as semiconductor masks.
|
| 79 |
+
|
| 80 |
+
"The Program" refers to any copyrightable work licensed under this
|
| 81 |
+
License. Each licensee is addressed as "you". "Licensees" and
|
| 82 |
+
"recipients" may be individuals or organizations.
|
| 83 |
+
|
| 84 |
+
To "modify" a work means to copy from or adapt all or part of the work
|
| 85 |
+
in a fashion requiring copyright permission, other than the making of an
|
| 86 |
+
exact copy. The resulting work is called a "modified version" of the
|
| 87 |
+
earlier work or a work "based on" the earlier work.
|
| 88 |
+
|
| 89 |
+
A "covered work" means either the unmodified Program or a work based
|
| 90 |
+
on the Program.
|
| 91 |
+
|
| 92 |
+
To "propagate" a work means to do anything with it that, without
|
| 93 |
+
permission, would make you directly or secondarily liable for
|
| 94 |
+
infringement under applicable copyright law, except executing it on a
|
| 95 |
+
computer or modifying a private copy. Propagation includes copying,
|
| 96 |
+
distribution (with or without modification), making available to the
|
| 97 |
+
public, and in some countries other activities as well.
|
| 98 |
+
|
| 99 |
+
To "convey" a work means any kind of propagation that enables other
|
| 100 |
+
parties to make or receive copies. Mere interaction with a user through
|
| 101 |
+
a computer network, with no transfer of a copy, is not conveying.
|
| 102 |
+
|
| 103 |
+
An interactive user interface displays "Appropriate Legal Notices"
|
| 104 |
+
to the extent that it includes a convenient and prominently visible
|
| 105 |
+
feature that (1) displays an appropriate copyright notice, and (2)
|
| 106 |
+
tells the user that there is no warranty for the work (except to the
|
| 107 |
+
extent that warranties are provided), that licensees may convey the
|
| 108 |
+
work under this License, and how to view a copy of this License. If
|
| 109 |
+
the interface presents a list of user commands or options, such as a
|
| 110 |
+
menu, a prominent item in the list meets this criterion.
|
| 111 |
+
|
| 112 |
+
1. Source Code.
|
| 113 |
+
|
| 114 |
+
The "source code" for a work means the preferred form of the work
|
| 115 |
+
for making modifications to it. "Object code" means any non-source
|
| 116 |
+
form of a work.
|
| 117 |
+
|
| 118 |
+
A "Standard Interface" means an interface that either is an official
|
| 119 |
+
standard defined by a recognized standards body, or, in the case of
|
| 120 |
+
interfaces specified for a particular programming language, one that
|
| 121 |
+
is widely used among developers working in that language.
|
| 122 |
+
|
| 123 |
+
The "System Libraries" of an executable work include anything, other
|
| 124 |
+
than the work as a whole, that (a) is included in the normal form of
|
| 125 |
+
packaging a Major Component, but which is not part of that Major
|
| 126 |
+
Component, and (b) serves only to enable use of the work with that
|
| 127 |
+
Major Component, or to implement a Standard Interface for which an
|
| 128 |
+
implementation is available to the public in source code form. A
|
| 129 |
+
"Major Component", in this context, means a major essential component
|
| 130 |
+
(kernel, window system, and so on) of the specific operating system
|
| 131 |
+
(if any) on which the executable work runs, or a compiler used to
|
| 132 |
+
produce the work, or an object code interpreter used to run it.
|
| 133 |
+
|
| 134 |
+
The "Corresponding Source" for a work in object code form means all
|
| 135 |
+
the source code needed to generate, install, and (for an executable
|
| 136 |
+
work) run the object code and to modify the work, including scripts to
|
| 137 |
+
control those activities. However, it does not include the work's
|
| 138 |
+
System Libraries, or general-purpose tools or generally available free
|
| 139 |
+
programs which are used unmodified in performing those activities but
|
| 140 |
+
which are not part of the work. For example, Corresponding Source
|
| 141 |
+
includes interface definition files associated with source files for
|
| 142 |
+
the work, and the source code for shared libraries and dynamically
|
| 143 |
+
linked subprograms that the work is specifically designed to require,
|
| 144 |
+
such as by intimate data communication or control flow between those
|
| 145 |
+
subprograms and other parts of the work.
|
| 146 |
+
|
| 147 |
+
The Corresponding Source need not include anything that users
|
| 148 |
+
can regenerate automatically from other parts of the Corresponding
|
| 149 |
+
Source.
|
| 150 |
+
|
| 151 |
+
The Corresponding Source for a work in source code form is that
|
| 152 |
+
same work.
|
| 153 |
+
|
| 154 |
+
2. Basic Permissions.
|
| 155 |
+
|
| 156 |
+
All rights granted under this License are granted for the term of
|
| 157 |
+
copyright on the Program, and are irrevocable provided the stated
|
| 158 |
+
conditions are met. This License explicitly affirms your unlimited
|
| 159 |
+
permission to run the unmodified Program. The output from running a
|
| 160 |
+
covered work is covered by this License only if the output, given its
|
| 161 |
+
content, constitutes a covered work. This License acknowledges your
|
| 162 |
+
rights of fair use or other equivalent, as provided by copyright law.
|
| 163 |
+
|
| 164 |
+
You may make, run and propagate covered works that you do not
|
| 165 |
+
convey, without conditions so long as your license otherwise remains
|
| 166 |
+
in force. You may convey covered works to others for the sole purpose
|
| 167 |
+
of having them make modifications exclusively for you, or provide you
|
| 168 |
+
with facilities for running those works, provided that you comply with
|
| 169 |
+
the terms of this License in conveying all material for which you do
|
| 170 |
+
not control copyright. Those thus making or running the covered works
|
| 171 |
+
for you must do so exclusively on your behalf, under your direction
|
| 172 |
+
and control, on terms that prohibit them from making any copies of
|
| 173 |
+
your copyrighted material outside their relationship with you.
|
| 174 |
+
|
| 175 |
+
Conveying under any other circumstances is permitted solely under
|
| 176 |
+
the conditions stated below. Sublicensing is not allowed; section 10
|
| 177 |
+
makes it unnecessary.
|
| 178 |
+
|
| 179 |
+
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
| 180 |
+
|
| 181 |
+
No covered work shall be deemed part of an effective technological
|
| 182 |
+
measure under any applicable law fulfilling obligations under article
|
| 183 |
+
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
| 184 |
+
similar laws prohibiting or restricting circumvention of such
|
| 185 |
+
measures.
|
| 186 |
+
|
| 187 |
+
When you convey a covered work, you waive any legal power to forbid
|
| 188 |
+
circumvention of technological measures to the extent such circumvention
|
| 189 |
+
is effected by exercising rights under this License with respect to
|
| 190 |
+
the covered work, and you disclaim any intention to limit operation or
|
| 191 |
+
modification of the work as a means of enforcing, against the work's
|
| 192 |
+
users, your or third parties' legal rights to forbid circumvention of
|
| 193 |
+
technological measures.
|
| 194 |
+
|
| 195 |
+
4. Conveying Verbatim Copies.
|
| 196 |
+
|
| 197 |
+
You may convey verbatim copies of the Program's source code as you
|
| 198 |
+
receive it, in any medium, provided that you conspicuously and
|
| 199 |
+
appropriately publish on each copy an appropriate copyright notice;
|
| 200 |
+
keep intact all notices stating that this License and any
|
| 201 |
+
non-permissive terms added in accord with section 7 apply to the code;
|
| 202 |
+
keep intact all notices of the absence of any warranty; and give all
|
| 203 |
+
recipients a copy of this License along with the Program.
|
| 204 |
+
|
| 205 |
+
You may charge any price or no price for each copy that you convey,
|
| 206 |
+
and you may offer support or warranty protection for a fee.
|
| 207 |
+
|
| 208 |
+
5. Conveying Modified Source Versions.
|
| 209 |
+
|
| 210 |
+
You may convey a work based on the Program, or the modifications to
|
| 211 |
+
produce it from the Program, in the form of source code under the
|
| 212 |
+
terms of section 4, provided that you also meet all of these conditions:
|
| 213 |
+
|
| 214 |
+
a) The work must carry prominent notices stating that you modified
|
| 215 |
+
it, and giving a relevant date.
|
| 216 |
+
|
| 217 |
+
b) The work must carry prominent notices stating that it is
|
| 218 |
+
released under this License and any conditions added under section
|
| 219 |
+
7. This requirement modifies the requirement in section 4 to
|
| 220 |
+
"keep intact all notices".
|
| 221 |
+
|
| 222 |
+
c) You must license the entire work, as a whole, under this
|
| 223 |
+
License to anyone who comes into possession of a copy. This
|
| 224 |
+
License will therefore apply, along with any applicable section 7
|
| 225 |
+
additional terms, to the whole of the work, and all its parts,
|
| 226 |
+
regardless of how they are packaged. This License gives no
|
| 227 |
+
permission to license the work in any other way, but it does not
|
| 228 |
+
invalidate such permission if you have separately received it.
|
| 229 |
+
|
| 230 |
+
d) If the work has interactive user interfaces, each must display
|
| 231 |
+
Appropriate Legal Notices; however, if the Program has interactive
|
| 232 |
+
interfaces that do not display Appropriate Legal Notices, your
|
| 233 |
+
work need not make them do so.
|
| 234 |
+
|
| 235 |
+
A compilation of a covered work with other separate and independent
|
| 236 |
+
works, which are not by their nature extensions of the covered work,
|
| 237 |
+
and which are not combined with it such as to form a larger program,
|
| 238 |
+
in or on a volume of a storage or distribution medium, is called an
|
| 239 |
+
"aggregate" if the compilation and its resulting copyright are not
|
| 240 |
+
used to limit the access or legal rights of the compilation's users
|
| 241 |
+
beyond what the individual works permit. Inclusion of a covered work
|
| 242 |
+
in an aggregate does not cause this License to apply to the other
|
| 243 |
+
parts of the aggregate.
|
| 244 |
+
|
| 245 |
+
6. Conveying Non-Source Forms.
|
| 246 |
+
|
| 247 |
+
You may convey a covered work in object code form under the terms
|
| 248 |
+
of sections 4 and 5, provided that you also convey the
|
| 249 |
+
machine-readable Corresponding Source under the terms of this License,
|
| 250 |
+
in one of these ways:
|
| 251 |
+
|
| 252 |
+
a) Convey the object code in, or embodied in, a physical product
|
| 253 |
+
(including a physical distribution medium), accompanied by the
|
| 254 |
+
Corresponding Source fixed on a durable physical medium
|
| 255 |
+
customarily used for software interchange.
|
| 256 |
+
|
| 257 |
+
b) Convey the object code in, or embodied in, a physical product
|
| 258 |
+
(including a physical distribution medium), accompanied by a
|
| 259 |
+
written offer, valid for at least three years and valid for as
|
| 260 |
+
long as you offer spare parts or customer support for that product
|
| 261 |
+
model, to give anyone who possesses the object code either (1) a
|
| 262 |
+
copy of the Corresponding Source for all the software in the
|
| 263 |
+
product that is covered by this License, on a durable physical
|
| 264 |
+
medium customarily used for software interchange, for a price no
|
| 265 |
+
more than your reasonable cost of physically performing this
|
| 266 |
+
conveying of source, or (2) access to copy the
|
| 267 |
+
Corresponding Source from a network server at no charge.
|
| 268 |
+
|
| 269 |
+
c) Convey individual copies of the object code with a copy of the
|
| 270 |
+
written offer to provide the Corresponding Source. This
|
| 271 |
+
alternative is allowed only occasionally and noncommercially, and
|
| 272 |
+
only if you received the object code with such an offer, in accord
|
| 273 |
+
with subsection 6b.
|
| 274 |
+
|
| 275 |
+
d) Convey the object code by offering access from a designated
|
| 276 |
+
place (gratis or for a charge), and offer equivalent access to the
|
| 277 |
+
Corresponding Source in the same way through the same place at no
|
| 278 |
+
further charge. You need not require recipients to copy the
|
| 279 |
+
Corresponding Source along with the object code. If the place to
|
| 280 |
+
copy the object code is a network server, the Corresponding Source
|
| 281 |
+
may be on a different server (operated by you or a third party)
|
| 282 |
+
that supports equivalent copying facilities, provided you maintain
|
| 283 |
+
clear directions next to the object code saying where to find the
|
| 284 |
+
Corresponding Source. Regardless of what server hosts the
|
| 285 |
+
Corresponding Source, you remain obligated to ensure that it is
|
| 286 |
+
available for as long as needed to satisfy these requirements.
|
| 287 |
+
|
| 288 |
+
e) Convey the object code using peer-to-peer transmission, provided
|
| 289 |
+
you inform other peers where the object code and Corresponding
|
| 290 |
+
Source of the work are being offered to the general public at no
|
| 291 |
+
charge under subsection 6d.
|
| 292 |
+
|
| 293 |
+
A separable portion of the object code, whose source code is excluded
|
| 294 |
+
from the Corresponding Source as a System Library, need not be
|
| 295 |
+
included in conveying the object code work.
|
| 296 |
+
|
| 297 |
+
A "User Product" is either (1) a "consumer product", which means any
|
| 298 |
+
tangible personal property which is normally used for personal, family,
|
| 299 |
+
or household purposes, or (2) anything designed or sold for incorporation
|
| 300 |
+
into a dwelling. In determining whether a product is a consumer product,
|
| 301 |
+
doubtful cases shall be resolved in favor of coverage. For a particular
|
| 302 |
+
product received by a particular user, "normally used" refers to a
|
| 303 |
+
typical or common use of that class of product, regardless of the status
|
| 304 |
+
of the particular user or of the way in which the particular user
|
| 305 |
+
actually uses, or expects or is expected to use, the product. A product
|
| 306 |
+
is a consumer product regardless of whether the product has substantial
|
| 307 |
+
commercial, industrial or non-consumer uses, unless such uses represent
|
| 308 |
+
the only significant mode of use of the product.
|
| 309 |
+
|
| 310 |
+
"Installation Information" for a User Product means any methods,
|
| 311 |
+
procedures, authorization keys, or other information required to install
|
| 312 |
+
and execute modified versions of a covered work in that User Product from
|
| 313 |
+
a modified version of its Corresponding Source. The information must
|
| 314 |
+
suffice to ensure that the continued functioning of the modified object
|
| 315 |
+
code is in no case prevented or interfered with solely because
|
| 316 |
+
modification has been made.
|
| 317 |
+
|
| 318 |
+
If you convey an object code work under this section in, or with, or
|
| 319 |
+
specifically for use in, a User Product, and the conveying occurs as
|
| 320 |
+
part of a transaction in which the right of possession and use of the
|
| 321 |
+
User Product is transferred to the recipient in perpetuity or for a
|
| 322 |
+
fixed term (regardless of how the transaction is characterized), the
|
| 323 |
+
Corresponding Source conveyed under this section must be accompanied
|
| 324 |
+
by the Installation Information. But this requirement does not apply
|
| 325 |
+
if neither you nor any third party retains the ability to install
|
| 326 |
+
modified object code on the User Product (for example, the work has
|
| 327 |
+
been installed in ROM).
|
| 328 |
+
|
| 329 |
+
The requirement to provide Installation Information does not include a
|
| 330 |
+
requirement to continue to provide support service, warranty, or updates
|
| 331 |
+
for a work that has been modified or installed by the recipient, or for
|
| 332 |
+
the User Product in which it has been modified or installed. Access to a
|
| 333 |
+
network may be denied when the modification itself materially and
|
| 334 |
+
adversely affects the operation of the network or violates the rules and
|
| 335 |
+
protocols for communication across the network.
|
| 336 |
+
|
| 337 |
+
Corresponding Source conveyed, and Installation Information provided,
|
| 338 |
+
in accord with this section must be in a format that is publicly
|
| 339 |
+
documented (and with an implementation available to the public in
|
| 340 |
+
source code form), and must require no special password or key for
|
| 341 |
+
unpacking, reading or copying.
|
| 342 |
+
|
| 343 |
+
7. Additional Terms.
|
| 344 |
+
|
| 345 |
+
"Additional permissions" are terms that supplement the terms of this
|
| 346 |
+
License by making exceptions from one or more of its conditions.
|
| 347 |
+
Additional permissions that are applicable to the entire Program shall
|
| 348 |
+
be treated as though they were included in this License, to the extent
|
| 349 |
+
that they are valid under applicable law. If additional permissions
|
| 350 |
+
apply only to part of the Program, that part may be used separately
|
| 351 |
+
under those permissions, but the entire Program remains governed by
|
| 352 |
+
this License without regard to the additional permissions.
|
| 353 |
+
|
| 354 |
+
When you convey a copy of a covered work, you may at your option
|
| 355 |
+
remove any additional permissions from that copy, or from any part of
|
| 356 |
+
it. (Additional permissions may be written to require their own
|
| 357 |
+
removal in certain cases when you modify the work.) You may place
|
| 358 |
+
additional permissions on material, added by you to a covered work,
|
| 359 |
+
for which you have or can give appropriate copyright permission.
|
| 360 |
+
|
| 361 |
+
Notwithstanding any other provision of this License, for material you
|
| 362 |
+
add to a covered work, you may (if authorized by the copyright holders of
|
| 363 |
+
that material) supplement the terms of this License with terms:
|
| 364 |
+
|
| 365 |
+
a) Disclaiming warranty or limiting liability differently from the
|
| 366 |
+
terms of sections 15 and 16 of this License; or
|
| 367 |
+
|
| 368 |
+
b) Requiring preservation of specified reasonable legal notices or
|
| 369 |
+
author attributions in that material or in the Appropriate Legal
|
| 370 |
+
Notices displayed by works containing it; or
|
| 371 |
+
|
| 372 |
+
c) Prohibiting misrepresentation of the origin of that material, or
|
| 373 |
+
requiring that modified versions of such material be marked in
|
| 374 |
+
reasonable ways as different from the original version; or
|
| 375 |
+
|
| 376 |
+
d) Limiting the use for publicity purposes of names of licensors or
|
| 377 |
+
authors of the material; or
|
| 378 |
+
|
| 379 |
+
e) Declining to grant rights under trademark law for use of some
|
| 380 |
+
trade names, trademarks, or service marks; or
|
| 381 |
+
|
| 382 |
+
f) Requiring indemnification of licensors and authors of that
|
| 383 |
+
material by anyone who conveys the material (or modified versions of
|
| 384 |
+
it) with contractual assumptions of liability to the recipient, for
|
| 385 |
+
any liability that these contractual assumptions directly impose on
|
| 386 |
+
those licensors and authors.
|
| 387 |
+
|
| 388 |
+
All other non-permissive additional terms are considered "further
|
| 389 |
+
restrictions" within the meaning of section 10. If the Program as you
|
| 390 |
+
received it, or any part of it, contains a notice stating that it is
|
| 391 |
+
governed by this License along with a term that is a further
|
| 392 |
+
restriction, you may remove that term. If a license document contains
|
| 393 |
+
a further restriction but permits relicensing or conveying under this
|
| 394 |
+
License, you may add to a covered work material governed by the terms
|
| 395 |
+
of that license document, provided that the further restriction does
|
| 396 |
+
not survive such relicensing or conveying.
|
| 397 |
+
|
| 398 |
+
If you add terms to a covered work in accord with this section, you
|
| 399 |
+
must place, in the relevant source files, a statement of the
|
| 400 |
+
additional terms that apply to those files, or a notice indicating
|
| 401 |
+
where to find the applicable terms.
|
| 402 |
+
|
| 403 |
+
Additional terms, permissive or non-permissive, may be stated in the
|
| 404 |
+
form of a separately written license, or stated as exceptions;
|
| 405 |
+
the above requirements apply either way.
|
| 406 |
+
|
| 407 |
+
8. Termination.
|
| 408 |
+
|
| 409 |
+
You may not propagate or modify a covered work except as expressly
|
| 410 |
+
provided under this License. Any attempt otherwise to propagate or
|
| 411 |
+
modify it is void, and will automatically terminate your rights under
|
| 412 |
+
this License (including any patent licenses granted under the third
|
| 413 |
+
paragraph of section 11).
|
| 414 |
+
|
| 415 |
+
However, if you cease all violation of this License, then your
|
| 416 |
+
license from a particular copyright holder is reinstated (a)
|
| 417 |
+
provisionally, unless and until the copyright holder explicitly and
|
| 418 |
+
finally terminates your license, and (b) permanently, if the copyright
|
| 419 |
+
holder fails to notify you of the violation by some reasonable means
|
| 420 |
+
prior to 60 days after the cessation.
|
| 421 |
+
|
| 422 |
+
Moreover, your license from a particular copyright holder is
|
| 423 |
+
reinstated permanently if the copyright holder notifies you of the
|
| 424 |
+
violation by some reasonable means, this is the first time you have
|
| 425 |
+
received notice of violation of this License (for any work) from that
|
| 426 |
+
copyright holder, and you cure the violation prior to 30 days after
|
| 427 |
+
your receipt of the notice.
|
| 428 |
+
|
| 429 |
+
Termination of your rights under this section does not terminate the
|
| 430 |
+
licenses of parties who have received copies or rights from you under
|
| 431 |
+
this License. If your rights have been terminated and not permanently
|
| 432 |
+
reinstated, you do not qualify to receive new licenses for the same
|
| 433 |
+
material under section 10.
|
| 434 |
+
|
| 435 |
+
9. Acceptance Not Required for Having Copies.
|
| 436 |
+
|
| 437 |
+
You are not required to accept this License in order to receive or
|
| 438 |
+
run a copy of the Program. Ancillary propagation of a covered work
|
| 439 |
+
occurring solely as a consequence of using peer-to-peer transmission
|
| 440 |
+
to receive a copy likewise does not require acceptance. However,
|
| 441 |
+
nothing other than this License grants you permission to propagate or
|
| 442 |
+
modify any covered work. These actions infringe copyright if you do
|
| 443 |
+
not accept this License. Therefore, by modifying or propagating a
|
| 444 |
+
covered work, you indicate your acceptance of this License to do so.
|
| 445 |
+
|
| 446 |
+
10. Automatic Licensing of Downstream Recipients.
|
| 447 |
+
|
| 448 |
+
Each time you convey a covered work, the recipient automatically
|
| 449 |
+
receives a license from the original licensors, to run, modify and
|
| 450 |
+
propagate that work, subject to this License. You are not responsible
|
| 451 |
+
for enforcing compliance by third parties with this License.
|
| 452 |
+
|
| 453 |
+
An "entity transaction" is a transaction transferring control of an
|
| 454 |
+
organization, or substantially all assets of one, or subdividing an
|
| 455 |
+
organization, or merging organizations. If propagation of a covered
|
| 456 |
+
work results from an entity transaction, each party to that
|
| 457 |
+
transaction who receives a copy of the work also receives whatever
|
| 458 |
+
licenses to the work the party's predecessor in interest had or could
|
| 459 |
+
give under the previous paragraph, plus a right to possession of the
|
| 460 |
+
Corresponding Source of the work from the predecessor in interest, if
|
| 461 |
+
the predecessor has it or can get it with reasonable efforts.
|
| 462 |
+
|
| 463 |
+
You may not impose any further restrictions on the exercise of the
|
| 464 |
+
rights granted or affirmed under this License. For example, you may
|
| 465 |
+
not impose a license fee, royalty, or other charge for exercise of
|
| 466 |
+
rights granted under this License, and you may not initiate litigation
|
| 467 |
+
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
| 468 |
+
any patent claim is infringed by making, using, selling, offering for
|
| 469 |
+
sale, or importing the Program or any portion of it.
|
| 470 |
+
|
| 471 |
+
11. Patents.
|
| 472 |
+
|
| 473 |
+
A "contributor" is a copyright holder who authorizes use under this
|
| 474 |
+
License of the Program or a work on which the Program is based. The
|
| 475 |
+
work thus licensed is called the contributor's "contributor version".
|
| 476 |
+
|
| 477 |
+
A contributor's "essential patent claims" are all patent claims
|
| 478 |
+
owned or controlled by the contributor, whether already acquired or
|
| 479 |
+
hereafter acquired, that would be infringed by some manner, permitted
|
| 480 |
+
by this License, of making, using, or selling its contributor version,
|
| 481 |
+
but do not include claims that would be infringed only as a
|
| 482 |
+
consequence of further modification of the contributor version. For
|
| 483 |
+
purposes of this definition, "control" includes the right to grant
|
| 484 |
+
patent sublicenses in a manner consistent with the requirements of
|
| 485 |
+
this License.
|
| 486 |
+
|
| 487 |
+
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
| 488 |
+
patent license under the contributor's essential patent claims, to
|
| 489 |
+
make, use, sell, offer for sale, import and otherwise run, modify and
|
| 490 |
+
propagate the contents of its contributor version.
|
| 491 |
+
|
| 492 |
+
In the following three paragraphs, a "patent license" is any express
|
| 493 |
+
agreement or commitment, however denominated, not to enforce a patent
|
| 494 |
+
(such as an express permission to practice a patent or covenant not to
|
| 495 |
+
sue for patent infringement). To "grant" such a patent license to a
|
| 496 |
+
party means to make such an agreement or commitment not to enforce a
|
| 497 |
+
patent against the party.
|
| 498 |
+
|
| 499 |
+
If you convey a covered work, knowingly relying on a patent license,
|
| 500 |
+
and the Corresponding Source of the work is not available for anyone
|
| 501 |
+
to copy, free of charge and under the terms of this License, through a
|
| 502 |
+
publicly available network server or other readily accessible means,
|
| 503 |
+
then you must either (1) cause the Corresponding Source to be so
|
| 504 |
+
available, or (2) arrange to deprive yourself of the benefit of the
|
| 505 |
+
patent license for this particular work, or (3) arrange, in a manner
|
| 506 |
+
consistent with the requirements of this License, to extend the patent
|
| 507 |
+
license to downstream recipients. "Knowingly relying" means you have
|
| 508 |
+
actual knowledge that, but for the patent license, your conveying the
|
| 509 |
+
covered work in a country, or your recipient's use of the covered work
|
| 510 |
+
in a country, would infringe one or more identifiable patents in that
|
| 511 |
+
country that you have reason to believe are valid.
|
| 512 |
+
|
| 513 |
+
If, pursuant to or in connection with a single transaction or
|
| 514 |
+
arrangement, you convey, or propagate by procuring conveyance of, a
|
| 515 |
+
covered work, and grant a patent license to some of the parties
|
| 516 |
+
receiving the covered work authorizing them to use, propagate, modify
|
| 517 |
+
or convey a specific copy of the covered work, then the patent license
|
| 518 |
+
you grant is automatically extended to all recipients of the covered
|
| 519 |
+
work and works based on it.
|
| 520 |
+
|
| 521 |
+
A patent license is "discriminatory" if it does not include within
|
| 522 |
+
the scope of its coverage, prohibits the exercise of, or is
|
| 523 |
+
conditioned on the non-exercise of one or more of the rights that are
|
| 524 |
+
specifically granted under this License. You may not convey a covered
|
| 525 |
+
work if you are a party to an arrangement with a third party that is
|
| 526 |
+
in the business of distributing software, under which you make payment
|
| 527 |
+
to the third party based on the extent of your activity of conveying
|
| 528 |
+
the work, and under which the third party grants, to any of the
|
| 529 |
+
parties who would receive the covered work from you, a discriminatory
|
| 530 |
+
patent license (a) in connection with copies of the covered work
|
| 531 |
+
conveyed by you (or copies made from those copies), or (b) primarily
|
| 532 |
+
for and in connection with specific products or compilations that
|
| 533 |
+
contain the covered work, unless you entered into that arrangement,
|
| 534 |
+
or that patent license was granted, prior to 28 March 2007.
|
| 535 |
+
|
| 536 |
+
Nothing in this License shall be construed as excluding or limiting
|
| 537 |
+
any implied license or other defenses to infringement that may
|
| 538 |
+
otherwise be available to you under applicable patent law.
|
| 539 |
+
|
| 540 |
+
12. No Surrender of Others' Freedom.
|
| 541 |
+
|
| 542 |
+
If conditions are imposed on you (whether by court order, agreement or
|
| 543 |
+
otherwise) that contradict the conditions of this License, they do not
|
| 544 |
+
excuse you from the conditions of this License. If you cannot convey a
|
| 545 |
+
covered work so as to satisfy simultaneously your obligations under this
|
| 546 |
+
License and any other pertinent obligations, then as a consequence you may
|
| 547 |
+
not convey it at all. For example, if you agree to terms that obligate you
|
| 548 |
+
to collect a royalty for further conveying from those to whom you convey
|
| 549 |
+
the Program, the only way you could satisfy both those terms and this
|
| 550 |
+
License would be to refrain entirely from conveying the Program.
|
| 551 |
+
|
| 552 |
+
13. Use with the GNU Affero General Public License.
|
| 553 |
+
|
| 554 |
+
Notwithstanding any other provision of this License, you have
|
| 555 |
+
permission to link or combine any covered work with a work licensed
|
| 556 |
+
under version 3 of the GNU Affero General Public License into a single
|
| 557 |
+
combined work, and to convey the resulting work. The terms of this
|
| 558 |
+
License will continue to apply to the part which is the covered work,
|
| 559 |
+
but the special requirements of the GNU Affero General Public License,
|
| 560 |
+
section 13, concerning interaction through a network will apply to the
|
| 561 |
+
combination as such.
|
| 562 |
+
|
| 563 |
+
14. Revised Versions of this License.
|
| 564 |
+
|
| 565 |
+
The Free Software Foundation may publish revised and/or new versions of
|
| 566 |
+
the GNU General Public License from time to time. Such new versions will
|
| 567 |
+
be similar in spirit to the present version, but may differ in detail to
|
| 568 |
+
address new problems or concerns.
|
| 569 |
+
|
| 570 |
+
Each version is given a distinguishing version number. If the
|
| 571 |
+
Program specifies that a certain numbered version of the GNU General
|
| 572 |
+
Public License "or any later version" applies to it, you have the
|
| 573 |
+
option of following the terms and conditions either of that numbered
|
| 574 |
+
version or of any later version published by the Free Software
|
| 575 |
+
Foundation. If the Program does not specify a version number of the
|
| 576 |
+
GNU General Public License, you may choose any version ever published
|
| 577 |
+
by the Free Software Foundation.
|
| 578 |
+
|
| 579 |
+
If the Program specifies that a proxy can decide which future
|
| 580 |
+
versions of the GNU General Public License can be used, that proxy's
|
| 581 |
+
public statement of acceptance of a version permanently authorizes you
|
| 582 |
+
to choose that version for the Program.
|
| 583 |
+
|
| 584 |
+
Later license versions may give you additional or different
|
| 585 |
+
permissions. However, no additional obligations are imposed on any
|
| 586 |
+
author or copyright holder as a result of your choosing to follow a
|
| 587 |
+
later version.
|
| 588 |
+
|
| 589 |
+
15. Disclaimer of Warranty.
|
| 590 |
+
|
| 591 |
+
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
| 592 |
+
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
| 593 |
+
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
| 594 |
+
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
| 595 |
+
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
| 596 |
+
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
| 597 |
+
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
| 598 |
+
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
| 599 |
+
|
| 600 |
+
16. Limitation of Liability.
|
| 601 |
+
|
| 602 |
+
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
| 603 |
+
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
| 604 |
+
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
| 605 |
+
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
| 606 |
+
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
| 607 |
+
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
| 608 |
+
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
| 609 |
+
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
| 610 |
+
SUCH DAMAGES.
|
| 611 |
+
|
| 612 |
+
17. Interpretation of Sections 15 and 16.
|
| 613 |
+
|
| 614 |
+
If the disclaimer of warranty and limitation of liability provided
|
| 615 |
+
above cannot be given local legal effect according to their terms,
|
| 616 |
+
reviewing courts shall apply local law that most closely approximates
|
| 617 |
+
an absolute waiver of all civil liability in connection with the
|
| 618 |
+
Program, unless a warranty or assumption of liability accompanies a
|
| 619 |
+
copy of the Program in return for a fee.
|
| 620 |
+
|
| 621 |
+
END OF TERMS AND CONDITIONS
|
| 622 |
+
|
| 623 |
+
How to Apply These Terms to Your New Programs
|
| 624 |
+
|
| 625 |
+
If you develop a new program, and you want it to be of the greatest
|
| 626 |
+
possible use to the public, the best way to achieve this is to make it
|
| 627 |
+
free software which everyone can redistribute and change under these terms.
|
| 628 |
+
|
| 629 |
+
To do so, attach the following notices to the program. It is safest
|
| 630 |
+
to attach them to the start of each source file to most effectively
|
| 631 |
+
state the exclusion of warranty; and each file should have at least
|
| 632 |
+
the "copyright" line and a pointer to where the full notice is found.
|
| 633 |
+
|
| 634 |
+
<one line to give the program's name and a brief idea of what it does.>
|
| 635 |
+
Copyright (C) <year> <name of author>
|
| 636 |
+
|
| 637 |
+
This program is free software: you can redistribute it and/or modify
|
| 638 |
+
it under the terms of the GNU General Public License as published by
|
| 639 |
+
the Free Software Foundation, either version 3 of the License, or
|
| 640 |
+
(at your option) any later version.
|
| 641 |
+
|
| 642 |
+
This program is distributed in the hope that it will be useful,
|
| 643 |
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
| 644 |
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
| 645 |
+
GNU General Public License for more details.
|
| 646 |
+
|
| 647 |
+
You should have received a copy of the GNU General Public License
|
| 648 |
+
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
| 649 |
+
|
| 650 |
+
Also add information on how to contact you by electronic and paper mail.
|
| 651 |
+
|
| 652 |
+
If the program does terminal interaction, make it output a short
|
| 653 |
+
notice like this when it starts in an interactive mode:
|
| 654 |
+
|
| 655 |
+
<program> Copyright (C) <year> <name of author>
|
| 656 |
+
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
| 657 |
+
This is free software, and you are welcome to redistribute it
|
| 658 |
+
under certain conditions; type `show c' for details.
|
| 659 |
+
|
| 660 |
+
The hypothetical commands `show w' and `show c' should show the appropriate
|
| 661 |
+
parts of the General Public License. Of course, your program's commands
|
| 662 |
+
might be different; for a GUI interface, you would use an "about box".
|
| 663 |
+
|
| 664 |
+
You should also get your employer (if you work as a programmer) or school,
|
| 665 |
+
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
| 666 |
+
For more information on this, and how to apply and follow the GNU GPL, see
|
| 667 |
+
<https://www.gnu.org/licenses/>.
|
| 668 |
+
|
| 669 |
+
The GNU General Public License does not permit incorporating your program
|
| 670 |
+
into proprietary programs. If your program is a subroutine library, you
|
| 671 |
+
may consider it more useful to permit linking proprietary applications with
|
| 672 |
+
the library. If this is what you want to do, use the GNU Lesser General
|
| 673 |
+
Public License instead of this License. But first, please read
|
| 674 |
+
<https://www.gnu.org/philosophy/why-not-lgpl.html>.
|
openpose/3rdparty/windows/wget/Version_wget-1.20.3-win64.txt
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Version wget-1.20.3-win64 from:
|
| 2 |
+
- https://eternallybored.org/misc/wget/
|
openpose/3rdparty/windows/wget/wget.exe
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c0e27b7f6698327ff63b03fccc0e45eff1dc69a571c1c3f6c934ef7273b1562f
|
| 3 |
+
size 4923280
|
openpose/3rdparty/windows/wget/wget.exe.debug
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:19b30f747d8823cc77c36c8199e7cefc0a507a6fade4dcd5856d3afb3644aeb6
|
| 3 |
+
size 9726237
|
openpose/3rdparty/windows/wget/wget.html
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
openpose/CMakeLists.txt
ADDED
|
@@ -0,0 +1,1069 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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enPose_VERSION_MINOR 7)
|
| 4 |
+
set(OpenPose_VERSION_PATCH 0)
|
| 5 |
+
set(OpenPose_VERSION ${OpenPose_VERSION_MAJOR}.${OpenPose_VERSION_MINOR}.${OpenPose_VERSION_PATCH})
|
| 6 |
+
|
| 7 |
+
|
| 8 |
+
### OS-DEPENDENT FLAGS
|
| 9 |
+
set(CMAKE_MACOSX_RPATH 1)
|
| 10 |
+
|
| 11 |
+
|
| 12 |
+
### CMAKE HEADERS
|
| 13 |
+
# Ubuntu 18 default. After 3.8, no need for find_CUDA
|
| 14 |
+
# https://cmake.org/cmake/help/v3.10/module/FindCUDA.html
|
| 15 |
+
# https://cmake.org/cmake/help/v3.10/command/project.html
|
| 16 |
+
# https://devblogs.nvidia.com/building-cuda-applications-cmake/
|
| 17 |
+
if (${CMAKE_VERSION} VERSION_GREATER 3.9.0)
|
| 18 |
+
cmake_policy(SET CMP0048 NEW)
|
| 19 |
+
project(OpenPose VERSION ${OpenPose_VERSION})
|
| 20 |
+
# # Not tested
|
| 21 |
+
# cmake_policy(SET CMP0048 NEW)
|
| 22 |
+
# set(CUDACXX /usr/local/cuda/bin/nvcc)
|
| 23 |
+
# project(OpenPose VERSION ${OpenPose_VERSION} LANGUAGES CXX CUDA)
|
| 24 |
+
# set(AUTO_FOUND_CUDA TRUE)
|
| 25 |
+
# # else
|
| 26 |
+
# set(AUTO_FOUND_CUDA FALSE)
|
| 27 |
+
# Ubuntu 16 default
|
| 28 |
+
elseif (${CMAKE_VERSION} VERSION_GREATER 3.0.0)
|
| 29 |
+
cmake_policy(SET CMP0048 NEW)
|
| 30 |
+
project(OpenPose VERSION ${OpenPose_VERSION})
|
| 31 |
+
else (${CMAKE_VERSION} VERSION_GREATER 3.9.0)
|
| 32 |
+
project(OpenPose)
|
| 33 |
+
endif (${CMAKE_VERSION} VERSION_GREATER 3.9.0)
|
| 34 |
+
cmake_minimum_required(VERSION 3.0 FATAL_ERROR) # required by cmake eigen finder to find locally installed versions (e.g., CUDA 9.2 support was added in eigen 3.3.5)
|
| 35 |
+
# cmake_minimum_required(VERSION 2.8.7 FATAL_ERROR) # min. cmake version recommended by Caffe
|
| 36 |
+
|
| 37 |
+
|
| 38 |
+
### Extra functionality
|
| 39 |
+
include(cmake/Utils.cmake)
|
| 40 |
+
if (NOT WIN32 AND NOT UNIX AND NOT APPLE)
|
| 41 |
+
message(FATAL_ERROR "Unsupported operating system. Only Windows, Mac and Unix systems supported.")
|
| 42 |
+
endif (NOT WIN32 AND NOT UNIX AND NOT APPLE)
|
| 43 |
+
|
| 44 |
+
|
| 45 |
+
### CMAKE_BUILD_TYPE
|
| 46 |
+
# Default: Release
|
| 47 |
+
# Bug fixed: By default, it uses something different to Release, that provokes OpenPose to be about 15% slower than
|
| 48 |
+
# it should be.
|
| 49 |
+
# Is CMAKE_BUILD_TYPE "Debug" or "MinSizeRel" or "RelWithDebInfo"?
|
| 50 |
+
set(CMAKE_BUILD_TYPE_KNOWN FALSE)
|
| 51 |
+
if (${CMAKE_BUILD_TYPE} MATCHES "Debug")
|
| 52 |
+
set(CMAKE_BUILD_TYPE_KNOWN TRUE)
|
| 53 |
+
endif (${CMAKE_BUILD_TYPE} MATCHES "Debug")
|
| 54 |
+
if (${CMAKE_BUILD_TYPE} MATCHES "MinSizeRel")
|
| 55 |
+
set(CMAKE_BUILD_TYPE_KNOWN TRUE)
|
| 56 |
+
endif (${CMAKE_BUILD_TYPE} MATCHES "MinSizeRel")
|
| 57 |
+
if (${CMAKE_BUILD_TYPE} MATCHES "RelWithDebInfo")
|
| 58 |
+
set(CMAKE_BUILD_TYPE_KNOWN TRUE)
|
| 59 |
+
endif (${CMAKE_BUILD_TYPE} MATCHES "RelWithDebInfo")
|
| 60 |
+
# Assign proper CMAKE_BUILD_TYPE
|
| 61 |
+
if (${CMAKE_BUILD_TYPE_KNOWN})
|
| 62 |
+
set(CMAKE_BUILD_TYPE "Release" CACHE STRING "Choose the type of build.")
|
| 63 |
+
else (${CMAKE_BUILD_TYPE_KNOWN})
|
| 64 |
+
set(CMAKE_BUILD_TYPE "Release" CACHE STRING "Choose the type of build." FORCE)
|
| 65 |
+
endif (${CMAKE_BUILD_TYPE_KNOWN})
|
| 66 |
+
set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS "Release" "Debug" "MinSizeRel" "RelWithDebInfo")
|
| 67 |
+
|
| 68 |
+
|
| 69 |
+
### FLAGS
|
| 70 |
+
if (WIN32)
|
| 71 |
+
# TODO -- Makeshift solution -- This prevents rerunning build again
|
| 72 |
+
# https://gitlab.kitware.com/cmake/cmake/issues/16783
|
| 73 |
+
set(CMAKE_SUPPRESS_REGENERATION ON)
|
| 74 |
+
|
| 75 |
+
string (REPLACE "/D_WINDOWS" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
|
| 76 |
+
string (REPLACE "/DWIN32" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
|
| 77 |
+
|
| 78 |
+
# /GL option causes the code to crash -- fix this
|
| 79 |
+
# sdl flags causes error -- error : unknown attribute \"guard\"
|
| 80 |
+
|
| 81 |
+
# https://stackoverflow.com/questions/43697154/detect-current-cmake-version-using-cmake
|
| 82 |
+
message(STATUS "CMAKE_VERSION = ${CMAKE_VERSION}")
|
| 83 |
+
# Remove "minSizeRel" and "relWithDebInfo"
|
| 84 |
+
if (${CMAKE_VERSION} VERSION_LESS "3.14.0")
|
| 85 |
+
set(CMAKE_CONFIGURATION_TYPES Release Debug CACHE TYPE INTERNAL FORCE)
|
| 86 |
+
else (${CMAKE_VERSION} VERSION_LESS "3.14.0")
|
| 87 |
+
# But the above line gives warning on CMake >= 3.14, alternative
|
| 88 |
+
set(CMAKE_CONFIGURATION_TYPES Release Debug CACHE STRING "" FORCE)
|
| 89 |
+
endif (${CMAKE_VERSION} VERSION_LESS "3.14.0")
|
| 90 |
+
|
| 91 |
+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /MP")
|
| 92 |
+
string(REPLACE "/W3" "/W4" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
|
| 93 |
+
string(REPLACE "/GR" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
|
| 94 |
+
|
| 95 |
+
string(REPLACE "/O2" "/Ox" CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE}")
|
| 96 |
+
string(REPLACE "/Ob2" "" CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE}")
|
| 97 |
+
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /Ot /Oi /Gy /Z7")
|
| 98 |
+
|
| 99 |
+
set(CMAKE_SHARED_LINKER_FLAGS_RELEASE "${CMAKE_SHARED_LINKER_FLAGS_RELEASE} /LTCG:incremental /OPT:REF /OPT:ICF")
|
| 100 |
+
elseif (UNIX)
|
| 101 |
+
# Turn on C++11
|
| 102 |
+
add_definitions(-std=c++11)
|
| 103 |
+
set(CMAKE_CXX_FLAGS_RELEASE "-O3")
|
| 104 |
+
elseif (APPLE)
|
| 105 |
+
# Turn on C++11
|
| 106 |
+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
|
| 107 |
+
set(CMAKE_CXX_FLAGS_RELEASE "-O3")
|
| 108 |
+
endif (WIN32)
|
| 109 |
+
|
| 110 |
+
# C++ additional flags
|
| 111 |
+
if (CMAKE_COMPILER_IS_GNUCXX)
|
| 112 |
+
message(STATUS "GCC detected, adding compile flags")
|
| 113 |
+
# set(OP_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fopenmp -Wpedantic -Wall -Wextra -Wfatal-errors")
|
| 114 |
+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fopenmp")
|
| 115 |
+
set(OP_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wpedantic -Wall -Wextra -Wfatal-errors")
|
| 116 |
+
# set(CUDA_NVCC_FLAGS "${CUDA_NVCC_FLAGS} -Wpedantic -Wall -Wextra -Wfatal-errors")
|
| 117 |
+
endif (CMAKE_COMPILER_IS_GNUCXX)
|
| 118 |
+
|
| 119 |
+
# Select the Enhanced Instruction Set
|
| 120 |
+
set(INSTRUCTION_SET NONE CACHE STRING "Enable Enhanced Instruction Set")
|
| 121 |
+
set_property(CACHE INSTRUCTION_SET PROPERTY STRINGS NONE AVX2)
|
| 122 |
+
if (${INSTRUCTION_SET} MATCHES "AVX2")
|
| 123 |
+
add_definitions("-DWITH_AVX")
|
| 124 |
+
endif (${INSTRUCTION_SET} MATCHES "AVX2")
|
| 125 |
+
# Windows
|
| 126 |
+
if (WIN32)
|
| 127 |
+
# Suboptions for Enhanced Instruction Set
|
| 128 |
+
if (${INSTRUCTION_SET} MATCHES "AVX2")
|
| 129 |
+
add_definitions("/arch:AVX2")
|
| 130 |
+
endif (${INSTRUCTION_SET} MATCHES "AVX2")
|
| 131 |
+
# Ubuntu
|
| 132 |
+
else (WIN32) # if (CMAKE_COMPILER_IS_GNUCXX)
|
| 133 |
+
if (${INSTRUCTION_SET} MATCHES "AVX2")
|
| 134 |
+
set(SIMD_FLAGS "${SIMD_FLAGS} -mavx -march=native")
|
| 135 |
+
endif (${INSTRUCTION_SET} MATCHES "AVX2")
|
| 136 |
+
message(STATUS "GCC detected, adding compile flags")
|
| 137 |
+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${SIMD_FLAGS}")
|
| 138 |
+
endif (WIN32)
|
| 139 |
+
# if (CMAKE_COMPILER_IS_GNUCXX)
|
| 140 |
+
# set_property(CACHE INSTRUCTION_SET PROPERTY STRINGS NONE SSE4 AVX)
|
| 141 |
+
# if (${INSTRUCTION_SET} MATCHES "SSE4")
|
| 142 |
+
# add_definitions("-DWITH_SSE4")
|
| 143 |
+
# set(SIMD_FLAGS "${SIMD_FLAGS} -msse4.1")
|
| 144 |
+
# endif (${INSTRUCTION_SET} MATCHES "SSE4")
|
| 145 |
+
# if (${INSTRUCTION_SET} MATCHES "AVX2")
|
| 146 |
+
# add_definitions("-DWITH_AVX")
|
| 147 |
+
# set(SIMD_FLAGS "${SIMD_FLAGS} -mavx -march=native")
|
| 148 |
+
# endif (${INSTRUCTION_SET} MATCHES "AVX2")
|
| 149 |
+
# message(STATUS "GCC detected, adding compile flags")
|
| 150 |
+
# set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${SIMD_FLAGS}")
|
| 151 |
+
# endif (CMAKE_COMPILER_IS_GNUCXX)
|
| 152 |
+
# if (WIN32)
|
| 153 |
+
# # set_property(CACHE INSTRUCTION_SET PROPERTY STRINGS NONE SSE SSE2 AVX AVX2 IA32)
|
| 154 |
+
# # Suboptions for Enhanced Instruction Set
|
| 155 |
+
# if (${INSTRUCTION_SET} MATCHES "SSE")
|
| 156 |
+
# add_definitions("/arch:SSE")
|
| 157 |
+
# elseif (${INSTRUCTION_SET} MATCHES "SSE2")
|
| 158 |
+
# add_definitions("/arch:SSE2")
|
| 159 |
+
# elseif (${INSTRUCTION_SET} MATCHES "AVX")
|
| 160 |
+
# add_definitions("/arch:AVX")
|
| 161 |
+
# elseif (${INSTRUCTION_SET} MATCHES "AVX2")
|
| 162 |
+
# add_definitions("/arch:AVX2")
|
| 163 |
+
# elseif (${INSTRUCTION_SET} MATCHES "IA32")
|
| 164 |
+
# add_definitions("/arch:IA32")
|
| 165 |
+
# endif (${INSTRUCTION_SET} MATCHES "SSE")
|
| 166 |
+
# endif (WIN32)
|
| 167 |
+
|
| 168 |
+
|
| 169 |
+
### PROJECT OPTIONS
|
| 170 |
+
# Select the DL Framework
|
| 171 |
+
set(DL_FRAMEWORK CAFFE CACHE STRING "Select Deep Learning Framework.")
|
| 172 |
+
if (WIN32)
|
| 173 |
+
set_property(CACHE DL_FRAMEWORK PROPERTY STRINGS CAFFE)
|
| 174 |
+
else (WIN32)
|
| 175 |
+
set_property(CACHE DL_FRAMEWORK PROPERTY STRINGS CAFFE NV_CAFFE)
|
| 176 |
+
# set_property(CACHE DL_FRAMEWORK PROPERTY STRINGS CAFFE NV_CAFFE PYTORCH TENSORFLOW)
|
| 177 |
+
endif (WIN32)
|
| 178 |
+
|
| 179 |
+
# Suboptions for Caffe DL Framework
|
| 180 |
+
include(CMakeDependentOption)
|
| 181 |
+
if (${DL_FRAMEWORK} MATCHES "CAFFE" OR ${DL_FRAMEWORK} MATCHES "NV_CAFFE")
|
| 182 |
+
CMAKE_DEPENDENT_OPTION(BUILD_CAFFE "Build Caffe as part of OpenPose." ON
|
| 183 |
+
"DL_FRAMEWORK" ON)
|
| 184 |
+
# OpenPose flags
|
| 185 |
+
add_definitions(-DUSE_CAFFE)
|
| 186 |
+
# Nvidia NVCaffe
|
| 187 |
+
if (${DL_FRAMEWORK} MATCHES "NV_CAFFE")
|
| 188 |
+
MESSAGE(STATUS "Using NVIDIA NVCaffe")
|
| 189 |
+
add_definitions(-DNV_CAFFE)
|
| 190 |
+
endif (${DL_FRAMEWORK} MATCHES "NV_CAFFE")
|
| 191 |
+
endif (${DL_FRAMEWORK} MATCHES "CAFFE" OR ${DL_FRAMEWORK} MATCHES "NV_CAFFE")
|
| 192 |
+
|
| 193 |
+
# Set the acceleration library
|
| 194 |
+
if (APPLE)
|
| 195 |
+
set(GPU_MODE CPU_ONLY CACHE STRING "Select the acceleration GPU library or CPU otherwise.")
|
| 196 |
+
else (APPLE)
|
| 197 |
+
set(GPU_MODE CUDA CACHE STRING "Select the acceleration GPU library or CPU otherwise.")
|
| 198 |
+
endif (APPLE)
|
| 199 |
+
# Display proper options to user
|
| 200 |
+
# if (CUDA_FOUND AND OpenCL_FOUND)
|
| 201 |
+
# set_property(CACHE GPU_MODE PROPERTY STRINGS CUDA OPENCL CPU_ONLY)
|
| 202 |
+
# elseif (CUDA_FOUND)
|
| 203 |
+
# set_property(CACHE GPU_MODE PROPERTY STRINGS CUDA CPU_ONLY)
|
| 204 |
+
# elseif (OpenCL_FOUND)
|
| 205 |
+
# set_property(CACHE GPU_MODE PROPERTY STRINGS OPENCL CPU_ONLY)
|
| 206 |
+
# else ()
|
| 207 |
+
# set_property(CACHE GPU_MODE PROPERTY STRINGS CPU_ONLY)
|
| 208 |
+
# endif (CUDA_FOUND AND OpenCL_FOUND)
|
| 209 |
+
set_property(CACHE GPU_MODE PROPERTY STRINGS CUDA OPENCL CPU_ONLY)
|
| 210 |
+
|
| 211 |
+
# Look for CUDA
|
| 212 |
+
set(CUDA_FOUND FALSE)
|
| 213 |
+
if (${GPU_MODE} MATCHES "CUDA")
|
| 214 |
+
find_package(CUDA)
|
| 215 |
+
endif (${GPU_MODE} MATCHES "CUDA")
|
| 216 |
+
# Look for OpenCL
|
| 217 |
+
set(OpenCL_FOUND FALSE)
|
| 218 |
+
set(CUDA_VERSION_MAJOR 0)
|
| 219 |
+
if (${GPU_MODE} MATCHES "OPENCL")
|
| 220 |
+
find_package(OpenCL)
|
| 221 |
+
endif (${GPU_MODE} MATCHES "OPENCL")
|
| 222 |
+
|
| 223 |
+
# Code to avoid crash at compiling time if OpenCL is not found
|
| 224 |
+
if (NOT OpenCL_FOUND)
|
| 225 |
+
set(OpenCL_LIBRARIES "")
|
| 226 |
+
endif (NOT OpenCL_FOUND)
|
| 227 |
+
# Required for OpenCL in Nvidia graphic cards
|
| 228 |
+
if (CUDA_FOUND AND OpenCL_FOUND AND ${CUDA_VERSION_MAJOR} LESS 9)
|
| 229 |
+
add_definitions(-DLOWER_CL_VERSION)
|
| 230 |
+
endif (CUDA_FOUND AND OpenCL_FOUND AND ${CUDA_VERSION_MAJOR} LESS 9)
|
| 231 |
+
# Handle desired GPU mode option
|
| 232 |
+
if (${GPU_MODE} MATCHES "CUDA")
|
| 233 |
+
# OpenPose flags
|
| 234 |
+
add_definitions(-DUSE_CUDA)
|
| 235 |
+
message(STATUS "Building with CUDA.")
|
| 236 |
+
elseif (${GPU_MODE} MATCHES "CPU_ONLY")
|
| 237 |
+
add_definitions(-DUSE_CPU_ONLY)
|
| 238 |
+
message(STATUS "Building CPU Only.")
|
| 239 |
+
# OpenPose flag for Caffe
|
| 240 |
+
add_definitions(-DCPU_ONLY)
|
| 241 |
+
elseif (${GPU_MODE} MATCHES "OPENCL")
|
| 242 |
+
# OpenPose flag for Caffe
|
| 243 |
+
add_definitions(-DUSE_OPENCL)
|
| 244 |
+
add_definitions(-DUSE_GREENTEA)
|
| 245 |
+
message(STATUS "Building with OpenCL.")
|
| 246 |
+
endif (${GPU_MODE} MATCHES "CUDA")
|
| 247 |
+
|
| 248 |
+
# Intel branch with MKL Support
|
| 249 |
+
if (${GPU_MODE} MATCHES "CPU_ONLY")
|
| 250 |
+
if (UNIX AND NOT APPLE)
|
| 251 |
+
OPTION(USE_MKL "Use MKL Intel Branch." OFF)
|
| 252 |
+
endif (UNIX AND NOT APPLE)
|
| 253 |
+
endif (${GPU_MODE} MATCHES "CPU_ONLY")
|
| 254 |
+
|
| 255 |
+
if (${USE_MKL})
|
| 256 |
+
# OpenPose flags
|
| 257 |
+
add_definitions(-DUSE_MKL)
|
| 258 |
+
message(STATUS "Building with MKL support.")
|
| 259 |
+
endif (${USE_MKL})
|
| 260 |
+
|
| 261 |
+
# Set/disable profiler
|
| 262 |
+
if (PROFILER_ENABLED)
|
| 263 |
+
add_definitions(-DPROFILER_ENABLED)
|
| 264 |
+
endif (PROFILER_ENABLED)
|
| 265 |
+
|
| 266 |
+
# Suboptions for GPU architectures
|
| 267 |
+
if (${GPU_MODE} MATCHES "CUDA")
|
| 268 |
+
set(CUDA_ARCH Auto CACHE STRING "Select target NVIDIA GPU architecture.")
|
| 269 |
+
set_property(CACHE CUDA_ARCH PROPERTY STRINGS Auto All Manual)
|
| 270 |
+
endif (${GPU_MODE} MATCHES "CUDA")
|
| 271 |
+
|
| 272 |
+
# Suboptions for acceleration library
|
| 273 |
+
if (${GPU_MODE} MATCHES "CUDA")
|
| 274 |
+
option(USE_CUDNN "Build OpenPose with cuDNN library support." ON)
|
| 275 |
+
endif (${GPU_MODE} MATCHES "CUDA")
|
| 276 |
+
|
| 277 |
+
# Suboptions for OpenPose 3D Reconstruction module and demo
|
| 278 |
+
option(WITH_3D_RENDERER "Add OpenPose 3D renderer module (it requires FreeGLUT library)." OFF)
|
| 279 |
+
if (UNIX AND NOT APPLE)
|
| 280 |
+
option(WITH_CERES "Add Ceres support for advanced 3-D reconstruction." OFF)
|
| 281 |
+
endif (UNIX AND NOT APPLE)
|
| 282 |
+
option(WITH_FLIR_CAMERA "Add FLIR (formerly Point Grey) camera code (requires Spinnaker SDK already installed)." OFF)
|
| 283 |
+
# option(WITH_3D_ADAM_MODEL "Add 3-D Adam model (requires OpenGL, Ceres, Eigen, OpenMP, FreeImage, GLEW, and IGL already installed)." OFF)
|
| 284 |
+
|
| 285 |
+
# Faster GUI rendering
|
| 286 |
+
# Note: It seems to work by default in Windows and Ubuntu, but not in Mac nor Android.
|
| 287 |
+
# More info: https://stackoverflow.com/questions/21129683/does-opengl-display-image-faster-than-opencv?answertab=active#tab-top
|
| 288 |
+
option(WITH_OPENCV_WITH_OPENGL "Much faster GUI display, but you must also enable OpenGL support in OpenCV by configuring OpenCV using CMake with WITH_OPENGL=ON flag." OFF)
|
| 289 |
+
|
| 290 |
+
# Set the acceleration library
|
| 291 |
+
if (WIN32 OR APPLE)
|
| 292 |
+
set(WITH_EIGEN NONE CACHE STRING "Select the Eigen mode: NONE if not required, AUTOBUILD to let OpenPose download it, or FIND to let CMake find it (e.g., if you installed it manually).")
|
| 293 |
+
elseif (UNIX AND NOT APPLE)
|
| 294 |
+
set(WITH_EIGEN NONE CACHE STRING "Select the Eigen mode: NONE if not required, AUTOBUILD to let OpenPose download it, or FIND to let CMake find it (e.g., if you installed it manually or used `sudo apt-get install libeigen3-dev`).")
|
| 295 |
+
endif (WIN32 OR APPLE)
|
| 296 |
+
set_property(CACHE WITH_EIGEN PROPERTY STRINGS NONE AUTOBUILD FIND)
|
| 297 |
+
|
| 298 |
+
# # Suboptions for OpenPose tracking
|
| 299 |
+
# if (UNIX AND NOT APPLE)
|
| 300 |
+
# option(WITH_TRACKING "Add OpenPose 3D tracking module (it requires OpenCV with CUDA support)." OFF)
|
| 301 |
+
# endif (UNIX AND NOT APPLE)
|
| 302 |
+
|
| 303 |
+
# Download the models
|
| 304 |
+
option(DOWNLOAD_BODY_25_MODEL "Download body 25-keypoint (body COCO and 6-keypoint foot) model." ON)
|
| 305 |
+
option(DOWNLOAD_BODY_COCO_MODEL "Download body 18-keypoint COCO model." OFF)
|
| 306 |
+
option(DOWNLOAD_BODY_MPI_MODEL "Download body 15-keypoint MPI model." OFF)
|
| 307 |
+
option(DOWNLOAD_FACE_MODEL "Download face model." ON)
|
| 308 |
+
option(DOWNLOAD_HAND_MODEL "Download hand model." ON)
|
| 309 |
+
|
| 310 |
+
# Asio
|
| 311 |
+
# option(USE_ASIO "Include Asio header-only library." OFF)
|
| 312 |
+
|
| 313 |
+
# More options
|
| 314 |
+
option(BUILD_EXAMPLES "Build OpenPose examples." ON)
|
| 315 |
+
option(BUILD_DOCS "Build OpenPose documentation." OFF)
|
| 316 |
+
option(BUILD_PYTHON "Build OpenPose python." OFF)
|
| 317 |
+
if (WIN32)
|
| 318 |
+
option(BUILD_BIN_FOLDER "Copy all required 3rd-party DLL files into {build_directory}/bin. Disable to save some memory." ON)
|
| 319 |
+
endif (WIN32)
|
| 320 |
+
|
| 321 |
+
# Unity
|
| 322 |
+
option(BUILD_UNITY_SUPPORT "Build OpenPose as a Unity plugin." OFF)
|
| 323 |
+
|
| 324 |
+
# Build as shared library
|
| 325 |
+
option(BUILD_SHARED_LIBS "Build as shared lib." ON)
|
| 326 |
+
|
| 327 |
+
# Speed profiler
|
| 328 |
+
option(PROFILER_ENABLED "If enabled, OpenPose will be able to print out speed information at runtime." OFF)
|
| 329 |
+
|
| 330 |
+
# Threads - Pthread
|
| 331 |
+
if (${GPU_MODE} MATCHES "OPENCL" OR (UNIX OR APPLE))
|
| 332 |
+
unset(CMAKE_THREAD_LIBS_INIT CACHE)
|
| 333 |
+
find_package(Threads)
|
| 334 |
+
endif (${GPU_MODE} MATCHES "OPENCL" OR (UNIX OR APPLE))
|
| 335 |
+
|
| 336 |
+
# Caffe OpenCL Boost Issue
|
| 337 |
+
if (APPLE)
|
| 338 |
+
if (${GPU_MODE} MATCHES "OPENCL" OR BUILD_PYTHON)
|
| 339 |
+
unset(Boost_SYSTEM_LIBRARY CACHE)
|
| 340 |
+
find_package(Boost COMPONENTS system REQUIRED)
|
| 341 |
+
else ()
|
| 342 |
+
set(Boost_SYSTEM_LIBRARY "")
|
| 343 |
+
endif ()
|
| 344 |
+
endif (APPLE)
|
| 345 |
+
|
| 346 |
+
set(DOWNLOAD_SERVER "http://vcl.snu.ac.kr/OpenPose/" CACHE STRING "Server from which the models and 3rdparty libraries will be downloaded from.")
|
| 347 |
+
mark_as_advanced(DOWNLOAD_SERVER)
|
| 348 |
+
|
| 349 |
+
### FIND REQUIRED PACKAGES
|
| 350 |
+
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/Modules")
|
| 351 |
+
|
| 352 |
+
if (${GPU_MODE} MATCHES "CUDA")
|
| 353 |
+
find_package(CUDA)
|
| 354 |
+
endif (${GPU_MODE} MATCHES "CUDA")
|
| 355 |
+
|
| 356 |
+
# Adding 3D
|
| 357 |
+
if (WITH_OPENCV_WITH_OPENGL)
|
| 358 |
+
# OpenPose flags
|
| 359 |
+
add_definitions(-DUSE_OPENCV_WITH_OPENGL)
|
| 360 |
+
endif (WITH_OPENCV_WITH_OPENGL)
|
| 361 |
+
if (WITH_3D_RENDERER)
|
| 362 |
+
# OpenPose flags
|
| 363 |
+
add_definitions(-DUSE_3D_RENDERER)
|
| 364 |
+
endif (WITH_3D_RENDERER)
|
| 365 |
+
if (WITH_CERES)
|
| 366 |
+
add_definitions(-DUSE_CERES)
|
| 367 |
+
endif (WITH_CERES)
|
| 368 |
+
if (WITH_FLIR_CAMERA)
|
| 369 |
+
# OpenPose flags
|
| 370 |
+
add_definitions(-DUSE_FLIR_CAMERA)
|
| 371 |
+
endif (WITH_FLIR_CAMERA)
|
| 372 |
+
if (WITH_3D_ADAM_MODEL)
|
| 373 |
+
# OpenPose flags
|
| 374 |
+
add_definitions(-DUSE_3D_ADAM_MODEL)
|
| 375 |
+
endif (WITH_3D_ADAM_MODEL)
|
| 376 |
+
|
| 377 |
+
# Adding tracking
|
| 378 |
+
if (WITH_TRACKING)
|
| 379 |
+
# OpenPose flags
|
| 380 |
+
add_definitions(-DUSE_TRACKING)
|
| 381 |
+
endif (WITH_TRACKING)
|
| 382 |
+
|
| 383 |
+
# Unity
|
| 384 |
+
if (BUILD_UNITY_SUPPORT)
|
| 385 |
+
# OpenPose flags
|
| 386 |
+
add_definitions(-DUSE_UNITY_SUPPORT)
|
| 387 |
+
endif (BUILD_UNITY_SUPPORT)
|
| 388 |
+
|
| 389 |
+
# Calibration
|
| 390 |
+
# No Eigen
|
| 391 |
+
if (${WITH_EIGEN} MATCHES "NONE")
|
| 392 |
+
if (WITH_CERES)
|
| 393 |
+
message(FATAL_ERROR "Eigen is required (enable `WITH_EIGEN`) if CERES is enabled.")
|
| 394 |
+
endif (WITH_CERES)
|
| 395 |
+
# If Eigen used
|
| 396 |
+
else (${WITH_EIGEN} MATCHES "NONE")
|
| 397 |
+
# OpenPose flags
|
| 398 |
+
add_definitions(-DUSE_EIGEN)
|
| 399 |
+
# OpenPose download/builds Eigen
|
| 400 |
+
if (${WITH_EIGEN} MATCHES "AUTOBUILD")
|
| 401 |
+
# Download it
|
| 402 |
+
set(OP_URL "${DOWNLOAD_SERVER}3rdparty/")
|
| 403 |
+
set(FIND_LIB_PREFIX ${CMAKE_SOURCE_DIR}/3rdparty/)
|
| 404 |
+
download_zip("eigen_2020_11_18.zip" ${OP_URL} ${FIND_LIB_PREFIX} 57672715C62C1A795300FE1AE4D2687E)
|
| 405 |
+
# Set path
|
| 406 |
+
set(EIGEN3_INCLUDE_DIRS "3rdparty/eigen/include/")
|
| 407 |
+
# Leave to CMake to find it
|
| 408 |
+
elseif (${WITH_EIGEN} MATCHES "FIND")
|
| 409 |
+
# Eigen
|
| 410 |
+
# # Option a) apt-get
|
| 411 |
+
# find_package(PkgConfig)
|
| 412 |
+
# pkg_check_modules(EIGEN3 REQUIRED eigen3)
|
| 413 |
+
# # Option b) Find it (including apt-get)
|
| 414 |
+
if (CUDA_VERSION_STRING STRGREATER "9.0")
|
| 415 |
+
find_package(Eigen3 3.3.5 REQUIRED NO_MODULE)
|
| 416 |
+
else (CUDA_VERSION_STRING STRGREATER "9.0")
|
| 417 |
+
find_package(Eigen3 3 REQUIRED NO_MODULE)
|
| 418 |
+
endif (CUDA_VERSION_STRING STRGREATER "9.0")
|
| 419 |
+
endif (${WITH_EIGEN} MATCHES "AUTOBUILD")
|
| 420 |
+
endif (${WITH_EIGEN} MATCHES "NONE")
|
| 421 |
+
|
| 422 |
+
if (UNIX OR APPLE)
|
| 423 |
+
if (${GPU_MODE} MATCHES "CUDA")
|
| 424 |
+
include(cmake/Cuda.cmake)
|
| 425 |
+
find_package(CuDNN)
|
| 426 |
+
endif (${GPU_MODE} MATCHES "CUDA")
|
| 427 |
+
find_package(GFlags) # For Caffe and OpenPose
|
| 428 |
+
find_package(Glog) # For Caffe
|
| 429 |
+
find_package(Protobuf REQUIRED) # For Caffe
|
| 430 |
+
|
| 431 |
+
if (OpenCV_CONFIG_FILE)
|
| 432 |
+
include (${OpenCV_CONFIG_FILE})
|
| 433 |
+
# Allow explicitly setting the OpenCV includes and libs
|
| 434 |
+
elseif (OpenCV_INCLUDE_DIRS AND OpenCV_LIBS)
|
| 435 |
+
set(OpenCV_FOUND 1)
|
| 436 |
+
elseif (OpenCV_INCLUDE_DIRS AND OpenCV_LIBS_DIR)
|
| 437 |
+
file(GLOB_RECURSE OpenCV_LIBS "${OpenCV_LIBS_DIR}*.so")
|
| 438 |
+
set(OpenCV_FOUND 1)
|
| 439 |
+
else (OpenCV_CONFIG_FILE)
|
| 440 |
+
find_package(OpenCV)
|
| 441 |
+
endif (OpenCV_CONFIG_FILE)
|
| 442 |
+
|
| 443 |
+
# 3D
|
| 444 |
+
if (WITH_3D_RENDERER)
|
| 445 |
+
# OpenGL
|
| 446 |
+
find_package(OpenGL REQUIRED)
|
| 447 |
+
# GLUT
|
| 448 |
+
find_package(GLUT REQUIRED)
|
| 449 |
+
# OpenGL
|
| 450 |
+
find_package(OpenGL REQUIRED)
|
| 451 |
+
endif (WITH_3D_RENDERER)
|
| 452 |
+
if (WITH_CERES)
|
| 453 |
+
# Eigen + Ceres
|
| 454 |
+
find_package(Ceres REQUIRED COMPONENTS SuiteSparse)
|
| 455 |
+
endif (WITH_CERES)
|
| 456 |
+
if (WITH_FLIR_CAMERA)
|
| 457 |
+
# Spinnaker
|
| 458 |
+
find_package(Spinnaker)
|
| 459 |
+
if (NOT SPINNAKER_FOUND)
|
| 460 |
+
message(FATAL_ERROR "Spinnaker not found. Either turn off the `WITH_FLIR_CAMERA` option or specify the path to
|
| 461 |
+
the Spinnaker includes and libs.")
|
| 462 |
+
endif (NOT SPINNAKER_FOUND)
|
| 463 |
+
endif (WITH_FLIR_CAMERA)
|
| 464 |
+
if (WITH_3D_ADAM_MODEL)
|
| 465 |
+
if (NOT WITH_3D_RENDERER)
|
| 466 |
+
message(FATAL_ERROR "WITH_3D_RENDERER is required if WITH_3D_ADAM_MODEL is enabled.")
|
| 467 |
+
endif (NOT WITH_3D_RENDERER)
|
| 468 |
+
# Eigen
|
| 469 |
+
# # Option a) apt-get
|
| 470 |
+
# find_package(PkgConfig)
|
| 471 |
+
# pkg_check_modules(EIGEN3 REQUIRED eigen3)
|
| 472 |
+
# # Option b) Find it (including apt-get)
|
| 473 |
+
if (CUDA_VERSION_STRING STRGREATER "9.0")
|
| 474 |
+
find_package(Eigen3 3.3.5 REQUIRED NO_MODULE)
|
| 475 |
+
else (CUDA_VERSION_STRING STRGREATER "9.0")
|
| 476 |
+
find_package(Eigen3 3 REQUIRED NO_MODULE)
|
| 477 |
+
endif (CUDA_VERSION_STRING STRGREATER "9.0")
|
| 478 |
+
# Others: sudo apt-get install libglm-dev
|
| 479 |
+
# http://ceres-solver.org
|
| 480 |
+
find_package(Ceres REQUIRED COMPONENTS SuiteSparse)
|
| 481 |
+
# sudo apt-get install libglew-dev
|
| 482 |
+
find_package(GLEW REQUIRED)
|
| 483 |
+
# find_package(GLUT REQUIRED) # TODO: Duplicated of WITH_3D_RENDERER, clean somehow (like Eigen)
|
| 484 |
+
# git clone --recursive https://github.com/libigl/libigl.git
|
| 485 |
+
# No installation, it's header only
|
| 486 |
+
# TODO: It's header only (as Eigen), do AUTOBUILD option too to download it
|
| 487 |
+
find_package(LIBIGL REQUIRED)
|
| 488 |
+
find_package(OpenMP REQUIRED)
|
| 489 |
+
# Only adam/renderer::Renderer::IdleSaveImage() uses it. Make dependency optional in hand_model
|
| 490 |
+
# FIND_LIBRARY(FREE_IMAGE_LIBRARY NAMES libfreeimage.so)
|
| 491 |
+
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}")
|
| 492 |
+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}")
|
| 493 |
+
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${OpenMP_EXE_LINKER_FLAGS}")
|
| 494 |
+
endif (WITH_3D_ADAM_MODEL)
|
| 495 |
+
|
| 496 |
+
# OpenMP
|
| 497 |
+
if (${GPU_MODE} MATCHES "CPU_ONLY")
|
| 498 |
+
find_package(OpenMP)
|
| 499 |
+
if (OPENMP_FOUND)
|
| 500 |
+
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}")
|
| 501 |
+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}")
|
| 502 |
+
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${OpenMP_EXE_LINKER_FLAGS}")
|
| 503 |
+
endif (OPENMP_FOUND)
|
| 504 |
+
endif (${GPU_MODE} MATCHES "CPU_ONLY")
|
| 505 |
+
|
| 506 |
+
if (${GPU_MODE} MATCHES "CUDA")
|
| 507 |
+
# Set CUDA Flags
|
| 508 |
+
set(CUDA_NVCC_FLAGS "${CUDA_NVCC_FLAGS} -std=c++14") # Thrust library requires C++14 for CUDA >= 11
|
| 509 |
+
set(CUDA_NVCC_FLAGS_DEBUG "${CUDA_NVCC_FLAGS_DEBUG} -D_DEBUG -g")
|
| 510 |
+
|
| 511 |
+
if (NOT CUDA_FOUND)
|
| 512 |
+
message(STATUS "CUDA not found.")
|
| 513 |
+
execute_process(COMMAND cat install_cuda.sh WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/scripts/ubuntu)
|
| 514 |
+
message(FATAL_ERROR "Install CUDA using the above commands.")
|
| 515 |
+
endif (NOT CUDA_FOUND)
|
| 516 |
+
|
| 517 |
+
if (USE_CUDNN AND NOT CUDNN_FOUND)
|
| 518 |
+
message(STATUS "cuDNN not found.")
|
| 519 |
+
execute_process(COMMAND cat install_cudnn_up_to_Ubuntu16.sh WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/scripts/ubuntu)
|
| 520 |
+
message(FATAL_ERROR "Install cuDNN using the above commands. or turn off cuDNN by setting USE_CUDNN to OFF.")
|
| 521 |
+
endif (USE_CUDNN AND NOT CUDNN_FOUND)
|
| 522 |
+
endif (${GPU_MODE} MATCHES "CUDA")
|
| 523 |
+
|
| 524 |
+
if (NOT GLOG_FOUND)
|
| 525 |
+
message(FATAL_ERROR "Glog not found. Install Glog from the command line using the command(s) -\
|
| 526 |
+
sudo apt-get install libgoogle-glog-dev")
|
| 527 |
+
endif (NOT GLOG_FOUND)
|
| 528 |
+
|
| 529 |
+
if (NOT GFLAGS_FOUND)
|
| 530 |
+
message(FATAL_ERROR "GFlags not found. Install GFlags from the command line using the command(s) --\
|
| 531 |
+
sudo apt-get install libgflags-dev")
|
| 532 |
+
endif (NOT GFLAGS_FOUND)
|
| 533 |
+
|
| 534 |
+
if (NOT OpenCV_FOUND)
|
| 535 |
+
message(FATAL_ERROR "OpenCV not found. Install OpenCV from the command line using the command(s) --\
|
| 536 |
+
sudo apt-get install libopencv-dev")
|
| 537 |
+
endif (NOT OpenCV_FOUND)
|
| 538 |
+
|
| 539 |
+
endif (UNIX OR APPLE)
|
| 540 |
+
|
| 541 |
+
if (WIN32)
|
| 542 |
+
|
| 543 |
+
if ("${CMAKE_VERSION}" VERSION_GREATER 3.6.3)
|
| 544 |
+
set_property(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY VS_STARTUP_PROJECT OpenPoseDemo)
|
| 545 |
+
endif ("${CMAKE_VERSION}" VERSION_GREATER 3.6.3)
|
| 546 |
+
|
| 547 |
+
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
|
| 548 |
+
set(FIND_LIB_PREFIX ${CMAKE_SOURCE_DIR}/3rdparty/windows)
|
| 549 |
+
|
| 550 |
+
# Download Windows 3rd party
|
| 551 |
+
message(STATUS "Downloading windows dependencies...")
|
| 552 |
+
set(OP_WIN_URL "${DOWNLOAD_SERVER}3rdparty/windows")
|
| 553 |
+
set(OP_WIN_DIR "${CMAKE_SOURCE_DIR}/3rdparty/windows")
|
| 554 |
+
|
| 555 |
+
# Download required zip files
|
| 556 |
+
download_zip("opencv_450_v15_2020_11_18.zip" ${OP_WIN_URL} ${FIND_LIB_PREFIX} AFB1BD1A160C43CF5FB856C8BB4FC483)
|
| 557 |
+
download_zip("caffe3rdparty_16_2020_11_14.zip" ${OP_WIN_URL} ${FIND_LIB_PREFIX} 83C17DC4473985B6AB3A29FD9AB93409)
|
| 558 |
+
if (${GPU_MODE} MATCHES "OPENCL")
|
| 559 |
+
download_zip("caffe_opencl_2018_02_13.zip" ${OP_WIN_URL} ${FIND_LIB_PREFIX} 3ac3e1acf5ee6a4e57920be73053067a)
|
| 560 |
+
elseif (${GPU_MODE} MATCHES "CPU_ONLY")
|
| 561 |
+
download_zip("caffe_cpu_2018_05_27.zip" ${OP_WIN_URL} ${FIND_LIB_PREFIX} 87E8401B6DFBAC5B8E909DD20E3B3390)
|
| 562 |
+
else (${GPU_MODE} MATCHES "OPENCL")
|
| 563 |
+
# download_zip("caffe_2019_03_12.zip" ${OP_WIN_URL} ${FIND_LIB_PREFIX} 859a592310f0928fd4f40da1456a217f)
|
| 564 |
+
# download_zip("caffe_15_2020_04_05.zip" ${OP_WIN_URL} ${FIND_LIB_PREFIX} cd4ec4d709a70c94aa6b151d2d040300)
|
| 565 |
+
download_zip("caffe_16_2020_11_14.zip" ${OP_WIN_URL} ${FIND_LIB_PREFIX} 33030DBEC9911533566E239199BB4716)
|
| 566 |
+
endif (${GPU_MODE} MATCHES "OPENCL")
|
| 567 |
+
if (WITH_3D_RENDERER)
|
| 568 |
+
download_zip("freeglut_2018_01_14.zip" ${OP_WIN_URL} ${FIND_LIB_PREFIX} BB182187285E06880F0EDE3A39530091)
|
| 569 |
+
endif (WITH_3D_RENDERER)
|
| 570 |
+
message(STATUS "Windows dependencies downloaded.")
|
| 571 |
+
|
| 572 |
+
set(OPENCV_VS_VERSION "15")
|
| 573 |
+
find_library(OpenCV_LIBS_RELEASE opencv_world450 HINTS ${FIND_LIB_PREFIX}/opencv/x64/vc${OPENCV_VS_VERSION}/lib)
|
| 574 |
+
find_library(OpenCV_LIBS_DEBUG opencv_world450d HINTS ${FIND_LIB_PREFIX}/opencv/x64/vc${OPENCV_VS_VERSION}/lib)
|
| 575 |
+
find_library(GFLAGS_LIBRARY_RELEASE gflags HINTS ${FIND_LIB_PREFIX}/caffe3rdparty/lib)
|
| 576 |
+
find_library(GFLAGS_LIBRARY_DEBUG gflagsd HINTS ${FIND_LIB_PREFIX}/caffe3rdparty/lib)
|
| 577 |
+
find_library(GLOG_LIBRARY_RELEASE glog HINTS ${FIND_LIB_PREFIX}/caffe3rdparty/lib)
|
| 578 |
+
find_library(GLOG_LIBRARY_DEBUG glogd HINTS ${FIND_LIB_PREFIX}/caffe3rdparty/lib)
|
| 579 |
+
|
| 580 |
+
# If OpenPose builds it
|
| 581 |
+
if (BUILD_CAFFE)
|
| 582 |
+
unset(Caffe_INCLUDE_DIRS CACHE)
|
| 583 |
+
unset(Caffe_LIB_RELEASE CACHE)
|
| 584 |
+
unset(Caffe_Proto_LIB_RELEASE CACHE)
|
| 585 |
+
endif (BUILD_CAFFE)
|
| 586 |
+
# OpenCL
|
| 587 |
+
if (${GPU_MODE} MATCHES "OPENCL")
|
| 588 |
+
set(VCXPROJ_FILE_GPU_MODE "_CL")
|
| 589 |
+
find_library(Caffe_LIB_RELEASE caffe HINTS ${FIND_LIB_PREFIX}/caffe_opencl/lib)
|
| 590 |
+
find_library(Caffe_Proto_LIB_RELEASE caffeproto HINTS ${FIND_LIB_PREFIX}/caffe_opencl/lib)
|
| 591 |
+
find_library(Caffe_LIB_DEBUG caffe-d HINTS ${FIND_LIB_PREFIX}/caffe_opencl/lib)
|
| 592 |
+
find_library(Caffe_Proto_LIB_DEBUG caffeproto-d HINTS ${FIND_LIB_PREFIX}/caffe_opencl/lib)
|
| 593 |
+
# CPU & CUDA
|
| 594 |
+
else (${GPU_MODE} MATCHES "OPENCL")
|
| 595 |
+
# CPU
|
| 596 |
+
if (${GPU_MODE} MATCHES "CPU_ONLY")
|
| 597 |
+
set(VCXPROJ_FILE_GPU_MODE "_CPU")
|
| 598 |
+
find_library(Caffe_LIB_RELEASE caffe HINTS ${FIND_LIB_PREFIX}/caffe_cpu/lib)
|
| 599 |
+
find_library(Caffe_Proto_LIB_RELEASE caffeproto HINTS ${FIND_LIB_PREFIX}/caffe_cpu/lib)
|
| 600 |
+
find_library(Caffe_LIB_DEBUG caffe-d HINTS ${FIND_LIB_PREFIX}/caffe_cpu/lib)
|
| 601 |
+
find_library(Caffe_Proto_LIB_DEBUG caffeproto-d HINTS ${FIND_LIB_PREFIX}/caffe_cpu/lib)
|
| 602 |
+
# CUDA
|
| 603 |
+
else (${GPU_MODE} MATCHES "CPU_ONLY")
|
| 604 |
+
set(VCXPROJ_FILE_GPU_MODE "")
|
| 605 |
+
find_library(Caffe_LIB_RELEASE caffe HINTS ${FIND_LIB_PREFIX}/caffe/lib)
|
| 606 |
+
find_library(Caffe_Proto_LIB_RELEASE caffeproto HINTS ${FIND_LIB_PREFIX}/caffe/lib)
|
| 607 |
+
find_library(Caffe_LIB_DEBUG caffe-d HINTS ${FIND_LIB_PREFIX}/caffe/lib)
|
| 608 |
+
find_library(Caffe_Proto_LIB_DEBUG caffeproto-d HINTS ${FIND_LIB_PREFIX}/caffe/lib)
|
| 609 |
+
endif (${GPU_MODE} MATCHES "CPU_ONLY")
|
| 610 |
+
endif (${GPU_MODE} MATCHES "OPENCL")
|
| 611 |
+
# Boost DepCopy over required DLL
|
| 612 |
+
find_library(BOOST_SYSTEM_LIB_RELEASE boost_system-vc142-mt-x64-1_74 HINTS ${FIND_LIB_PREFIX}/caffe3rdparty/lib)
|
| 613 |
+
find_library(BOOST_SYSTEM_LIB_DEBUG boost_system-vc142-mt-gd-x64-1_74 HINTS ${FIND_LIB_PREFIX}/caffe3rdparty/lib)
|
| 614 |
+
find_library(BOOST_FILESYSTEM_LIB_RELEASE boost_filesystem-vc142-mt-x64-1_74 HINTS ${FIND_LIB_PREFIX}/caffe3rdparty/lib)
|
| 615 |
+
find_library(BOOST_FILESYSTEM_LIB_DEBUG boost_filesystem-vc142-mt-gd-x64-1_74 HINTS ${FIND_LIB_PREFIX}/caffe3rdparty/lib)
|
| 616 |
+
# message(STATUS "\${BOOST_SYSTEM_LIB_RELEASE} = ${BOOST_SYSTEM_LIB_RELEASE}")
|
| 617 |
+
# message(STATUS "\${BOOST_SYSTEM_LIB_DEBUG} = ${BOOST_SYSTEM_LIB_DEBUG}")
|
| 618 |
+
# message(STATUS "\${BOOST_FILESYSTEM_LIB_RELEASE} = ${BOOST_FILESYSTEM_LIB_RELEASE}")
|
| 619 |
+
# message(STATUS "\${BOOST_FILESYSTEM_LIB_DEBUG} = ${BOOST_FILESYSTEM_LIB_DEBUG}")
|
| 620 |
+
if (WITH_3D_RENDERER)
|
| 621 |
+
find_library(GLUT_LIBRARY freeglut HINTS ${FIND_LIB_PREFIX}/freeglut/lib)
|
| 622 |
+
message(STATUS "\${GLUT_LIBRARY} = ${GLUT_LIBRARY}")
|
| 623 |
+
endif (WITH_3D_RENDERER)
|
| 624 |
+
if (WITH_FLIR_CAMERA)
|
| 625 |
+
find_library(SPINNAKER_LIB spinnaker_v140 HINTS ${FIND_LIB_PREFIX}/spinnaker/lib)
|
| 626 |
+
endif (WITH_FLIR_CAMERA)
|
| 627 |
+
set(Caffe_LIBS_RELEASE "${Caffe_LIB_RELEASE};${Caffe_Proto_LIB_RELEASE}")
|
| 628 |
+
set(Caffe_LIBS_DEBUG "${Caffe_LIB_DEBUG};${Caffe_Proto_LIB_DEBUG}")
|
| 629 |
+
set(OpenCV_INCLUDE_DIRS "3rdparty/windows/opencv/include")
|
| 630 |
+
# OpenCL
|
| 631 |
+
if (${GPU_MODE} MATCHES "OPENCL")
|
| 632 |
+
unset(Caffe_INCLUDE_DIRS CACHE)
|
| 633 |
+
set(Caffe_INCLUDE_DIRS "3rdparty/windows/caffe_opencl/include;3rdparty/windows/caffe_opencl/include2" CACHE FILEPATH "Caffe_INCLUDE_DIRS")
|
| 634 |
+
# CUDA and CPU
|
| 635 |
+
else (${GPU_MODE} MATCHES "OPENCL")
|
| 636 |
+
# CPU
|
| 637 |
+
if (${GPU_MODE} MATCHES "CPU_ONLY")
|
| 638 |
+
set(Caffe_INCLUDE_DIRS "3rdparty/windows/caffe_cpu/include;3rdparty/windows/caffe_cpu/include2" CACHE FILEPATH "Caffe_INCLUDE_DIRS")
|
| 639 |
+
# CUDA
|
| 640 |
+
else (${GPU_MODE} MATCHES "CPU_ONLY")
|
| 641 |
+
set(Caffe_INCLUDE_DIRS "3rdparty/windows/caffe/include;3rdparty/windows/caffe/include2" CACHE FILEPATH "Caffe_INCLUDE_DIRS")
|
| 642 |
+
endif (${GPU_MODE} MATCHES "CPU_ONLY")
|
| 643 |
+
endif (${GPU_MODE} MATCHES "OPENCL")
|
| 644 |
+
# set(Boost_INCLUDE_DIRS "3rdparty/windows/caffe3rdparty/include/boost-1_61") # Added in WINDOWS_INCLUDE_DIRS
|
| 645 |
+
set(WINDOWS_INCLUDE_DIRS "3rdparty/windows/caffe3rdparty/include")
|
| 646 |
+
if (WITH_3D_RENDERER)
|
| 647 |
+
set(GLUT_INCLUDE_DIRS "3rdparty/windows/freeglut/include")
|
| 648 |
+
endif (WITH_3D_RENDERER)
|
| 649 |
+
if (WITH_FLIR_CAMERA)
|
| 650 |
+
set(SPINNAKER_INCLUDE_DIRS "3rdparty/windows/spinnaker/include")
|
| 651 |
+
endif (WITH_FLIR_CAMERA)
|
| 652 |
+
set(Caffe_FOUND 1)
|
| 653 |
+
|
| 654 |
+
# Build DLL Must be on if Build Python is on
|
| 655 |
+
if (BUILD_PYTHON)
|
| 656 |
+
if (NOT BUILD_BIN_FOLDER)
|
| 657 |
+
message(FATAL_ERROR "BUILD_BIN_FOLDER must be turned on to as well to build python library")
|
| 658 |
+
endif (NOT BUILD_BIN_FOLDER)
|
| 659 |
+
endif (BUILD_PYTHON)
|
| 660 |
+
|
| 661 |
+
# Auto copy DLLs
|
| 662 |
+
if (BUILD_BIN_FOLDER)
|
| 663 |
+
# Copy DLLs into same folder
|
| 664 |
+
set(BIN_FOLDER ${CMAKE_BINARY_DIR}/bin)
|
| 665 |
+
file(MAKE_DIRECTORY ${BIN_FOLDER})
|
| 666 |
+
# Locate and copy DLLs
|
| 667 |
+
# Caffe DLLs
|
| 668 |
+
if (${GPU_MODE} MATCHES "CUDA")
|
| 669 |
+
file(GLOB CAFFE_DLL "${CMAKE_SOURCE_DIR}/3rdparty/windows/caffe/bin/*.dll")
|
| 670 |
+
elseif (${GPU_MODE} MATCHES "OPENCL")
|
| 671 |
+
file(GLOB CAFFE_DLL "${CMAKE_SOURCE_DIR}/3rdparty/windows/caffe_opencl/bin/*.dll")
|
| 672 |
+
elseif (${GPU_MODE} MATCHES "CPU_ONLY")
|
| 673 |
+
file(GLOB CAFFE_DLL "${CMAKE_SOURCE_DIR}/3rdparty/windows/caffe_cpu/bin/*.dll")
|
| 674 |
+
endif ()
|
| 675 |
+
file(COPY ${CAFFE_DLL} DESTINATION ${BIN_FOLDER})
|
| 676 |
+
# Caffe 3rd-party DLLs
|
| 677 |
+
file(GLOB CAFFE_3RD_PARTY_DLL "${CMAKE_SOURCE_DIR}/3rdparty/windows/caffe3rdparty/lib/*.dll")
|
| 678 |
+
file(COPY ${CAFFE_3RD_PARTY_DLL} DESTINATION ${BIN_FOLDER})
|
| 679 |
+
# OpenCV DLLs
|
| 680 |
+
file(GLOB OPENCV_DLL "${CMAKE_SOURCE_DIR}/3rdparty/windows/opencv/x64/vc${OPENCV_VS_VERSION}/bin/*.dll")
|
| 681 |
+
file(COPY ${OPENCV_DLL} DESTINATION ${BIN_FOLDER})
|
| 682 |
+
# GLUT DLLs
|
| 683 |
+
if (WITH_3D_RENDERER OR WITH_3D_ADAM_MODEL)
|
| 684 |
+
file(GLOB GLUT_DLL "${CMAKE_SOURCE_DIR}/3rdparty/windows/freeglut/bin/*.dll")
|
| 685 |
+
file(COPY ${GLUT_DLL} DESTINATION ${BIN_FOLDER})
|
| 686 |
+
endif (WITH_3D_RENDERER OR WITH_3D_ADAM_MODEL)
|
| 687 |
+
# Spinnaker DLLs and other files
|
| 688 |
+
if (WITH_FLIR_CAMERA)
|
| 689 |
+
file(GLOB SPINNAKER_DLL "${CMAKE_SOURCE_DIR}/3rdparty/windows/spinnaker/bin/*")
|
| 690 |
+
file(COPY ${SPINNAKER_DLL} DESTINATION ${BIN_FOLDER})
|
| 691 |
+
endif (WITH_FLIR_CAMERA)
|
| 692 |
+
endif (BUILD_BIN_FOLDER)
|
| 693 |
+
|
| 694 |
+
endif (WIN32)
|
| 695 |
+
|
| 696 |
+
|
| 697 |
+
### CAFFE/NVCAFFE in Ubuntu
|
| 698 |
+
if (UNIX OR APPLE)
|
| 699 |
+
if (${DL_FRAMEWORK} MATCHES "CAFFE" OR ${DL_FRAMEWORK} MATCHES "NV_CAFFE")
|
| 700 |
+
# Check if the user specified caffe paths
|
| 701 |
+
if (Caffe_INCLUDE_DIRS AND Caffe_LIBS AND NOT BUILD_CAFFE)
|
| 702 |
+
message(STATUS "\${Caffe_INCLUDE_DIRS} set by the user to " ${Caffe_INCLUDE_DIRS})
|
| 703 |
+
message(STATUS "\${Caffe_LIBS} set by the user to " ${Caffe_LIBS})
|
| 704 |
+
set(Caffe_FOUND 1)
|
| 705 |
+
endif (Caffe_INCLUDE_DIRS AND Caffe_LIBS AND NOT BUILD_CAFFE)
|
| 706 |
+
|
| 707 |
+
# Else build from scratch
|
| 708 |
+
if (BUILD_CAFFE)
|
| 709 |
+
|
| 710 |
+
# Download Caffe
|
| 711 |
+
message(STATUS "Caffe will be downloaded from source now. NOTE: This process might take several minutes depending
|
| 712 |
+
on your internet connection.")
|
| 713 |
+
|
| 714 |
+
# Check if pulled
|
| 715 |
+
file(GLOB CAFFE_DIR_VALID ${CMAKE_SOURCE_DIR}/3rdparty/caffe/*)
|
| 716 |
+
list(LENGTH CAFFE_DIR_VALID CAFFE_DIR_VALID_LENGTH)
|
| 717 |
+
if (CAFFE_DIR_VALID_LENGTH EQUAL 0)
|
| 718 |
+
execute_process(COMMAND git submodule update --init ${CMAKE_SOURCE_DIR}/3rdparty/caffe)
|
| 719 |
+
# execute_process(COMMAND git submodule update --init --recursive --remote) # This would initialize them all
|
| 720 |
+
else (CAFFE_DIR_VALID_LENGTH EQUAL 0)
|
| 721 |
+
message(STATUS "Caffe has already been downloaded.")
|
| 722 |
+
endif (CAFFE_DIR_VALID_LENGTH EQUAL 0)
|
| 723 |
+
|
| 724 |
+
# Build Process
|
| 725 |
+
set(CAFFE_CPU_ONLY OFF)
|
| 726 |
+
if (${GPU_MODE} MATCHES "CUDA")
|
| 727 |
+
# execute_process(COMMAND git checkout master WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/3rdparty/caffe)
|
| 728 |
+
execute_process(COMMAND git checkout 1807aad WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/3rdparty/caffe)
|
| 729 |
+
elseif (${GPU_MODE} MATCHES "CPU_ONLY")
|
| 730 |
+
if (USE_MKL)
|
| 731 |
+
#execute_process(COMMAND git checkout intel WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/3rdparty/caffe)
|
| 732 |
+
execute_process(COMMAND git checkout b6712ce WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/3rdparty/caffe)
|
| 733 |
+
execute_process(COMMAND sh prepare_mkl.sh WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/3rdparty/caffe/external/mkl
|
| 734 |
+
OUTPUT_VARIABLE rv)
|
| 735 |
+
set( MLIST ${rv} )
|
| 736 |
+
separate_arguments(MLIST)
|
| 737 |
+
list(GET MLIST 0 MKL_PATH)
|
| 738 |
+
message(STATUS ${MKL_PATH})
|
| 739 |
+
file(GLOB MKL_SO
|
| 740 |
+
"${MKL_PATH}lib/*"
|
| 741 |
+
)
|
| 742 |
+
file(COPY ${MKL_SO} DESTINATION ${CMAKE_BINARY_DIR}/caffe)
|
| 743 |
+
|
| 744 |
+
# New MLSL Lib
|
| 745 |
+
#execute_process(COMMAND sh prepare_mlsl.sh WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/3rdparty/caffe/external/mlsl
|
| 746 |
+
# OUTPUT_VARIABLE rv)
|
| 747 |
+
#set( MLIST ${rv} )
|
| 748 |
+
#separate_arguments(MLIST)
|
| 749 |
+
#list(GET MLIST 0 MLSL_PATH)
|
| 750 |
+
#message(STATUS ${MLSL_PATH})
|
| 751 |
+
#file(GLOB MLSL_SO
|
| 752 |
+
# "${MLSL_PATH}/intel64/lib/*"
|
| 753 |
+
# )
|
| 754 |
+
#file(COPY ${MLSL_SO} DESTINATION ${CMAKE_BINARY_DIR}/caffe)
|
| 755 |
+
|
| 756 |
+
set(MKL_LIBS
|
| 757 |
+
#"${CMAKE_BINARY_DIR}/caffe/libmlsl.so"
|
| 758 |
+
"${CMAKE_BINARY_DIR}/caffe/libiomp5.so"
|
| 759 |
+
"${CMAKE_BINARY_DIR}/caffe/libmklml_intel.so"
|
| 760 |
+
"${CMAKE_BINARY_DIR}/caffe/lib/libmkldnn.so"
|
| 761 |
+
)
|
| 762 |
+
else (USE_MKL)
|
| 763 |
+
# execute_process(COMMAND git checkout master WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/3rdparty/caffe)
|
| 764 |
+
execute_process(COMMAND git checkout 1807aad WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/3rdparty/caffe)
|
| 765 |
+
endif (USE_MKL)
|
| 766 |
+
set(CAFFE_CPU_ONLY ON)
|
| 767 |
+
set(USE_CUDNN OFF)
|
| 768 |
+
elseif (${GPU_MODE} MATCHES "OPENCL")
|
| 769 |
+
execute_process(COMMAND git checkout fe2a1102 WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/3rdparty/caffe)
|
| 770 |
+
set(USE_CUDNN OFF)
|
| 771 |
+
endif (${GPU_MODE} MATCHES "CUDA")
|
| 772 |
+
|
| 773 |
+
# Build Caffe
|
| 774 |
+
message(STATUS "Caffe will be built from source now.")
|
| 775 |
+
find_package(Caffe)
|
| 776 |
+
include(ExternalProject)
|
| 777 |
+
set(CAFFE_PREFIX caffe)
|
| 778 |
+
set(CAFFE_URL ${CMAKE_SOURCE_DIR}/3rdparty/caffe)
|
| 779 |
+
|
| 780 |
+
# One for Intel Branch and one for Master
|
| 781 |
+
if (USE_MKL)
|
| 782 |
+
ExternalProject_Add(openpose_lib
|
| 783 |
+
SOURCE_DIR ${CAFFE_URL}
|
| 784 |
+
PREFIX ${CAFFE_PREFIX}
|
| 785 |
+
CMAKE_ARGS -DCMAKE_INSTALL_PREFIX:PATH=<INSTALL_DIR>
|
| 786 |
+
-DCMAKE_TOOLCHAIN_FILE=${CMAKE_TOOLCHAIN_FILE}
|
| 787 |
+
-DMKLDNN_INSTALL_DIR:PATH=<INSTALL_DIR>
|
| 788 |
+
-DUSE_MKL2017_AS_DEFAULT_ENGINE=${CAFFE_CPU_ONLY}
|
| 789 |
+
-DUSE_CUDNN=${USE_CUDNN}
|
| 790 |
+
-DCUDA_ARCH_NAME=${CUDA_ARCH}
|
| 791 |
+
-DCUDA_ARCH_BIN=${CUDA_ARCH_BIN}
|
| 792 |
+
-DCUDA_ARCH_PTX=${CUDA_ARCH_PTX}
|
| 793 |
+
-DCPU_ONLY=${CAFFE_CPU_ONLY}
|
| 794 |
+
-DCMAKE_BUILD_TYPE=Release
|
| 795 |
+
-DBUILD_docs=OFF
|
| 796 |
+
-DBUILD_python=OFF
|
| 797 |
+
-DBUILD_python_layer=OFF
|
| 798 |
+
-DUSE_LEVELDB=OFF
|
| 799 |
+
-DUSE_LMDB=OFF
|
| 800 |
+
-DUSE_OPENCV=OFF)
|
| 801 |
+
# -DOpenCV_DIR=${OpenCV_DIR})
|
| 802 |
+
else (USE_MKL)
|
| 803 |
+
ExternalProject_Add(openpose_lib
|
| 804 |
+
SOURCE_DIR ${CAFFE_URL}
|
| 805 |
+
PREFIX ${CAFFE_PREFIX}
|
| 806 |
+
CMAKE_ARGS -DCMAKE_INSTALL_PREFIX:PATH=<INSTALL_DIR>
|
| 807 |
+
-DCMAKE_TOOLCHAIN_FILE=${CMAKE_TOOLCHAIN_FILE}
|
| 808 |
+
-DUSE_CUDNN=${USE_CUDNN}
|
| 809 |
+
-DCUDA_ARCH_NAME=${CUDA_ARCH}
|
| 810 |
+
-DCUDA_ARCH_BIN=${CUDA_ARCH_BIN}
|
| 811 |
+
-DCUDA_ARCH_PTX=${CUDA_ARCH_PTX}
|
| 812 |
+
-DCPU_ONLY=${CAFFE_CPU_ONLY}
|
| 813 |
+
-DCMAKE_BUILD_TYPE=Release
|
| 814 |
+
-DBUILD_docs=OFF
|
| 815 |
+
-DBUILD_python=OFF
|
| 816 |
+
-DBUILD_python_layer=OFF
|
| 817 |
+
-DUSE_LEVELDB=OFF
|
| 818 |
+
-DUSE_LMDB=OFF
|
| 819 |
+
-DUSE_OPENCV=OFF)
|
| 820 |
+
# -DOpenCV_DIR=${OpenCV_DIR})
|
| 821 |
+
endif (USE_MKL)
|
| 822 |
+
|
| 823 |
+
ExternalProject_Get_Property(openpose_lib install_dir)
|
| 824 |
+
|
| 825 |
+
if (NOT Caffe_FOUND)
|
| 826 |
+
add_custom_command(TARGET openpose_lib
|
| 827 |
+
POST_BUILD
|
| 828 |
+
COMMAND ${CMAKE_COMMAND} ${CMAKE_SOURCE_DIR}
|
| 829 |
+
COMMAND $(MAKE)
|
| 830 |
+
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
|
| 831 |
+
COMMENT "Rerunning cmake after building Caffe submodule")
|
| 832 |
+
endif (NOT Caffe_FOUND)
|
| 833 |
+
|
| 834 |
+
endif (BUILD_CAFFE)
|
| 835 |
+
|
| 836 |
+
if (NOT Caffe_FOUND AND NOT BUILD_CAFFE)
|
| 837 |
+
message(FATAL_ERROR "Caffe not found. Either turn on the BUILD_CAFFE option or specify the path of Caffe includes
|
| 838 |
+
and libs using -DCaffe_INCLUDE_DIRS and -DCaffe_LIBS.")
|
| 839 |
+
endif (NOT Caffe_FOUND AND NOT BUILD_CAFFE)
|
| 840 |
+
endif (${DL_FRAMEWORK} MATCHES "CAFFE" OR ${DL_FRAMEWORK} MATCHES "NV_CAFFE")
|
| 841 |
+
endif (UNIX OR APPLE)
|
| 842 |
+
|
| 843 |
+
### PROJECT INCLUDES
|
| 844 |
+
# Specify the include directories
|
| 845 |
+
include_directories(
|
| 846 |
+
include
|
| 847 |
+
${Protobuf_INCLUDE_DIRS}
|
| 848 |
+
${GFLAGS_INCLUDE_DIR}
|
| 849 |
+
${GLOG_INCLUDE_DIR}
|
| 850 |
+
${OpenCV_INCLUDE_DIRS})
|
| 851 |
+
|
| 852 |
+
if (USE_ASIO)
|
| 853 |
+
include_directories(${CMAKE_SOURCE_DIR}/3rdparty/asio/include/)
|
| 854 |
+
# OpenPose flags
|
| 855 |
+
add_definitions(-DUSE_ASIO)
|
| 856 |
+
# Tell Asio it is not using Boost
|
| 857 |
+
add_definitions(-DASIO_STANDALONE)
|
| 858 |
+
endif (USE_ASIO)
|
| 859 |
+
|
| 860 |
+
# Calibration
|
| 861 |
+
if (NOT ${WITH_EIGEN} MATCHES "NONE")
|
| 862 |
+
include_directories(${EIGEN3_INCLUDE_DIRS})
|
| 863 |
+
if (${WITH_EIGEN} MATCHES "FIND")
|
| 864 |
+
set(OpenPose_3rdparty_libraries ${OpenPose_3rdparty_libraries} Eigen3::Eigen)
|
| 865 |
+
endif (${WITH_EIGEN} MATCHES "FIND")
|
| 866 |
+
endif (NOT ${WITH_EIGEN} MATCHES "NONE")
|
| 867 |
+
|
| 868 |
+
if (APPLE)
|
| 869 |
+
include_directories("/usr/local/opt/openblas/include")
|
| 870 |
+
endif (APPLE)
|
| 871 |
+
|
| 872 |
+
if (USE_MKL)
|
| 873 |
+
include_directories("${MKL_PATH}/include/")
|
| 874 |
+
endif (USE_MKL)
|
| 875 |
+
|
| 876 |
+
if (Caffe_FOUND)
|
| 877 |
+
include_directories(${Caffe_INCLUDE_DIRS})
|
| 878 |
+
endif (Caffe_FOUND)
|
| 879 |
+
|
| 880 |
+
if (${GPU_MODE} MATCHES "CUDA")
|
| 881 |
+
include_directories(${CUDA_INCLUDE_DIRS})
|
| 882 |
+
elseif (${GPU_MODE} MATCHES "OPENCL")
|
| 883 |
+
include_directories(${OpenCL_INCLUDE_DIRS})
|
| 884 |
+
endif (${GPU_MODE} MATCHES "CUDA")
|
| 885 |
+
# 3D
|
| 886 |
+
if (WITH_3D_RENDERER)
|
| 887 |
+
include_directories(${GLUT_INCLUDE_DIRS})
|
| 888 |
+
endif (WITH_3D_RENDERER)
|
| 889 |
+
if (WITH_CERES)
|
| 890 |
+
include_directories(${CERES_INCLUDE_DIRS})
|
| 891 |
+
endif (WITH_CERES)
|
| 892 |
+
if (WITH_FLIR_CAMERA)
|
| 893 |
+
include_directories(SYSTEM ${SPINNAKER_INCLUDE_DIRS}) # To remove its warnings, equiv. to -isystem
|
| 894 |
+
endif (WITH_FLIR_CAMERA)
|
| 895 |
+
if (WITH_3D_ADAM_MODEL)
|
| 896 |
+
include_directories(include/adam) # TODO: TEMPORARY - TO BE REMOVED IN THE FUTURE
|
| 897 |
+
include_directories(${CERES_INCLUDE_DIRS})
|
| 898 |
+
include_directories(${EIGEN3_INCLUDE_DIRS})
|
| 899 |
+
set(OpenPose_3rdparty_libraries ${OpenPose_3rdparty_libraries} Eigen3::Eigen)
|
| 900 |
+
include_directories(${IGL_INCLUDE_DIRS})
|
| 901 |
+
include_directories(${LIBIGL_INCLUDE_DIRS})
|
| 902 |
+
include_directories(${OPENGL_INCLUDE_DIR} ${GLUT_INCLUDE_DIRS} ${GLEW_INCLUDE_DIRS})
|
| 903 |
+
endif (WITH_3D_ADAM_MODEL)
|
| 904 |
+
# Windows includes
|
| 905 |
+
if (WIN32)
|
| 906 |
+
include_directories(${WINDOWS_INCLUDE_DIRS})
|
| 907 |
+
endif (WIN32)
|
| 908 |
+
|
| 909 |
+
|
| 910 |
+
### COLLECT ALL 3RD-PARTY LIBRARIES TO BE LINKED AGAINST
|
| 911 |
+
if (UNIX OR APPLE)
|
| 912 |
+
set(OpenPose_3rdparty_libraries ${OpenPose_3rdparty_libraries} ${OpenCV_LIBS} ${GLOG_LIBRARY})
|
| 913 |
+
elseif (WIN32)
|
| 914 |
+
set(OpenPose_3rdparty_libraries ${OpenPose_3rdparty_libraries}
|
| 915 |
+
debug ${OpenCV_LIBS_DEBUG} optimized ${OpenCV_LIBS_RELEASE}
|
| 916 |
+
debug ${GFLAGS_LIBRARY_DEBUG} optimized ${GFLAGS_LIBRARY_RELEASE}
|
| 917 |
+
debug ${GLOG_LIBRARY_DEBUG} optimized ${GLOG_LIBRARY_RELEASE})
|
| 918 |
+
endif (UNIX OR APPLE)
|
| 919 |
+
# G Flags (for demos)
|
| 920 |
+
if (UNIX OR APPLE)
|
| 921 |
+
set(examples_3rdparty_libraries ${OpenPose_3rdparty_libraries} ${GFLAGS_LIBRARY})
|
| 922 |
+
endif (UNIX OR APPLE)
|
| 923 |
+
# Deep net Framework
|
| 924 |
+
if (${DL_FRAMEWORK} MATCHES "CAFFE" OR ${DL_FRAMEWORK} MATCHES "NV_CAFFE")
|
| 925 |
+
if (UNIX OR APPLE)
|
| 926 |
+
set(OpenPose_3rdparty_libraries ${OpenPose_3rdparty_libraries} ${Caffe_LIBS})
|
| 927 |
+
elseif (WIN32)
|
| 928 |
+
set(OpenPose_3rdparty_libraries ${OpenPose_3rdparty_libraries}
|
| 929 |
+
debug ${Caffe_LIBS_DEBUG} optimized ${Caffe_LIBS_RELEASE})
|
| 930 |
+
endif (UNIX OR APPLE)
|
| 931 |
+
endif (${DL_FRAMEWORK} MATCHES "CAFFE" OR ${DL_FRAMEWORK} MATCHES "NV_CAFFE")
|
| 932 |
+
# CPU vs. GPU
|
| 933 |
+
if (USE_MKL)
|
| 934 |
+
set(OpenPose_3rdparty_libraries ${OpenPose_3rdparty_libraries} ${MKL_LIBS})
|
| 935 |
+
endif (USE_MKL)
|
| 936 |
+
if (${GPU_MODE} MATCHES "OPENCL")
|
| 937 |
+
set(OpenPose_3rdparty_libraries ${OpenPose_3rdparty_libraries} ${CMAKE_THREAD_LIBS_INIT} ${OpenCL_LIBRARIES})
|
| 938 |
+
endif (${GPU_MODE} MATCHES "OPENCL")
|
| 939 |
+
# Boost
|
| 940 |
+
if (WIN32)
|
| 941 |
+
if (${GPU_MODE} MATCHES "CPU_ONLY" OR ${GPU_MODE} MATCHES "OPENCL" OR BUILD_PYTHON)
|
| 942 |
+
set(OpenPose_3rdparty_libraries ${OpenPose_3rdparty_libraries}
|
| 943 |
+
debug ${BOOST_SYSTEM_LIB_RELEASE} optimized ${BOOST_SYSTEM_LIB_RELEASE})
|
| 944 |
+
set(OpenPose_3rdparty_libraries ${OpenPose_3rdparty_libraries}
|
| 945 |
+
debug ${BOOST_FILESYSTEM_LIB_RELEASE} optimized ${BOOST_FILESYSTEM_LIB_RELEASE})
|
| 946 |
+
endif ()
|
| 947 |
+
endif (WIN32)
|
| 948 |
+
# 3-D
|
| 949 |
+
if (WITH_3D_ADAM_MODEL)
|
| 950 |
+
set(OpenPose_3rdparty_libraries ${OpenPose_3rdparty_libraries}
|
| 951 |
+
${OPENGL_LIBRARIES} ${GLUT_LIBRARY} ${GLEW_LIBRARY} ${FREE_IMAGE_LIBRARY})
|
| 952 |
+
endif (WITH_3D_ADAM_MODEL)
|
| 953 |
+
if (WITH_3D_RENDERER)
|
| 954 |
+
set(OpenPose_3rdparty_libraries ${OpenPose_3rdparty_libraries} ${GLUT_LIBRARY} ${OPENGL_LIBRARIES})
|
| 955 |
+
endif (WITH_3D_RENDERER)
|
| 956 |
+
if (WITH_CERES)
|
| 957 |
+
set(OpenPose_3rdparty_libraries ${OpenPose_3rdparty_libraries} ${CERES_LIBRARIES})
|
| 958 |
+
endif (WITH_CERES)
|
| 959 |
+
if (WITH_FLIR_CAMERA)
|
| 960 |
+
set(OpenPose_3rdparty_libraries ${OpenPose_3rdparty_libraries} ${SPINNAKER_LIB})
|
| 961 |
+
endif (WITH_FLIR_CAMERA)
|
| 962 |
+
# Pthread
|
| 963 |
+
if (UNIX OR APPLE)
|
| 964 |
+
set(OpenPose_3rdparty_libraries ${OpenPose_3rdparty_libraries} pthread)
|
| 965 |
+
endif (UNIX OR APPLE)
|
| 966 |
+
|
| 967 |
+
|
| 968 |
+
|
| 969 |
+
### ADD SUBDIRECTORIES
|
| 970 |
+
if (Caffe_FOUND)
|
| 971 |
+
add_subdirectory(src)
|
| 972 |
+
if (BUILD_EXAMPLES)
|
| 973 |
+
add_subdirectory(examples)
|
| 974 |
+
endif (BUILD_EXAMPLES)
|
| 975 |
+
endif (Caffe_FOUND)
|
| 976 |
+
|
| 977 |
+
|
| 978 |
+
### DOWNLOAD MODELS
|
| 979 |
+
# Download the models if flag is set
|
| 980 |
+
message(STATUS "Download the models.")
|
| 981 |
+
|
| 982 |
+
# URL to the models
|
| 983 |
+
set(OPENPOSE_URL "${DOWNLOAD_SERVER}models/")
|
| 984 |
+
|
| 985 |
+
download_model("BODY_25" ${DOWNLOAD_BODY_25_MODEL} pose/body_25/pose_iter_584000.caffemodel
|
| 986 |
+
78287B57CF85FA89C03F1393D368E5B7) # Body (BODY_25)
|
| 987 |
+
download_model("body (COCO)" ${DOWNLOAD_BODY_COCO_MODEL} pose/coco/pose_iter_440000.caffemodel
|
| 988 |
+
5156d31f670511fce9b4e28b403f2939) # Body (COCO)
|
| 989 |
+
download_model("body (MPI)" ${DOWNLOAD_BODY_MPI_MODEL} pose/mpi/pose_iter_160000.caffemodel
|
| 990 |
+
2ca0990c7562bd7ae03f3f54afa96e00) # Body (MPI)
|
| 991 |
+
download_model("face" ${DOWNLOAD_FACE_MODEL} face/pose_iter_116000.caffemodel
|
| 992 |
+
e747180d728fa4e4418c465828384333) # Face
|
| 993 |
+
download_model("hand" ${DOWNLOAD_HAND_MODEL} hand/pose_iter_102000.caffemodel
|
| 994 |
+
a82cfc3fea7c62f159e11bd3674c1531) # Hand
|
| 995 |
+
|
| 996 |
+
message(STATUS "Models Downloaded.")
|
| 997 |
+
|
| 998 |
+
|
| 999 |
+
### PYTHON
|
| 1000 |
+
if (BUILD_PYTHON)
|
| 1001 |
+
if (WIN32)
|
| 1002 |
+
execute_process(COMMAND cmd /c cd ${CMAKE_SOURCE_DIR} & git submodule update --init 3rdparty/pybind11/)
|
| 1003 |
+
add_subdirectory(3rdparty/pybind11)
|
| 1004 |
+
add_subdirectory(python)
|
| 1005 |
+
elseif (UNIX OR APPLE)
|
| 1006 |
+
if (Caffe_FOUND)
|
| 1007 |
+
execute_process(COMMAND git submodule update --init ${CMAKE_SOURCE_DIR}/3rdparty/pybind11/)
|
| 1008 |
+
# execute_process(COMMAND git submodule update --init --recursive --remote) # This would initialize them all
|
| 1009 |
+
add_subdirectory(3rdparty/pybind11)
|
| 1010 |
+
add_subdirectory(python)
|
| 1011 |
+
endif (Caffe_FOUND)
|
| 1012 |
+
else (WIN32)
|
| 1013 |
+
message(FATAL_ERROR "Unknown OS.")
|
| 1014 |
+
endif (WIN32)
|
| 1015 |
+
endif (BUILD_PYTHON)
|
| 1016 |
+
|
| 1017 |
+
|
| 1018 |
+
### GENERATE DOCUMENTATION
|
| 1019 |
+
if (UNIX OR APPLE)
|
| 1020 |
+
|
| 1021 |
+
if (BUILD_DOCS)
|
| 1022 |
+
find_package(Doxygen)
|
| 1023 |
+
if (DOXYGEN_FOUND)
|
| 1024 |
+
# Set input and output files
|
| 1025 |
+
set(DOXYGEN_FILE ${CMAKE_SOURCE_DIR}/.doc_autogeneration.doxygen)
|
| 1026 |
+
|
| 1027 |
+
# Custom target to build the documentation
|
| 1028 |
+
add_custom_target(doc_doxygen ALL
|
| 1029 |
+
COMMAND ${DOXYGEN_EXECUTABLE} ${DOXYGEN_FILE}
|
| 1030 |
+
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/doc
|
| 1031 |
+
COMMENT "Generating API documentation with Doxygen"
|
| 1032 |
+
VERBATIM)
|
| 1033 |
+
else (DOXYGEN_FOUND)
|
| 1034 |
+
message(FATAL_ERROR "Doxygen needs to be installed to generate the doxygen documentation.")
|
| 1035 |
+
endif (DOXYGEN_FOUND)
|
| 1036 |
+
endif (BUILD_DOCS)
|
| 1037 |
+
|
| 1038 |
+
endif (UNIX OR APPLE)
|
| 1039 |
+
|
| 1040 |
+
|
| 1041 |
+
### INSTALL
|
| 1042 |
+
if (UNIX OR APPLE)
|
| 1043 |
+
if (Caffe_FOUND)
|
| 1044 |
+
# Install the headers
|
| 1045 |
+
install(DIRECTORY ${CMAKE_SOURCE_DIR}/include/openpose DESTINATION include)
|
| 1046 |
+
install(EXPORT OpenPose DESTINATION lib/OpenPose)
|
| 1047 |
+
if (BUILD_CAFFE)
|
| 1048 |
+
install(DIRECTORY ${CMAKE_BINARY_DIR}/caffe/include/caffe DESTINATION include)
|
| 1049 |
+
install(DIRECTORY ${CMAKE_BINARY_DIR}/caffe/lib/ DESTINATION lib)
|
| 1050 |
+
endif (BUILD_CAFFE)
|
| 1051 |
+
|
| 1052 |
+
# Compute installation prefix relative to this file
|
| 1053 |
+
configure_file(
|
| 1054 |
+
${CMAKE_SOURCE_DIR}/cmake/OpenPoseConfig.cmake.in
|
| 1055 |
+
${CMAKE_BINARY_DIR}/cmake/OpenPoseConfig.cmake @ONLY)
|
| 1056 |
+
|
| 1057 |
+
install(FILES ${CMAKE_BINARY_DIR}/cmake/OpenPoseConfig.cmake
|
| 1058 |
+
DESTINATION lib/OpenPose)
|
| 1059 |
+
|
| 1060 |
+
# Uninstall target
|
| 1061 |
+
configure_file(
|
| 1062 |
+
"${CMAKE_SOURCE_DIR}/cmake/cmake_uninstall.cmake.in"
|
| 1063 |
+
"${CMAKE_BINARY_DIR}/cmake_uninstall.cmake"
|
| 1064 |
+
IMMEDIATE @ONLY)
|
| 1065 |
+
|
| 1066 |
+
add_custom_target(uninstall
|
| 1067 |
+
COMMAND ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake)
|
| 1068 |
+
endif (Caffe_FOUND)
|
| 1069 |
+
endif (UNIX OR APPLE)
|
openpose/LICENSE
ADDED
|
@@ -0,0 +1,108 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
OPENPOSE: MULTIPERSON KEYPOINT DETECTION
|
| 2 |
+
SOFTWARE LICENSE AGREEMENT
|
| 3 |
+
ACADEMIC OR NON-PROFIT ORGANIZATION NONCOMMERCIAL RESEARCH USE ONLY
|
| 4 |
+
|
| 5 |
+
BY USING OR DOWNLOADING THE SOFTWARE, YOU ARE AGREEING TO THE TERMS OF THIS LICENSE AGREEMENT. IF YOU DO NOT AGREE WITH THESE TERMS, YOU MAY NOT USE OR DOWNLOAD THE SOFTWARE.
|
| 6 |
+
|
| 7 |
+
This is a license agreement ("Agreement") between your academic institution or non-profit organization or self (called "Licensee" or "You" in this Agreement) and Carnegie Mellon University (called "Licensor" in this Agreement). All rights not specifically granted to you in this Agreement are reserved for Licensor.
|
| 8 |
+
|
| 9 |
+
RESERVATION OF OWNERSHIP AND GRANT OF LICENSE:
|
| 10 |
+
Licensor retains exclusive ownership of any copy of the Software (as defined below) licensed under this Agreement and hereby grants to Licensee a personal, non-exclusive,
|
| 11 |
+
non-transferable license to use the Software for noncommercial research purposes, without the right to sublicense, pursuant to the terms and conditions of this Agreement. As used in this Agreement, the term "Software" means (i) the actual copy of all or any portion of code for program routines made accessible to Licensee by Licensor pursuant to this Agreement, inclusive of backups, updates, and/or merged copies permitted hereunder or subsequently supplied by Licensor, including all or any file structures, programming instructions, user interfaces and screen formats and sequences as well as any and all documentation and instructions related to it, and (ii) all or any derivatives and/or modifications created or made by You to any of the items specified in (i).
|
| 12 |
+
|
| 13 |
+
CONFIDENTIALITY: Licensee acknowledges that the Software is proprietary to Licensor, and as such, Licensee agrees to receive all such materials in confidence and use the Software only in accordance with the terms of this Agreement. Licensee agrees to use reasonable effort to protect the Software from unauthorized use, reproduction, distribution, or publication.
|
| 14 |
+
|
| 15 |
+
COPYRIGHT: The Software is owned by Licensor and is protected by United
|
| 16 |
+
States copyright laws and applicable international treaties and/or conventions.
|
| 17 |
+
|
| 18 |
+
PERMITTED USES: The Software may be used for your own noncommercial internal research purposes. You understand and agree that Licensor is not obligated to implement any suggestions and/or feedback you might provide regarding the Software, but to the extent Licensor does so, you are not entitled to any compensation related thereto.
|
| 19 |
+
|
| 20 |
+
DERIVATIVES: You may create derivatives of or make modifications to the Software, however, You agree that all and any such derivatives and modifications will be owned by Licensor and become a part of the Software licensed to You under this Agreement. You may only use such derivatives and modifications for your own noncommercial internal research purposes, and you may not otherwise use, distribute or copy such derivatives and modifications in violation of this Agreement.
|
| 21 |
+
|
| 22 |
+
BACKUPS: If Licensee is an organization, it may make that number of copies of the Software necessary for internal noncommercial use at a single site within its organization provided that all information appearing in or on the original labels, including the copyright and trademark notices are copied onto the labels of the copies.
|
| 23 |
+
|
| 24 |
+
USES NOT PERMITTED: You may not distribute, copy or use the Software except as explicitly permitted herein. Licensee has not been granted any trademark license as part of this Agreement and may not use the name or mark “OpenPose", "Carnegie Mellon" or any renditions thereof without the prior written permission of Licensor.
|
| 25 |
+
|
| 26 |
+
You may not sell, rent, lease, sublicense, lend, time-share or transfer, in whole or in part, or provide third parties access to prior or present versions (or any parts thereof) of the Software.
|
| 27 |
+
|
| 28 |
+
ASSIGNMENT: You may not assign this Agreement or your rights hereunder without the prior written consent of Licensor. Any attempted assignment without such consent shall be null and void.
|
| 29 |
+
|
| 30 |
+
TERM: The term of the license granted by this Agreement is from Licensee's acceptance of this Agreement by downloading the Software or by using the Software until terminated as provided below.
|
| 31 |
+
|
| 32 |
+
The Agreement automatically terminates without notice if you fail to comply with any provision of this Agreement. Licensee may terminate this Agreement by ceasing using the Software. Upon any termination of this Agreement, Licensee will delete any and all copies of the Software. You agree that all provisions which operate to protect the proprietary rights of Licensor shall remain in force should breach occur and that the obligation of confidentiality described in this Agreement is binding in perpetuity and, as such, survives the term of the Agreement.
|
| 33 |
+
|
| 34 |
+
FEE: Provided Licensee abides completely by the terms and conditions of this Agreement, there is no fee due to Licensor for Licensee's use of the Software in accordance with this Agreement.
|
| 35 |
+
|
| 36 |
+
DISCLAIMER OF WARRANTIES: THE SOFTWARE IS PROVIDED "AS-IS" WITHOUT WARRANTY OF ANY KIND INCLUDING ANY WARRANTIES OF PERFORMANCE OR MERCHANTABILITY OR FITNESS FOR A PARTICULAR USE OR PURPOSE OR OF NON-INFRINGEMENT. LICENSEE BEARS ALL RISK RELATING TO QUALITY AND PERFORMANCE OF THE SOFTWARE AND RELATED MATERIALS.
|
| 37 |
+
|
| 38 |
+
SUPPORT AND MAINTENANCE: No Software support or training by the Licensor is provided as part of this Agreement.
|
| 39 |
+
|
| 40 |
+
EXCLUSIVE REMEDY AND LIMITATION OF LIABILITY: To the maximum extent permitted under applicable law, Licensor shall not be liable for direct, indirect, special, incidental, or consequential damages or lost profits related to Licensee's use of and/or inability to use the Software, even if Licensor is advised of the possibility of such damage.
|
| 41 |
+
|
| 42 |
+
EXPORT REGULATION: Licensee agrees to comply with any and all applicable
|
| 43 |
+
U.S. export control laws, regulations, and/or other laws related to embargoes and sanction programs administered by the Office of Foreign Assets Control.
|
| 44 |
+
|
| 45 |
+
SEVERABILITY: If any provision(s) of this Agreement shall be held to be invalid, illegal, or unenforceable by a court or other tribunal of competent jurisdiction, the validity, legality and enforceability of the remaining provisions shall not in any way be affected or impaired thereby.
|
| 46 |
+
|
| 47 |
+
NO IMPLIED WAIVERS: No failure or delay by Licensor in enforcing any right or remedy under this Agreement shall be construed as a waiver of any future or other exercise of such right or remedy by Licensor.
|
| 48 |
+
|
| 49 |
+
GOVERNING LAW: This Agreement shall be construed and enforced in accordance with the laws of the Commonwealth of Pennsylvania without reference to conflict of laws principles. You consent to the personal jurisdiction of the courts of this County and waive their rights to venue outside of Allegheny County, Pennsylvania.
|
| 50 |
+
|
| 51 |
+
ENTIRE AGREEMENT AND AMENDMENTS: This Agreement constitutes the sole and entire agreement between Licensee and Licensor as to the matter set forth herein and supersedes any previous agreements, understandings, and arrangements between the parties relating hereto.
|
| 52 |
+
|
| 53 |
+
|
| 54 |
+
|
| 55 |
+
************************************************************************
|
| 56 |
+
|
| 57 |
+
THIRD-PARTY SOFTWARE NOTICES AND INFORMATION
|
| 58 |
+
|
| 59 |
+
This project incorporates material from the project(s) listed below (collectively, "Third Party Code"). This Third Party Code is licensed to you under their original license terms set forth below. We reserves all other rights not expressly granted, whether by implication, estoppel or otherwise.
|
| 60 |
+
|
| 61 |
+
1. Caffe, version 1.0.0, (https://github.com/BVLC/caffe/)
|
| 62 |
+
|
| 63 |
+
COPYRIGHT
|
| 64 |
+
|
| 65 |
+
All contributions by the University of California:
|
| 66 |
+
Copyright (c) 2014-2017 The Regents of the University of California (Regents)
|
| 67 |
+
All rights reserved.
|
| 68 |
+
|
| 69 |
+
All other contributions:
|
| 70 |
+
Copyright (c) 2014-2017, the respective contributors
|
| 71 |
+
All rights reserved.
|
| 72 |
+
|
| 73 |
+
Caffe uses a shared copyright model: each contributor holds copyright over
|
| 74 |
+
their contributions to Caffe. The project versioning records all such
|
| 75 |
+
contribution and copyright details. If a contributor wants to further mark
|
| 76 |
+
their specific copyright on a particular contribution, they should indicate
|
| 77 |
+
their copyright solely in the commit message of the change when it is
|
| 78 |
+
committed.
|
| 79 |
+
|
| 80 |
+
LICENSE
|
| 81 |
+
|
| 82 |
+
Redistribution and use in source and binary forms, with or without
|
| 83 |
+
modification, are permitted provided that the following conditions are met:
|
| 84 |
+
|
| 85 |
+
1. Redistributions of source code must retain the above copyright notice, this
|
| 86 |
+
list of conditions and the following disclaimer.
|
| 87 |
+
2. Redistributions in binary form must reproduce the above copyright notice,
|
| 88 |
+
this list of conditions and the following disclaimer in the documentation
|
| 89 |
+
and/or other materials provided with the distribution.
|
| 90 |
+
|
| 91 |
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
| 92 |
+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
| 93 |
+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
| 94 |
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
|
| 95 |
+
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
| 96 |
+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
| 97 |
+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
| 98 |
+
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
| 99 |
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
| 100 |
+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| 101 |
+
|
| 102 |
+
CONTRIBUTION AGREEMENT
|
| 103 |
+
|
| 104 |
+
By contributing to the BVLC/caffe repository through pull-request, comment,
|
| 105 |
+
or otherwise, the contributor releases their content to the
|
| 106 |
+
license and copyright terms herein.
|
| 107 |
+
|
| 108 |
+
************END OF THIRD-PARTY SOFTWARE NOTICES AND INFORMATION**********
|