-
Notifications
You must be signed in to change notification settings - Fork 65
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
Showing
2,157 changed files
with
680,080 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,18 @@ | ||
**/.idea | ||
*~ | ||
*.swp | ||
*.o | ||
*.so | ||
*.pyc | ||
build | ||
build2 | ||
dist | ||
*.egg-info/ | ||
docs/release/ | ||
docs/docs/web/ | ||
docs/docs/chm/ | ||
docs/docs/cache/ | ||
docs/docs/git-logs.xml | ||
docs/docs/python/classes.txt | ||
docs/docs/python/functions.txt | ||
|
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,48 @@ | ||
7f7ffcda900ae3c8de0a562cc7e9d3f51e523a39 v17.39 | ||
43cbb1c92eaeba09bd0e9c72bb0783044492e651 v17.40 | ||
f6c79ee4083449640e45cc7e48ef2e7636687d90 v17.41 | ||
e516e232b94254db264e34b61458e0eabd78bea8 v17.42 | ||
43d280b34aa9dd68c62208d72f3b8e48ed047684 v17.43 | ||
9ed76e89b6644208d4536b3396c7664445bd4520 v17.44 | ||
d20f5ce805d53b5fec9d5dd250159d28480041cf v17.45 | ||
cfbd4102b1ee25ca3531819abbbe93971d6dc65a v17.46 | ||
f58ff52144bddbccb5a372e6c4befb4b6ad98021 v17.47 | ||
b90ab60d8a18fc8616fb895b0d059c1cf07db3ce v17.48 | ||
4312a45be8b45634f8ffafcb2b5a425bd426642b v17.49 | ||
df60c7686f3982791e218977edb64d638151ca3b v18.0 | ||
8d0762ab49b9ee8d1d3fc1fc02926c6bde6d5542 v18.1 | ||
5de237bc41c1c2e63d0731731eee231a4213a31b v18.2 | ||
7f21bd92812d2d08fe9a881a401cbf0f6b104081 v18.3 | ||
78be73b57b829adb20a452ad910f7039a09c9474 v18.4 | ||
3026cfaf82c5a878b2c81ee4d6445237d453e372 v18.5 | ||
6a929c3ad782f17e34d364665e6e277e3ff99912 v18.6 | ||
5a3fb1f81041978948e6148a1f56ab56cf678c69 v18.7 | ||
a6c2b16111b8023dbded7299dcc7e6acd26671b8 v18.8 | ||
4de62892e10850e8f0205b4857cf48b31fd730c8 v18.9 | ||
5a14394843c04628990857e5db94ff6bc43c2da0 v18.10 | ||
dd8e950033d5026373acce9ed4b2ffb85908d3b5 v18.11 | ||
4e3941b13ca859f788853cfcef9973ac4b161e65 v18.12 | ||
67c3ad208aae9537cf16f64936dd62e2210caa96 v18.13 | ||
cae7fcc9e6a9b28b44a703e4598f44286fec734d v18.14 | ||
feaff82884ded598bde93c635eb3ded9c0933a07 v18.15 | ||
42a25c606cf924a8d41d2fc96b9c85f839d21a04 v18.16 | ||
ce6f364987865b19bdb1b4730ac5403e2bb55dc4 v18.17 | ||
7ae1775f61a44b7f07866050b50ad3ade581f019 v18.18 | ||
4d6b102506bb9e2f195c7ddf984cc2d86b8643e7 before_dnn_serialization_cleanup | ||
7210589728f6d83f6cb7d21cd24d114a5364d9e2 v19.0 | ||
ad6cd2a3bfd54d48f6b4a1b6d3ef8c0ce278a8d9 v19.1 | ||
f8fa027c760270d8122427838b89e95ccf0b80a1 v19.2 | ||
26cdc89f4795a1f924d80d208b9ed22437c01600 v19.3 | ||
74c4985dfb28f1b91286ab38f35bc026326ec995 v19.4 | ||
9121e039950df93507fdf27bbb102bb5bc1ab429 v19.5 | ||
3eaa0e35b1b4b912897b664abd78a23cc7705c9b v19.6 | ||
fb51c77524ff13ca58b4846f8778a38f35b6f986 v19.7 | ||
fef491c3b8182c68df0a80fa727ccb5929a45821 v19.8 | ||
0cbf133b31c13f665fc32227952315844a66ff85 v19.9 | ||
c8b794f274dfc73fc47ad916b2521419c1755d0a v19.10 | ||
4ae153db78c4f9f5c284b341c0849cf1aa868247 v19.11 | ||
39949a24fa62d8dbc2f712c8b584efacaca4c466 v19.12 | ||
c7a90ee406355238dfbb6c133127d83b88ef6cf1 v19.13 | ||
20171d55ebbc886dd319b968775c496d1ac57ee3 v19.14 | ||
36739b4118e5433b213165c96decdb74a4cb594e v19.15 | ||
be6f74b9751bffecccb04c8f380cf60471b47973 v19.16 |
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,123 @@ | ||
sudo: required | ||
|
||
matrix: | ||
include: | ||
################### | ||
- language: cpp | ||
compiler: clang | ||
os: linux | ||
env: | ||
- VARIANT=test | ||
- DISABLED_TESTS="" | ||
script: | ||
- dlib/travis/build-and-test.sh | ||
|
||
################### | ||
- language: cpp | ||
compiler: clang | ||
os: linux | ||
env: | ||
- VARIANT=examples-debug | ||
script: | ||
- dlib/travis/build-and-test.sh | ||
|
||
################### | ||
- language: cpp | ||
compiler: gcc | ||
os: linux | ||
env: | ||
- VARIANT=test-debug | ||
- DISABLED_TESTS="" | ||
script: | ||
- dlib/travis/build-and-test.sh | ||
|
||
################### | ||
- language: cpp | ||
compiler: gcc | ||
os: linux | ||
env: | ||
- VARIANT=tools | ||
script: | ||
- dlib/travis/build-and-test.sh | ||
|
||
################### | ||
- language: cpp | ||
compiler: gcc | ||
os: linux | ||
env: | ||
- VARIANT=old-cmake | ||
before_install: | ||
- dlib/travis/get-old-cmakes.sh | ||
cache: | ||
- directories: cmake | ||
script: | ||
- dlib/travis/build-and-test.sh | ||
|
||
################### | ||
- language: cpp | ||
compiler: gcc | ||
os: linux | ||
env: | ||
- VARIANT=dlib_all_source_cpp | ||
script: | ||
- dlib/travis/build-and-test.sh | ||
|
||
########### test with C++17 ######## | ||
- language: cpp | ||
compiler: gcc | ||
os: linux | ||
env: | ||
- VARIANT=test | ||
- CXXFLAGS=-std=c++17 | ||
# Need to set MATRIX_EVAL to set CC and CXX env vars. You would | ||
# think you could just set them in the env area like any other, but | ||
# travis is wonky about CC and CXX vars so you have to do it this way. | ||
- MATRIX_EVAL="CC=gcc-7 && CXX=g++-7" | ||
- DISABLED_TESTS="" | ||
addons: | ||
apt: | ||
sources: | ||
- ubuntu-toolchain-r-test | ||
packages: | ||
- g++-7 | ||
script: | ||
- dlib/travis/build-and-test.sh | ||
|
||
################### | ||
- language: cpp | ||
compiler: gcc | ||
os: linux | ||
env: | ||
- VARIANT=examples | ||
script: | ||
- dlib/travis/build-and-test.sh | ||
|
||
################### | ||
- language: python | ||
python: 3.5 | ||
env: | ||
- VARIANT=python-api | ||
script: | ||
- dlib/travis/build-and-test.sh | ||
|
||
################### | ||
- language: python | ||
python: 3.8 | ||
env: | ||
- VARIANT=python-api | ||
script: | ||
- dlib/travis/build-and-test.sh | ||
|
||
################### | ||
- language: cpp | ||
os: osx | ||
osx_image: xcode9.2 | ||
env: | ||
- VARIANT=test | ||
# Don't test the timer because it relies on the machine running it not | ||
# being under high load, but that seems to be unlikely on the travis | ||
# osx VMs. | ||
- DISABLED_TESTS="--no_test_timer" | ||
script: | ||
- dlib/travis/build-and-test.sh | ||
|
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,37 @@ | ||
cmake_minimum_required(VERSION 2.8.12) | ||
|
||
project(dlib_project) | ||
|
||
|
||
|
||
############################################################################# | ||
# # | ||
# READ examples/CMakeLists.txt TO SEE HOW TO USE DLIB FROM C++ WITH CMAKE # | ||
# # | ||
############################################################################# | ||
|
||
|
||
|
||
|
||
|
||
get_directory_property(has_parent PARENT_DIRECTORY) | ||
if(NOT has_parent) | ||
# When you call add_subdirectory(dlib) from a parent CMake project dlib's | ||
# CMake scripts will assume you want to statically compile dlib into | ||
# whatever you are building rather than create a standalone copy of dlib. | ||
# This means CMake will build dlib as a static library, disable dlib's | ||
# install targets so they don't clutter your project, and adjust a few other | ||
# minor things that are convenient when statically building dlib as part of | ||
# your own projects. | ||
# | ||
# On the other hand, if there is no parent CMake project or if | ||
# DLIB_IN_PROJECT_BUILD is set to false, CMake will compile dlib as a normal | ||
# standalone library (either shared or static, based on the state of CMake's | ||
# BUILD_SHARED_LIBS flag), and include the usual install targets so you can | ||
# install dlib on your computer via `make install`. Since the only reason | ||
# to build this CMakeLists.txt (the one you are reading right now) by itself | ||
# is if you want to install dlib, we indicate as such by setting | ||
# DLIB_IN_PROJECT_BUILD to false. | ||
set(DLIB_IN_PROJECT_BUILD false) | ||
endif() | ||
add_subdirectory(dlib) |
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,31 @@ | ||
IF YOU ARE REPORTING A BUG OR PROBLEM WITH DLIB THEN FILL OUT THE ENTIRE TEMPLATE BELOW. ISSUES ASKING QUESTIONS ABOUT WHY SOMETHING DOESN'T WORK THAT FAIL TO FILL OUT THE ENTIRE TEMPLATE WILL BE CLOSED. | ||
|
||
It is OK to suggest interesting improvements to dlib, even if you are not volunteering to implement them. **However, the issue tracker is not a code writing service, do not ask for someone to write code for you.** E.g. Do not ask for feature improvements to the example programs. **If there is some feature improvement you want in an example program then it's up to you to write it**. | ||
|
||
Before you ask a question, check Google for a solution, [the dlib FAQ](http://dlib.net/faq.html), or consult the dlib documentation. Every single function in dlib is documented in detail. If you obviously haven't read the documentation your issue will be closed. | ||
|
||
If you aren't reporting a bug or problem with dlib then delete this template and write whatever you want here. | ||
|
||
<!-- ================================================================== --> | ||
<!-- ================== BUG/PROBLEM REPORT TEMPLATE ================== --> | ||
<!-- ================================================================== --> | ||
|
||
|
||
<!-- Delete the above instructions and then provide a general summary of the issue in the Title above. Then fill out the template below. FAILURE TO FILL OUT EVERY PART WILL RESULT IN YOUR ISSUE BEING CLOSED --> | ||
|
||
## Expected Behavior | ||
<!--- Tell us what should happen. What were you doing? What part of dlib are you using? What do you think should happen? --> | ||
|
||
## Current Behavior | ||
<!--- Tell us what happens instead of the expected behavior. If you get an error, include the entire error message in the bug report. DO NOT POST SCREEN SHOTS. Paste in the text instead. If the issue is some kind of build problem, include the entire CMake output along with the error message. --> | ||
|
||
## Steps to Reproduce | ||
<!--- Provide an unambiguous set of steps to reproduce this problem. What exactly do I have to type to reproduce your error? If you don't post complete instructions you are much less likely to get help. --> | ||
|
||
|
||
|
||
* **Version**: <!-- What version of dlib? --> | ||
* **Where did you get dlib**: <!-- Did you get it from an official source like dlib.net, this github repo, or somewhere else? --> | ||
* **Platform**: <!-- include something like `lsb_release -a` output, or if Windows, version and 32-bit or | ||
64-bit --> | ||
* **Compiler**: <!-- What compiler are you using? What version of that compiler? --> |
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 @@ | ||
# | ||
# MANIFEST.in | ||
# | ||
# Manifest template for creating the dlib source distribution. | ||
|
||
|
||
include MANIFEST.in | ||
include setup.py | ||
include README.md | ||
|
||
# sources | ||
recursive-include dlib ** | ||
recursive-include python_examples *.txt *.py | ||
recursive-include tools/python ** | ||
|
||
prune tools/python/build* | ||
prune dlib/test |
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 @@ | ||
# dlib C++ library [![Travis Status](https://travis-ci.org/davisking/dlib.svg?branch=master)](https://travis-ci.org/davisking/dlib) | ||
|
||
Dlib is a modern C++ toolkit containing machine learning algorithms and tools for creating complex software in C++ to solve real world problems. See [http://dlib.net](http://dlib.net) for the main project documentation and API reference. | ||
|
||
|
||
|
||
## Compiling dlib C++ example programs | ||
|
||
Go into the examples folder and type: | ||
|
||
```bash | ||
mkdir build; cd build; cmake .. ; cmake --build . | ||
``` | ||
|
||
That will build all the examples. | ||
If you have a CPU that supports AVX instructions then turn them on like this: | ||
|
||
```bash | ||
mkdir build; cd build; cmake .. -DUSE_AVX_INSTRUCTIONS=1; cmake --build . | ||
``` | ||
|
||
Doing so will make some things run faster. | ||
|
||
Finally, Visual Studio users should usually do everything in 64bit mode. By default Visual Studio is 32bit, both in its outputs and its own execution, so you have to explicitly tell it to use 64bits. Since it's not the 1990s anymore you probably want to use 64bits. Do that with a cmake invocation like this: | ||
```bash | ||
cmake .. -G "Visual Studio 14 2015 Win64" -T host=x64 | ||
``` | ||
|
||
## Compiling your own C++ programs that use dlib | ||
|
||
The examples folder has a [CMake tutorial](https://github.com/davisking/dlib/blob/master/examples/CMakeLists.txt) that tells you what to do. There are also additional instructions on the [dlib web site](http://dlib.net/compile.html). | ||
|
||
Alternatively, if you are using the [vcpkg](https://github.com/Microsoft/vcpkg/) dependency manager you can download and install dlib with CMake integration in a single command: | ||
```bash | ||
vcpkg install dlib | ||
``` | ||
|
||
## Compiling dlib Python API | ||
|
||
Before you can run the Python example programs you must compile dlib. Type: | ||
|
||
```bash | ||
python setup.py install | ||
``` | ||
|
||
|
||
## Running the unit test suite | ||
|
||
Type the following to compile and run the dlib unit test suite: | ||
|
||
```bash | ||
cd dlib/test | ||
mkdir build | ||
cd build | ||
cmake .. | ||
cmake --build . --config Release | ||
./dtest --runall | ||
``` | ||
|
||
Note that on windows your compiler might put the test executable in a subfolder called `Release`. If that's the case then you have to go to that folder before running the test. | ||
|
||
This library is licensed under the Boost Software License, which can be found in [dlib/LICENSE.txt](https://github.com/davisking/dlib/blob/master/dlib/LICENSE.txt). The long and short of the license is that you can use dlib however you like, even in closed source commercial software. | ||
|
||
## dlib sponsors | ||
|
||
This research is based in part upon work supported by the Office of the Director of National Intelligence (ODNI), Intelligence Advanced Research Projects Activity (IARPA) under contract number 2014-14071600010. The views and conclusions contained herein are those of the authors and should not be interpreted as necessarily representing the official policies or endorsements, either expressed or implied, of ODNI, IARPA, or the U.S. Government. | ||
|
Oops, something went wrong.