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
64942d92
Commit
64942d92
authored
Sep 20, 2017
by
Davis King
Browse files
Fixed a bug in how the mmod_options automatically determines detection window
sizes. It would pick a bad size in some cases.
parent
3d4bd975
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
dlib/dnn/loss.h
dlib/dnn/loss.h
+2
-2
No files found.
dlib/dnn/loss.h
View file @
64942d92
...
@@ -430,8 +430,8 @@ namespace dlib
...
@@ -430,8 +430,8 @@ namespace dlib
detector_width
=
ratio
*
target_size
;
detector_width
=
ratio
*
target_size
;
if
(
detector_width
<
min_target_size
)
if
(
detector_width
<
min_target_size
)
{
{
detector_height
=
min_target_size
;
detector_height
=
min_target_size
/
ratio
;
detector_width
=
min_target_size
/
ratio
;
detector_width
=
min_target_size
;
}
}
}
}
else
else
...
...
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