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
d780f8bc
Commit
d780f8bc
authored
Jul 01, 2017
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
suppress compiler warnings
parent
f3148098
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
6 deletions
+5
-6
layers.h
dlib/dnn/layers.h
+2
-2
loss.h
dlib/dnn/loss.h
+3
-4
No files found.
dlib/dnn/layers.h
View file @
d780f8bc
...
...
@@ -55,9 +55,9 @@ namespace dlib
weight_decay_multiplier
(
1
),
bias_learning_rate_multiplier
(
1
),
bias_weight_decay_multiplier
(
0
),
num_filters_
(
o
.
num_outputs
),
padding_y_
(
_padding_y
),
padding_x_
(
_padding_x
),
num_filters_
(
o
.
num_outputs
)
padding_x_
(
_padding_x
)
{
DLIB_CASSERT
(
num_filters_
>
0
);
}
...
...
dlib/dnn/loss.h
View file @
d780f8bc
...
...
@@ -647,7 +647,7 @@ namespace dlib
)
const
{
const
tensor
&
output_tensor
=
sub
.
get_output
();
DLIB_CASSERT
(
output_tensor
.
k
()
==
options
.
detector_windows
.
size
());
DLIB_CASSERT
(
output_tensor
.
k
()
==
(
long
)
options
.
detector_windows
.
size
());
DLIB_CASSERT
(
input_tensor
.
num_samples
()
==
output_tensor
.
num_samples
());
DLIB_CASSERT
(
sub
.
sample_expansion_factor
()
==
1
,
sub
.
sample_expansion_factor
());
...
...
@@ -688,7 +688,7 @@ namespace dlib
DLIB_CASSERT
(
sub
.
sample_expansion_factor
()
==
1
);
DLIB_CASSERT
(
input_tensor
.
num_samples
()
==
grad
.
num_samples
());
DLIB_CASSERT
(
input_tensor
.
num_samples
()
==
output_tensor
.
num_samples
());
DLIB_CASSERT
(
output_tensor
.
k
()
==
options
.
detector_windows
.
size
());
DLIB_CASSERT
(
output_tensor
.
k
()
==
(
long
)
options
.
detector_windows
.
size
());
...
...
@@ -877,7 +877,7 @@ namespace dlib
)
const
{
DLIB_CASSERT
(
net
.
sample_expansion_factor
()
==
1
,
net
.
sample_expansion_factor
());
DLIB_CASSERT
(
output_tensor
.
k
()
==
options
.
detector_windows
.
size
());
DLIB_CASSERT
(
output_tensor
.
k
()
==
(
long
)
options
.
detector_windows
.
size
());
const
float
*
out_data
=
output_tensor
.
host
()
+
output_tensor
.
k
()
*
output_tensor
.
nr
()
*
output_tensor
.
nc
()
*
i
;
// scan the final layer and output the positive scoring locations
dets_accum
.
clear
();
...
...
@@ -910,7 +910,6 @@ namespace dlib
// Figure out which detection window in options.detector_windows has the most
// similar aspect ratio to rect.
const
double
aspect_ratio
=
rect
.
width
()
/
(
double
)
rect
.
height
();
size_t
best_i
=
0
;
double
best_ratio_diff
=
-
std
::
numeric_limits
<
double
>::
infinity
();
for
(
size_t
i
=
0
;
i
<
options
.
detector_windows
.
size
();
++
i
)
...
...
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