Skip to content

Commit 6bc2cdb

Browse files
OpenPose - 1st commit
0 parents  commit 6bc2cdb

File tree

899 files changed

+206885
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

899 files changed

+206885
-0
lines changed

.gitignore

Lines changed: 107 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
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+
*__init__.py
24+
*.pyc
25+
26+
# Compiled MATLAB
27+
*.mex*
28+
29+
# IPython notebook checkpoints
30+
.ipynb_checkpoints
31+
32+
# LevelDB files
33+
*.sst
34+
*.ldb
35+
LOCK
36+
LOG*
37+
CURRENT
38+
MANIFEST-*
39+
40+
######################### IDEs Files #########################
41+
# Editor temporaries
42+
*.swp
43+
*~
44+
45+
# Sublime Text settings
46+
*.sublime-workspace
47+
*.sublime-project
48+
49+
# Eclipse Project settings
50+
*.*project
51+
.settings
52+
53+
# QtCreator files
54+
*.user
55+
56+
# PyCharm files
57+
.idea
58+
59+
# OSX dir files
60+
.DS_Store
61+
62+
######################### Caffe Files / Folders #########################
63+
# User's build configuration
64+
Makefile.config
65+
66+
# Data and models are either
67+
# 1. reference, and not casually committed
68+
# 2. custom, and live on their own unless they're deliberated contributed
69+
3rdparty/caffe/.*
70+
distribute/
71+
.build_release/
72+
.build_debug/
73+
*.caffemodel
74+
*.caffemodel.h5
75+
*.solverstate
76+
*.solverstate.h5
77+
*.binaryproto
78+
*leveldb
79+
*lmdb
80+
81+
######################### Compilation (build, distribute & bins) Files / Folders #########################
82+
*.bin
83+
*.testbin
84+
build
85+
*build_debug/
86+
*build_release/
87+
*cmake_build
88+
distribute/*
89+
python/caffe/proto/
90+
91+
######################### Generated Documentation #########################
92+
_site
93+
docs/_site
94+
docs/dev
95+
docs/gathered
96+
doxygen
97+
html/
98+
99+
######################### Video Files #########################
100+
# Testing videos
101+
*.mp4
102+
*.mov
103+
104+
######################### Validation Scripts & Testing #########################
105+
*validation.sh
106+
validation*.sh
107+
output*/

3rdparty/Versions.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Caffe:
2+
- Version 1.0.0, extracted from GitHub on 04/16/2017 from the current master branch.
3+
- Link: https://github.com/BVLC/caffe
4+

3rdparty/caffe/CMakeLists.txt

