Commit Graph

7193 Commits

Author SHA1 Message Date
Davis King
881ce1744d Clarified issue template. 2018-03-04 08:53:25 -05:00
Davis King
49ec319ce4 Added rect_filter and find_optimal_rect_filter() to python API. 2018-03-03 18:45:16 -05:00
Davis King
0bdc9ce5b4 Added another rect_filter constructor. 2018-03-03 17:53:09 -05:00
Davis King
1c26be904c Added operator + support for dlib.rectangle. 2018-03-03 17:21:23 -05:00
Davis King
4e01b7790b Cleanup 2018-03-03 16:46:00 -05:00
Davis King
4ec6b1f06c Fixed build problem on windows. 2018-03-02 22:57:28 -05:00
Davis King
67d0ef0291 Added momentum_filter and rect_filter as well as find_optimal_momentum_filter()
and find_optimal_rect_filter()
2018-03-02 22:47:40 -05:00
Juha Reunanen
cf5e25a95f Problem: integer overflow when calculating sizes (may happen e.g. with very large images) (#1148)
* Problem: integer overflow when calculating sizes (may happen e.g. with very large images)
Solution: change some types from (unsigned) long to size_t

# Conflicts:
#	dlib/dnn/tensor.h

* Fix the fact that std::numeric_limits<unsigned long>::max() isn't always the same number

* Revert serialization changes

* Review fix: use long long instead of size_t

* From long to long long all the way

* Change more types to (hopefully) make the compiler happy

* Change many more types to size_t

* Change even more types to size_t

* Minor type changes
2018-03-01 07:27:29 -05:00
Davis King
1cf6dbf423 Changed to 5 point layout since it works better. 2018-02-28 22:07:28 -05:00
Davis King
f8adfbfd96 Fixed spelling and improved error message. 2018-02-28 21:03:58 -05:00
Davis King
2f81256fec Code cleanup 2018-02-28 20:56:22 -05:00
Davis King
34b0a2e144 Added a link time check that you aren't mixing headers from one version of dlib
with binaries from a different dlib version.
2018-02-28 20:00:28 -05:00
Davis King
e81176799c merged 2018-02-28 19:30:41 -05:00
Davis King
b62476dc91 updated docs 2018-02-28 19:30:16 -05:00
Davis King
8647a33a1d Moved files around. 2018-02-28 19:29:30 -05:00
Davis King
04be5427b2 A bit of code cleanup 2018-02-28 19:25:55 -05:00
Davis King
b6f8a268f5 Added isotonic_regression. 2018-02-28 10:03:24 -05:00
Davis King
0df6cc2d90 Added a comment. 2018-02-28 07:59:48 -05:00
Davis King
33d37f4904 Added FAQ notes about ODR violations. 2018-02-28 07:58:06 -05:00
Davis King
0ef08bb0d2 Moved the ODR violation checking code into its own file. 2018-02-28 07:54:35 -05:00
Davis King
feaf245dec Removed deprecated files. 2018-02-28 07:12:51 -05:00
Davis King
0190794dec Added some code that will cause people who make a standalone dlib build and
then take the compiled library file but ignore the config.h file to get a
linker error telling them they have been naughty.  Instead, they should either
use `make install` or `cmake --build . --target install` which will copy the
correct files, or even better, don't install/build dlib as a standalone
library.  Instead, use it the way shown in examples/CMakeLists.txt.
2018-02-27 22:57:15 -05:00
Davis King
048f40dc08 merged 2018-02-27 22:41:23 -05:00
Davis King
3f8eeccb00 merged 2018-02-27 22:40:13 -05:00
Davis E. King
61f747de5a
Only define one dlib target in CMake and shared vs. static is determined by BUILD_SHARED_LIBS variable. (#1138)
* Changed cmake so that there is only the dlib target and it isn't forced
to be static or shared, instead, the build type will toggle based on the
state of CMake's BUILD_SHARED_LIBS variable.

* Make CMake build dlib statically whenever DLIB_IN_PROJECT_BUILD==true,
regardless of the state of BUILD_SHARED_LIBS.  This means projects that
use dlib by saying add_subdirectory(dlib) will always statically link to
dlib, unless DLIB_IN_PROJECT_BUILD is explicltly set to false and
BUILD_SHARED_LIBS set to true.
2018-02-27 22:39:20 -05:00
Juha Reunanen
2f8d7053eb Change types of tensor's size-related members to prevent integer overflow (#1151)
* Change types of tensor's size-related members, so that integer overflow does not happen so easily (see #1148)

* Fix missing typecast
2018-02-25 12:11:18 -05:00
Davis King
deccc99cf7 Fixed bug in unit tests. 2018-02-23 11:40:09 -05:00
Davis King
af1af6d27a Fixed the decayed running stats objects so they use unbiased estimators. 2018-02-22 08:10:25 -05:00
Davis King
09f36dbf47 Added python interface to cuda::set_device() and other relevant
functions.
2018-02-21 21:51:48 -05:00
Davis King
18489b11d6 updated docs 2018-02-21 08:05:36 -05:00
Davis King
c3d52caaa1 Fixed typo in spec 2018-02-21 07:58:27 -05:00
Davis King
a37c5e7c2b Add the example program contents as a test as well. 2018-02-19 13:31:07 -05:00
Morten Hustveit
9691c194c0 Added support for variadic Python functions in find_max_global. (#1141)
* Added support for variadic Python functions in find_max_global.

* Add test for find_{min,max}_global on variadic functions.
2018-02-19 13:26:45 -05:00
Davis King
ab50ab844f Make CMake build dlib statically whenever DLIB_IN_PROJECT_BUILD==true,
regardless of the state of BUILD_SHARED_LIBS.  This means projects that
use dlib by saying add_subdirectory(dlib) will always statically link to
dlib, unless DLIB_IN_PROJECT_BUILD is explicltly set to false and
BUILD_SHARED_LIBS set to true.
2018-02-16 19:09:10 -05:00
Davis King
09a9ad6d1e Fixed inconsistent random seeding in test. 2018-02-16 17:57:10 -05:00
Davis King
f9b272fe77 Added message to test so that the next time it fails on Appvetor we can
see what happened.
2018-02-16 17:55:37 -05:00
Davis King
f62d047412 Added dlib version to compiled library file names when using visual studio. 2018-02-16 13:04:13 -05:00
Davis King
941d764cab Changed cmake so that there is only the dlib target and it isn't forced
to be static or shared, instead, the build type will toggle based on the
state of CMake's BUILD_SHARED_LIBS variable.
2018-02-16 10:52:15 -05:00
Davis King
ad414af777 Made pytest ignore docs and dlib folders. 2018-02-16 09:29:15 -05:00
Davis King
f6ea3397c3 Fixed spelling errors. 2018-02-14 22:01:53 -05:00
Davis King
87aa290c04 Fixed pybind11 not doing the overload resolution correctly on the cnn_face_detector's operator() in Python. 2018-02-14 22:01:22 -05:00
Davis King
939e967059 Improved the type validation on numpy arrays passed to dlib. The old code
didn't have complete coverage and would let incorrectly typed numpy arrays
through.
2018-02-14 22:00:52 -05:00
Davis King
176e329d23 Upgrade to the newer shuffle command to avoid warnings about deprecation from CUDA 9.0. 2018-02-14 21:32:56 -05:00
Davis King
caea9a2c05 Tell travis to run on sudo-enabled Precise infrastructure which has 7.5GB of RAM. 2018-02-14 10:02:01 -05:00
Davis King
ca1c7af21b Added missing , in output 2018-02-13 19:09:54 -05:00
Davis King
051b67f095 merged 2018-02-13 18:37:08 -05:00
Davis King
1d8d9d62b1 merged 2018-02-13 18:36:53 -05:00
HarveyBrezinaConniffe
46e85e45c6 Added set_dnn_prefer_smallest_algorithms() (#1128)
* Added set_dnn_prefer_smallest_algorithms()

* Added description for set_dnn_prefer_smallest_algorithms();w

* Changed architectures to algorithms.
2018-02-13 16:28:46 -05:00
Davis King
c38d7e5544 Refactored the random feature selection function so that it always has bounded
runtime, even with very bad parameter selections.
2018-02-13 07:42:16 -05:00
Davis King
06a57d2501 Improve cmake lapack finding. 2018-02-12 18:06:32 -05:00