Commit Graph

5839 Commits

Author SHA1 Message Date
Davis King 172647f87c Moved log1pexp() and randomize_parameters() from core.h into utilities.h 2016-06-11 23:08:51 -04:00
Davis King 6578c1b574 Added net_to_xml() 2016-06-11 22:47:52 -04:00
Davis King e2d4b3c41c Made layer() work on const networks. 2016-06-11 22:13:48 -04:00
Davis King 8f3e8a6ca7 Made mat() work on empty tensors. 2016-06-11 21:15:36 -04:00
Davis King dd8bf7553d Adjusted asserts to allow mat() to output empty matrices. 2016-06-11 21:15:04 -04:00
Davis King 443279089f updated docs 2016-06-11 12:59:33 -04:00
Davis King 86bed7c1c9 Added visit_layers() 2016-06-11 12:58:59 -04:00
Davis King 2927671d97 updated docs 2016-06-11 11:56:10 -04:00
Davis King 3a3e326332 clarified spec 2016-06-11 11:56:04 -04:00
Davis King 1c01eaec1d updated example comments 2016-06-11 11:54:44 -04:00
Davis King 25ab939690 Added tag_id and made skip and add_prev layers print their id numbers when
written to an output stream.
2016-06-11 11:54:32 -04:00
Davis King e4e58ee1f5 cleanup 2016-06-11 09:37:44 -04:00
Davis E. King 474ae9a878 Merge pull request #136 from AbdealiJK/ajk/setup
setup.py: Don't fail if pip fails in cmake err msg
2016-06-11 08:41:36 -04:00
Davis King 87dff094da Updated tests now that the resizable_tensor has an assignment mode that
automatically sizes the tensor.
2016-06-11 08:04:51 -04:00
Davis King 6008ad2195 Made the resizable_tensor's assignment operator work in a more sensible way. 2016-06-11 08:04:22 -04:00
Davis King 7272bc74c2 Made fill_gaussian() default to a standard normal distribution. 2016-06-11 08:03:40 -04:00
Davis King 9da21b0b0c Made this bit of the code a little clearer. 2016-06-11 07:39:56 -04:00
AbdealiJK 8da4053c30 setup.py: Don't fail if pip fails in cmake err msg
When cmake is not found, the error message suggests what to do to
install cmake. But if `distro` is not found and cannot be installed,
the distro specific error message cannot be shown. Hence, we simply
ignore this and continue on.

Also, make the pip install quiet so that if there is an error message
in that, the user does not get confused by it.
2016-06-11 08:57:20 +05:30
Davis King 6938af9d4b Removed this include statement since it causes errors on some systems. 2016-06-10 21:26:12 -04:00
Davis King 32d6211052 Made imglab assign a random color to boxes with labels. 2016-06-10 20:52:10 -04:00
Davis King 1a35d36514 Made holding ctrl and clicking on an overlay rectangle set the color to the
default value as well as the label to the default.
2016-06-10 20:49:20 -04:00
Davis King f7b395a87f Fixed minor bugs in join_rows() and join_cols(). They didn't work when
one of the matrices was empty.
2016-06-10 16:40:50 -04:00
Davis King 89e344f279 fixed compiler warning 2016-06-10 12:42:02 -04:00
Davis King c118dcb676 Made resizable_tensor construction and assignment from matrices automatically
set the size of the tensor.
2016-06-10 11:00:53 -04:00
Davis E. King 087f9f1748 Merge pull request #133 from AbdealiJK/ajk/setup
setup.py: Provide instructions to install cmake
2016-06-09 20:55:52 -04:00
AbdealiJK faff10f853 setup.py: Provide instructions to install cmake
If cmake_path is not found, either cmake is not installed
or cmake is not in the PATH. Hence, we also give instructions
on how to install cmake if the path is not found.
2016-06-09 11:37:53 +05:30
Davis King 24efbdbc52 fixed warning and typo in comment 2016-06-07 15:37:46 -04:00
Davis King ffb4434240 Fixed missing return statement 2016-06-07 12:08:40 -04:00
Davis King c772e4ae8a Made CMake's search for cuDNN a little more broad 2016-06-07 09:01:21 -04:00
Davis King 0a80fdd15c Made tests less likely to false alarm. 2016-06-07 06:27:24 -04:00
Davis King 2412a2570e Made this bit of code not look crazy 2016-06-06 21:18:09 -04:00
Davis King 992dcd48a6 merged 2016-06-05 16:39:35 -04:00
Davis King aa19ff7377 Fixed solvers so they apply the bias specific multipliers to the correct parts
of the parameter vectors.
2016-06-05 16:39:10 -04:00
Davis E. King 02f6da2851 Merge pull request #130 from AbdealiJK/ajk/jpeg
save_jpeg: Use TRUE instead of true
2016-06-05 14:15:51 -04:00
AbdealiJK c102fb2690 save_jpeg: Use TRUE instead of true
In some verisons on jpeg, TRUE is an enum, and so `true`
fails because it is not of the enum's type. Now, all the
libjpeg calls use TRUE/FALSE.

Fixes https://github.com/davisking/dlib/issues/129
2016-06-05 23:40:10 +05:30
Davis King 3c002d1cff Made the steps without progress counter reset immediately upon changing the
learning rate.
2016-06-05 07:45:15 -04:00
Davis King 72a2e8e437 made tests more repeatable 2016-06-01 06:51:46 -04:00
Davis King b230e7c33d fixed compile time error 2016-05-31 12:40:48 -04:00
Davis King ba59ddc6b5 Added subprocess_stream so that complex things can be isolated from MATLAB's
shenanigans in a separate process.
2016-05-31 12:37:25 -04:00
Davis King 0d2bce15ff Made the mex wrapper trap all std::exception derived exceptions rather than
just dlib exceptions.
2016-05-31 12:27:59 -04:00
Davis King 623fba97fe updated ignore list 2016-05-31 12:27:31 -04:00
Davis King 738b4d36af Made imglab show the name of the current image in the title bar. 2016-05-31 06:45:02 -04:00
Davis King 6e0f13ba06 minor cleanup 2016-05-30 13:14:04 -04:00
Davis King b4b9376aab updated docs 2016-05-30 13:04:23 -04:00
Davis King f698b85d68 clarified spec 2016-05-30 11:39:16 -04:00
Davis King f1eae955ac fixed typo 2016-05-30 09:24:19 -04:00
Davis King 20d10efc65 A little more cleanup in the spec 2016-05-30 09:17:46 -04:00
Davis King abd0019df0 fixed typo 2016-05-30 08:54:02 -04:00
Davis King 771ca2e0f3 clarified spec 2016-05-30 08:50:49 -04:00
Davis King 53e9c15811 Clarified some parts of the example. 2016-05-30 08:50:28 -04:00