Lines changed: 122 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,122 @@
1+
cmake_minimum_required(VERSION 2.8.7)
2+
if(POLICY CMP0046)
3+
cmake_policy(SET CMP0046 NEW)
4+
endif()
5+
if(POLICY CMP0054)
6+
cmake_policy(SET CMP0054 NEW)
7+
endif()
8+
9+
# ---[ Caffe project
10+
project(Caffe C CXX)
11+
12+
# ---[ Caffe version
13+
set(CAFFE_TARGET_VERSION "1.0.0" CACHE STRING "Caffe logical version")
14+
set(CAFFE_TARGET_SOVERSION "1.0.0" CACHE STRING "Caffe soname version")
15+
add_definitions(-DCAFFE_VERSION=${CAFFE_TARGET_VERSION})
16+
17+
# ---[ Using cmake scripts and modules
18+
list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake/Modules)
19+
20+
include(ExternalProject)
21+
include(GNUInstallDirs)
22+
23+
include(cmake/Utils.cmake)
24+
include(cmake/Targets.cmake)
25+
include(cmake/Misc.cmake)
26+
include(cmake/Summary.cmake)
27+
include(cmake/ConfigGen.cmake)
28+
29+
# ---[ Options
30+
caffe_option(CPU_ONLY "Build Caffe without CUDA support" OFF) # TODO: rename to USE_CUDA
31+
caffe_option(USE_CUDNN "Build Caffe with cuDNN library support" ON IF NOT CPU_ONLY)
32+
caffe_option(USE_NCCL "Build Caffe with NCCL library support" OFF)
33+
caffe_option(BUILD_SHARED_LIBS "Build shared libraries" ON)
34+
caffe_option(BUILD_python "Build Python wrapper" ON)
35+
set(python_version "2" CACHE STRING "Specify which Python version to use")
36+
caffe_option(BUILD_matlab "Build Matlab wrapper" OFF IF UNIX OR APPLE)
37+
caffe_option(BUILD_docs "Build documentation" ON IF UNIX OR APPLE)
38+
caffe_option(BUILD_python_layer "Build the Caffe Python layer" ON)
39+
caffe_option(USE_OPENCV "Build with OpenCV support" ON)
40+
caffe_option(USE_LEVELDB "Build with levelDB" ON)
41+
caffe_option(USE_LMDB "Build with lmdb" ON)
42+
caffe_option(ALLOW_LMDB_NOLOCK "Allow MDB_NOLOCK when reading LMDB files (only if necessary)" OFF)
43+
caffe_option(USE_OPENMP "Link with OpenMP (when your BLAS wants OpenMP and you get linker errors)" OFF)
44+
45+
# ---[ Dependencies
46+
include(cmake/Dependencies.cmake)
47+
48+
# ---[ Flags
49+
if(UNIX OR APPLE)
50+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC -Wall")
51+
endif()
52+
53+
caffe_set_caffe_link()
54+
55+
if(USE_libstdcpp)
56+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libstdc++")
57+
message("-- Warning: forcing libstdc++ (controlled by USE_libstdcpp option in cmake)")
58+
endif()
59+
60+
# ---[ Warnings
61+
caffe_warnings_disable(CMAKE_CXX_FLAGS -Wno-sign-compare -Wno-uninitialized)
62+
63+
# ---[ Config generation
64+
configure_file(cmake/Templates/caffe_config.h.in "${PROJECT_BINARY_DIR}/caffe_config.h")
65+
66+
# ---[ Includes
67+
set(Caffe_INCLUDE_DIR ${PROJECT_SOURCE_DIR}/include)
68+
set(Caffe_SRC_DIR ${PROJECT_SOURCE_DIR}/src)
69+
include_directories(${PROJECT_BINARY_DIR})
70+
71+
# ---[ Includes & defines for CUDA
72+
73+
# cuda_compile() does not have per-call dependencies or include pathes
74+
# (cuda_compile() has per-call flags, but we set them here too for clarity)
75+
#
76+
# list(REMOVE_ITEM ...) invocations remove PRIVATE and PUBLIC keywords from collected definitions and include pathes
77+
if(HAVE_CUDA)
78+
# pass include pathes to cuda_include_directories()
79+
set(Caffe_ALL_INCLUDE_DIRS ${Caffe_INCLUDE_DIRS})
80+
list(REMOVE_ITEM Caffe_ALL_INCLUDE_DIRS PRIVATE PUBLIC)
81+
cuda_include_directories(${Caffe_INCLUDE_DIR} ${Caffe_SRC_DIR} ${Caffe_ALL_INCLUDE_DIRS})
82+
83+
# add definitions to nvcc flags directly
84+
set(Caffe_ALL_DEFINITIONS ${Caffe_DEFINITIONS})
85+
list(REMOVE_ITEM Caffe_ALL_DEFINITIONS PRIVATE PUBLIC)
86+
list(APPEND CUDA_NVCC_FLAGS ${Caffe_ALL_DEFINITIONS})
87+
endif()
88+
89+
# ---[ Subdirectories
90+
add_subdirectory(src/gtest)
91+
add_subdirectory(src/caffe)
92+
add_subdirectory(tools)
93+
add_subdirectory(examples)
94+
add_subdirectory(python)
95+
add_subdirectory(matlab)
96+
add_subdirectory(docs)
97+
98+
# ---[ Linter target
99+
add_custom_target(lint COMMAND ${CMAKE_COMMAND} -P ${PROJECT_SOURCE_DIR}/cmake/lint.cmake)
100+
101+
# ---[ pytest target
102+
if(BUILD_python)
103+
add_custom_target(pytest COMMAND python${python_version} -m unittest discover -s caffe/test WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}/python )
104+
add_dependencies(pytest pycaffe)
105+
endif()
106+
107+
# ---[ uninstall target
108+
configure_file(
109+
${CMAKE_CURRENT_SOURCE_DIR}/cmake/Uninstall.cmake.in
110+
${CMAKE_CURRENT_BINARY_DIR}/cmake/Uninstall.cmake
111+
IMMEDIATE @ONLY)
112+
113+
add_custom_target(uninstall
114+
COMMAND ${CMAKE_COMMAND} -P
115+
${CMAKE_CURRENT_BINARY_DIR}/cmake/Uninstall.cmake)
116+
117+
# ---[ Configuration summary
118+
caffe_print_configuration_summary()
119+
120+
# ---[ Export configs generation
121+
caffe_generate_export_configs()
122+

