Commit Graph

6819 Commits

Author SHA1 Message Date
Davis King 10b4f82568 Improved loss_mmod_ warning message. 2017-10-28 12:25:32 -04:00
Davis King f93ee49cc2 Made requires clause a little more sensible. 2017-10-28 12:23:47 -04:00
Davis King 12bc559d28 Fixed a bug in dlib's MS Windows GUI code that was introduced a little while back
when we switched everything to std::shared_ptr.  Turns out std::shared_ptr has
some surprising limitations.  This change fixes a bug where the program crashes or hangs
sometimes during program shutdown.
2017-10-28 10:48:54 -04:00
Davis King a6592ef60c Fixed sqlite include path finding. 2017-10-28 08:50:42 -04:00
Davis King 82ecd447c8 Don't ever try to use the busted version of libjpeg in anaconda. 2017-10-28 00:06:42 -04:00
Davis King f88fd99ed4 Make cmake output less confusing 2017-10-27 23:42:40 -04:00
Davis King c29314f34a Clarified build instructions 2017-10-27 23:39:04 -04:00
Davis King 1e877b1917 Changed graph construction for chinese_whispers() so that each face is always
included in the edge graph.  If it isn't then the output labels from
chinese_whispers would be missing faces in this degenerate case.  So basically this fixes a bug
where chinese_whispers(), when called from python, would sometimes return a labels array
that doesn't include labels for all the inputs.
2017-10-27 19:30:58 -04:00
Davis King dc0245af05 Changed graph construction for chinese_whispers() so that each face is always
included in the edge graph.  If it isn't then the output labels from
chinese_whispers would be missing faces in this degenerate case.
2017-10-27 19:29:52 -04:00
Davis King 347257cbc0 Made random_cropper use cleaner and unbiased dlib::rand interface. 2017-10-27 07:27:57 -04:00
Davis King faf8676a49 Cleanup 2017-10-27 05:58:34 -04:00
Davis King e8d74b3015 Removed old cruft not needed anymore since we are doing this kind
of thing with cmake targets already in set_compiler_specific_options.cmake.
2017-10-27 05:50:15 -04:00
Sean Warren 16ad749c45 Win lapack (#913)
* Fall back on find_package for blas, lapack on Windows

* Remove debugging message
2017-10-27 05:45:53 -04:00
Davis King aa93c8f861 Updated python code to use the new dlib::jitter_image() instead of hacking it
out of the random_cropper.
2017-10-25 05:42:31 -04:00
Davis King e338bf02e0 Changed the random_cropper's set_min_object_size() routine to take min box
dimensions in the same format as the mmod_options object (i.e. two lengths
measured in pixels).  This should make defining random_cropping strategies that
are consistent with MMOD settings much more straightforward since you can just
take the mmod_options settings and give them to the random_cropper and it will
do the right thing.
2017-10-24 22:10:02 -04:00
Davis King 1c664eeac5 Made the metric learning example do image jittering. 2017-10-24 21:13:02 -04:00
Davis King 369f2b32e8 Cleaned up jitter_image() code and moved it into dlib proper. 2017-10-24 08:02:44 -04:00
Davis King 782f4f4825 merged 2017-10-23 21:02:57 -04:00
Sean Warren 45ce9f7b6d Use banded Cholesky factorization if possible (#857)
* Use banded Cholesky factorization if possible
Computation cost from n.n.n -> n.n.b where b is band size

* Tidy up whitespace

* Remove typo

*  Escape from banded matrix detection correctly

* Use LAPACK banded Cholesky factorisation where possible

* Add banded chol tests

* Add test for banded chol in column major layout

* Use row major layout for banded chol - more efficient as we will pass to LAPACK
2017-10-23 21:00:49 -04:00
Davis King 04a8f0093d Make sure the test loss the trainer logs to the console never gets suck at
infinity.
2017-10-22 16:06:11 -04:00
Gilles Rochefort 9bc7070a77 Add some operator() to cv_image for compatibility with mmod loss. (#900)
* Add some operator() to cv_image for compatibility with mmod.

* Update documentation
2017-10-21 10:16:36 -04:00
Davis King 261f12d4ea Updated spec 2017-10-20 21:45:14 -04:00
Gilles Rochefort 540f47409e Missing interfaces in add_prev for compatibility with mmod loss. (#901) 2017-10-20 21:44:00 -04:00
Davis King 6d343f93da Sometimes the loss_mmod_ layer could experience excessively long runtime during
early iterations since the model might produce a huge number of false alarms
while the detector is still bad.  Processing all these detections can cause it
to run slowly until the model is good enough to avoid really excessive amounts
of false alarms.  This change puts more of a limit on the number of false
alarms processed during those early iterations and avoids the slowdown.
2017-10-20 21:37:54 -04:00
Davis King 3e48a36ede The loss returned by compute_loss_value_and_gradient() wasn't quite right. It
doesn't effect normal use, but it's still wrong and this change fixes it.
2017-10-20 21:34:34 -04:00
Davis King 3da61b2581 Added install_target_output_folder option to matlab cmake scripts. 2017-10-20 16:54:49 -04:00
Davis King 1d8445cbfd Fixed the terrible breaking change to the tensor object I made earlier today :( 2017-10-19 20:57:24 -04:00
Davis King 86465e307a Improved cmake error messages about CUDA support. 2017-10-19 12:09:29 -04:00
Davis King e9837f7035 Changed tensor so that, when reallocating memory, it frees any existing memory
*before* allocating new memory.  It used to be the other way around which
caused momentary spikes of increased memory usage.  This could put you over the
total memory available in some cases which is obviously less than ideal
behavior.
2017-10-19 10:50:40 -04:00
Davis King 7a317f5456 Fixed bug 2017-10-18 10:17:46 -04:00
Davis King e35b2d8fc8 Added python binary classifier example 2017-10-18 07:36:31 -04:00
Davis King 525bf0e15b Fixed weird wording. 2017-10-17 19:20:29 -04:00
Davis King 3aa9991892 Made comment more clear. 2017-10-17 19:18:57 -04:00
Juha Reunanen 9d59214062 Add get_net parameter that allows to call the function without forcing flush to disk (#875)
* Add get_net parameter allowing to call the function without forced flush to disk (see the discussion in #869)

* A blindfolded attempt to fix compile error on the CI server
2017-10-17 19:12:38 -04:00
jpblackburn f467236cdd Allow cross_validate_trainer_threaded to use non-double data (#883) 2017-10-17 19:11:16 -04:00
Davis King 2b9b3fef6a merged 2017-10-17 19:02:58 -04:00
Davis King aa1a3b8611 Made cmake print a very explicit error message if you try to use a version of gcc that is too old. 2017-10-17 19:02:31 -04:00
Davis King 88d0bdec86 Fixed path 2017-10-17 10:31:27 -04:00
Davis King 50c1099449 Yet more cmake cleanup 2017-10-17 10:24:23 -04:00
Davis King d832a5760a More cmake script cleanup 2017-10-17 10:02:30 -04:00
Davis King e17b082540 Fix deprecation warning from new cmake 2017-10-17 09:45:18 -04:00
Davis King 38a2846dda More cmake cleanup 2017-10-16 21:36:18 -04:00
Davis King 6ffdf802ee suppress compiler warnings 2017-10-16 21:34:17 -04:00
Davis King 5b4206f97c Suppress compiler warnings 2017-10-16 21:34:00 -04:00
Davis King f18f753c04 CMake tweaks to avoid errors in visual studio 2017-10-16 21:11:16 -04:00
Davis King 3b2d73db68 Some cmake script cleanup and refactoring. 2017-10-16 20:55:28 -04:00
Davis King c0b60faaf0 Removed cout statement. 2017-10-16 20:55:07 -04:00
Davis King 0282b9428c Fixed compiler error due to #define nonsense in visual studio. 2017-10-16 09:22:01 -04:00
Davis King 1dc5e00299 Prevent include path clashes from system installs of dlib as well as suppress
warning messages from boost and python system header files.
2017-10-16 06:49:03 -04:00
Davis King 363c1ad963 merged 2017-10-15 15:54:19 -04:00