forked from unsky/FPN
-
Notifications
You must be signed in to change notification settings - Fork 0
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 e7346f4
Showing
760 changed files
with
225,762 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,4 @@ | ||
Feature Pyramid Network on caffe | ||
|
||
|
||
this is the unoffical version Feature Pyramid Network for Feature Pyramid Networks for Object Detection https://arxiv.org/abs/1612.03144 |
Large diffs are not rendered by default.
Oops, something went wrong.
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,95 @@ | ||
## 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 | ||
|
||
# OSX dir files | ||
.DS_Store | ||
|
||
## Caffe | ||
|
||
# User's build configuration | ||
Makefile.config | ||
|
||
# Data and models are either | ||
# 1. reference, and not casually committed | ||
# 2. custom, and live on their own unless they're deliberated contributed | ||
data/* | ||
models/* | ||
*.caffemodel | ||
*.caffemodel.h5 | ||
*.solverstate | ||
*.solverstate.h5 | ||
*.binaryproto | ||
*leveldb | ||
*lmdb | ||
|
||
# build, distribute, and bins (+ python proto bindings) | ||
build | ||
.build_debug/* | ||
.build_release/* | ||
distribute/* | ||
*.testbin | ||
*.bin | ||
python/caffe/proto/ | ||
cmake_build | ||
.cmake_build | ||
|
||
# Generated documentation | ||
docs/_site | ||
docs/gathered | ||
_site | ||
doxygen | ||
docs/dev | ||
|
||
# LevelDB files | ||
*.sst | ||
*.ldb | ||
LOCK | ||
LOG* | ||
CURRENT | ||
MANIFEST-* |
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,55 @@ | ||
# Use a build matrix to do two builds in parallel: | ||
# one using CMake, and one using make. | ||
env: | ||
matrix: | ||
- WITH_CUDA=false WITH_CMAKE=false WITH_IO=true | ||
- WITH_CUDA=false WITH_CMAKE=true WITH_IO=true PYTHON_VERSION=3 | ||
- WITH_CUDA=true WITH_CMAKE=false WITH_IO=true | ||
- WITH_CUDA=true WITH_CMAKE=true WITH_IO=true | ||
- WITH_CUDA=false WITH_CMAKE=false WITH_IO=false | ||
- WITH_CUDA=false WITH_CMAKE=true WITH_IO=false PYTHON_VERSION=3 | ||
|
||
language: cpp | ||
|
||
# Cache Ubuntu apt packages. | ||
cache: | ||
apt: true | ||
directories: | ||
- /home/travis/miniconda | ||
- /home/travis/miniconda2 | ||
- /home/travis/miniconda3 | ||
|
||
compiler: gcc | ||
|
||
before_install: | ||
- export NUM_THREADS=4 | ||
- export SCRIPTS=./scripts/travis | ||
- export CONDA_DIR="/home/travis/miniconda$PYTHON_VERSION" | ||
|
||
install: | ||
- sudo -E $SCRIPTS/travis_install.sh | ||
|
||
before_script: | ||
- export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib:/usr/local/cuda/lib64:$CONDA_DIR/lib | ||
- export PATH=$CONDA_DIR/bin:$PATH | ||
- if ! $WITH_CMAKE; then $SCRIPTS/travis_setup_makefile_config.sh; fi | ||
|
||
script: $SCRIPTS/travis_build_and_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 [email protected] | ||
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}" |
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,90 @@ | ||
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") | ||
set(CAFFE_TARGET_SOVERSION "1.0.0-rc3") | ||
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() | ||
|
||
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,30 @@ | ||
# Contributing | ||
|
||
## Issues | ||
|
||
Specific Caffe design and development issues, bugs, and feature requests are maintained by GitHub Issues. | ||
|
||
_Please do not post usage, installation, 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. | ||
|
||
When reporting a bug, it's most helpful to provide the following information, where applicable: | ||
|
||
* What steps reproduce the bug? | ||
* Can you reproduce the bug using the latest [master](https://github.com/BVLC/caffe/tree/master), compiled with the `DEBUG` make option? | ||
* What hardware and operating system/distribution are you running? | ||
* If the bug is a crash, provide the backtrace (usually printed by Caffe; always obtainable with `gdb`). | ||
|
||
Try to give your issue a title that is succinct and specific. The devs will rename issues as needed to keep track of them. | ||
|
||
## 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. |
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,19 @@ | ||
# Contributors | ||
|
||
Caffe is developed by a core set of BVLC 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. |
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,7 @@ | ||
# Installation | ||
|
||
See http://caffe.berkeleyvision.org/installation.html for the latest | ||
installation instructions. | ||
|
||
Check the users group in case you need help: | ||
https://groups.google.com/forum/#!forum/caffe-users |
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,67 @@ | ||
--------------------------START OF THIRD PARTY NOTICE-------------------------- | ||
|
||
Microsoft licenses this Third Party IP to you under the licensing | ||
terms for the Microsoft product. Microsoft reserves all other rights | ||
not expressly granted under this agreement, whether by implication, | ||
estoppel or otherwise. | ||
|
||
Caffe | ||
|
||
Copyrights can be found here: https://github.com/BVLC/caffe/blob/master/LICENSE | ||
|
||
Provided for Informational Purposes Only | ||
|
||
BSD License | ||
|
||
All rights reserved. | ||
|
||
Redistribution and use in source and binary forms, with or without | ||
modification, are permitted provided that the following conditions | ||
are met: | ||
|
||
Redistributions of source code must retain the above copyright notice, | ||
this list of conditions and the following disclaimer. | ||
|
||
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 | ||
HOLDER 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. | ||
|
||
---------------------------END OF THIRD PARTY NOTICE--------------------------- | ||
|
||
Fast R-CNN | ||
|
||
Copyright (c) Microsoft Corporation | ||
|
||
All rights reserved. | ||
|
||
MIT License | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a | ||
copy of this software and associated documentation files (the "Software"), | ||
to deal in the Software without restriction, including without limitation | ||
the rights to use, copy, modify, merge, publish, distribute, sublicense, | ||
and/or sell copies of the Software, and to permit persons to whom the | ||
Software is furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included | ||
in all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL | ||
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR | ||
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, | ||
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR | ||
OTHER DEALINGS IN THE SOFTWARE. |
Oops, something went wrong.