3rdparty/caffe/CONTRIBUTING.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Contributing
2+
3+
## Issues
4+
5+
Specific Caffe design and development issues, bugs, and feature requests are maintained by GitHub Issues.
6+
7+
_Please do not post usage, installation, or modeling questions, or other requests for help to Issues._
8+
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.
9+
10+
When reporting a bug, it's most helpful to provide the following information, where applicable:
11+
12+
* What steps reproduce the bug?
13+
* Can you reproduce the bug using the latest [master](https://github.com/BVLC/caffe/tree/master), compiled with the `DEBUG` make option?
14+
* What hardware and operating system/distribution are you running?
15+
* If the bug is a crash, provide the backtrace (usually printed by Caffe; always obtainable with `gdb`).
16+
17+
Try to give your issue a title that is succinct and specific. The devs will rename issues as needed to keep track of them.
18+
19+
## Pull Requests
20+
21+
Caffe welcomes all contributions.
22+
23+
See the [contributing guide](http://caffe.berkeleyvision.org/development.html) for details.
24+
25+
Briefly: read commit by commit, a PR should tell a clean, compelling story of _one_ improvement to Caffe. In particular:
26+
27+
* 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.
28+
* Similarly, each commit should be a small, atomic change representing one step in development. PRs should be made of many commits where appropriate.
29+
* 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.
30+
* Anything nonobvious from the code should be explained in comments, commit messages, or the PR description, as appropriate.

3rdparty/caffe/CONTRIBUTORS.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Contributors
2+
3+
Caffe is developed by a core set of BAIR members and the open-source community.
4+
5+
We thank all of our [contributors](https://github.com/BVLC/caffe/graphs/contributors)!
6+
7+
**For the detailed history of contributions** of a given file, try
8+
9+
git blame file
10+
11+
to see line-by-line credits and
12+
13+
git log --follow file
14+
15+
to see the change log even across renames and rewrites.
16+
17+
Please refer to the [acknowledgements](http://caffe.berkeleyvision.org/#acknowledgements) on the Caffe site for further details.
18+
19+
**Copyright** is held by the original contributor according to the versioning history; see LICENSE.

3rdparty/caffe/INSTALL.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Installation
2+
3+
See http://caffe.berkeleyvision.org/installation.html for the latest
4+
installation instructions.
5+
6+
Check the users group in case you need help:
7+
https://groups.google.com/forum/#!forum/caffe-users

3rdparty/caffe/LICENSE

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
COPYRIGHT
2+
3+
All contributions by the University of California:
4+
Copyright (c) 2014-2017 The Regents of the University of California (Regents)
5+
All rights reserved.
6+
7+
All other contributions:
8+
Copyright (c) 2014-2017, the respective contributors
9+
All rights reserved.
10+
11+
Caffe uses a shared copyright model: each contributor holds copyright over
12+
their contributions to Caffe. The project versioning records all such
13+
contribution and copyright details. If a contributor wants to further mark
14+
their specific copyright on a particular contribution, they should indicate
15+
their copyright solely in the commit message of the change when it is
16+
committed.
17+
18+
LICENSE
19+
20+
Redistribution and use in source and binary forms, with or without
21+
modification, are permitted provided that the following conditions are met:
22+
23+
1. Redistributions of source code must retain the above copyright notice, this
24+
list of conditions and the following disclaimer.
25+
2. Redistributions in binary form must reproduce the above copyright notice,
26+
this list of conditions and the following disclaimer in the documentation
27+
and/or other materials provided with the distribution.
28+
29+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
30+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
31+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
32+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
33+
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
34+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
35+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
36+
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
37+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
38+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
39+
40+
CONTRIBUTION AGREEMENT
41+
42+
By contributing to the BVLC/caffe repository through pull-request, comment,
43+
or otherwise, the contributor releases their content to the
44+
license and copyright terms herein.

0 commit comments

Comments
 (0)