Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
dlib
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
钟尚武
dlib
Commits
28f91119
Commit
28f91119
authored
Jan 17, 2018
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed simd warning message not working.
parent
15b8b54a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
dlib.cpp
tools/python/src/dlib.cpp
+2
-1
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);
PYBIND11_MODULE
(
dlib
,
m
)
{
warn_about_unavailable_but_used_cpu_instructions
();
// Disable printing of the C++ function signature in the python __doc__ string
// since it is full of huge amounts of template clutter.
py
::
options
options
;
...
...
@@ -41,7 +43,6 @@ PYBIND11_MODULE(dlib, m)
#define DLIB_QUOTE_STRING2(x) #x
m
.
attr
(
"__version__"
)
=
DLIB_QUOTE_STRING
(
DLIB_VERSION
);
warn_about_unavailable_but_used_cpu_instructions
();
bind_matrix
(
m
);
bind_vector
(
m
);
...
...
tools/python/src/numpy_returns.cpp
View file @
28f91119
...
...
@@ -5,7 +5,6 @@
#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
#include <numpy/ndarrayobject.h>
dlib
::
rand
rnd_jitter
;
using
namespace
dlib
;
using
namespace
std
;
...
...
@@ -16,6 +15,7 @@ namespace py = pybind11;
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
))
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