Commit Graph

7812 Commits

Author SHA1 Message Date
Davis King
23c140d138 Removing the python 2.7 test on travis because there is suddenly some kind of
incompatibility between python 2.7 and pytest, but only on travis.
2019-02-20 08:02:44 -05:00
Davis King
16a1056916 Removing the install_requires cmake from setup.py because the pip cmake package is hopelessly busted at the moment. 2019-02-20 07:54:42 -05:00
Davis King
12ca8ad67f merged 2019-02-20 07:48:50 -05:00
Davis King
9e18e26205 merged 2019-02-20 07:48:13 -05:00
Davis King
12646178ee updated docs 2019-02-18 07:59:14 -05:00
Branko Kokanovic
41a87e5926 Exposing chinese_whispers directly, closes #1642 (#1644)
* Exposing chinese_whispers directly

* Addressing comments

* Changed description
* Added support for distance weights
* Added tests

* Improving test to check returned results
2019-02-07 06:59:04 -08:00
davemers0160
84b72278b5 fixed check for excessive detections in loss_mmod_ (#1625)
fixed check for excessive detections in loss_mmod_

Ran into the problem where dets.size() was equal to max_num_initial_dets which then throws a subscript out of range error when accesing: dets[max_num_initial_dets].detection_confidence.  This fixes that issue.
2019-01-19 20:45:46 -05:00
Davis King
ea45199572 Remove Python 3.5 tests on AppVeyor because something is wrong with python 3.5 on appveyor and the other tests are sufficient for python coverage. 2019-01-19 20:40:21 -05:00
Davis King
ab9ce99846 merged 2019-01-09 09:08:24 -05:00
Davis King
027e7faf4e Add cmake as a pip install dependency. 2019-01-09 09:07:52 -05:00
Juha Reunanen
5c623e3c93 Apply the #1514 fix even on non-Windows platforms, and change all remaining cudaStreamSynchronize calls (#1596)
* Apply the #1514 fix even on non-Windows platforms

* Try to fix #1513 even more by circumventing the remaining cudaStreamSynchronize calls

* Make the fix apply only if CUDA_VERSION == 10000

* Make the fix apply on CUDA 9.2 also

* CHECK_CUDA(cudaStreamSynchronize(stream));
2019-01-07 22:43:34 -05:00
Chris Mayo
9ca72b3e1c Reliably detect AVX2 at runtime on Linux (#1614)
ECX must be set to 0 to read this flag, the easiest way to achieve this
is to use __cpuid_count with 0 as the second argument.
2019-01-07 22:41:26 -05:00
Davis King
6b5b461dd0 updated docs 2019-01-06 15:38:11 -05:00
Davis King
be8dc9269b merged 2019-01-06 15:34:04 -05:00
Davis King
c763fafde9 Fixed broken memcpy overload. 2019-01-06 15:32:20 -05:00
Juha Reunanen
f685cb4249 Add U-net style skip connections to the semantic-segmentation example (#1600)
* Add concat_prev layer, and U-net example for semantic segmentation

* Allow to supply mini-batch size as command-line parameter

* Decrease default mini-batch size from 30 to 24

* Resize t1, if needed

* Use DenseNet-style blocks instead of residual learning

* Increase default mini-batch size to 50

* Increase default mini-batch size from 50 to 60

* Resize even during the backward step, if needed

* Use resize_bilinear_gradient for the backward step

* Fix function call ambiguity problem

* Clear destination before adding gradient

* Works OK-ish

* Add more U-tags

* Tweak default mini-batch size

* Define a simpler network when using Microsoft Visual C++ compiler; clean up the DenseNet stuff (leaving it for a later PR)

* Decrease default mini-batch size from 24 to 23

* Define separate dnn filename for MSVC++ and not

* Add documentation for the resize_to_prev layer; move the implementation so that it comes after mult_prev

* Fix previous typo

* Minor formatting changes

* Reverse the ordering of levels

* Increase the learning-rate stopping criterion back to 1e-4 (was 1e-8)

* Use more U-tags even on Windows

* Minor formatting

* Latest MSVC 2017 builds fast, so there's no need to limit the depth any longer

* Tweak default mini-batch size again

* Even though latest MSVC can now build the extra layers, it does not mean we should add them!

* Fix naming
2019-01-06 09:11:39 -05:00
Thomas Peters
fb4c62cc67 remove register keyword from jdhuff for C++17 (#1612)
the register storage specifier was deprecated in C++11 and removed in C++17
2019-01-04 22:38:55 -05:00
Facundo Galán
61a021c932 Add pointwise_divide function (#1586)
* Add pointwise_divide operator

* Add tests for pointwise_divide function

* Replace in affine layer pointwise_multiply for division by its equivalent pointwise_divide.
2018-12-11 07:22:14 -05:00
Davis King
99af7b9d54 Fixed code not compiling. 2018-12-05 21:41:34 -05:00
RedfalconAI
4b2ef5b8f9 Update CmakeLists: add png for arm (#1580) 2018-12-05 21:36:50 -05:00
Miks Miķelsons
e73d3adc0e Add padding argument support for Python compute_face_descriptor methods (#1578) 2018-12-05 07:18:40 -05:00
Nishant Charas
2cf6b9d556 printing error (#1568) 2018-11-25 07:19:28 -05:00
Facundo Galán
165d1e356b Add MKL with TBB support to CMake (#1561)
* Add DLIB_USE_MKL_WITH_TBB opcion to CMake for Windows.

* Add to CMake MKL with TBB support for Linux

* Remove unnecessary tbb includes from CMake.

* Add back white spaces.
2018-11-24 20:38:43 -05:00
Davis King
3e9d361f89 Minor changes to avoid bugs in some compilers. 2018-11-20 15:36:07 -05:00
Facundo Galán
9ff911696c Fix find_blas.cmake bug: find mkl fft on windows. (#1557) 2018-11-19 19:46:13 -05:00
Davis E. King
a85a53ce69
See if this unbreaks appveyor 2018-11-14 07:26:36 -05:00
Facundo Galán
3b9b702c1b Set CMake policy CMP0048 to NEW when available. (#1549) 2018-11-12 18:07:27 -08:00
Davis King
b54b1c4474 merged 2018-11-11 21:23:44 -05:00
Davis King
f2ad208701 When building python extensions in Visual Studio, never link to any system
copies of libpng or libjpeg, instead, use the copies what come with dlib.  We
are doing this because too many Visual Studio users have busted copies of these
libraries on their machines.  This will make things just always work.
2018-11-11 21:22:53 -05:00
Juha Reunanen
d7e6f1d726 Apparently fix #1513 by avoiding the cudaStreamSynchronize call (#1514)
* Problem: see #1513 (https://github.com/davisking/dlib/issues/1513)
Candidate solution: busy-loop until cudaStreamQuery returns cudaSuccess

* Make the suggested fix a Windows-only thing
2018-11-11 07:33:15 -08:00
Lukas-Buricin
d2dcdd66ad Fixed random_forest_regression.h warnings (#1544)
* Fix for "warning C4724: potential mod by 0" in matrix.h

* Fixed random_forest_regression.h warnings
2018-11-11 07:09:30 -08:00
Davis E. King
ba361d73ab
Avoid compiler bug 2018-11-09 09:40:18 -05:00
Matthias Stauber
27a5293611 Added weighted labels to loss_binary_log layer. (#1538)
* Added weighted labels to loss_binary_log

* Added weighted labels to loss_binary_log

* Clarified docs.

* clarified docs
2018-11-04 17:50:56 -05:00
Davis King
08709e8ec1 Add header needed in some contexts 2018-10-25 23:23:53 -04:00
Davis King
6747122ca5 Added --box-images to imglab 2018-10-22 19:14:05 -04:00
Davis King
9b82f4b0f6 Record last changeset and set PATCH version to 99 2018-09-29 09:05:19 -04:00
Davis King
3c3b397f0a Added tag v19.16 for changeset be6f74b9751b 2018-09-29 09:03:21 -04:00
Davis King
e3cf2349f4 Created release v19.16 2018-09-29 09:03:21 -04:00
Davis King
a6ac55ad40 Add error message for users trying to build dlib as a standalone dll in visual studio. 2018-09-29 08:01:42 -04:00
Davis King
fe10f254f5 updated release notes 2018-09-29 08:26:42 -04:00
samuarl
0072afbc72 Python Image and Rectangle Scaling (#1488)
* added scale_image python binding which returns an image resized by the provided scale factor

* added scale_rect for rectangle and drectangle. returns a rectangle scaled by the provided scaling factor

* - do not cast scale_rect coordinates to long for drectangle
- document scale_rect for drectangle and rectangle in _abstract.h
- change python binding scale_image to resize_image
- update documentation for resize_image to describe behaviour
2018-09-29 08:02:45 -04:00
Davis King
8234080bbb merged 2018-09-23 17:06:24 -04:00
Davis King
ebbc9e896d Fixed compiler warnings 2018-09-23 16:55:12 -04:00
Davis King
0ab5b70e9b Work around a bug in cmake with regard to cuda 10 2018-09-23 16:43:31 -04:00
NiklasRosenstein
65a73ea7a4 Fix #1479 -- member_function_pointer_kernel_1.h does not compile with MSVC /vms (#1481)
Add the __virtual_inheritance keyword to dummy struct when compiling with MSVC.
2018-09-13 08:07:30 -04:00
Davis King
782ade07e6 ignore more build folders 2018-09-10 08:30:54 -04:00
Davis King
7b006f3769 Added an option to do bounding box regression to the loss_mmod layer. 2018-09-10 08:26:36 -04:00
Davis King
16c96bc51f updated issue template 2018-09-07 09:40:03 -04:00
Davis King
6f7db63e50 Fixed typo in docs 2018-09-03 08:03:01 -04:00
Davis King
603e5ac212 clarified language. 2018-08-29 22:42:36 -04:00