Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
ffea927a
Commit
ffea927a
authored
Oct 01, 2019
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #15618 from alalek:dnn_test_async_timeout
parents
ba0b3983
440a937d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
test_dnn.py
modules/dnn/misc/python/test/test_dnn.py
+1
-1
test_darknet_importer.cpp
modules/dnn/test/test_darknet_importer.cpp
+1
-1
test_misc.cpp
modules/dnn/test/test_misc.cpp
+1
-1
No files found.
modules/dnn/misc/python/test/test_dnn.py
View file @
ffea927a
...
@@ -169,7 +169,7 @@ class dnn_test(NewOpenCVTests):
...
@@ -169,7 +169,7 @@ class dnn_test(NewOpenCVTests):
normAssertDetections
(
self
,
ref
,
out
,
0.5
,
scoresDiff
,
iouDiff
)
normAssertDetections
(
self
,
ref
,
out
,
0.5
,
scoresDiff
,
iouDiff
)
def
test_async
(
self
):
def
test_async
(
self
):
timeout
=
500
*
10
**
6
# in nanoseconds (500ms
)
timeout
=
10
*
1000
*
10
**
6
# in nanoseconds (10 sec
)
testdata_required
=
bool
(
os
.
environ
.
get
(
'OPENCV_DNN_TEST_REQUIRE_TESTDATA'
,
False
))
testdata_required
=
bool
(
os
.
environ
.
get
(
'OPENCV_DNN_TEST_REQUIRE_TESTDATA'
,
False
))
proto
=
self
.
find_dnn_file
(
'dnn/layers/layer_convolution.prototxt'
,
required
=
testdata_required
)
proto
=
self
.
find_dnn_file
(
'dnn/layers/layer_convolution.prototxt'
,
required
=
testdata_required
)
model
=
self
.
find_dnn_file
(
'dnn/layers/layer_convolution.caffemodel'
,
required
=
testdata_required
)
model
=
self
.
find_dnn_file
(
'dnn/layers/layer_convolution.caffemodel'
,
required
=
testdata_required
)
...
...
modules/dnn/test/test_darknet_importer.cpp
View file @
ffea927a
...
@@ -329,7 +329,7 @@ TEST_P(Test_Darknet_nets, TinyYoloVoc)
...
@@ -329,7 +329,7 @@ TEST_P(Test_Darknet_nets, TinyYoloVoc)
}
}
#ifdef HAVE_INF_ENGINE
#ifdef HAVE_INF_ENGINE
static
const
std
::
chrono
::
milliseconds
async_timeout
(
5
00
);
static
const
std
::
chrono
::
milliseconds
async_timeout
(
100
00
);
typedef
testing
::
TestWithParam
<
tuple
<
std
::
string
,
Target
>
>
Test_Darknet_nets_async
;
typedef
testing
::
TestWithParam
<
tuple
<
std
::
string
,
Target
>
>
Test_Darknet_nets_async
;
TEST_P
(
Test_Darknet_nets_async
,
Accuracy
)
TEST_P
(
Test_Darknet_nets_async
,
Accuracy
)
...
...
modules/dnn/test/test_misc.cpp
View file @
ffea927a
...
@@ -361,7 +361,7 @@ TEST(Net, forwardAndRetrieve)
...
@@ -361,7 +361,7 @@ TEST(Net, forwardAndRetrieve)
}
}
#ifdef HAVE_INF_ENGINE
#ifdef HAVE_INF_ENGINE
static
const
std
::
chrono
::
milliseconds
async_timeout
(
5
00
);
static
const
std
::
chrono
::
milliseconds
async_timeout
(
100
00
);
// This test runs network in synchronous mode for different inputs and then
// This test runs network in synchronous mode for different inputs and then
// runs the same model asynchronously for the same inputs.
// runs the same model asynchronously for the same inputs.
...
...
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