Commit Graph

7210 Commits

Author SHA1 Message Date
Davis King
60a4af67e8 Added more unit tests 2018-03-17 17:10:44 -04:00
Davis King
2cff3f4e00 Added a note about disabling LTO 2018-03-17 17:10:31 -04:00
Davis King
594fa8c7b1 Fixed typo in comment 2018-03-17 17:09:02 -04:00
Davis King
3e781f6f61 Added interface to the global_function_search object. 2018-03-17 17:00:08 -04:00
Davis King
11ed263066 Added more docs and tests. 2018-03-17 10:22:02 -04:00
Davis King
62cd23ce66 updated faq 2018-03-17 07:19:32 -04:00
Davis King
40998905a0 Added a random forest regression tool. 2018-03-14 17:28:51 -04:00
Davis King
8b419e43a7 Fixed memory leak in java swig array binding tool. 2018-03-13 19:14:44 -04:00
Davis King
65b62c1bc9 merged 2018-03-12 20:56:46 -04:00
Davis King
30a3e352d8 merged 2018-03-12 20:55:17 -04:00
Davis King
83057123b9 Added check_serialized_version(). 2018-03-12 20:51:21 -04:00
Lukas-Buricin
b44e784a52 Fixed VS 2017 level-3 warnings (#1193) 2018-03-12 11:05:52 -04:00
jjaloszy2
973f453630 Clear flags (#1190)
Set istream flags to 0 in old_deserialize_floating_point.  This was flagged by [[nodiscard]] warning in MS compiler.
2018-03-09 21:06:58 -05:00
Kagami Hiiragi
ad88bbe8c6 Allow to set arbitrary cmake opts from setup.py (#1189)
Fixes #1188
2018-03-09 19:14:12 -05:00
Davis King
d7647e83b4 merged 2018-03-08 15:13:03 -05:00
Davis King
306cd1a242 Improved isotonic_regression class. 2018-03-07 15:51:32 -05:00
Davis King
cb481f2725 Changed cmake scripts for building MATLAB mex files to not explicitly link to
any BLAS or LAPACK.  Instead, let it get determined at mex load time so that
it will definitely use whatever BLAS and LAPACK matlab is using.
2018-03-07 12:21:00 -05:00
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