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
8bfd2279
"git@developer.sourcefind.cn:OpenDAS/ollama.git" did not exist on "54dbfa4c4a2c52dc0c2361e65090a0ede3339a63"
Commit
8bfd2279
authored
Sep 16, 2017
by
Davis King
Browse files
Changed to slightly better default recommendations for parameters.
parent
de32c75c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
examples/dnn_mmod_train_find_cars_ex.cpp
examples/dnn_mmod_train_find_cars_ex.cpp
+3
-3
No files found.
examples/dnn_mmod_train_find_cars_ex.cpp
View file @
8bfd2279
...
@@ -161,13 +161,13 @@ int main(int argc, char** argv) try
...
@@ -161,13 +161,13 @@ int main(int argc, char** argv) try
int
num_overlapped_ignored_test
=
0
;
int
num_overlapped_ignored_test
=
0
;
for
(
auto
&
v
:
boxes_test
)
for
(
auto
&
v
:
boxes_test
)
num_overlapped_ignored_test
+=
ignore_overlapped_boxes
(
v
,
test_box_overlap
(
0.50
,
0.9
9
));
num_overlapped_ignored_test
+=
ignore_overlapped_boxes
(
v
,
test_box_overlap
(
0.50
,
0.9
5
));
int
num_overlapped_ignored
=
0
;
int
num_overlapped_ignored
=
0
;
int
num_additional_ignored
=
0
;
int
num_additional_ignored
=
0
;
for
(
auto
&
v
:
boxes_train
)
for
(
auto
&
v
:
boxes_train
)
{
{
num_overlapped_ignored
+=
ignore_overlapped_boxes
(
v
,
test_box_overlap
(
0.50
,
0.9
9
));
num_overlapped_ignored
+=
ignore_overlapped_boxes
(
v
,
test_box_overlap
(
0.50
,
0.9
5
));
for
(
auto
&
bb
:
v
)
for
(
auto
&
bb
:
v
)
{
{
if
(
bb
.
rect
.
width
()
<
35
&&
bb
.
rect
.
height
()
<
35
)
if
(
bb
.
rect
.
width
()
<
35
&&
bb
.
rect
.
height
()
<
35
)
...
@@ -308,7 +308,7 @@ int main(int argc, char** argv) try
...
@@ -308,7 +308,7 @@ int main(int argc, char** argv) try
std
::
vector
<
matrix
<
rgb_pixel
>>
mini_batch_samples
;
std
::
vector
<
matrix
<
rgb_pixel
>>
mini_batch_samples
;
std
::
vector
<
std
::
vector
<
mmod_rect
>>
mini_batch_labels
;
std
::
vector
<
std
::
vector
<
mmod_rect
>>
mini_batch_labels
;
random_cropper
cropper
;
random_cropper
cropper
;
cropper
.
set_seed
(
1
);
cropper
.
set_seed
(
time
(
0
)
);
cropper
.
set_chip_dims
(
350
,
350
);
cropper
.
set_chip_dims
(
350
,
350
);
cropper
.
set_min_object_size
(
0.20
);
cropper
.
set_min_object_size
(
0.20
);
cropper
.
set_max_rotation_degrees
(
2
);
cropper
.
set_max_rotation_degrees
(
2
);
...
...
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