thanks to openpose ❤
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
Files changed (50)
- .doc_autogeneration.doxygenAdded
- .gitattributes+31
- .github/CI_deprecated/.travis.ymlAdded+162
- .github/CI_deprecated/Readme_Travis_badges_table_and_backup_instructions.mdAdded+13
- .github/CI_deprecated/generate_gh_pages.shAdded+104
- .github/Logo_doxygen_black.pngAdded
- .github/Logo_main_black.pngAdded
- .github/issue_template.mdAdded+85
- .github/media/body_heat_maps.pngAdded
- .github/media/dance_foot.gifAdded
- .github/media/installation/cmake_im_1.pngAdded
- .github/media/installation/cmake_im_1_windows.pngAdded
- .github/media/installation/cmake_im_2.pngAdded
- .github/media/installation/cmake_im_2_windows.pngAdded
- .github/media/installation/cmake_im_2_windows_new.pngAdded
- .github/media/installation/cmake_im_3.pngAdded
- .github/media/installation/cmake_im_3_windows.pngAdded
- .github/media/installation/cmake_im_5.pngAdded
- .github/media/keypoints_face.pngAdded
- .github/media/keypoints_hand.odtAdded
- .github/media/keypoints_hand.pngAdded
- .github/media/keypoints_pose_18.pngAdded
- .github/media/keypoints_pose_25.pngAdded
- .github/media/openpose3d.gifAdded
- .github/media/openpose_vs_competition.pngAdded
- .github/media/paf_heat_maps.pngAdded
- .github/media/pose_face.gifAdded
- .github/media/pose_face_hands.gifAdded
- .github/media/pose_hands.gifAdded
- .github/media/shake.gifAdded
- .github/media/unity_body_foot.pngAdded
- .github/media/unity_hand_face.pngAdded
- .github/media/unity_main.pngAdded
- .github/root_index.htmlAdded+8
- .github/stale.ymlAdded+17
- .github/workflows/main.ymlAdded+295
- .gitignoreAdded+139
- .gitmodulesAdded+6
- 3rdparty/Versions.txtAdded+38
- 3rdparty/caffe/.DoxyfileAdded
- 3rdparty/caffe/.github/ISSUE_TEMPLATE.mdAdded+34
- 3rdparty/caffe/.gitignoreAdded+99
- 3rdparty/caffe/.travis.ymlAdded+67
- 3rdparty/caffe/CMakeLists.txtAdded+127
- 3rdparty/caffe/CONTRIBUTING.mdAdded+72
- 3rdparty/caffe/CONTRIBUTORS.mdAdded+19
- 3rdparty/caffe/INSTALL.mdAdded+7
- 3rdparty/caffe/LICENSEAdded+44
- 3rdparty/caffe/MakefileAdded+714
- 3rdparty/caffe/Makefile.config.Ubuntu14_cuda7.exampleAdded+125
37 unmodified lines38394037 unmodified linespose_iter_160000.caffemodel filter=lfs diff=lfs merge=lfs -textpose_iter_440000.caffemodel filter=lfs diff=lfs merge=lfs -textpose_iter_584000.caffemodel filter=lfs diff=lfs merge=lfs -text37 unmodified lines3839404142434445464748495051525354555657585960616263646566676869707137 unmodified linespose_iter_160000.caffemodel filter=lfs diff=lfs merge=lfs -textpose_iter_440000.caffemodel filter=lfs diff=lfs merge=lfs -textpose_iter_584000.caffemodel filter=lfs diff=lfs merge=lfs -text.github/media/body_heat_maps.png filter=lfs diff=lfs merge=lfs -text.github/media/dance_foot.gif filter=lfs diff=lfs merge=lfs -text.github/media/paf_heat_maps.png filter=lfs diff=lfs merge=lfs -text.github/media/pose_face.gif filter=lfs diff=lfs merge=lfs -text.github/media/pose_face_hands.gif filter=lfs diff=lfs merge=lfs -text.github/media/pose_hands.gif filter=lfs diff=lfs merge=lfs -text.github/media/shake.gif filter=lfs diff=lfs merge=lfs -text3rdparty/windows/wget/wget.exe filter=lfs diff=lfs merge=lfs -text3rdparty/windows/wget/wget.exe.debug filter=lfs diff=lfs merge=lfs -textbuild/caffe/lib/libcaffe.so filter=lfs diff=lfs merge=lfs -textbuild/caffe/lib/libcaffe.so.1.0.0 filter=lfs diff=lfs merge=lfs -textbuild/caffe/lib/libcaffeproto.a filter=lfs diff=lfs merge=lfs -textbuild/caffe/src/openpose_lib-build/CMakeFiles/hdf5/a.out filter=lfs diff=lfs merge=lfs -textbuild/caffe/src/openpose_lib-build/lib/libcaffe.so filter=lfs diff=lfs merge=lfs -textbuild/caffe/src/openpose_lib-build/lib/libcaffe.so.1.0.0 filter=lfs diff=lfs merge=lfs -textbuild/caffe/src/openpose_lib-build/lib/libcaffeproto.a filter=lfs diff=lfs merge=lfs -textbuild/caffe/src/openpose_lib-build/src/caffe/CMakeFiles/caffeproto.dir/__/__/include/caffe/proto/caffe.pb.cc.o filter=lfs diff=lfs merge=lfs -textbuild/examples/deprecated/CMakeFiles/tutorial_add_module_custom_post_processing.bin.dir/tutorial_add_module_custom_post_processing.cpp.o filter=lfs diff=lfs merge=lfs -textbuild/examples/tutorial_api_cpp/CMakeFiles/13_asynchronous_custom_input_output_and_datum.bin.dir/13_asynchronous_custom_input_output_and_datum.cpp.o filter=lfs diff=lfs merge=lfs -textbuild/examples/tutorial_api_cpp/CMakeFiles/18_synchronous_custom_all_and_datum.bin.dir/18_synchronous_custom_all_and_datum.cpp.o filter=lfs diff=lfs merge=lfs -textbuild/src/openpose/CMakeFiles/openpose.dir/core/array.cpp.o filter=lfs diff=lfs merge=lfs -textbuild/src/openpose/core/CMakeFiles/openpose_core.dir/array.cpp.o filter=lfs diff=lfs merge=lfs -textbuild/src/openpose/core/libopenpose_core.so filter=lfs diff=lfs merge=lfs -textbuild/src/openpose/face/libopenpose_face.so filter=lfs diff=lfs merge=lfs -textbuild/src/openpose/gpu/libopenpose_gpu.so filter=lfs diff=lfs merge=lfs -textbuild/src/openpose/hand/libopenpose_hand.so filter=lfs diff=lfs merge=lfs -textbuild/src/openpose/libopenpose.so filter=lfs diff=lfs merge=lfs -textbuild/src/openpose/libopenpose.so.1.7.0 filter=lfs diff=lfs merge=lfs -textbuild/src/openpose/net/libopenpose_net.so filter=lfs diff=lfs merge=lfs -textbuild/src/openpose/pose/libopenpose_pose.so filter=lfs diff=lfs merge=lfs -textexamples/media/video.avi filter=lfs diff=lfs merge=lfs -text
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162# # This will run on Travis' 'new' container-based infrastructure
# # Blacklist# branches:# only:# - master
# # Environment variables + OS + other parameters# global:# - GH_REPO_NAME: openpose# - DOXYFILE: $CI_BUILD_DIR/.doc_autogeneration.doxygen# # Set this in Environment Variables on travis-ci.org# # - GH_REPO_REF: github.com/<user_name>/openpose.git# matrix:# # Use a build matrix to test many builds in parallel# # envvar defaults:# # WITH_CMAKE: true# # WITH_PYTHON: false# # WITH_CUDA: true# # WITH_CUDNN: true# # WITH_OPEN_CL: false# # WITH_MKL: false# include:# # Ubuntu 16.04# # Ubuntu 16.04 - Default - CMake - CUDA# - os: linux# dist: xenial# env: NAME="U16-default-cmake-cuda8"# sudo: required# # Ubuntu 16.04 - Python - CMake - CUDA# - os: linux# dist: xenial# env: NAME="U16-python-cmake-cuda8" WITH_PYTHON=true# sudo: required# # Generate and deploy documentation# after_success:# - cd $CI_BUILD_DIR# - chmod +x scripts/generate_gh_pages.sh# - ./scripts/generate_gh_pages.sh# # Ubuntu 16.04 - Python - CMake - CPU# - os: linux# dist: xenial# env: NAME="U16-python-cmake-cpu" WITH_PYTHON=true WITH_CUDA=false# sudo: required# # Ubuntu 16.04 - Python - CMake - OpenCL# - os: linux# dist: xenial# env: NAME="U16-python-cmake-opencl" WITH_PYTHON=true WITH_CUDA=false WITH_OPEN_CL=true# sudo: required# # Ubuntu 16.04 - Python - CMake - CPU - Debug# - os: linux# dist: xenial# env: NAME="U16-python-cmake-cpu-debug" WITH_PYTHON=true WITH_CUDA=false WITH_DEBUG=true# sudo: required# # Ubuntu 16.04 - Python - CMake - CPU - Unity# - os: linux# dist: xenial# env: NAME="U16-python-cmake-cpu-unity" WITH_PYTHON=true WITH_UNITY=true WITH_CUDA=false# sudo: required
# # Mac OSX# # Mac OSX - Python - CMake - CPU# - os: osx# osx_image: xcode9.4 # xcode10.1 does not work with Python # Versions: https://docs.travis-ci.com/user/languages/objective-c#supported-xcode-versions# env: NAME="OSX-python-cmake-cpu" WITH_CUDA=false WITH_PYTHON=true# sudo: required# # Mac OSX - Python - CMake - OpenCL# - os: osx# osx_image: xcode10.1 # Versions: https://docs.travis-ci.com/user/languages/objective-c#supported-xcode-versions# env: NAME="OSX-default-cmake-opencl" WITH_CUDA=false WITH_OPEN_CL=true# sudo: required# # Mac OSX - Python - CMake - CPU - Debug# - os: osx# osx_image: xcode9.4 # xcode10.1 does not work with Python # Versions: https://docs.travis-ci.com/user/languages/objective-c#supported-xcode-versions# env: NAME="OSX-python-cmake-cpu-debug" WITH_CUDA=false WITH_PYTHON=true WITH_DEBUG=true# sudo: required# # Mac OSX - Python - CMake - CPU - Unity# - os: osx# osx_image: xcode9.4 # xcode10.1 does not work with Python # Versions: https://docs.travis-ci.com/user/languages/objective-c#supported-xcode-versions# env: NAME="OSX-python-cmake-cpu-unity" WITH_CUDA=false WITH_PYTHON=true WITH_UNITY=true# sudo: required# # Mac OSX - Default - CMake - CPU# - os: osx# osx_image: xcode10.1 # Versions: https://docs.travis-ci.com/user/languages/objective-c#supported-xcode-versions# env: NAME="OSX-default-cmake-cpu" WITH_CUDA=false# sudo: required
# # # TO-DO: To be implemented# # # Windows# # # Windows - Default - CMake - CUDA# # - os: windows# # env: NAME="W10-default-cmake-cuda8"
# # Ubuntu (others)# # Ubuntu 16.04 - Default - CMake - CPU# - os: linux# dist: xenial# env: NAME="U16-default-cmake-cpu" WITH_CUDA=false# sudo: required# # Ubuntu 16.04 - Default - Make - CUDA# - os: linux# dist: xenial# env: NAME="U16-default-make-cuda8" WITH_CMAKE=false# sudo: required# # # TO-DO: To be implemented# # # Ubuntu 16.04 - Default - CMake - CPU MKL# # - os: linux# # dist: xenial# # env: NAME="U16-default-cmake-cpu-mkl" WITH_CUDA=false WITH_MKL=true# # sudo: required# # # Ubuntu 16.04 - Python - CMake - OpenCL# # - os: linux# # dist: xenial# # env: NAME="U16-python-cmake-opencl" WITH_PYTHON=true WITH_CUDA=false WITH_OPEN_CL=true# # sudo: required# # # Unnecessary/redundant ones# # # Ubuntu 16.04 - Default - CMake - CUDA - no cuDNN# # - os: linux# # dist: xenial# # env: NAME="U16-default-cmake-cuda8-nocudnn" WITH_CUDNN=false# # sudo: required# # Ubuntu 14.04 - Default - CMake - CPU# - os: linux# dist: trusty# env: NAME="U14-default-cmake-cpu" WITH_CUDA=false# sudo: required# # Ubuntu 14.04 - Default - Make - CUDA# - os: linux# dist: trusty# env: NAME="U14-default-make-cuda8" WITH_CMAKE=false# sudo: required# # # Unnecessary/redundant ones# # # Ubuntu 14.04 - Default - CMake - CUDA# # - os: linux# # dist: trusty# # env: NAME="U14-default-cmake-cuda8"# # sudo: required
# # Install apt dependencies# addons:# apt:# packages:# - doxygen# - doxygen-doc# - doxygen-latex# - doxygen-gui# - graphviz
# # Install Caffe and OP dependencies# install:# - if [[ "$CI_OS_NAME" == "linux" ]]; then sudo bash scripts/CI/install_deps_ubuntu.sh ; fi# - if [[ "$CI_OS_NAME" == "osx" ]]; then bash scripts/CI/install_deps_osx.sh ; fi# - if [[ "$CI_OS_NAME" == "windows" ]]; then exit 99 ; fi
# # Running CMake# before_script:# - bash scripts/CI/configure.sh
# # Build your code e.g., by calling make# script:# - bash scripts/CI/run_make.sh# - bash scripts/CI/run_tests.sh12345678910111213In order to recover Travis: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).2. Move `generate_gh_pages.sh` back to `scripts/generate_gh_pages.sh`.3. Re-add the table of badges in the README.md:
| |`Default Config` |`CUDA (+Python)` |`CPU (+Python)` |`OpenCL (+Python)`| `Debug` | `Unity` || :---: | :---: | :---: | :---: | :---: | :---: | :---: || **`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) || **`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) || **`Windows`** | [](https://ci.appveyor.com/project/gineshidalgo99/openpose/branch/master) | | | | |<!--Note: Currently using [travis-matrix-badges](https://github.com/bjfish/travis-matrix-badges) vs. traditional [](https://travis-ci.org/CMU-Perceptual-Computing-Lab/openpose)-->123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104#!/bin/sh################################################################################# Title : generate_gh_pages.sh# Date created : 2016/02/22# Notes :__AUTHOR__="openpose"# Preconditions:# - Packages doxygen doxygen-doc doxygen-latex doxygen-gui graphviz# must be installed.# - Doxygen configuration file must have the destination directory empty and# source code directory with a $(CI_BUILD_DIR) prefix.# - An gh-pages branch should already exist. See below for more info on how to# create a gh-pages branch.## Required global variables:# - CI_BUILD_NUMBER : The number of the current build.# - CI_COMMIT : The commit that the current build is testing.# - DOXYFILE : The Doxygen configuration file.# - GH_REPO_NAME : The name of the repository.# - GH_REPO_REF : The GitHub reference to the repository.# - GH_REPO_TOKEN : Secure token to the github repository.## For information on how to encrypt variables for Travis CI please go to# https://docs.travis-ci.com/user/environment-variables/#Encrypted-Variables# or https://gist.github.com/vidavidorra/7ed6166a46c537d3cbd2# For information on how to create a clean gh-pages branch from the master# branch, please go to https://gist.github.com/vidavidorra/846a2fc7dd51f4fe56a0## This script will generate Doxygen documentation and push the documentation to# the gh-pages branch of a repository specified by GH_REPO_REF.# Before this script is used there should already be a gh-pages branch in the# repository.# ################################################################################
##################################################################################### Setup this script and get the current gh-pages branch. #####echo 'Setting up the script...'# Exit with nonzero exit code if anything failsset -e
# Create a clean working directory for this script.mkdir code_docscd code_docs
# Get the current gh-pages branchgit clone -b gh-pages https://git@$GH_REPO_REFcd $GH_REPO_NAME
##### Configure git.# Set the push default to simple i.e. push only the current branch.git config --global push.default simple# Pretend to be an user called Travis CI.git config user.name "Travis CI"git config user.email "travis@travis-ci.org"
# Remove everything currently in the gh-pages branch.# GitHub is smart enough to know which files have changed and which files have# stayed the same and will only update the changed files. So the gh-pages branch# can be safely cleaned, and it is sure that everything pushed later is the new# documentation.rm -rf *
# Need to create a .nojekyll file to allow filenames starting with an underscore# to be seen on the gh-pages site. Therefore creating an empty .nojekyll file.# Presumably this is only needed when the SHORT_NAMES option in Doxygen is set# to NO, which it is by default. So creating the file just in case.echo "" > .nojekyll
##################################################################################### Generate the Doxygen code documentation and log the output. #####echo 'Generating Doxygen code documentation...'# Redirect both stderr and stdout to the log file AND the console.echo "OUTPUT_DIRECTORY = " >> $DOXYFILEdoxygen $DOXYFILE 2>&1 | tee doxygen.log
##################################################################################### Upload the documentation to the gh-pages branch of the repository. ###### Only upload if Doxygen successfully created the documentation.# Check this by verifying that the html directory and the file html/index.html# both exist. This is a good indication that Doxygen did it's work.if [ -d "html" ] && [ -f "html/index.html" ]; then
echo 'Uploading documentation to the gh-pages branch...' # Add everything in this directory (the Doxygen code documentation) to the # gh-pages branch. # GitHub is smart enough to know which files have changed and which files have # stayed the same and will only update the changed files. git add --all
# Commit the added files with a title and description containing the Travis CI # build number and the GitHub commit reference that issued this build. git commit -m "Deploy code docs to GitHub Pages Travis build: ${CI_BUILD_NUMBER}" -m "Commit: ${CI_COMMIT}"
# Force push to the remote gh-pages branch. # The output is redirected to /dev/null to hide any sensitive credential data # that might otherwise be exposed. git push --force "https://${GH_REPO_TOKEN}@${GH_REPO_REF}" > /dev/null 2>&1else echo '' >&2 echo 'Warning: No documentation (html) files have been found!' >&2 echo 'Warning: Not going to push the documentation to GitHub!' >&2 exit 1fi12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485### Posting rules1. **No duplicated posts, only 1 new post opened a day, and up to 2 opened a week**. Otherwise, extrict user bans will occur. - 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, ...**). - Keep posting all your issues in the same post. - No bans if you are unsure whether the post is duplicated!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.3. **No questions about training or 3rd party libraries**: - OpenPose only implements testing. For training, check [OpenPose train](https://github.com/CMU-Perceptual-Computing-Lab/openpose_train). - Caffe errors/issues: Check [Caffe](http://caffe.berkeleyvision.org) documentation. - 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. - OpenCV errors: Install the default/pre-compiled OpenCV or check for OpenCV online help.4. Set a **proper issue title**: Add the OS (Ubuntu, Windows) and be specific (e.g., do not call it: `Error`).5. Only English comments.6. Remove these posting rules from your post but follow them!Posts which do not follow these rules will be **ignored/deleted** and those **users banned** with no further clarification.
### Issue Summary
### Executed Command (if any)Note: add `--logging_level 0 --disable_multi_thread` to get higher debug information.
### OpenPose Output (if any)
### Errors (if any)
### Type of IssueSelect the topic(s) on your post, delete the rest:- Compilation/installation error- Execution error- Help wanted- Question- Enhancement / offering possible extensions / pull request / etc- Other (type your own type)
### Your System Configuration1. **Whole console output** (if errors appeared), paste the error to [PasteBin](https://pastebin.com/) and then paste the link here: LINK
2. **OpenPose version**: Latest GitHub code? Or specific commit (e.g., d52878f)? Or specific version from `Release` section (e.g., 1.2.0)?
3. **General configuration**: - **Installation mode**: CMake, sh script, manual Makefile installation, ... (Ubuntu); CMake, ... (Windows); ...? - **Operating system** (`lsb_release -a` in Ubuntu): - **Operating system version** (e.g., Ubuntu 16, Windows 10, ...): - **Release or Debug mode**? (by default: release): - Compiler (`gcc --version` in Ubuntu or VS version in Windows): 5.4.0, ... (Ubuntu); VS2015 Enterprise Update 3, VS2017 community, ... (Windows); ...?
4. **Non-default settings**: - **3-D Reconstruction module added**? (by default: no): - Any other custom CMake configuration with respect to the default version? (by default: no):
5. **3rd-party software**: - **Caffe version**: Default from OpenPose, custom version, ...? - **CMake version** (`cmake --version` in Ubuntu): - **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?; ...?
6. If **GPU mode** issue: - **CUDA version** (`cat /usr/local/cuda/version.txt` in most cases): - **cuDNN version**: - **GPU model** (`nvidia-smi` in Ubuntu):
7. If **CPU-only mode** issue: - **CPU brand & model**: - Total **RAM memory** available:
8. If **Python** API: - **Python version**: 2.7, 3.7, ...? - **Numpy version** (`python -c "import numpy; print numpy.version.version"` in Ubuntu):
9. If **Windows** system: - Portable demo or compiled library?
10. If **speed performance** issue: - 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).12345678<!DOCTYPE html><html> <head> <meta http-equiv = "refresh" content = "0; url = web/html/doc/index.html" /> </head> <body> </body></html>1234567891011121314151617# Number of days of inactivity before an issue becomes staledaysUntilStale: 60# Number of days of inactivity before a stale issue is closeddaysUntilClose: 7# Issues with these labels will never be considered staleexemptLabels: - bug/typo - enhancement# Label to use when marking an issue as stalestaleLabel: stale/old# Comment to post when marking an issue as stale. Set to `false` to disablemarkComment: > This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.# Comment to post when closing a stale issue. Set to `false` to disablecloseComment: false123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295name: CI
on: [push, pull_request]
env: GH_REPO_NAME: ${{ github.event.repository.name }} DOXYFILE: ${{ github.workspace }}/.doc_autogeneration.doxygen GH_REPO_REF: ${{ github.repositoryUrl }}
jobs: build: name: ${{ matrix.env.NAME }} runs-on: ${{ matrix.os }} env: ${{ matrix.env }} strategy: fail-fast: false matrix: include: # Ubuntu # Ubuntu 20.04 - Default - CMake - CUDA - os: ubuntu-20.04 os_name: linux env: NAME: U20-default-cmake-cuda WITH_CUDNN: false CI_OS_NAME: linux # Ubuntu 18.04 - Default - CMake - CUDA - os: ubuntu-18.04 os_name: linux env: NAME: U18-default-cmake-cuda WITH_CUDNN: false CI_OS_NAME: linux # Ubuntu 20.04 - Python - CMake - CUDA - os: ubuntu-20.04 os_name: linux env: NAME: U20-python-cmake-cuda WITH_CUDNN: false WITH_PYTHON: true CI_OS_NAME: linux CI_BUILD_NUMBER: ${{ github.run_number }} CI_COMMIT: ${{ github.sha }} PYTHON3_VERSION: python3.8 DOCS: true # Ubuntu 18.04 - Python - CMake - CUDA - os: ubuntu-18.04 os_name: linux env: NAME: U18-python-cmake-cuda WITH_CUDNN: false WITH_PYTHON: true CI_OS_NAME: linux # Ubuntu 20.04 - Python - CMake - CPU - os: ubuntu-20.04 os_name: linux env: NAME: U20-python-cmake-cpu WITH_PYTHON: true WITH_CUDA: false WITH_CUDNN: false CI_OS_NAME: linux PYTHON3_VERSION: python3.8 # Ubuntu 18.04 - Python - CMake - CPU - os: ubuntu-18.04 os_name: linux env: NAME: U18-python-cmake-cpu WITH_PYTHON: true WITH_CUDA: false WITH_CUDNN: false CI_OS_NAME: linux # TO-DO (not passing) # # Ubuntu 20.04 - Python - CMake - OpenCL # - os: ubuntu-20.04 # os_name: linux # env: # NAME: U20-python-cmake-opencl # WITH_PYTHON: true # WITH_CUDA: false # WITH_CUDNN: false # WITH_OPEN_CL: true # CI_OS_NAME: linux # PYTHON3_VERSION: python3.8 # Ubuntu 18.04 - Python - CMake - OpenCL - os: ubuntu-18.04 os_name: linux env: NAME: U18-python-cmake-opencl WITH_PYTHON: true WITH_CUDA: false WITH_CUDNN: false WITH_OPEN_CL: true CI_OS_NAME: linux # Ubuntu 20.04 - Python - CMake - CPU - Debug - os: ubuntu-20.04 os_name: linux env: NAME: U20-python-cmake-cpu-debug WITH_PYTHON: true WITH_CUDA: false WITH_CUDNN: false WITH_DEBUG: true CI_OS_NAME: linux PYTHON3_VERSION: python3.8 # Ubuntu 18.04 - Python - CMake - CPU - Debug - os: ubuntu-18.04 os_name: linux env: NAME: U18-python-cmake-cpu-debug WITH_PYTHON: true WITH_CUDA: false WITH_CUDNN: false WITH_DEBUG: true CI_OS_NAME: linux # Ubuntu 20.04 - Python - CMake - CPU - Unity - os: ubuntu-20.04 os_name: linux env: NAME: U20-python-cmake-cpu-unity WITH_PYTHON: true WITH_UNITY: true WITH_CUDA: false WITH_CUDNN: false CI_OS_NAME: linux PYTHON3_VERSION: python3.8 # Ubuntu 20.04 - Default - CMake - CPU - os: ubuntu-20.04 os_name: linux env: NAME: U20-default-cmake-cpu WITH_CUDA: false WITH_CUDNN: false CI_OS_NAME: linux
# Mac OSX # Mac OSX - Python - CMake - CPU - os: macos-10.15 os_name: osx env: NAME: OSX-python-cmake-cpu WITH_CUDA: false WITH_CUDNN: false WITH_PYTHON: true CI_OS_NAME: osx # Mac OSX - Python - CMake - OpenCL - os: macos-10.15 os_name: osx env: NAME: OSX-default-cmake-opencl WITH_CUDA: false WITH_CUDNN: false WITH_OPEN_CL: true CI_OS_NAME: osx # Mac OSX - Python - CMake - CPU - Debug - os: macos-10.15 os_name: osx env: NAME: OSX-python-cmake-cpu-debug WITH_CUDA: false WITH_CUDNN: false WITH_PYTHON: true WITH_DEBUG: true CI_OS_NAME: osx # Mac OSX - Python - CMake - CPU - Unity - os: macos-10.15 os_name: osx env: NAME: OSX-python-cmake-cpu-unity WITH_CUDA: false WITH_CUDNN: false WITH_PYTHON: true WITH_UNITY: true CI_OS_NAME: osx # Mac OSX - Default - CMake - CPU - os: macos-10.15 os_name: osx env: NAME: OSX-default-cmake-cpu WITH_CUDA: false WITH_CUDNN: false CI_OS_NAME: osx
# TO-DO (not passing) # 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 # 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. # # Ubuntu 16.04 # # Ubuntu 16.04 - Default - CMake - CUDA # - os: ubuntu-16.04 # os_name: linux # env: # NAME: U16-default-cmake-cuda8 # CI_OS_NAME: linux
# # Deprecated (not working for the above issue between CUDA and the Ubuntu16 from GitHub Actions) # # Ubuntu 16.04 - Default - Make - CUDA # - os: ubuntu-16.04 # os_name: linux # env: # NAME: U16-default-make-cuda # WITH_CUDNN: false # WITH_CMAKE: false # CI_OS_NAME: linux
# Ubuntu 16 no longer works# # Ubuntu 16.04 - Python - CMake - CPU# - os: ubuntu-16.04# os_name: linux# env:# NAME: U16-python-cmake-cpu# WITH_PYTHON: true# WITH_CUDA: false# WITH_CUDNN: false# CI_OS_NAME: linux# # Ubuntu 16.04 - Python - CMake - OpenCL# - os: ubuntu-16.04# os_name: linux# env:# NAME: U16-python-cmake-opencl# WITH_PYTHON: true# WITH_CUDA: false# WITH_CUDNN: false# WITH_OPEN_CL: true# CI_OS_NAME: linux# # Ubuntu 16.04 - Python - CMake - CPU - Debug# - os: ubuntu-16.04# os_name: linux# env:# NAME: U16-python-cmake-cpu-debug# WITH_PYTHON: true# WITH_CUDA: false# WITH_CUDNN: false# WITH_DEBUG: true# CI_OS_NAME: linux
steps: - uses: actions/checkout@v2 with: fetch-depth: 0 submodules: recursive - uses: actions/setup-python@v2 with: python-version: 2.x if: ${{ matrix.env.WITH_PYTHON }} - name: Install (Linux) run: scripts/CI/install_deps_ubuntu.sh if: ${{ matrix.os_name == 'linux' }} - name: Install (Mac OS) run: scripts/CI/install_deps_osx.sh if: ${{ matrix.os_name == 'osx' }}
- name: Configure run: scripts/CI/configure.sh - name: Make run: scripts/CI/run_make.sh - name: Tests run: scripts/CI/run_tests.sh
- name: Docs APT packages run: | # The Doxygen apt-get version for Ubuntu 20 is 1.8.17, which has some bugs fixed in 1.9.1 # run: sudo apt-get -yq install doxygen doxygen-doc doxygen-latex doxygen-gui graphviz git clone https://github.com/doxygen/doxygen.git && cd doxygen && git checkout Release_1_9_1 mkdir build && cd build cmake -G "Unix Makefiles" .. make -j`nproc` sudo make install if: ${{ matrix.DOCS }} - name: Generate docs run: | cd ${{ github.workspace }} echo 'Generating Doxygen code documentation...' doxygen $DOXYFILE 2>&1 | tee doxygen.log # Required so Doxygen links/finds the license file cp LICENSE doxygen/html/LICENSE # Required in order to link .github/media/ images with doc without modifying doc links. Remove if using `publish_dir: doxygen/html/` mkdir -p doxygen_final/web/html/ && mv doxygen/html doxygen_final/web/html/doc mkdir -p doxygen_final/web/.github/media/ && cp -rf .github/media/ doxygen_final/web/.github/ mkdir -p doxygen_final/web/html/.github/media/ && cp -rf .github/media/ doxygen_final/web/html/.github/ mkdir -p doxygen_final/web/html/doc/.github/media/ && cp -rf .github/media/ doxygen_final/web/html/doc/.github/ echo 'Copying log...' cp doxygen.log doxygen_final/doxygen.log echo 'Copying index.html to root pointing to actual docs' cp .github/root_index.html doxygen_final/index.html if: ${{ matrix.DOCS }} - name: Deploy Docs uses: peaceiris/actions-gh-pages@v3 with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: doxygen_final/ # publish_dir: doxygen/html/ # Original one, it would turn [...].github.io/openpose/web/html/doc/ into [...].github.io/openpose/, but images would not work destination_dir: . enable_jekyll: false force_orphan: true if: ${{ matrix.DOCS && github.event_name == 'push' && github.ref == 'refs/heads/master' }}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139######################### Binary Files ########################## Compiled Object files*.slo*.lo*.o*.cuo
# Compiled Dynamic libraries*.so**.dylib
# Compiled Static libraries*.lai*.la*.a
# Compiled protocol buffers*.pb.h*.pb.cc*_pb2.py
# Compiled python*.pyc
# Compiled MATLAB*.mex*
# IPython notebook checkpoints.ipynb_checkpoints
# LevelDB files*.sst*.ldbLOCKCURRENTMANIFEST-*
######################### IDEs Files ########################## Editor temporaries*.swp*~
# Sublime Text settings*.sublime-workspace*.sublime-project
# Eclipse Project settings*.*project.settings
# QtCreator files*.user
# PyCharm files.idea
# OSX dir files.DS_Store._.DS_Store
# Vim filescscope.*tags.clang_complete.vim
######################### Windows (Visual Studio) Files #########################*.db*.deps*.obj*.opendb*.pdb
######################### Windows (Visual Studio) Folders and Compressed files #########################*.vs/*x64/# Allowing this file (removed *.user for Qt)!*.vcxproj.user
######################### Caffe Files / Folders ########################## User's build configurationMakefileMakefile.config
# Data and models are either # 1. reference, and not casually committed # 2. custom, and live on their own unless they're deliberated contributeddistribute/*.caffemodel*.caffemodel.h5*.solverstate*.solverstate.h5*.binaryproto*leveldb*lmdb
# Camera parameters*.xml
######################### 3rd-party Folders and Zip Files #########################3rdparty/caffe/.git3rdparty/caffe/.github3rdparty/asio/3rdparty/eigen/3rdparty/windows/caffe/3rdparty/windows/caffe_cpu/3rdparty/windows/caffe_opencl/3rdparty/windows/caffe3rdparty/3rdparty/windows/opencv/3rdparty/windows/freeglut/3rdparty/windows/spinnaker/3rdparty/*zip3rdparty/windows/*zip
######################### Compilation (build, distribute & bins) Files / Folders #########################*.bin*.testbinbuildbuild*.build**cmake_builddistribute/*python/caffe/proto/
######################### Generated Documentation #########################_sitedocs/_sitedocs/devdocs/gathereddoxygenhtml/
######################### Video Files ########################## Testing videos*.mp4*.mov
######################### Validation Scripts & Testing #########################output*/123456[submodule "3rdparty/caffe"] path = 3rdparty/caffe url = https://github.com/CMU-Perceptual-Computing-Lab/caffe.git[submodule "3rdparty/pybind11"] path = 3rdparty/pybind11 url = https://github.com/pybind/pybind11.git1234567891011121314151617181920212223242526272829303132333435363738Asio: - Version 1.12.1. - Link: https://think-async.com/Asio/Download
Eigen: - Version 3.3.8 - Link: http://eigen.tuxfamily.org/index.php
Unix: - Caffe: - Version 1.0.0, extracted from GitHub from its master branch. - Link: https://github.com/BVLC/caffe - GitHub SHA: 864520713a4c5ffae7382ced5d34e4cadc608473
- Spinnaker: - Tested on Spinnaker 1.13.0.31 SDK - Linux Ubuntu 16.04 (64-bit) - 05/25/2018 - 41.580MB. - Prerequisites: https://www.ptgrey.com/tan/10685
Windows: - Caffe & Caffe dependencies (caffe3rdparty): - Version 1.0.0, extracted from GitHub from its master branch. - Link: https://github.com/BVLC/caffe/tree/windows
- FreeGLUT (only for the 3-D reconstruction demo): - Version 3.0.0-2 (MSVC), extracted from their oficial website. - Link: https://www.transmissionzero.co.uk/software/freeglut-devel/
- OpenCV: - Version 4.5.0, extracted from their oficial website: section `Releases`, subsection `OpenCV - 4.5.0`, `Windows` version. - Link: https://opencv.org/releases/
- Unzip: - Version 5.52. - Link: http://stahlworks.com/dev/?tool=zipunzip
- Wget: - Version wget-1.20.3-win64. - Link: https://eternallybored.org/misc/wget/12345678910111213141516171819202122232425262728293031323334## Important - read before submitting
*Please read the [guidelines for contributing](https://github.com/BVLC/caffe/blob/master/CONTRIBUTING.md) before submitting this issue!*
*Please do not post installation, build, usage, or modeling questions, or other requests for help to Issues.*Use the [caffe-users list](https://groups.google.com/forum/#!forum/caffe-users) instead.This helps developers maintain a clear, uncluttered, and efficient view of the state of Caffe.
### Issue summary
### Steps to reproduce
### Tried solutions
### System configuration
* Operating system: * Compiler: * CUDA version (if applicable): * CUDNN version (if applicable): * BLAS: * Python version (if using pycaffe): * MATLAB version (if using matcaffe):
### Issue checklist
- [ ] read the guidelines and removed the first paragraph- [ ] written a short summary and detailed steps to reproduce- [ ] explained how solutions to related problems failed (tick if found none)- [ ] filled system configuration- [ ] attached relevant logs/config files (tick if not applicable)123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899## General
# Compiled Object files*.slo*.lo*.o*.cuo
# Compiled Dynamic libraries*.so*.dylib
# Compiled Static libraries*.lai*.la*.a
# Compiled protocol buffers*.pb.h*.pb.cc*_pb2.py
# Compiled python*.pyc
# Compiled MATLAB*.mex*
# IPython notebook checkpoints.ipynb_checkpoints
# Editor temporaries*.swp*~
# Sublime Text settings*.sublime-workspace*.sublime-project
# Eclipse Project settings*.*project.settings
# QtCreator files*.user
# PyCharm files.idea
# Visual Studio Code files.vscode
# OSX dir files.DS_Store
## Caffe
# User's build configurationMakefile.config
# Data and models are either# 1. reference, and not casually committed# 2. custom, and live on their own unless they're deliberated contributeddata/*models/**.caffemodel*.caffemodel.h5*.solverstate*.solverstate.h5*.binaryproto*leveldb*lmdb
# build, distribute, and bins (+ python proto bindings)build.build_debug/*.build_release/*distribute/**.testbin*.binpython/caffe/proto/cmake_build.cmake_build
# Generated documentationdocs/_sitedocs/_includesdocs/gathered_sitedoxygendocs/dev
# LevelDB files*.sst*.ldbLOCKLOG*CURRENTMANIFEST-*12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667dist: trustysudo: required
language: cppcompiler: gcc
env: global: - NUM_THREADS=4 matrix: # Use a build matrix to test many builds in parallel # envvar defaults: # WITH_CMAKE: false # WITH_PYTHON3: false # WITH_IO: true # WITH_CUDA: false # WITH_CUDNN: false - BUILD_NAME="default-make"# - BUILD_NAME="python3-make" WITH_PYTHON3=true - BUILD_NAME="no-io-make" WITH_IO=false - BUILD_NAME="cuda-make" WITH_CUDA=true - BUILD_NAME="cudnn-make" WITH_CUDA=true WITH_CUDNN=true
- BUILD_NAME="default-cmake" WITH_CMAKE=true - BUILD_NAME="python3-cmake" WITH_CMAKE=true WITH_PYTHON3=true - BUILD_NAME="no-io-cmake" WITH_CMAKE=true WITH_IO=false - BUILD_NAME="cuda-cmake" WITH_CMAKE=true WITH_CUDA=true - BUILD_NAME="cudnn-cmake" WITH_CMAKE=true WITH_CUDA=true WITH_CUDNN=true
cache: apt: true directories: - ~/protobuf3
before_install: - source ./scripts/travis/defaults.sh
install: - sudo -E ./scripts/travis/install-deps.sh - ./scripts/travis/setup-venv.sh ~/venv - source ~/venv/bin/activate - ./scripts/travis/install-python-deps.sh
before_script: - ./scripts/travis/configure.sh
script: - ./scripts/travis/build.sh - ./scripts/travis/test.sh
notifications:# Emails are sent to the committer's git-configured email address by default,# but only if they have access to the repository. To enable Travis on your# public fork of Caffe, just go to travis-ci.org and flip the switch on for# your Caffe fork. To configure your git email address, use:# git config --global user.email me@example.com email: on_success: always on_failure: always
# IRC notifications disabled by default.# Uncomment next 5 lines to send notifications to chat.freenode.net#caffe# irc:# channels:# - "chat.freenode.net#caffe"# template:# - "%{repository}/%{branch} (%{commit} - %{author}): %{message}"123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127cmake_minimum_required(VERSION 2.8.7)if(POLICY CMP0046) cmake_policy(SET CMP0046 NEW)endif()if(POLICY CMP0054) cmake_policy(SET CMP0054 NEW)endif()
# ---[ Caffe projectproject(Caffe C CXX)
# ---[ Caffe versionset(CAFFE_TARGET_VERSION "1.0.0" CACHE STRING "Caffe logical version")set(CAFFE_TARGET_SOVERSION "1.0.0" CACHE STRING "Caffe soname version")add_definitions(-DCAFFE_VERSION=${CAFFE_TARGET_VERSION})
# ---[ Using cmake scripts and moduleslist(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake/Modules)
include(ExternalProject)include(GNUInstallDirs)
include(cmake/Utils.cmake)include(cmake/Targets.cmake)include(cmake/Misc.cmake)include(cmake/Summary.cmake)include(cmake/ConfigGen.cmake)
# ---[ Optionscaffe_option(CPU_ONLY "Build Caffe without CUDA support" OFF) # TODO: rename to USE_CUDAcaffe_option(USE_CUDNN "Build Caffe with cuDNN library support" ON IF NOT CPU_ONLY)caffe_option(USE_NCCL "Build Caffe with NCCL library support" OFF)caffe_option(BUILD_SHARED_LIBS "Build shared libraries" ON)caffe_option(BUILD_python "Build Python wrapper" ON)set(python_version "2" CACHE STRING "Specify which Python version to use")caffe_option(BUILD_matlab "Build Matlab wrapper" OFF IF UNIX OR APPLE)caffe_option(BUILD_docs "Build documentation" ON IF UNIX OR APPLE)caffe_option(BUILD_python_layer "Build the Caffe Python layer" ON)caffe_option(USE_OPENCV "Build with OpenCV support" ON)caffe_option(USE_LEVELDB "Build with levelDB" ON)caffe_option(USE_LMDB "Build with lmdb" ON)caffe_option(ALLOW_LMDB_NOLOCK "Allow MDB_NOLOCK when reading LMDB files (only if necessary)" OFF)caffe_option(USE_OPENMP "Link with OpenMP (when your BLAS wants OpenMP and you get linker errors)" OFF)
# This code is taken from https://github.com/sh1r0/caffe-android-libcaffe_option(USE_HDF5 "Build with hdf5" ON)
# ---[ Dependenciesinclude(cmake/Dependencies.cmake)
# ---[ Flagsif(UNIX OR APPLE) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC -Wall -std=c++11")endif()
caffe_set_caffe_link()
if(USE_libstdcpp) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libstdc++") message("-- Warning: forcing libstdc++ (controlled by USE_libstdcpp option in cmake)")endif()
# ---[ Warningscaffe_warnings_disable(CMAKE_CXX_FLAGS -Wno-sign-compare -Wno-uninitialized)
# ---[ Config generationconfigure_file(cmake/Templates/caffe_config.h.in "${PROJECT_BINARY_DIR}/caffe_config.h")
# ---[ Includesset(Caffe_INCLUDE_DIR ${PROJECT_SOURCE_DIR}/include)set(Caffe_SRC_DIR ${PROJECT_SOURCE_DIR}/src)include_directories(${PROJECT_BINARY_DIR})
# ---[ Includes & defines for CUDA
# cuda_compile() does not have per-call dependencies or include pathes# (cuda_compile() has per-call flags, but we set them here too for clarity)## list(REMOVE_ITEM ...) invocations remove PRIVATE and PUBLIC keywords from collected definitions and include pathesif(HAVE_CUDA) # pass include pathes to cuda_include_directories() set(Caffe_ALL_INCLUDE_DIRS ${Caffe_INCLUDE_DIRS}) list(REMOVE_ITEM Caffe_ALL_INCLUDE_DIRS PRIVATE PUBLIC) cuda_include_directories(${Caffe_INCLUDE_DIR} ${Caffe_SRC_DIR} ${Caffe_ALL_INCLUDE_DIRS})
# add definitions to nvcc flags directly if(Caffe_DEFINITIONS) set(Caffe_ALL_DEFINITIONS ${Caffe_DEFINITIONS}) list(REMOVE_ITEM Caffe_ALL_DEFINITIONS PRIVATE PUBLIC) list(APPEND CUDA_NVCC_FLAGS ${Caffe_ALL_DEFINITIONS}) endif()endif()
# ---[ Subdirectoriesadd_subdirectory(src/gtest)add_subdirectory(src/caffe)add_subdirectory(tools)add_subdirectory(examples)add_subdirectory(python)add_subdirectory(matlab)add_subdirectory(docs)
# ---[ Linter targetadd_custom_target(lint COMMAND ${CMAKE_COMMAND} -P ${PROJECT_SOURCE_DIR}/cmake/lint.cmake)
# ---[ pytest targetif(BUILD_python) add_custom_target(pytest COMMAND python${python_version} -m unittest discover -s caffe/test WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}/python ) add_dependencies(pytest pycaffe)endif()
# ---[ uninstall targetconfigure_file( ${CMAKE_CURRENT_SOURCE_DIR}/cmake/Uninstall.cmake.in ${CMAKE_CURRENT_BINARY_DIR}/cmake/Uninstall.cmake IMMEDIATE @ONLY)
add_custom_target(uninstall COMMAND ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_BINARY_DIR}/cmake/Uninstall.cmake)
# ---[ Configuration summarycaffe_print_configuration_summary()
# ---[ Export configs generationcaffe_generate_export_configs()
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172# Contributing
Below you will find a collection of guidelines for submitting issues as well as contributing code to the Caffe repository.Please read those before starting an issue or a pull request.
## Issues
Specific Caffe design and development issues, bugs, and feature requests are maintained by GitHub Issues.
*Please do not post installation, build, usage, or modeling questions, or other requests for help to Issues.*Use the [caffe-users list](https://groups.google.com/forum/#!forum/caffe-users) instead.This helps developers maintain a clear, uncluttered, and efficient view of the state of Caffe.See the chapter [caffe-users](#caffe-users) below for guidance on posting to the users list.
When reporting an issue, it's most helpful to provide the following information, where applicable:* How does the problem look like and what steps reproduce it?* Can you reproduce it using the latest [master](https://github.com/BVLC/caffe/tree/master), compiled with the `DEBUG` make option?* What hardware and software are you running? In particular: * GPU make and model, if relevant, * operating system/distribution, * compiler; please also post which version (for example, with GCC run `gcc --version` to check), * CUDA version, if applicable (run `nvcc --version` to check), * cuDNN version, if applicable (version number is stored in `cudnn.h`, look for lines containing `CUDNN_MAJOR`, `CUDNN_MINOR` and `CUDNN_PATCHLEVEL`), * BLAS library, * Python version, if relevant, * MATLAB version, if relevant.* **What have you already tried** to solve the problem? How did it fail? Are there any other issues related to yours?* If this is not a build-related issue, does your installation pass `make runtest`?* If the bug is a crash, provide the backtrace (usually printed by Caffe; always obtainable with `gdb`).* If you are reporting a build error that seems to be due to a bug in Caffe, please attach your build configuration (either Makefile.config or CMakeCache.txt) and the output of the make (or cmake) command.
If only a small portion of the code/log is relevant to your issue, you may paste it directly into the post, preferably using Markdown syntax for code block: triple backtick ( \`\`\` ) to open/close a block.In other cases (multiple files, or long files), please **attach** them to the post - this greatly improves readability.
If the problem arises during a complex operation (e.g. large script using pycaffe, long network prototxt), please reduce the example to the minimal size that still causes the error.Also, minimize influence of external modules, data etc. - this way it will be easier for others to understand and reproduce your issue, and eventually help you.Sometimes you will find the root cause yourself in the process.
Try to give your issue a title that is succinct and specific. The devs will rename issues as needed to keep track of them.
## Caffe-users
Before you post to the [caffe-users list](https://groups.google.com/forum/#!forum/caffe-users), make sure you look for existing solutions.The Caffe community has encountered and found solutions to countless problems - benefit from the collective experience.Recommended places to look:* the [users list](https://groups.google.com/forum/#!forum/caffe-users) itself,* [`caffe`](https://stackoverflow.com/questions/tagged/caffe) tag on StackOverflow,* [GitHub issues](https://github.com/BVLC/caffe/issues) tracker (some problems have been answered there),* the public [wiki](https://github.com/BVLC/caffe/wiki),* the official [documentation](http://caffe.berkeleyvision.org/).
Found a post/issue with your exact problem, but with no answer?Don't just leave a "me too" message - provide the details of your case.Problems with more available information are easier to solve and attract good attention.
When posting to the list, make sure you provide as much relevant information as possible - recommendations for an issue report (see above) are a good starting point. *Please make it very clear which version of Caffe you are using, especially if it is a fork not maintained by BVLC.*
Formatting recommendations hold: paste short logs/code fragments into the post (use fixed-width text for them), **attach** long logs or multiple files.
## Pull Requests
Caffe welcomes all contributions.
See the [contributing guide](http://caffe.berkeleyvision.org/development.html) for details.
Briefly: read commit by commit, a PR should tell a clean, compelling story of _one_ improvement to Caffe. In particular:
* A PR should do one clear thing that obviously improves Caffe, and nothing more. Making many smaller PRs is better than making one large PR; review effort is superlinear in the amount of code involved.* Similarly, each commit should be a small, atomic change representing one step in development. PRs should be made of many commits where appropriate.* Please do rewrite PR history to be clean rather than chronological. Within-PR bugfixes, style cleanups, reversions, etc. should be squashed and should not appear in merged PR history.* Anything nonobvious from the code should be explained in comments, commit messages, or the PR description, as appropriate.12345678910111213141516171819# Contributors
Caffe is developed by a core set of BAIR members and the open-source community.
We thank all of our [contributors](https://github.com/BVLC/caffe/graphs/contributors)!
**For the detailed history of contributions** of a given file, try
git blame file
to see line-by-line credits and
git log --follow file
to see the change log even across renames and rewrites.
Please refer to the [acknowledgements](http://caffe.berkeleyvision.org/#acknowledgements) on the Caffe site for further details.
**Copyright** is held by the original contributor according to the versioning history; see LICENSE.1234567# Installation
See http://caffe.berkeleyvision.org/installation.html for the latestinstallation instructions.
Check the users group in case you need help:https://groups.google.com/forum/#!forum/caffe-users1234567891011121314151617181920212223242526272829303132333435363738394041424344COPYRIGHT
All contributions by the University of California:Copyright (c) 2014-2017 The Regents of the University of California (Regents)All rights reserved.
All other contributions:Copyright (c) 2014-2017, the respective contributorsAll rights reserved.
Caffe uses a shared copyright model: each contributor holds copyright overtheir contributions to Caffe. The project versioning records all suchcontribution and copyright details. If a contributor wants to further marktheir specific copyright on a particular contribution, they should indicatetheir copyright solely in the commit message of the change when it iscommitted.
LICENSE
Redistribution and use in source and binary forms, with or withoutmodification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" ANDANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIEDWARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE AREDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FORANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED ANDON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THISSOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
CONTRIBUTION AGREEMENT
By contributing to the BVLC/caffe repository through pull-request, comment,or otherwise, the contributor releases their content to thelicense and copyright terms herein.123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714PROJECT := caffe
CONFIG_FILE := Makefile.config# Explicitly check for the config file, otherwise make -k will proceed anyway.ifeq ($(wildcard $(CONFIG_FILE)),)$(error $(CONFIG_FILE) not found. See $(CONFIG_FILE).example.)endifinclude $(CONFIG_FILE)
BUILD_DIR_LINK := $(BUILD_DIR)ifeq ($(RELEASE_BUILD_DIR),) RELEASE_BUILD_DIR := .$(BUILD_DIR)_releaseendififeq ($(DEBUG_BUILD_DIR),) DEBUG_BUILD_DIR := .$(BUILD_DIR)_debugendif
DEBUG ?= 0ifeq ($(DEBUG), 1) BUILD_DIR := $(DEBUG_BUILD_DIR) OTHER_BUILD_DIR := $(RELEASE_BUILD_DIR)else BUILD_DIR := $(RELEASE_BUILD_DIR) OTHER_BUILD_DIR := $(DEBUG_BUILD_DIR)endif
# All of the directories containing code.SRC_DIRS := $(shell find * -type d -exec bash -c "find {} -maxdepth 1 \ \( -name '*.cpp' -o -name '*.proto' \) | grep -q ." \; -print)
# The target shared library nameLIBRARY_NAME := $(PROJECT)LIB_BUILD_DIR := $(BUILD_DIR)/libSTATIC_NAME := $(LIB_BUILD_DIR)/lib$(LIBRARY_NAME).aDYNAMIC_VERSION_MAJOR := 1DYNAMIC_VERSION_MINOR := 0DYNAMIC_VERSION_REVISION := 0DYNAMIC_NAME_SHORT := lib$(LIBRARY_NAME).so#DYNAMIC_SONAME_SHORT := $(DYNAMIC_NAME_SHORT).$(DYNAMIC_VERSION_MAJOR)DYNAMIC_VERSIONED_NAME_SHORT := $(DYNAMIC_NAME_SHORT).$(DYNAMIC_VERSION_MAJOR).$(DYNAMIC_VERSION_MINOR).$(DYNAMIC_VERSION_REVISION)DYNAMIC_NAME := $(LIB_BUILD_DIR)/$(DYNAMIC_VERSIONED_NAME_SHORT)COMMON_FLAGS += -DCAFFE_VERSION=$(DYNAMIC_VERSION_MAJOR).$(DYNAMIC_VERSION_MINOR).$(DYNAMIC_VERSION_REVISION)# OpenPose: added C++11 flag to avoid crashing in some old GCC compilersCOMMON_FLAGS += -std=c++11# OpenPose: end modified
############################### Get all source files############################### CXX_SRCS are the source files excluding the test ones.CXX_SRCS := $(shell find src/$(PROJECT) ! -name "test_*.cpp" -name "*.cpp")# CU_SRCS are the cuda source filesCU_SRCS := $(shell find src/$(PROJECT) ! -name "test_*.cu" -name "*.cu")# TEST_SRCS are the test source filesTEST_MAIN_SRC := src/$(PROJECT)/test/test_caffe_main.cppTEST_SRCS := $(shell find src/$(PROJECT) -name "test_*.cpp")TEST_SRCS := $(filter-out $(TEST_MAIN_SRC), $(TEST_SRCS))TEST_CU_SRCS := $(shell find src/$(PROJECT) -name "test_*.cu")GTEST_SRC := src/gtest/gtest-all.cpp# TOOL_SRCS are the source files for the tool binariesTOOL_SRCS := $(shell find tools -name "*.cpp")# EXAMPLE_SRCS are the source files for the example binariesEXAMPLE_SRCS := $(shell find examples -name "*.cpp")# BUILD_INCLUDE_DIR contains any generated header files we want to include.BUILD_INCLUDE_DIR := $(BUILD_DIR)/src# PROTO_SRCS are the protocol buffer definitionsPROTO_SRC_DIR := src/$(PROJECT)/protoPROTO_SRCS := $(wildcard $(PROTO_SRC_DIR)/*.proto)# PROTO_BUILD_DIR will contain the .cc and obj files generated from# PROTO_SRCS; PROTO_BUILD_INCLUDE_DIR will contain the .h header filesPROTO_BUILD_DIR := $(BUILD_DIR)/$(PROTO_SRC_DIR)PROTO_BUILD_INCLUDE_DIR := $(BUILD_INCLUDE_DIR)/$(PROJECT)/proto# NONGEN_CXX_SRCS includes all source/header files except those generated# automatically (e.g., by proto).NONGEN_CXX_SRCS := $(shell find \ src/$(PROJECT) \ include/$(PROJECT) \ python/$(PROJECT) \ matlab/+$(PROJECT)/private \ examples \ tools \ -name "*.cpp" -or -name "*.hpp" -or -name "*.cu" -or -name "*.cuh")LINT_SCRIPT := scripts/cpp_lint.pyLINT_OUTPUT_DIR := $(BUILD_DIR)/.lintLINT_EXT := lint.txtLINT_OUTPUTS := $(addsuffix .$(LINT_EXT), $(addprefix $(LINT_OUTPUT_DIR)/, $(NONGEN_CXX_SRCS)))EMPTY_LINT_REPORT := $(BUILD_DIR)/.$(LINT_EXT)NONEMPTY_LINT_REPORT := $(BUILD_DIR)/$(LINT_EXT)# PY$(PROJECT)_SRC is the python wrapper for $(PROJECT)PY$(PROJECT)_SRC := python/$(PROJECT)/_$(PROJECT).cppPY$(PROJECT)_SO := python/$(PROJECT)/_$(PROJECT).soPY$(PROJECT)_HXX := include/$(PROJECT)/layers/python_layer.hpp# MAT$(PROJECT)_SRC is the mex entrance point of matlab package for $(PROJECT)MAT$(PROJECT)_SRC := matlab/+$(PROJECT)/private/$(PROJECT)_.cppifneq ($(MATLAB_DIR),) MAT_SO_EXT := $(shell $(MATLAB_DIR)/bin/mexext)endifMAT$(PROJECT)_SO := matlab/+$(PROJECT)/private/$(PROJECT)_.$(MAT_SO_EXT)
############################### Derive generated files############################### The generated files for protocol buffersPROTO_GEN_HEADER_SRCS := $(addprefix $(PROTO_BUILD_DIR)/, \ $(notdir ${PROTO_SRCS:.proto=.pb.h}))PROTO_GEN_HEADER := $(addprefix $(PROTO_BUILD_INCLUDE_DIR)/, \ $(notdir ${PROTO_SRCS:.proto=.pb.h}))PROTO_GEN_CC := $(addprefix $(BUILD_DIR)/, ${PROTO_SRCS:.proto=.pb.cc})PY_PROTO_BUILD_DIR := python/$(PROJECT)/protoPY_PROTO_INIT := python/$(PROJECT)/proto/__init__.pyPROTO_GEN_PY := $(foreach file,${PROTO_SRCS:.proto=_pb2.py}, \ $(PY_PROTO_BUILD_DIR)/$(notdir $(file)))# The objects corresponding to the source files# These objects will be linked into the final shared library, so we# exclude the tool, example, and test objects.CXX_OBJS := $(addprefix $(BUILD_DIR)/, ${CXX_SRCS:.cpp=.o})CU_OBJS := $(addprefix $(BUILD_DIR)/cuda/, ${CU_SRCS:.cu=.o})PROTO_OBJS := ${PROTO_GEN_CC:.cc=.o}OBJS := $(PROTO_OBJS) $(CXX_OBJS) $(CU_OBJS)# tool, example, and test objectsTOOL_OBJS := $(addprefix $(BUILD_DIR)/, ${TOOL_SRCS:.cpp=.o})TOOL_BUILD_DIR := $(BUILD_DIR)/toolsTEST_CXX_BUILD_DIR := $(BUILD_DIR)/src/$(PROJECT)/testTEST_CU_BUILD_DIR := $(BUILD_DIR)/cuda/src/$(PROJECT)/testTEST_CXX_OBJS := $(addprefix $(BUILD_DIR)/, ${TEST_SRCS:.cpp=.o})TEST_CU_OBJS := $(addprefix $(BUILD_DIR)/cuda/, ${TEST_CU_SRCS:.cu=.o})TEST_OBJS := $(TEST_CXX_OBJS) $(TEST_CU_OBJS)GTEST_OBJ := $(addprefix $(BUILD_DIR)/, ${GTEST_SRC:.cpp=.o})EXAMPLE_OBJS := $(addprefix $(BUILD_DIR)/, ${EXAMPLE_SRCS:.cpp=.o})# Output files for automatic dependency generationDEPS := ${CXX_OBJS:.o=.d} ${CU_OBJS:.o=.d} ${TEST_CXX_OBJS:.o=.d} \ ${TEST_CU_OBJS:.o=.d} $(BUILD_DIR)/${MAT$(PROJECT)_SO:.$(MAT_SO_EXT)=.d}# tool, example, and test binsTOOL_BINS := ${TOOL_OBJS:.o=.bin}EXAMPLE_BINS := ${EXAMPLE_OBJS:.o=.bin}# symlinks to tool bins without the ".bin" extensionTOOL_BIN_LINKS := ${TOOL_BINS:.bin=}# Put the test binaries in build/test for convenience.TEST_BIN_DIR := $(BUILD_DIR)/testTEST_CU_BINS := $(addsuffix .testbin,$(addprefix $(TEST_BIN_DIR)/, \ $(foreach obj,$(TEST_CU_OBJS),$(basename $(notdir $(obj))))))TEST_CXX_BINS := $(addsuffix .testbin,$(addprefix $(TEST_BIN_DIR)/, \ $(foreach obj,$(TEST_CXX_OBJS),$(basename $(notdir $(obj))))))TEST_BINS := $(TEST_CXX_BINS) $(TEST_CU_BINS)# TEST_ALL_BIN is the test binary that links caffe dynamically.TEST_ALL_BIN := $(TEST_BIN_DIR)/test_all.testbin
############################### Derive compiler warning dump locations##############################WARNS_EXT := warnings.txtCXX_WARNS := $(addprefix $(BUILD_DIR)/, ${CXX_SRCS:.cpp=.o.$(WARNS_EXT)})CU_WARNS := $(addprefix $(BUILD_DIR)/cuda/, ${CU_SRCS:.cu=.o.$(WARNS_EXT)})TOOL_WARNS := $(addprefix $(BUILD_DIR)/, ${TOOL_SRCS:.cpp=.o.$(WARNS_EXT)})EXAMPLE_WARNS := $(addprefix $(BUILD_DIR)/, ${EXAMPLE_SRCS:.cpp=.o.$(WARNS_EXT)})TEST_WARNS := $(addprefix $(BUILD_DIR)/, ${TEST_SRCS:.cpp=.o.$(WARNS_EXT)})TEST_CU_WARNS := $(addprefix $(BUILD_DIR)/cuda/, ${TEST_CU_SRCS:.cu=.o.$(WARNS_EXT)})ALL_CXX_WARNS := $(CXX_WARNS) $(TOOL_WARNS) $(EXAMPLE_WARNS) $(TEST_WARNS)ALL_CU_WARNS := $(CU_WARNS) $(TEST_CU_WARNS)ALL_WARNS := $(ALL_CXX_WARNS) $(ALL_CU_WARNS)
EMPTY_WARN_REPORT := $(BUILD_DIR)/.$(WARNS_EXT)NONEMPTY_WARN_REPORT := $(BUILD_DIR)/$(WARNS_EXT)
############################### Derive include and lib directories##############################CUDA_INCLUDE_DIR := $(CUDA_DIR)/include
CUDA_LIB_DIR :=# add <cuda>/lib64 only if it existsifneq ("$(wildcard $(CUDA_DIR)/lib64)","") CUDA_LIB_DIR += $(CUDA_DIR)/lib64endifCUDA_LIB_DIR += $(CUDA_DIR)/lib
INCLUDE_DIRS += $(BUILD_INCLUDE_DIR) ./src ./includeifneq ($(CPU_ONLY), 1) INCLUDE_DIRS += $(CUDA_INCLUDE_DIR) LIBRARY_DIRS += $(CUDA_LIB_DIR) LIBRARIES := cudart cublas curandendif
LIBRARIES += glog gflags protobuf boost_system boost_filesystem m
# handle IO dependenciesUSE_LEVELDB ?= 1USE_LMDB ?= 1# This code is taken from https://github.com/sh1r0/caffe-android-libUSE_HDF5 ?= 1USE_OPENCV ?= 1
ifeq ($(USE_LEVELDB), 1) LIBRARIES += leveldb snappyendififeq ($(USE_LMDB), 1) LIBRARIES += lmdbendif# This code is taken from https://github.com/sh1r0/caffe-android-libifeq ($(USE_HDF5), 1) LIBRARIES += hdf5_hl hdf5endififeq ($(USE_OPENCV), 1) LIBRARIES += opencv_core opencv_highgui opencv_imgproc
ifeq ($(OPENCV_VERSION), 3) LIBRARIES += opencv_imgcodecs endif
endifPYTHON_LIBRARIES ?= boost_python python2.7WARNINGS := -Wall -Wno-sign-compare
############################### Set build directories##############################
DISTRIBUTE_DIR ?= distributeDISTRIBUTE_SUBDIRS := $(DISTRIBUTE_DIR)/bin $(DISTRIBUTE_DIR)/libDIST_ALIASES := distifneq ($(strip $(DISTRIBUTE_DIR)),distribute) DIST_ALIASES += distributeendif
ALL_BUILD_DIRS := $(sort $(BUILD_DIR) $(addprefix $(BUILD_DIR)/, $(SRC_DIRS)) \ $(addprefix $(BUILD_DIR)/cuda/, $(SRC_DIRS)) \ $(LIB_BUILD_DIR) $(TEST_BIN_DIR) $(PY_PROTO_BUILD_DIR) $(LINT_OUTPUT_DIR) \ $(DISTRIBUTE_SUBDIRS) $(PROTO_BUILD_INCLUDE_DIR))
############################### Set directory for Doxygen-generated documentation##############################DOXYGEN_CONFIG_FILE ?= ./.Doxyfile# should be the same as OUTPUT_DIRECTORY in the .DoxyfileDOXYGEN_OUTPUT_DIR ?= ./doxygenDOXYGEN_COMMAND ?= doxygen# All the files that might have Doxygen documentation.DOXYGEN_SOURCES := $(shell find \ src/$(PROJECT) \ include/$(PROJECT) \ python/ \ matlab/ \ examples \ tools \ -name "*.cpp" -or -name "*.hpp" -or -name "*.cu" -or -name "*.cuh" -or \ -name "*.py" -or -name "*.m")DOXYGEN_SOURCES += $(DOXYGEN_CONFIG_FILE)
############################### Configure build##############################
# Determine platformUNAME := $(shell uname -s)ifeq ($(UNAME), Linux) LINUX := 1else ifeq ($(UNAME), Darwin) OSX := 1 OSX_MAJOR_VERSION := $(shell sw_vers -productVersion | cut -f 1 -d .) OSX_MINOR_VERSION := $(shell sw_vers -productVersion | cut -f 2 -d .)endif
# Linuxifeq ($(LINUX), 1) CXX ?= /usr/bin/g++ GCCVERSION := $(shell $(CXX) -dumpversion | cut -f1,2 -d.) # older versions of gcc are too dumb to build boost with -Wuninitalized ifeq ($(shell echo | awk '{exit $(GCCVERSION) < 4.6;}'), 1) WARNINGS += -Wno-uninitialized endif # boost::thread is reasonably called boost_thread (compare OS X) # We will also explicitly add stdc++ to the link target. LIBRARIES += boost_thread stdc++ VERSIONFLAGS += -Wl,-soname,$(DYNAMIC_VERSIONED_NAME_SHORT) -Wl,-rpath,$(ORIGIN)/../libendif
# OS X:# clang++ instead of g++# libstdc++ for NVCC compatibility on OS X >= 10.9 with CUDA < 7.0ifeq ($(OSX), 1) CXX := /usr/bin/clang++ ifneq ($(CPU_ONLY), 1) CUDA_VERSION := $(shell $(CUDA_DIR)/bin/nvcc -V | grep -o 'release [0-9.]*' | tr -d '[a-z ]') ifeq ($(shell echo | awk '{exit $(CUDA_VERSION) < 7.0;}'), 1) CXXFLAGS += -stdlib=libstdc++ LINKFLAGS += -stdlib=libstdc++ endif # clang throws this warning for cuda headers WARNINGS += -Wno-unneeded-internal-declaration # 10.11 strips DYLD_* env vars so link CUDA (rpath is available on 10.5+) OSX_10_OR_LATER := $(shell [ $(OSX_MAJOR_VERSION) -ge 10 ] && echo true) OSX_10_5_OR_LATER := $(shell [ $(OSX_MINOR_VERSION) -ge 5 ] && echo true) ifeq ($(OSX_10_OR_LATER),true) ifeq ($(OSX_10_5_OR_LATER),true) LDFLAGS += -Wl,-rpath,$(CUDA_LIB_DIR) endif endif endif # gtest needs to use its own tuple to not conflict with clang COMMON_FLAGS += -DGTEST_USE_OWN_TR1_TUPLE=1 # boost::thread is called boost_thread-mt to mark multithreading on OS X LIBRARIES += boost_thread-mt # we need to explicitly ask for the rpath to be obeyed ORIGIN := @loader_path VERSIONFLAGS += -Wl,-install_name,@rpath/$(DYNAMIC_VERSIONED_NAME_SHORT) -Wl,-rpath,$(ORIGIN)/../../build/libelse ORIGIN := \$$ORIGINendif
# Custom compilerifdef CUSTOM_CXX CXX := $(CUSTOM_CXX)endif
# Static linkingifneq (,$(findstring clang++,$(CXX))) STATIC_LINK_COMMAND := -Wl,-force_load $(STATIC_NAME)else ifneq (,$(findstring g++,$(CXX))) STATIC_LINK_COMMAND := -Wl,--whole-archive $(STATIC_NAME) -Wl,--no-whole-archiveelse # The following line must not be indented with a tab, since we are not inside a target $(error Cannot static link with the $(CXX) compiler)endif
# Debuggingifeq ($(DEBUG), 1) COMMON_FLAGS += -DDEBUG -g -O0 NVCCFLAGS += -Gelse # OpenPose: modified `-O2` by `-O3` COMMON_FLAGS += -DNDEBUG -O3 # OpenPose: end modifiedendif
# cuDNN acceleration configuration.ifeq ($(USE_CUDNN), 1) LIBRARIES += cudnn COMMON_FLAGS += -DUSE_CUDNNendif
# NCCL acceleration configurationifeq ($(USE_NCCL), 1) LIBRARIES += nccl COMMON_FLAGS += -DUSE_NCCLendif
# configure IO librariesifeq ($(USE_OPENCV), 1) COMMON_FLAGS += -DUSE_OPENCVendififeq ($(USE_LEVELDB), 1) COMMON_FLAGS += -DUSE_LEVELDBendififeq ($(USE_LMDB), 1) COMMON_FLAGS += -DUSE_LMDBifeq ($(ALLOW_LMDB_NOLOCK), 1) COMMON_FLAGS += -DALLOW_LMDB_NOLOCKendifendif# This code is taken from https://github.com/sh1r0/caffe-android-libifeq ($(USE_HDF5), 1) COMMON_FLAGS += -DUSE_HDF5endif
# CPU-only configurationifeq ($(CPU_ONLY), 1) OBJS := $(PROTO_OBJS) $(CXX_OBJS) TEST_OBJS := $(TEST_CXX_OBJS) TEST_BINS := $(TEST_CXX_BINS) ALL_WARNS := $(ALL_CXX_WARNS) TEST_FILTER := --gtest_filter="-*GPU*" COMMON_FLAGS += -DCPU_ONLYendif
# Python layer supportifeq ($(WITH_PYTHON_LAYER), 1) COMMON_FLAGS += -DWITH_PYTHON_LAYER LIBRARIES += $(PYTHON_LIBRARIES)endif
# BLAS configuration (default = ATLAS)BLAS ?= atlasifeq ($(BLAS), mkl) # MKL LIBRARIES += mkl_rt COMMON_FLAGS += -DUSE_MKL MKLROOT ?= /opt/intel/mkl BLAS_INCLUDE ?= $(MKLROOT)/include BLAS_LIB ?= $(MKLROOT)/lib $(MKLROOT)/lib/intel64else ifeq ($(BLAS), open) # OpenBLAS LIBRARIES += openblaselse # ATLAS ifeq ($(LINUX), 1) ifeq ($(BLAS), atlas) # Linux simply has cblas and atlas LIBRARIES += cblas atlas endif else ifeq ($(OSX), 1) # OS X packages atlas as the vecLib framework LIBRARIES += cblas # 10.10 has accelerate while 10.9 has veclib XCODE_CLT_VER := $(shell pkgutil --pkg-info=com.apple.pkg.CLTools_Executables | grep 'version' | sed 's/[^0-9]*\([0-9]\).*/\1/') XCODE_CLT_GEQ_7 := $(shell [ $(XCODE_CLT_VER) -gt 6 ] && echo 1) XCODE_CLT_GEQ_6 := $(shell [ $(XCODE_CLT_VER) -gt 5 ] && echo 1) ifeq ($(XCODE_CLT_GEQ_7), 1) BLAS_INCLUDE ?= /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/$(shell ls /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/ | sort | tail -1)/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/Headers else ifeq ($(XCODE_CLT_GEQ_6), 1) BLAS_INCLUDE ?= /System/Library/Frameworks/Accelerate.framework/Versions/Current/Frameworks/vecLib.framework/Headers/ LDFLAGS += -framework Accelerate else BLAS_INCLUDE ?= /System/Library/Frameworks/vecLib.framework/Versions/Current/Headers/ LDFLAGS += -framework vecLib endif endifendifINCLUDE_DIRS += $(BLAS_INCLUDE)LIBRARY_DIRS += $(BLAS_LIB)
LIBRARY_DIRS += $(LIB_BUILD_DIR)
# Automatic dependency generation (nvcc is handled separately)CXXFLAGS += -MMD -MP
# Complete build flags.COMMON_FLAGS += $(foreach includedir,$(INCLUDE_DIRS),-I$(includedir))CXXFLAGS += -pthread -fPIC $(COMMON_FLAGS) $(WARNINGS)NVCCFLAGS += -ccbin=$(CXX) -Xcompiler -fPIC $(COMMON_FLAGS)# mex may invoke an older gcc that is too liberal with -WuninitalizedMATLAB_CXXFLAGS := $(CXXFLAGS) -Wno-uninitializedLINKFLAGS += -pthread -fPIC $(COMMON_FLAGS) $(WARNINGS)
USE_PKG_CONFIG ?= 0ifeq ($(USE_PKG_CONFIG), 1) PKG_CONFIG := $(shell pkg-config opencv --libs)else PKG_CONFIG :=endifLDFLAGS += $(foreach librarydir,$(LIBRARY_DIRS),-L$(librarydir)) $(PKG_CONFIG) \ $(foreach library,$(LIBRARIES),-l$(library))PYTHON_LDFLAGS := $(LDFLAGS) $(foreach library,$(PYTHON_LIBRARIES),-l$(library))
# 'superclean' target recursively* deletes all files ending with an extension# in $(SUPERCLEAN_EXTS) below. This may be useful if you've built older# versions of Caffe that do not place all generated files in a location known# to the 'clean' target.## 'supercleanlist' will list the files to be deleted by make superclean.## * Recursive with the exception that symbolic links are never followed, per the# default behavior of 'find'.SUPERCLEAN_EXTS := .so .a .o .bin .testbin .pb.cc .pb.h _pb2.py .cuo
# Set the sub-targets of the 'everything' target.EVERYTHING_TARGETS := all py$(PROJECT) test warn lint# Only build matcaffe as part of "everything" if MATLAB_DIR is specified.ifneq ($(MATLAB_DIR),) EVERYTHING_TARGETS += mat$(PROJECT)endif
############################### Define build targets##############################.PHONY: all lib test clean docs linecount lint lintclean tools examples $(DIST_ALIASES) \ py mat py$(PROJECT) mat$(PROJECT) proto runtest \ superclean supercleanlist supercleanfiles warn everything
all: lib tools examples
lib: $(STATIC_NAME) $(DYNAMIC_NAME)
everything: $(EVERYTHING_TARGETS)
linecount: cloc --read-lang-def=$(PROJECT).cloc \ src/$(PROJECT) include/$(PROJECT) tools examples \ python matlab
lint: $(EMPTY_LINT_REPORT)
lintclean: @ $(RM) -r $(LINT_OUTPUT_DIR) $(EMPTY_LINT_REPORT) $(NONEMPTY_LINT_REPORT)
docs: $(DOXYGEN_OUTPUT_DIR) @ cd ./docs ; ln -sfn ../$(DOXYGEN_OUTPUT_DIR)/html doxygen
$(DOXYGEN_OUTPUT_DIR): $(DOXYGEN_CONFIG_FILE) $(DOXYGEN_SOURCES) $(DOXYGEN_COMMAND) $(DOXYGEN_CONFIG_FILE)
$(EMPTY_LINT_REPORT): $(LINT_OUTPUTS) | $(BUILD_DIR) @ cat $(LINT_OUTPUTS) > $@ @ if [ -s "$@" ]; then \ cat $@; \ mv $@ $(NONEMPTY_LINT_REPORT); \ echo "Found one or more lint errors."; \ exit 1; \ fi; \ $(RM) $(NONEMPTY_LINT_REPORT); \ echo "No lint errors!";
$(LINT_OUTPUTS): $(LINT_OUTPUT_DIR)/%.lint.txt : % $(LINT_SCRIPT) | $(LINT_OUTPUT_DIR) @ mkdir -p $(dir $@) @ python $(LINT_SCRIPT) $< 2>&1 \ | grep -v "^Done processing " \ | grep -v "^Total errors found: 0" \ > $@ \ || true
test: $(TEST_ALL_BIN) $(TEST_ALL_DYNLINK_BIN) $(TEST_BINS)
tools: $(TOOL_BINS) $(TOOL_BIN_LINKS)
examples: $(EXAMPLE_BINS)
py$(PROJECT): py
py: $(PY$(PROJECT)_SO) $(PROTO_GEN_PY)
$(PY$(PROJECT)_SO): $(PY$(PROJECT)_SRC) $(PY$(PROJECT)_HXX) | $(DYNAMIC_NAME) @ echo CXX/LD -o $@ $< $(Q)$(CXX) -shared -o $@ $(PY$(PROJECT)_SRC) \ -o $@ $(LINKFLAGS) -l$(LIBRARY_NAME) $(PYTHON_LDFLAGS) \ -Wl,-rpath,$(ORIGIN)/../../build/lib
mat$(PROJECT): mat
mat: $(MAT$(PROJECT)_SO)
$(MAT$(PROJECT)_SO): $(MAT$(PROJECT)_SRC) $(STATIC_NAME) @ if [ -z "$(MATLAB_DIR)" ]; then \ echo "MATLAB_DIR must be specified in $(CONFIG_FILE)" \ "to build mat$(PROJECT)."; \ exit 1; \ fi @ echo MEX $< $(Q)$(MATLAB_DIR)/bin/mex $(MAT$(PROJECT)_SRC) \ CXX="$(CXX)" \ CXXFLAGS="\$$CXXFLAGS $(MATLAB_CXXFLAGS)" \ CXXLIBS="\$$CXXLIBS $(STATIC_LINK_COMMAND) $(LDFLAGS)" -output $@ @ if [ -f "$(PROJECT)_.d" ]; then \ mv -f $(PROJECT)_.d $(BUILD_DIR)/${MAT$(PROJECT)_SO:.$(MAT_SO_EXT)=.d}; \ fi
runtest: $(TEST_ALL_BIN) $(TOOL_BUILD_DIR)/caffe $(TEST_ALL_BIN) $(TEST_GPUID) --gtest_shuffle $(TEST_FILTER)
pytest: py cd python; python -m unittest discover -s caffe/test
mattest: mat cd matlab; $(MATLAB_DIR)/bin/matlab -nodisplay -r 'caffe.run_tests(), exit()'
warn: $(EMPTY_WARN_REPORT)
$(EMPTY_WARN_REPORT): $(ALL_WARNS) | $(BUILD_DIR) @ cat $(ALL_WARNS) > $@ @ if [ -s "$@" ]; then \ cat $@; \ mv $@ $(NONEMPTY_WARN_REPORT); \ echo "Compiler produced one or more warnings."; \ exit 1; \ fi; \ $(RM) $(NONEMPTY_WARN_REPORT); \ echo "No compiler warnings!";
$(ALL_WARNS): %.o.$(WARNS_EXT) : %.o
$(BUILD_DIR_LINK): $(BUILD_DIR)/.linked
# Create a target ".linked" in this BUILD_DIR to tell Make that the "build" link# is currently correct, then delete the one in the OTHER_BUILD_DIR in case it# exists and $(DEBUG) is toggled later.$(BUILD_DIR)/.linked: @ mkdir -p $(BUILD_DIR) @ $(RM) $(OTHER_BUILD_DIR)/.linked @ $(RM) -r $(BUILD_DIR_LINK) @ ln -s $(BUILD_DIR) $(BUILD_DIR_LINK) @ touch $@
$(ALL_BUILD_DIRS): | $(BUILD_DIR_LINK) @ mkdir -p $@
$(DYNAMIC_NAME): $(OBJS) | $(LIB_BUILD_DIR) @ echo LD -o $@ $(Q)$(CXX) -shared -o $@ $(OBJS) $(VERSIONFLAGS) $(LINKFLAGS) $(LDFLAGS) @ cd $(BUILD_DIR)/lib; rm -f $(DYNAMIC_NAME_SHORT); ln -s $(DYNAMIC_VERSIONED_NAME_SHORT) $(DYNAMIC_NAME_SHORT)
$(STATIC_NAME): $(OBJS) | $(LIB_BUILD_DIR) @ echo AR -o $@ $(Q)ar rcs $@ $(OBJS)
$(BUILD_DIR)/%.o: %.cpp $(PROTO_GEN_HEADER) | $(ALL_BUILD_DIRS) @ echo CXX $< $(Q)$(CXX) $< $(CXXFLAGS) -c -o $@ 2> $@.$(WARNS_EXT) \ || (cat $@.$(WARNS_EXT); exit 1) @ cat $@.$(WARNS_EXT)
$(PROTO_BUILD_DIR)/%.pb.o: $(PROTO_BUILD_DIR)/%.pb.cc $(PROTO_GEN_HEADER) \ | $(PROTO_BUILD_DIR) @ echo CXX $< $(Q)$(CXX) $< $(CXXFLAGS) -c -o $@ 2> $@.$(WARNS_EXT) \ || (cat $@.$(WARNS_EXT); exit 1) @ cat $@.$(WARNS_EXT)
$(BUILD_DIR)/cuda/%.o: %.cu | $(ALL_BUILD_DIRS) @ echo NVCC $< $(Q)$(CUDA_DIR)/bin/nvcc $(NVCCFLAGS) $(CUDA_ARCH) -M $< -o ${@:.o=.d} \ -odir $(@D) $(Q)$(CUDA_DIR)/bin/nvcc $(NVCCFLAGS) $(CUDA_ARCH) -c $< -o $@ 2> $@.$(WARNS_EXT) \ || (cat $@.$(WARNS_EXT); exit 1) @ cat $@.$(WARNS_EXT)
$(TEST_ALL_BIN): $(TEST_MAIN_SRC) $(TEST_OBJS) $(GTEST_OBJ) \ | $(DYNAMIC_NAME) $(TEST_BIN_DIR) @ echo CXX/LD -o $@ $< $(Q)$(CXX) $(TEST_MAIN_SRC) $(TEST_OBJS) $(GTEST_OBJ) \ -o $@ $(LINKFLAGS) $(LDFLAGS) -l$(LIBRARY_NAME) -Wl,-rpath,$(ORIGIN)/../lib
$(TEST_CU_BINS): $(TEST_BIN_DIR)/%.testbin: $(TEST_CU_BUILD_DIR)/%.o \ $(GTEST_OBJ) | $(DYNAMIC_NAME) $(TEST_BIN_DIR) @ echo LD $< $(Q)$(CXX) $(TEST_MAIN_SRC) $< $(GTEST_OBJ) \ -o $@ $(LINKFLAGS) $(LDFLAGS) -l$(LIBRARY_NAME) -Wl,-rpath,$(ORIGIN)/../lib
$(TEST_CXX_BINS): $(TEST_BIN_DIR)/%.testbin: $(TEST_CXX_BUILD_DIR)/%.o \ $(GTEST_OBJ) | $(DYNAMIC_NAME) $(TEST_BIN_DIR) @ echo LD $< $(Q)$(CXX) $(TEST_MAIN_SRC) $< $(GTEST_OBJ) \ -o $@ $(LINKFLAGS) $(LDFLAGS) -l$(LIBRARY_NAME) -Wl,-rpath,$(ORIGIN)/../lib
# Target for extension-less symlinks to tool binaries with extension '*.bin'.$(TOOL_BUILD_DIR)/%: $(TOOL_BUILD_DIR)/%.bin | $(TOOL_BUILD_DIR) @ $(RM) $@ @ ln -s $(notdir $<) $@
$(TOOL_BINS): %.bin : %.o | $(DYNAMIC_NAME) @ echo CXX/LD -o $@ $(Q)$(CXX) $< -o $@ $(LINKFLAGS) -l$(LIBRARY_NAME) $(LDFLAGS) \ -Wl,-rpath,$(ORIGIN)/../lib
$(EXAMPLE_BINS): %.bin : %.o | $(DYNAMIC_NAME) @ echo CXX/LD -o $@ $(Q)$(CXX) $< -o $@ $(LINKFLAGS) -l$(LIBRARY_NAME) $(LDFLAGS) \ -Wl,-rpath,$(ORIGIN)/../../lib
proto: $(PROTO_GEN_CC) $(PROTO_GEN_HEADER)
$(PROTO_BUILD_DIR)/%.pb.cc $(PROTO_BUILD_DIR)/%.pb.h : \ $(PROTO_SRC_DIR)/%.proto | $(PROTO_BUILD_DIR) @ echo PROTOC $< $(Q)protoc --proto_path=$(PROTO_SRC_DIR) --cpp_out=$(PROTO_BUILD_DIR) $<
$(PY_PROTO_BUILD_DIR)/%_pb2.py : $(PROTO_SRC_DIR)/%.proto \ $(PY_PROTO_INIT) | $(PY_PROTO_BUILD_DIR) @ echo PROTOC \(python\) $< $(Q)protoc --proto_path=src --python_out=python $<
$(PY_PROTO_INIT): | $(PY_PROTO_BUILD_DIR) touch $(PY_PROTO_INIT)
clean: @- $(RM) -rf $(ALL_BUILD_DIRS) @- $(RM) -rf $(OTHER_BUILD_DIR) @- $(RM) -rf $(BUILD_DIR_LINK) @- $(RM) -rf $(DISTRIBUTE_DIR) @- $(RM) $(PY$(PROJECT)_SO) @- $(RM) $(MAT$(PROJECT)_SO)
supercleanfiles: $(eval SUPERCLEAN_FILES := $(strip \ $(foreach ext,$(SUPERCLEAN_EXTS), $(shell find . -name '*$(ext)' \ -not -path './data/*'))))
supercleanlist: supercleanfiles @ \ if [ -z "$(SUPERCLEAN_FILES)" ]; then \ echo "No generated files found."; \ else \ echo $(SUPERCLEAN_FILES) | tr ' ' '\n'; \ fi
superclean: clean supercleanfiles @ \ if [ -z "$(SUPERCLEAN_FILES)" ]; then \ echo "No generated files found."; \ else \ echo "Deleting the following generated files:"; \ echo $(SUPERCLEAN_FILES) | tr ' ' '\n'; \ $(RM) $(SUPERCLEAN_FILES); \ fi
$(DIST_ALIASES): $(DISTRIBUTE_DIR)
$(DISTRIBUTE_DIR): all py | $(DISTRIBUTE_SUBDIRS) # add proto cp -r src/caffe/proto $(DISTRIBUTE_DIR)/ # add include cp -r include $(DISTRIBUTE_DIR)/ mkdir -p $(DISTRIBUTE_DIR)/include/caffe/proto cp $(PROTO_GEN_HEADER_SRCS) $(DISTRIBUTE_DIR)/include/caffe/proto # add tool and example binaries cp $(TOOL_BINS) $(DISTRIBUTE_DIR)/bin cp $(EXAMPLE_BINS) $(DISTRIBUTE_DIR)/bin # add libraries cp $(STATIC_NAME) $(DISTRIBUTE_DIR)/lib install -m 644 $(DYNAMIC_NAME) $(DISTRIBUTE_DIR)/lib cd $(DISTRIBUTE_DIR)/lib; rm -f $(DYNAMIC_NAME_SHORT); ln -s $(DYNAMIC_VERSIONED_NAME_SHORT) $(DYNAMIC_NAME_SHORT) # add python - it's not the standard way, indeed... cp -r python $(DISTRIBUTE_DIR)/
-include $(DEPS)123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125## Refer to http://caffe.berkeleyvision.org/installation.html# Contributions simplifying and improving our build system are welcome!
# cuDNN acceleration switch (uncomment to build with cuDNN).USE_CUDNN := 1
# CPU-only switch (uncomment to build without GPU support).# CPU_ONLY := 1
# uncomment to disable IO dependencies and corresponding data layers# USE_OPENCV := 0# USE_LEVELDB := 0# USE_LMDB := 0
# uncomment to allow MDB_NOLOCK when reading LMDB files (only if necessary)# You should not set this flag if you will be reading LMDBs with any# possibility of simultaneous read and write# ALLOW_LMDB_NOLOCK := 1
# Uncomment if you're using OpenCV 3# OPENCV_VERSION := 3
# To customize your choice of compiler, uncomment and set the following.# N.B. the default for Linux is g++ and the default for OSX is clang++# CUSTOM_CXX := g++
# CUDA directory contains bin/ and lib/ directories that we need.CUDA_DIR := /usr/local/cuda# On Ubuntu 14.04, if cuda tools are installed via# "sudo apt-get install nvidia-cuda-toolkit" then use this instead:# CUDA_DIR := /usr
# CUDA architecture setting: going with all of them.# For CUDA < 6.0, comment the *_50 through *_61 lines for compatibility.# For CUDA < 8.0, comment the *_60 and *_61 lines for compatibility.CUDA_ARCH := -gencode arch=compute_30,code=sm_30 \ -gencode arch=compute_35,code=sm_35 \ -gencode arch=compute_50,code=sm_50 \ -gencode arch=compute_52,code=sm_52# Deprecated# CUDA_ARCH := -gencode arch=compute_20,code=sm_20 \# -gencode arch=compute_20,code=sm_21 \# -gencode arch=compute_30,code=sm_30 \# -gencode arch=compute_35,code=sm_35 \# -gencode arch=compute_50,code=sm_50 \# -gencode arch=compute_52,code=sm_52 \# -gencode arch=compute_60,code=sm_60 \# -gencode arch=compute_61,code=sm_61 \# -gencode arch=compute_61,code=compute_61
# BLAS choice:# atlas for ATLAS (default)# mkl for MKL# open for OpenBlasBLAS := atlas# Custom (MKL/ATLAS/OpenBLAS) include and lib directories.# Leave commented to accept the defaults for your choice of BLAS# (which should work)!# BLAS_INCLUDE := /path/to/your/blas# BLAS_LIB := /path/to/your/blas
# Homebrew puts openblas in a directory that is not on the standard search path# BLAS_INCLUDE := $(shell brew --prefix openblas)/include# BLAS_LIB := $(shell brew --prefix openblas)/lib
# This is required only if you will compile the matlab interface.# MATLAB directory should contain the mex binary in /bin.# MATLAB_DIR := /usr/local# MATLAB_DIR := /Applications/MATLAB_R2012b.app
# NOTE: this is required only if you will compile the python interface.# We need to be able to find Python.h and numpy/arrayobject.h.PYTHON_INCLUDE := /usr/include/python2.7 \ /usr/lib/python2.7/dist-packages/numpy/core/include# Anaconda Python distribution is quite popular. Include path:# Verify anaconda location, sometimes it's in root.# ANACONDA_HOME := $(HOME)/anaconda# PYTHON_INCLUDE := $(ANACONDA_HOME)/include \ # $(ANACONDA_HOME)/include/python2.7 \ # $(ANACONDA_HOME)/lib/python2.7/site-packages/numpy/core/include
# Uncomment to use Python 3 (default is Python 2)# PYTHON_LIBRARIES := boost_python3 python3.5m# PYTHON_INCLUDE := /usr/include/python3.5m \# /usr/lib/python3.5/dist-packages/numpy/core/include
# We need to be able to find libpythonX.X.so or .dylib.PYTHON_LIB := /usr/lib /usr/local/lib# PYTHON_LIB := $(ANACONDA_HOME)/lib
# Homebrew installs numpy in a non standard path (keg only)# PYTHON_INCLUDE += $(dir $(shell python -c 'import numpy.core; print(numpy.core.__file__)'))/include# PYTHON_LIB += $(shell brew --prefix numpy)/lib
# Uncomment to support layers written in Python (will link against Python libs)# WITH_PYTHON_LAYER := 1
# Whatever else you find you need goes here.INCLUDE_DIRS := $(PYTHON_INCLUDE) /usr/local/includeLIBRARY_DIRS := $(PYTHON_LIB) /usr/local/lib /usr/lib
# If Homebrew is installed at a non standard location (for example your home directory) and you use it for general dependencies# INCLUDE_DIRS += $(shell brew --prefix)/include# LIBRARY_DIRS += $(shell brew --prefix)/lib
# NCCL acceleration switch (uncomment to build with NCCL)# https://github.com/NVIDIA/nccl (last tested version: v1.2.3-1+cuda8.0)# USE_NCCL := 1
# Uncomment to use `pkg-config` to specify OpenCV library paths.# (Usually not necessary -- OpenCV libraries are normally installed in one of the above $LIBRARY_DIRS.)# USE_PKG_CONFIG := 1
# N.B. both build and distribute dirs are cleared on `make clean`BUILD_DIR := buildDISTRIBUTE_DIR := distribute
# Uncomment for debugging. Does not work on OSX due to https://github.com/BVLC/caffe/issues/171# DEBUG := 1
# The ID of the GPU that 'make runtest' will use to run unit tests.TEST_GPUID := 0
# enable pretty build (comment to see full commands)Q ?= @.doc_autogeneration.doxygenAdded
.gitattributes+31
.github/CI_deprecated/.travis.ymlAdded+162
.github/CI_deprecated/Readme_Travis_badges_table_and_backup_instructions.mdAdded+13
.github/CI_deprecated/generate_gh_pages.shAdded+104
.github/Logo_doxygen_black.pngAdded

.github/Logo_main_black.pngAdded

.github/issue_template.mdAdded+85
.github/media/body_heat_maps.pngAdded

Large File Pointer Details
- SHA256: 11eed582d06c69f409e56c0ded335fd2fbd3d06228e7f5b3d2b1e8b3b105adba
- Pointer size: 132 Bytes
- Size of remote file: 2.43 MB
.github/media/dance_foot.gifAdded

Large File Pointer Details
- SHA256: 84db361692ac5835e695a6c971a61a119c3d426ff698db90dff2432546481fbb
- Pointer size: 132 Bytes
- Size of remote file: 4.41 MB
.github/media/installation/cmake_im_1.pngAdded

.github/media/installation/cmake_im_1_windows.pngAdded

.github/media/installation/cmake_im_2.pngAdded

.github/media/installation/cmake_im_2_windows.pngAdded

.github/media/installation/cmake_im_2_windows_new.pngAdded

.github/media/installation/cmake_im_3.pngAdded

.github/media/installation/cmake_im_3_windows.pngAdded

.github/media/installation/cmake_im_5.pngAdded

.github/media/keypoints_face.pngAdded

.github/media/keypoints_hand.odtAdded
.github/media/keypoints_hand.pngAdded

.github/media/keypoints_pose_18.pngAdded

.github/media/keypoints_pose_25.pngAdded

.github/media/openpose3d.gifAdded

.github/media/openpose_vs_competition.pngAdded

.github/media/paf_heat_maps.pngAdded

Large File Pointer Details
- SHA256: 976e86944144d90c6b18f4d61a05be0cacd8d71e9b1f002ff732761a96395788
- Pointer size: 132 Bytes
- Size of remote file: 1.89 MB
.github/media/pose_face.gifAdded

Large File Pointer Details
- SHA256: f2030331f4caae4a5c928227e01fb5c65183bba181c33867e87f942bc2b003b2
- Pointer size: 132 Bytes
- Size of remote file: 9.64 MB
.github/media/pose_face_hands.gifAdded

Large File Pointer Details
- SHA256: 5d2a3509ef791f7b08e751c6aea0287f4efab5ffbb0e6af7e335b5c50432b9a9
- Pointer size: 132 Bytes
- Size of remote file: 8.39 MB
.github/media/pose_hands.gifAdded

Large File Pointer Details
- SHA256: e369475240b3cbfe10436ebf7a4a5f1da1d10756ce95782891f839b0d2ff946c
- Pointer size: 133 Bytes
- Size of remote file: 10.7 MB
.github/media/shake.gifAdded

Large File Pointer Details
- SHA256: 6971f3331bf676f48174bb3358d43355a760bc53852b22ff67b2b7b0da6e7a43
- Pointer size: 132 Bytes
- Size of remote file: 2.04 MB
.github/media/unity_body_foot.pngAdded

.github/media/unity_hand_face.pngAdded

.github/media/unity_main.pngAdded

.github/root_index.htmlAdded+8
.github/stale.ymlAdded+17
.github/workflows/main.ymlAdded+295
.gitignoreAdded+139
.gitmodulesAdded+6
3rdparty/Versions.txtAdded+38
3rdparty/caffe/.DoxyfileAdded
3rdparty/caffe/.github/ISSUE_TEMPLATE.mdAdded+34
3rdparty/caffe/.gitignoreAdded+99
3rdparty/caffe/.travis.ymlAdded+67
3rdparty/caffe/CMakeLists.txtAdded+127
3rdparty/caffe/CONTRIBUTING.mdAdded+72
3rdparty/caffe/CONTRIBUTORS.mdAdded+19
3rdparty/caffe/INSTALL.mdAdded+7
3rdparty/caffe/LICENSEAdded+44
3rdparty/caffe/MakefileAdded+714
3rdparty/caffe/Makefile.config.Ubuntu14_cuda7.exampleAdded+125