-
Notifications
You must be signed in to change notification settings - Fork 278
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit f7b126a
Showing
598 changed files
with
227,562 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Python: | ||
*.pyc | ||
*.so | ||
*.egg | ||
*.egg-info | ||
*.caffemodel | ||
*.t7 | ||
.build_release | ||
build | ||
distribute | ||
Makefile.config | ||
|
||
data/data_text | ||
models/VGGNet | ||
examples/text/train_* | ||
examples/text/test_* | ||
jobs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
cmake_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 project | ||
project(Caffe C CXX) | ||
|
||
# ---[ Caffe version | ||
set(CAFFE_TARGET_VERSION "1.0.0-rc3" CACHE STRING "Caffe logical version") | ||
set(CAFFE_TARGET_SOVERSION "1.0.0-rc3" CACHE STRING "Caffe soname version") | ||
add_definitions(-DCAFFE_VERSION=${CAFFE_TARGET_VERSION}) | ||
|
||
# ---[ Using cmake scripts and modules | ||
list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake/Modules) | ||
|
||
include(ExternalProject) | ||
|
||
include(cmake/Utils.cmake) | ||
include(cmake/Targets.cmake) | ||
include(cmake/Misc.cmake) | ||
include(cmake/Summary.cmake) | ||
include(cmake/ConfigGen.cmake) | ||
|
||
# ---[ Options | ||
caffe_option(CPU_ONLY "Build Caffe without CUDA support" OFF) # TODO: rename to USE_CUDA | ||
caffe_option(USE_CUDNN "Build Caffe with cuDNN library support" ON IF NOT CPU_ONLY) | ||
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) | ||
|
||
# ---[ Dependencies | ||
include(cmake/Dependencies.cmake) | ||
|
||
# ---[ Flags | ||
if(UNIX OR APPLE) | ||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC -Wall") | ||
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() | ||
|
||
add_definitions(-DGTEST_USE_OWN_TR1_TUPLE) | ||
|
||
# ---[ Warnings | ||
caffe_warnings_disable(CMAKE_CXX_FLAGS -Wno-sign-compare -Wno-uninitialized) | ||
|
||
# ---[ Config generation | ||
configure_file(cmake/Templates/caffe_config.h.in "${PROJECT_BINARY_DIR}/caffe_config.h") | ||
|
||
# ---[ Includes | ||
set(Caffe_INCLUDE_DIR ${PROJECT_SOURCE_DIR}/include) | ||
include_directories(${Caffe_INCLUDE_DIR} ${PROJECT_BINARY_DIR}) | ||
include_directories(BEFORE src) # This is needed for gtest. | ||
|
||
# ---[ Subdirectories | ||
add_subdirectory(src/gtest) | ||
add_subdirectory(src/caffe) | ||
add_subdirectory(tools) | ||
add_subdirectory(examples) | ||
add_subdirectory(python) | ||
add_subdirectory(matlab) | ||
add_subdirectory(docs) | ||
|
||
# ---[ Linter target | ||
add_custom_target(lint COMMAND ${CMAKE_COMMAND} -P ${PROJECT_SOURCE_DIR}/cmake/lint.cmake) | ||
|
||
# ---[ pytest target | ||
if(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() | ||
|
||
# ---[ Configuration summary | ||
caffe_print_configuration_summary() | ||
|
||
# ---[ Export configs generation | ||
caffe_generate_export_configs() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
COPYRIGHT | ||
|
||
All new contributions compared to the original branch: | ||
Copyright (c) 2015, 2016 Wei Liu (UNC Chapel Hill), Dragomir Anguelov (Zoox), | ||
Dumitru Erhan (Google), Christian Szegedy (Google), Scott Reed (UMich Ann Arbor), | ||
Cheng-Yang Fu (UNC Chapel Hill), Alexander C. Berg (UNC Chapel Hill). | ||
All rights reserved. | ||
|
||
All contributions by the University of California: | ||
Copyright (c) 2014, 2015, The Regents of the University of California (Regents) | ||
All rights reserved. | ||
|
||
All other contributions: | ||
Copyright (c) 2014, 2015, the respective contributors | ||
All rights reserved. | ||
|
||
Caffe uses a shared copyright model: each contributor holds copyright over | ||
their contributions to Caffe. The project versioning records all such | ||
contribution and copyright details. If a contributor wants to further mark | ||
their specific copyright on a particular contribution, they should indicate | ||
their copyright solely in the commit message of the change when it is | ||
committed. | ||
|
||
LICENSE | ||
|
||
Redistribution and use in source and binary forms, with or without | ||
modification, 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" AND | ||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | ||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | ||
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR | ||
ANY 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 AND | ||
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | ||
SOFTWARE, 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 the | ||
license and copyright terms herein. |
Oops, something went wrong.