Commit Graph

6877 Commits

Author SHA1 Message Date
Davis E. King
b93070826b
Update ISSUE_TEMPLATE.md 2017-11-18 20:22:02 -05:00
Davis E. King
c4a172fb75
Create ISSUE_TEMPLATE.md 2017-11-18 20:21:18 -05:00
Davis King
5529ddfb82 Added a .add() to upper_bound_function so that the upper bound can be quickly
updated without needing to resolve the whole QP.
2017-11-17 21:42:29 -05:00
Davis King
7e39a52758 merged 2017-11-17 20:56:51 -05:00
Davis King
f1fe908a9d Added loss_dot layer 2017-11-17 19:07:41 -05:00
Davis King
a02208018b Upgraded the con_ layer so that you can set the nr or nc to 0 in the layer
specification and this means "make the filter cover the whole input image
dimension".  So it's just an easy way to make a filter sized exactly so that it
will have one output along that dimension.
2017-11-17 16:55:24 -05:00
Davis King
692ddb8c18 merged 2017-11-17 11:46:13 -05:00
Davis King
e7d713cfee Added softmax_all layer. 2017-11-17 11:40:44 -05:00
Kino
364e97c159 generic_image all the way (#921)
* generic_image all the way

tried to hunt down and correct the functions that were using a
non-generic_image approach to dlib’s generic images.

* generic image fix fix

Had to change a couple of const_image_view to non-const versions so array access is possible in the rest of the code

* same

same

* back to sanity
2017-11-17 06:41:55 -05:00
Amin Cheloh
1798e8877c Update dnn_mmod_find_cars2_ex.cpp (#966) 2017-11-17 06:38:48 -05:00
Davis King
11145541ea Work around visual studio's lack of C++11 support. 2017-11-16 21:45:43 -05:00
Davis King
f093d2cc5a Made normalization code more robust and a bit cleaner. 2017-11-15 17:20:36 -05:00
Davis King
9f6ad63b06 Removed unneeded assert 2017-11-15 09:24:50 -05:00
Davis King
b84e2123d1 Changed network filename to something more descriptive. 2017-11-15 07:10:50 -05:00
Davis King
36392bb2c3 Minor tweaks to spec 2017-11-15 07:06:33 -05:00
Davis King
483e6ab4cc merged 2017-11-15 07:04:16 -05:00
Juha Reunanen
e48125c2a2 Add semantic segmentation example (#943)
* Add example of semantic segmentation using the PASCAL VOC2012 dataset

* Add note about Debug Information Format when using MSVC

* Make the upsampling layers residual as well

* Fix declaration order

* Use a wider net

* trainer.set_iterations_without_progress_threshold(5000); // (was 20000)

* Add residual_up

* Process entire directories of images (just easier to use)

* Simplify network structure so that builds finish even on Visual Studio (faster, or at all)

* Remove the training example from CMakeLists, because it's too much for the 32-bit MSVC++ compiler to handle

* Remove the probably-now-unnecessary set_dnn_prefer_smallest_algorithms call

* Review fix: remove the batch normalization layer from right before the loss

* Review fix: point out that only the Visual C++ compiler has problems.
Also expand the instructions how to run MSBuild.exe to circumvent the problems.

* Review fix: use dlib::match_endings

* Review fix: use dlib::join_rows. Also add some comments, and instructions where to download the pre-trained net from.

* Review fix: make formatting comply with dlib style conventions.

* Review fix: output training parameters.

* Review fix: remove #ifndef __INTELLISENSE__

* Review fix: use std::string instead of char*

* Review fix: update interpolation_abstract.h to say that extract_image_chips can now take the interpolation method as a parameter

* Fix whitespace formatting

* Add more comments

* Fix finding image files for inference

* Resize inference test output to the size of the input; add clarifying remarks

* Resize net output even in calculate_accuracy

* After all crop the net output instead of resizing it by interpolation

* For clarity, add an empty line in the console output
2017-11-15 07:01:52 -05:00
Sebastian Höffner
1e809b18df Adding missing implementation of tabbed_display::selected_tab (#957) 2017-11-14 15:24:39 -05:00
Davis King
391c11ed3b merged 2017-11-14 06:17:28 -05:00
Sean Warren
acda88a5e3 Determine lapack fortran linking convention in CMake (#934)
* Determine lapack fortran linking convention in CMake

Looks for lapack function with and without trailing underscore - allows use of CLAPACK on windows where functions are decorated but fortran_id.h otherwise assumes they are not

* Use enable_preprocessor_switch for LAPACK decoration detection

* Add lapack decoration defines to config.h.in

* Use correct variable for lapack_libraries
2017-11-14 05:57:00 -05:00
Davis King
9e290f65ea merged 2017-11-13 22:42:37 -05:00
Davis King
c6171cbf26 Added tools for doing global optimization. The main new tools here are
find_global_maximum() and global_function_search.
2017-11-13 22:41:07 -05:00
Davis King
c5c3518ac0 Made bigint use explicit relational operator functions rather than the overly
general templates in dlib::relational_operators.  I did this because the
templates in dlib::relational_operators sometimes cause clashes with other
code in irritating ways.
2017-11-13 22:38:38 -05:00
Davis King
02fbcede93 Added missing #include 2017-11-13 05:56:57 -05:00
Davis King
61b6c1ff78 Added solve_trust_region_subproblem_bounded() 2017-11-12 15:16:25 -05:00
Davis King
1e90fc6dbd Added upper_bound_function object. 2017-11-12 14:18:34 -05:00
Davis King
1bfc31dec9 Reduce parallelism in build to avoid travis running out of RAM. 2017-11-12 07:14:48 -05:00
Davis King
6acebf5ec4 Fixed deserialize() 2017-11-11 08:42:16 -05:00
Davis King
9eecdaaf65 merged 2017-11-11 08:37:29 -05:00
Juha Reunanen
f484cec780 Add support for non-scale-invariant MMOD (#809)
* Add capability to train scale-variant MMOD models

* Review fixes: change bool scale_invariant to strongly typed enum, etc

* Add serialization and deserialization of assumed_input_layer_type

* Fix code formatting

* Rename things as per review feedback

* Review fix: move enum use_image_pyramid outside mmod_options

* Continue execution with net, if deserialization of shape predictor fails

* Revert "Continue execution with net, if deserialization of shape predictor fails"

This reverts commit 8ea4482c04.
2017-11-11 08:37:00 -05:00
Pierre Fenoll
36b043624b pedantic: fix "extra ;" warnings when compiling with -Wpedantic (#906) 2017-11-11 08:21:55 -05:00
Davis King
0b6d5df552 merged 2017-11-10 18:11:08 -05:00
Davis King
2b0a4a6f6d Added loss_epsilon_insensitive_ layer 2017-11-10 18:10:51 -05:00
Davis King
8b5c04d075 Updated code to work with new regression test output. 2017-11-10 17:42:40 -05:00
Davis King
df0f62d470 merged 2017-11-10 16:57:35 -05:00
Davis King
6137540b27 Changed test_regression_function() and cross_validate_regression_trainer() to
output 2 more statistics, which are the mean absolute error and the standard
deviation of the absolute error.  This means these functions now return 4D
rather than 2D vectors.

I also made test_regression_function() take a non-const reference to the
regression function so that DNN objects can be tested.
2017-11-10 16:56:37 -05:00
Davis King
5a0c09c775 Fixed compiler warning 2017-11-10 16:52:20 -05:00
Sean Warren
fef4a3657b Remove explicit specification of library path in dlibConfig.cmake (#935)
* Remove explicit specification of library path in dlib.cmake
Enables side-by-side multi configuration build on windows

* Add dlib_LIBS

For backwards compatability
2017-11-09 05:36:20 -05:00
OtacilioNeto
cc94179393 Fix issue https://github.com/davisking/dlib/issues/925 (#928)
* This fix suggested by davisking make unit tests more reliable. Fix issue https://github.com/davisking/dlib/issues/925

* This fix suggested by davisking make unit tests more reliable. Fix issue https://github.com/davisking/dlib/issues/925
2017-11-07 14:27:54 -05:00
Davis King
809f5683d1 updated docs 2017-11-06 07:37:29 -05:00
Davis King
14acae38f9 Made unit tests more reliable 2017-11-05 10:36:48 -05:00
Davis King
31280b5474 merged 2017-11-05 08:14:10 -05:00
Davis King
7474abd741 Changed the mean squared loss layers to return a loss that's the MSE, not
0.5*MSE.  The only thing this effects is the logging messages that print during
training, which were confusing since the reported loss was half the size you
would expect.
2017-11-05 08:13:26 -05:00
Davis King
c171802dac Added notes about not using visual studio 2017 since it doesn't support C++11. 2017-11-05 07:57:34 -05:00
Davis King
0c3fe57573 Don't use CUDA/DNN stuff in Visual Studio 2017. 2017-11-05 07:37:52 -05:00
Davis King
978da26ed0 Fixed grammar in comment 2017-11-05 07:37:29 -05:00
Gilles Rochefort
ca9fceb278 Remove unused variable (#919) 2017-11-03 21:40:25 -04:00
Davis King
69ea3bd400 Fixed timing print() so the output scales are set correctly. 2017-11-02 10:24:25 -04:00
Davis King
50de3da992 Updated comments to reflect recent API changes. 2017-11-02 05:43:15 -04:00
Davis King
895d7874d3 Changed the timing code to use the C++11 high resolution clock and
atomics.  This makes the timing code a lot more precise.
2017-11-01 16:30:42 -04:00