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
4d3cef36
Commit
4d3cef36
authored
Sep 17, 2011
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor changes to avoid compiler warnings
parent
f56b8a10
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
scan_image_pyramid.h
dlib/image_processing/scan_image_pyramid.h
+1
-1
cross_validate_object_detection_trainer.h
dlib/svm/cross_validate_object_detection_trainer.h
+2
-2
No files found.
dlib/image_processing/scan_image_pyramid.h
View file @
4d3cef36
...
@@ -199,7 +199,7 @@ namespace dlib
...
@@ -199,7 +199,7 @@ namespace dlib
const
image_type
&
img
const
image_type
&
img
)
)
{
{
int
levels
=
0
;
unsigned
long
levels
=
0
;
rectangle
rect
=
get_rect
(
img
);
rectangle
rect
=
get_rect
(
img
);
// figure out how many pyramid levels we should be using based on the image size
// figure out how many pyramid levels we should be using based on the image size
...
...
dlib/svm/cross_validate_object_detection_trainer.h
View file @
4d3cef36
...
@@ -171,7 +171,7 @@ namespace dlib
...
@@ -171,7 +171,7 @@ namespace dlib
// make sure requires clause is not broken
// make sure requires clause is not broken
DLIB_ASSERT
(
is_learning_problem
(
images
,
truth_rects
)
==
true
&&
DLIB_ASSERT
(
is_learning_problem
(
images
,
truth_rects
)
==
true
&&
0
<
overlap_eps
&&
overlap_eps
<=
1
&&
0
<
overlap_eps
&&
overlap_eps
<=
1
&&
1
<
folds
&&
folds
<=
images
.
size
(
),
1
<
folds
&&
folds
<=
static_cast
<
long
>
(
images
.
size
()
),
"
\t
matrix cross_validate_object_detection_trainer()"
"
\t
matrix cross_validate_object_detection_trainer()"
<<
"
\n\t
invalid inputs were given to this function"
<<
"
\n\t
invalid inputs were given to this function"
<<
"
\n\t
is_learning_problem(images,truth_rects): "
<<
is_learning_problem
(
images
,
truth_rects
)
<<
"
\n\t
is_learning_problem(images,truth_rects): "
<<
is_learning_problem
(
images
,
truth_rects
)
...
@@ -191,7 +191,7 @@ namespace dlib
...
@@ -191,7 +191,7 @@ namespace dlib
std
::
vector
<
unsigned
long
>
train_idx_set
;
std
::
vector
<
unsigned
long
>
train_idx_set
;
std
::
vector
<
unsigned
long
>
test_idx_set
;
std
::
vector
<
unsigned
long
>
test_idx_set
;
for
(
unsigned
long
i
=
0
;
i
<
test_size
;
++
i
)
for
(
long
i
=
0
;
i
<
test_size
;
++
i
)
test_idx_set
.
push_back
(
test_idx
++
);
test_idx_set
.
push_back
(
test_idx
++
);
unsigned
long
train_idx
=
test_idx
%
images
.
size
();
unsigned
long
train_idx
=
test_idx
%
images
.
size
();
...
...
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