Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
28f91119
Commit
28f91119
authored
Jan 16, 2018
by
Davis King
Browse files
Fixed simd warning message not working.
parent
15b8b54a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
tools/python/src/dlib.cpp
tools/python/src/dlib.cpp
+2
-1
tools/python/src/numpy_returns.cpp
tools/python/src/numpy_returns.cpp
+1
-1
No files found.
tools/python/src/dlib.cpp
View file @
28f91119
...
@@ -32,6 +32,8 @@ void bind_gui(py::module& m);
...
@@ -32,6 +32,8 @@ void bind_gui(py::module& m);
PYBIND11_MODULE
(
dlib
,
m
)
PYBIND11_MODULE
(
dlib
,
m
)
{
{
warn_about_unavailable_but_used_cpu_instructions
();
// Disable printing of the C++ function signature in the python __doc__ string
// Disable printing of the C++ function signature in the python __doc__ string
// since it is full of huge amounts of template clutter.
// since it is full of huge amounts of template clutter.
py
::
options
options
;
py
::
options
options
;
...
@@ -41,7 +43,6 @@ PYBIND11_MODULE(dlib, m)
...
@@ -41,7 +43,6 @@ PYBIND11_MODULE(dlib, m)
#define DLIB_QUOTE_STRING2(x) #x
#define DLIB_QUOTE_STRING2(x) #x
m
.
attr
(
"__version__"
)
=
DLIB_QUOTE_STRING
(
DLIB_VERSION
);
m
.
attr
(
"__version__"
)
=
DLIB_QUOTE_STRING
(
DLIB_VERSION
);
warn_about_unavailable_but_used_cpu_instructions
();
bind_matrix
(
m
);
bind_matrix
(
m
);
bind_vector
(
m
);
bind_vector
(
m
);
...
...
tools/python/src/numpy_returns.cpp
View file @
28f91119
...
@@ -5,7 +5,6 @@
...
@@ -5,7 +5,6 @@
#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
#include <numpy/ndarrayobject.h>
#include <numpy/ndarrayobject.h>
dlib
::
rand
rnd_jitter
;
using
namespace
dlib
;
using
namespace
dlib
;
using
namespace
std
;
using
namespace
std
;
...
@@ -16,6 +15,7 @@ namespace py = pybind11;
...
@@ -16,6 +15,7 @@ namespace py = pybind11;
py
::
list
get_jitter_images
(
py
::
object
img
,
size_t
num_jitters
=
1
,
bool
disturb_colors
=
false
)
py
::
list
get_jitter_images
(
py
::
object
img
,
size_t
num_jitters
=
1
,
bool
disturb_colors
=
false
)
{
{
static
dlib
::
rand
rnd_jitter
;
if
(
!
is_rgb_python_image
(
img
))
if
(
!
is_rgb_python_image
(
img
))
throw
dlib
::
error
(
"Unsupported image type, must be RGB image."
);
throw
dlib
::
error
(
"Unsupported image type, must be RGB image."
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment