Davis King
0e0675715a
Improved python docs
2018-05-17 07:18:13 -04:00
Davis King
851d70a5b4
A bit of cleanup
2018-05-07 07:24:29 -04:00
Davis King
1a297363c6
Fixed spelling error in message.
2018-05-03 16:35:33 -04:00
Davis King
46052db07c
Turn LTO back on.
2018-04-28 16:44:40 -04:00
Davis King
43e5f42ef5
Added numpy_image templated class that makes a numpy array
...
conform to dlib's generic image interface. This makes dealing with
numpy images in pybind11 modules much nicer.
2018-04-28 08:52:25 -04:00
Davis King
30101dff48
Updated about to talk about new part labeling method.
2018-04-19 22:45:58 -04:00
Davis King
52322e5ae2
Made convert_to_numpy() take an rvalue reference so that it's really explicit
...
that it's going to move the matrix into the result.
2018-04-17 22:58:13 -04:00
visionworkz
e8faced822
Add basic image io and remove python C-API refs from numpy_returns.cpp ( #1258 )
...
* Fixed reference count issue
* Fixed refcount issue in Python dlib.jitter_image and dlib.get_face_chips
* Consolidation of https://github.com/davisking/dlib/pull/1249
* Fixed build issue
* Fixed: Paths in a pytest file should be relative to dlib root
* Skip numpy return tests for Python 2.7 or if Numpy is not installed
* Enabled numpy returns tests on Python 2.7 using cPickle.dumps
2018-04-17 22:49:25 -04:00
visionworkz
509d62351e
Fixed refcount issue in Python dlib.jitter_image and dlib.get_face_chips ( #1246 )
...
* Fixed reference count issue
* Fixed refcount issue in Python dlib.jitter_image and dlib.get_face_chips
2018-04-10 09:29:08 -04:00
Davis King
24ac9bc43f
A bit of cmake cleanup
2018-04-06 17:43:49 -04:00
visionworkz
0db8713a6d
Fixed reference count issue ( #1222 )
2018-03-31 07:38:52 -04:00
Davis King
60a4af67e8
Added more unit tests
2018-03-17 17:10:44 -04:00
Davis King
2cff3f4e00
Added a note about disabling LTO
2018-03-17 17:10:31 -04:00
Davis King
3e781f6f61
Added interface to the global_function_search object.
2018-03-17 17:00:08 -04:00
Davis King
49ec319ce4
Added rect_filter and find_optimal_rect_filter() to python API.
2018-03-03 18:45:16 -05:00
Davis King
1c26be904c
Added operator + support for dlib.rectangle.
2018-03-03 17:21:23 -05:00
Davis King
09f36dbf47
Added python interface to cuda::set_device() and other relevant
...
functions.
2018-02-21 21:51:48 -05:00
Davis King
a37c5e7c2b
Add the example program contents as a test as well.
2018-02-19 13:31:07 -05:00
Morten Hustveit
9691c194c0
Added support for variadic Python functions in find_max_global. ( #1141 )
...
* Added support for variadic Python functions in find_max_global.
* Add test for find_{min,max}_global on variadic functions.
2018-02-19 13:26:45 -05:00
Davis King
87aa290c04
Fixed pybind11 not doing the overload resolution correctly on the cnn_face_detector's operator() in Python.
2018-02-14 22:01:22 -05:00
Davis King
ca1c7af21b
Added missing , in output
2018-02-13 19:09:54 -05:00
HarveyBrezinaConniffe
46e85e45c6
Added set_dnn_prefer_smallest_algorithms() ( #1128 )
...
* Added set_dnn_prefer_smallest_algorithms()
* Added description for set_dnn_prefer_smallest_algorithms();w
* Changed architectures to algorithms.
2018-02-13 16:28:46 -05:00
Davis King
52edc0d2e7
Fixed incorrect input validation.
2018-02-11 22:40:30 -05:00
Davis King
0040eb7fa8
removed debugging print statement.
2018-02-11 22:38:27 -05:00
Davis King
aca8087371
Added num_threads to shape_predictor_training_options.
2018-02-11 18:15:40 -05:00
Davis King
2a26521b0b
- Added rectangless.
...
- Moved all uses of PYBIND11_MAKE_OPAQUE to a common header to avoid possilbe ODR violations.
- Added python binding for make_bounding_box_regression_training_data().
2018-02-11 17:19:04 -05:00
Davis King
5bde5c526e
Made the index outputs of run_multiple_rect_detectors be integers rather than doubles.
2018-02-10 17:12:13 -05:00
Davis King
2d3dd3c830
Exposed the image_dataset_metadata routines for parsing XML datasets to Python.
2018-02-10 12:44:39 -05:00
Davis King
8fd9c26f6e
Made dlib.point() have writable x and y properties.
2018-02-10 12:37:14 -05:00
Davis King
fa39e51864
Added a __time_compiled__ field to the python API.
2018-02-10 10:08:25 -05:00
Davis King
95bce7a10c
Added probability_that_sequence_is_increasing() to python API
2018-02-03 18:18:45 -05:00
Davis King
7481ef1e21
Fixed problems in python doc generation.
2018-02-03 12:13:54 -05:00
Davis King
2885394359
Let pybind11 produce nice documentation.
2018-02-03 09:13:27 -05:00
ksemb
14cbb804a9
Add Python rvm_trainer and init functions ( #1100 )
2018-02-02 06:14:03 -05:00
Davis King
989e72e05a
Added global properties that tell how dlib was compiled.
2018-01-22 07:36:53 -05:00
Davis King
0cfef582ca
Fixed the code ignoring the angle scan, oops.
2018-01-19 18:48:25 -05:00
Davis King
2a2bc9cef1
Different versions of python disagree on what exception gets thrown. So just
...
check for any exception.
2018-01-16 21:26:56 -05:00
Davis King
99b0f687b4
Fixed test to really work if numpy isn't installed.
2018-01-16 21:00:54 -05:00
Davis King
a9ca83d228
Disable these tests if numpy isn't installed
2018-01-16 20:14:37 -05:00
Davis King
28f9111901
Fixed simd warning message not working.
2018-01-16 19:23:08 -05:00
Davis King
9e3b19c859
Added warning about simd instructions
2018-01-16 07:26:46 -05:00
Davis King
635747e654
Cleaned up setup.py and the python cmake script.
2018-01-16 07:24:47 -05:00
Davis King
1e051f1a60
Made test work in python3
2018-01-15 22:29:37 -05:00
Mischan Toosarani-Hausberger
077a3b60e7
Replace boost::python with pybind11 ( #1040 )
...
* Replace boost::python with pybind11
* Replace add_python_module with pybind11_add_module
* Fix clang error on type-dependent expression
2018-01-15 14:41:40 -05:00
Davis King
c68bb4e785
Changed the behavior of imglab's --flip option. It will now attempt to adjust
...
any object part labels so that the flipped dataset has the same average part
layout as the source dataset. I added a --flip-basic that behaves like the old
--flip. However, most people flipping a dataset with part annotations will
want to use --flip.
2018-01-14 09:16:50 -05:00
Davis King
c13ca8ebe7
Just moved code around to clean things up a little.
2018-01-13 14:36:55 -05:00
Davis King
ced9f6f407
Make the global optimizer work in python3
2017-12-19 22:24:31 -05:00
Davis King
d5097f72db
Added python bindings for count_steps_without_decrease() and count_steps_without_decrease_robust()
2017-12-12 21:57:04 -05:00
Davis King
be8269900c
The previous commit broke for pyhton2 but fixed python3. This should deal with
...
numpy's import_array() in a more robust way.
2017-12-09 20:52:07 -05:00
Davis King
7b38ea6f2d
Numpy's import_array() macro in python3 requires the calling function to return
...
void*. But the previous code didn't so it wouldn't compile. Fixed that
problem.
2017-12-09 19:51:20 -05:00