Commit Graph

6814 Commits

Author SHA1 Message Date
Davis King 71db541a92 Minor cleanup 2017-08-27 18:18:00 -04:00
Davis King 306fd3af10 updated docs 2017-08-27 13:03:58 -04:00
Davis King 3211da440d Yet more comments 2017-08-27 12:01:24 -04:00
Davis King a362305e1b cleanup 2017-08-27 10:46:49 -04:00
Davis King 5e9f094d5a Fixed compiler warning 2017-08-27 09:23:57 -04:00
Davis King 71f78c1ee6 Fixed compiler warnings 2017-08-27 09:23:49 -04:00
Davis King 88c1bf3b46 Added youtube links 2017-08-27 09:17:05 -04:00
Davis King efb1d83dd3 More comments 2017-08-27 09:11:49 -04:00
Davis King 54de7a8546 Added more comments 2017-08-27 08:29:36 -04:00
Davis King aec695fc26 Cleanup 2017-08-27 07:31:50 -04:00
Davis King f6e23cabc7 Gave upsample_image_dataset() an option to limit upsampling on really large images. 2017-08-27 07:31:38 -04:00
Davis King 238febcc7a updated docs 2017-08-26 17:31:24 -04:00
Davis King 51eae2ba07 Added two vehicle detection examples. 2017-08-26 17:13:47 -04:00
Davis King 0a7a75a245 Added a version of resize_image() that works inplace. 2017-08-26 08:49:19 -04:00
Davis King ce3ed6591d Added overloads of max_pointwise() and min_pointwise() that take 3 arguments. 2017-08-26 08:39:18 -04:00
Davis King 678728dc23 Made imglab --cluster ignore ignored boxes when doing all aspects of clustering. 2017-08-25 22:29:40 -04:00
Davis King bdd5016d85 Added options to input_rgb_image_pyramid that let the user set create_tiled_pyramid()'s padding parameters.
Also changed the default outer border padding from 0 to 11. This effects even
previously trained models.  So any model that doesn't explicitly set the outer
patting to something else will have a padding of 11.  This should be a more
reasonable value for most networks.
2017-08-25 22:01:02 -04:00
Davis King cf77875dce Gave create_tiled_pyramid() the ability to include padding around the outsides
of the pyramid image.
2017-08-25 20:35:47 -04:00
Davis King 02cf246dce Changed the functions that transform between input tensor coordinates and
output tensor coordinates to use dpoint instead of point.  This way, we can
obtain sub-pixel coordinates if we need them.
2017-08-25 18:38:40 -04:00
Davis King 2883650b0a Made resize_image() and functions that use it like the pyramid objects produce
better results when run on float and double images.  There was needless
rounding to integers happening in the bilinear interpolation.  Now if you work
with a float image the entire process will run without integer rounding.
2017-08-25 18:21:35 -04:00
Davis King 5a0824c0f3 Clarified spec 2017-08-25 18:20:17 -04:00
Davis King e7774a4c59 Clarified spec 2017-08-25 12:59:55 -04:00
Deniz Evrenci 6fbe3c6055 C++11 features (#778)
* Make noncopyable constructor and destructor default

C++11 provides the functionality.
Defining empty functions cause all classes derived from noncopyable
to be non-trivially constructible and non-trivially destructible.

For example, matrix with compile-time layout by definition does not
require an explicit destructor and should be trivially destructible
; however, deriving from noncopyable makes it non-trivially
destrutible. This also affects vector<T, 2> and vector<T, 3>.

* Delete array2d copy constructor and assignment operators
2017-08-25 05:40:22 -04:00
Deniz Evrenci ef25c56fbb Include drectangle.h to point_transforms.h (#777) 2017-08-25 05:39:07 -04:00
Davis King ba8cc45538 updated docs 2017-08-24 19:51:12 -04:00
Davis King 8e6132463a Fixed grammar 2017-08-24 19:42:22 -04:00
Davis King 6a96269097 Fixed spelling error in comment. 2017-08-24 19:24:28 -04:00
Davis King df03b6fbed merged 2017-08-24 18:42:01 -04:00
Davis King 30ca8b4228 Fully qualified boost::python::list to hopefully avoid compiler errors in some environments. 2017-08-24 18:41:07 -04:00
Evgeniy Fominov 18c42f3e77 Clang support for windows (#772) 2017-08-24 08:12:31 -04:00
ipeterson faa75fa9f7 Pull in external libpng dependencies properly (#770)
PNG_LIBRARY set by libpng's FindPNG.cmake does not contain zlib dependancy.  This causes the CHECK_FUNCTION_EXISTS(png_create_read_struct LIBPNG_IS_GOOD) to fail with liner errors, and for dlib to use it's internal copy of PNG.

Updated to use libpng's PNG_LIBRARIES variable.  This also sets both PNG and ZLib libraries in dlib_needed_libraries.
2017-08-23 21:33:52 -04:00
Davis King 9ba7889f0f merged 2017-08-22 22:36:53 -04:00
Davis King a94aa00eb0 updated docs 2017-08-22 22:36:19 -04:00
Davis King c3fa856c9f Fixed grammar 2017-08-22 22:02:19 -04:00
Davis King ebb0f85fac Fixed incorrect size() for simd8i. 2017-08-21 21:32:36 -04:00
Davis King d92728b334 Made windows testing bat file use rmdir rather than rm since rm isn't always available on windows. 2017-08-21 21:27:38 -04:00
Davis King f566b05a2e Fixed linker errors when building pyhton on windows. This fixes a bug that was introduced in a recent PR.
Also fixed compiler errors that occurred in visual studio.
2017-08-21 21:27:12 -04:00
Davis King 05c8391cb2 Fixed warning in visual studio. 2017-08-21 19:35:42 -04:00
Davis King 1db46949ee Made the test loss in the verbose output messages from the dnn_trainer not jump
in variance when the learning rate resets.
2017-08-20 20:47:00 -04:00
Davis King d009916e76 Added serialization support for the running_stats_decayed object. 2017-08-20 20:39:44 -04:00
Davis King dc45871a31 Made the loss value management a little more conservative. 2017-08-20 20:08:03 -04:00
Davis King dc071ceae1 Made the input_tensor_to_output_tensor() and output_tensor_to_input_tensor()
coordinate mappings work on networks that contain skip layers.
2017-08-20 19:42:12 -04:00
Davis King 620178db05 Changed the default get_test_iterations_without_progress_threshold() from 200
to 500.  Now that we have a better history management of loss values in the
trainer it's much more sensible to have a larger value here.
2017-08-20 19:30:11 -04:00
Davis King dd62b0e2ff Made the dnn_trainer not forget all the previous loss values it knows about
when it determines that there have been a lot of steps without progress and
shrinks the learning rate.  Instead, it removes only the oldest 100.  The
problem with the old way of removing all the loss values in the history was
that if you set the steps without progress threshold to a really high number
you would often observe that the last few learning rate values were obviously
not making progress, however, since all the previous loss values were forgotten
the trainer needed to fully populate it's loss history from scratch before it
would figure this out.  This new style makes the trainer not waste time running
this excessive optimization of obviously useless mini-batches.
2017-08-20 19:28:08 -04:00
Davis King 618f1084d2 The input_rgb_image_sized is supposed to be convertible to input_rgb_image,
which it was in all ways except you couldn't deserialize directly like you
would expect.  This has now been fixed.
2017-08-20 07:14:40 -04:00
Davis King ba430be591 Make DLIB_ASSERT statements not abort the python interpreter, but just trigger an exception. 2017-08-19 08:48:48 -04:00
Davis King 33513abdeb Suppress compiler warning 2017-08-19 08:42:17 -04:00
Davis King 3156a5f440 merged 2017-08-18 21:24:49 -04:00
Adam Geitgey b6d2329c5e Add a python wrapper for using the mmod face detector (#753) 2017-08-18 16:30:33 -04:00
Davis King 2241e2c210 merged 2017-08-18 05:31:14 -04:00