Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenCV
opencv
提交
2b87e78e
O
opencv
项目概览
OpenCV
/
opencv
上一次同步 9 个月
通知
992
Star
71100
Fork
55581
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
opencv
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
2b87e78e
编写于
8月 18, 2023
作者:
A
Alexander Alekhin
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #24157 from dkurt:gapi_ov_optional
上级
6b3b8c59
ad7ecf1d
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
76 addition
and
76 deletion
+76
-76
modules/gapi/misc/python/test/test_gapi_infer.py
modules/gapi/misc/python/test/test_gapi_infer.py
+12
-12
modules/gapi/misc/python/test/test_gapi_infer_ov.py
modules/gapi/misc/python/test/test_gapi_infer_ov.py
+8
-8
modules/gapi/test/infer/gapi_infer_ie_test.cpp
modules/gapi/test/infer/gapi_infer_ie_test.cpp
+54
-54
modules/gapi/test/infer/gapi_infer_ov_tests.cpp
modules/gapi/test/infer/gapi_infer_ov_tests.cpp
+2
-2
未找到文件。
modules/gapi/misc/python/test/test_gapi_infer.py
浏览文件 @
2b87e78e
...
...
@@ -38,8 +38,8 @@ try:
return
root_path
=
'/omz_intel_models/intel/age-gender-recognition-retail-0013/FP32/age-gender-recognition-retail-0013'
model_path
=
self
.
find_file
(
root_path
+
'.xml'
,
[
os
.
environ
.
get
(
'OPENCV_DNN_TEST_DATA_PATH'
)])
weights_path
=
self
.
find_file
(
root_path
+
'.bin'
,
[
os
.
environ
.
get
(
'OPENCV_DNN_TEST_DATA_PATH'
)])
model_path
=
self
.
find_file
(
root_path
+
'.xml'
,
[
os
.
environ
.
get
(
'OPENCV_DNN_TEST_DATA_PATH'
)]
,
required
=
False
)
weights_path
=
self
.
find_file
(
root_path
+
'.bin'
,
[
os
.
environ
.
get
(
'OPENCV_DNN_TEST_DATA_PATH'
)]
,
required
=
False
)
device_id
=
'CPU'
img_path
=
self
.
find_file
(
'cv/face/david2.jpg'
,
[
os
.
environ
.
get
(
'OPENCV_TEST_DATA_PATH'
)])
...
...
@@ -73,8 +73,8 @@ try:
return
root_path
=
'/omz_intel_models/intel/age-gender-recognition-retail-0013/FP32/age-gender-recognition-retail-0013'
model_path
=
self
.
find_file
(
root_path
+
'.xml'
,
[
os
.
environ
.
get
(
'OPENCV_DNN_TEST_DATA_PATH'
)])
weights_path
=
self
.
find_file
(
root_path
+
'.bin'
,
[
os
.
environ
.
get
(
'OPENCV_DNN_TEST_DATA_PATH'
)])
model_path
=
self
.
find_file
(
root_path
+
'.xml'
,
[
os
.
environ
.
get
(
'OPENCV_DNN_TEST_DATA_PATH'
)]
,
required
=
False
)
weights_path
=
self
.
find_file
(
root_path
+
'.bin'
,
[
os
.
environ
.
get
(
'OPENCV_DNN_TEST_DATA_PATH'
)]
,
required
=
False
)
device_id
=
'CPU'
img_path
=
self
.
find_file
(
'cv/face/david2.jpg'
,
[
os
.
environ
.
get
(
'OPENCV_TEST_DATA_PATH'
)])
...
...
@@ -112,8 +112,8 @@ try:
return
root_path
=
'/omz_intel_models/intel/age-gender-recognition-retail-0013/FP32/age-gender-recognition-retail-0013'
model_path
=
self
.
find_file
(
root_path
+
'.xml'
,
[
os
.
environ
.
get
(
'OPENCV_DNN_TEST_DATA_PATH'
)])
weights_path
=
self
.
find_file
(
root_path
+
'.bin'
,
[
os
.
environ
.
get
(
'OPENCV_DNN_TEST_DATA_PATH'
)])
model_path
=
self
.
find_file
(
root_path
+
'.xml'
,
[
os
.
environ
.
get
(
'OPENCV_DNN_TEST_DATA_PATH'
)]
,
required
=
False
)
weights_path
=
self
.
find_file
(
root_path
+
'.bin'
,
[
os
.
environ
.
get
(
'OPENCV_DNN_TEST_DATA_PATH'
)]
,
required
=
False
)
device_id
=
'CPU'
rois
=
[(
10
,
15
,
62
,
62
),
(
23
,
50
,
62
,
62
),
(
14
,
100
,
62
,
62
),
(
80
,
50
,
62
,
62
)]
...
...
@@ -161,8 +161,8 @@ try:
return
root_path
=
'/omz_intel_models/intel/age-gender-recognition-retail-0013/FP32/age-gender-recognition-retail-0013'
model_path
=
self
.
find_file
(
root_path
+
'.xml'
,
[
os
.
environ
.
get
(
'OPENCV_DNN_TEST_DATA_PATH'
)])
weights_path
=
self
.
find_file
(
root_path
+
'.bin'
,
[
os
.
environ
.
get
(
'OPENCV_DNN_TEST_DATA_PATH'
)])
model_path
=
self
.
find_file
(
root_path
+
'.xml'
,
[
os
.
environ
.
get
(
'OPENCV_DNN_TEST_DATA_PATH'
)]
,
required
=
False
)
weights_path
=
self
.
find_file
(
root_path
+
'.bin'
,
[
os
.
environ
.
get
(
'OPENCV_DNN_TEST_DATA_PATH'
)]
,
required
=
False
)
device_id
=
'CPU'
rois
=
[(
10
,
15
,
62
,
62
),
(
23
,
50
,
62
,
62
),
(
14
,
100
,
62
,
62
),
(
80
,
50
,
62
,
62
)]
...
...
@@ -211,8 +211,8 @@ try:
return
root_path
=
'/omz_intel_models/intel/person-detection-retail-0013/FP32/person-detection-retail-0013'
model_path
=
self
.
find_file
(
root_path
+
'.xml'
,
[
os
.
environ
.
get
(
'OPENCV_DNN_TEST_DATA_PATH'
)])
weights_path
=
self
.
find_file
(
root_path
+
'.bin'
,
[
os
.
environ
.
get
(
'OPENCV_DNN_TEST_DATA_PATH'
)])
model_path
=
self
.
find_file
(
root_path
+
'.xml'
,
[
os
.
environ
.
get
(
'OPENCV_DNN_TEST_DATA_PATH'
)]
,
required
=
False
)
weights_path
=
self
.
find_file
(
root_path
+
'.bin'
,
[
os
.
environ
.
get
(
'OPENCV_DNN_TEST_DATA_PATH'
)]
,
required
=
False
)
img_path
=
self
.
find_file
(
'gpu/lbpcascade/er.png'
,
[
os
.
environ
.
get
(
'OPENCV_TEST_DATA_PATH'
)])
device_id
=
'CPU'
img
=
cv
.
resize
(
cv
.
imread
(
img_path
),
(
544
,
320
))
...
...
@@ -270,8 +270,8 @@ try:
return
root_path
=
'/omz_intel_models/intel/person-detection-retail-0013/FP32/person-detection-retail-0013'
model_path
=
self
.
find_file
(
root_path
+
'.xml'
,
[
os
.
environ
.
get
(
'OPENCV_DNN_TEST_DATA_PATH'
)])
weights_path
=
self
.
find_file
(
root_path
+
'.bin'
,
[
os
.
environ
.
get
(
'OPENCV_DNN_TEST_DATA_PATH'
)])
model_path
=
self
.
find_file
(
root_path
+
'.xml'
,
[
os
.
environ
.
get
(
'OPENCV_DNN_TEST_DATA_PATH'
)]
,
required
=
False
)
weights_path
=
self
.
find_file
(
root_path
+
'.bin'
,
[
os
.
environ
.
get
(
'OPENCV_DNN_TEST_DATA_PATH'
)]
,
required
=
False
)
img_path
=
self
.
find_file
(
'gpu/lbpcascade/er.png'
,
[
os
.
environ
.
get
(
'OPENCV_TEST_DATA_PATH'
)])
device_id
=
'CPU'
img
=
cv
.
resize
(
cv
.
imread
(
img_path
),
(
544
,
320
))
...
...
modules/gapi/misc/python/test/test_gapi_infer_ov.py
浏览文件 @
2b87e78e
...
...
@@ -86,8 +86,8 @@ try:
skip_if_openvino_not_available
()
root_path
=
'/omz_intel_models/intel/age-gender-recognition-retail-0013/FP32/age-gender-recognition-retail-0013'
model_path
=
self
.
find_file
(
root_path
+
'.xml'
,
[
os
.
environ
.
get
(
'OPENCV_DNN_TEST_DATA_PATH'
)])
bin_path
=
self
.
find_file
(
root_path
+
'.bin'
,
[
os
.
environ
.
get
(
'OPENCV_DNN_TEST_DATA_PATH'
)])
model_path
=
self
.
find_file
(
root_path
+
'.xml'
,
[
os
.
environ
.
get
(
'OPENCV_DNN_TEST_DATA_PATH'
)]
,
required
=
False
)
bin_path
=
self
.
find_file
(
root_path
+
'.bin'
,
[
os
.
environ
.
get
(
'OPENCV_DNN_TEST_DATA_PATH'
)]
,
required
=
False
)
device_id
=
'CPU'
img_path
=
self
.
find_file
(
'cv/face/david2.jpg'
,
[
os
.
environ
.
get
(
'OPENCV_TEST_DATA_PATH'
)])
...
...
@@ -119,8 +119,8 @@ try:
skip_if_openvino_not_available
()
root_path
=
'/omz_intel_models/intel/age-gender-recognition-retail-0013/FP32/age-gender-recognition-retail-0013'
model_path
=
self
.
find_file
(
root_path
+
'.xml'
,
[
os
.
environ
.
get
(
'OPENCV_DNN_TEST_DATA_PATH'
)])
bin_path
=
self
.
find_file
(
root_path
+
'.bin'
,
[
os
.
environ
.
get
(
'OPENCV_DNN_TEST_DATA_PATH'
)])
model_path
=
self
.
find_file
(
root_path
+
'.xml'
,
[
os
.
environ
.
get
(
'OPENCV_DNN_TEST_DATA_PATH'
)]
,
required
=
False
)
bin_path
=
self
.
find_file
(
root_path
+
'.bin'
,
[
os
.
environ
.
get
(
'OPENCV_DNN_TEST_DATA_PATH'
)]
,
required
=
False
)
device_id
=
'CPU'
img_path
=
self
.
find_file
(
'cv/face/david2.jpg'
,
[
os
.
environ
.
get
(
'OPENCV_TEST_DATA_PATH'
)])
...
...
@@ -148,8 +148,8 @@ try:
skip_if_openvino_not_available
()
root_path
=
'/omz_intel_models/intel/age-gender-recognition-retail-0013/FP32/age-gender-recognition-retail-0013'
model_path
=
self
.
find_file
(
root_path
+
'.xml'
,
[
os
.
environ
.
get
(
'OPENCV_DNN_TEST_DATA_PATH'
)])
bin_path
=
self
.
find_file
(
root_path
+
'.bin'
,
[
os
.
environ
.
get
(
'OPENCV_DNN_TEST_DATA_PATH'
)])
model_path
=
self
.
find_file
(
root_path
+
'.xml'
,
[
os
.
environ
.
get
(
'OPENCV_DNN_TEST_DATA_PATH'
)]
,
required
=
False
)
bin_path
=
self
.
find_file
(
root_path
+
'.bin'
,
[
os
.
environ
.
get
(
'OPENCV_DNN_TEST_DATA_PATH'
)]
,
required
=
False
)
device_id
=
'CPU'
img_path1
=
self
.
find_file
(
'cv/face/david1.jpg'
,
[
os
.
environ
.
get
(
'OPENCV_TEST_DATA_PATH'
)])
...
...
@@ -190,8 +190,8 @@ try:
skip_if_openvino_not_available
()
root_path
=
'/omz_intel_models/intel/age-gender-recognition-retail-0013/FP32/age-gender-recognition-retail-0013'
model_path
=
self
.
find_file
(
root_path
+
'.xml'
,
[
os
.
environ
.
get
(
'OPENCV_DNN_TEST_DATA_PATH'
)])
bin_path
=
self
.
find_file
(
root_path
+
'.bin'
,
[
os
.
environ
.
get
(
'OPENCV_DNN_TEST_DATA_PATH'
)])
model_path
=
self
.
find_file
(
root_path
+
'.xml'
,
[
os
.
environ
.
get
(
'OPENCV_DNN_TEST_DATA_PATH'
)]
,
required
=
False
)
bin_path
=
self
.
find_file
(
root_path
+
'.bin'
,
[
os
.
environ
.
get
(
'OPENCV_DNN_TEST_DATA_PATH'
)]
,
required
=
False
)
device_id
=
'CPU'
img_path
=
self
.
find_file
(
'cv/face/david2.jpg'
,
[
os
.
environ
.
get
(
'OPENCV_TEST_DATA_PATH'
)])
...
...
modules/gapi/test/infer/gapi_infer_ie_test.cpp
浏览文件 @
2b87e78e
...
...
@@ -187,8 +187,8 @@ std::string compileAgeGenderBlob(const std::string& device) {
cv
::
gapi
::
ie
::
detail
::
ParamDesc
params
;
const
std
::
string
model_name
=
"age-gender-recognition-retail-0013"
;
const
std
::
string
output
=
model_name
+
".blob"
;
params
.
model_path
=
findDataFile
(
SUBDIR
+
model_name
+
".xml"
);
params
.
weights_path
=
findDataFile
(
SUBDIR
+
model_name
+
".bin"
);
params
.
model_path
=
findDataFile
(
SUBDIR
+
model_name
+
".xml"
,
false
);
params
.
weights_path
=
findDataFile
(
SUBDIR
+
model_name
+
".bin"
,
false
);
params
.
device_id
=
device
;
compileBlob
(
params
,
output
,
IE
::
Precision
::
U8
);
return
output
;
...
...
@@ -205,8 +205,8 @@ TEST(TestAgeGenderIE, InferBasicTensor)
initDLDTDataPath
();
cv
::
gapi
::
ie
::
detail
::
ParamDesc
params
;
params
.
model_path
=
findDataFile
(
SUBDIR
+
"age-gender-recognition-retail-0013.xml"
);
params
.
weights_path
=
findDataFile
(
SUBDIR
+
"age-gender-recognition-retail-0013.bin"
);
params
.
model_path
=
findDataFile
(
SUBDIR
+
"age-gender-recognition-retail-0013.xml"
,
false
);
params
.
weights_path
=
findDataFile
(
SUBDIR
+
"age-gender-recognition-retail-0013.bin"
,
false
);
params
.
device_id
=
"CPU"
;
// Load IE network, initialize input data using that.
...
...
@@ -256,8 +256,8 @@ TEST(TestAgeGenderIE, InferBasicImage)
initDLDTDataPath
();
cv
::
gapi
::
ie
::
detail
::
ParamDesc
params
;
params
.
model_path
=
findDataFile
(
SUBDIR
+
"age-gender-recognition-retail-0013.xml"
);
params
.
weights_path
=
findDataFile
(
SUBDIR
+
"age-gender-recognition-retail-0013.bin"
);
params
.
model_path
=
findDataFile
(
SUBDIR
+
"age-gender-recognition-retail-0013.xml"
,
false
);
params
.
weights_path
=
findDataFile
(
SUBDIR
+
"age-gender-recognition-retail-0013.bin"
,
false
);
params
.
device_id
=
"CPU"
;
// FIXME: Ideally it should be an image from disk
...
...
@@ -334,8 +334,8 @@ struct InferWithReshape: public ::testing::Test {
reshape_dims
=
{
1
,
3
,
70
,
70
};
initDLDTDataPath
();
params
.
model_path
=
findDataFile
(
SUBDIR
+
"age-gender-recognition-retail-0013.xml"
);
params
.
weights_path
=
findDataFile
(
SUBDIR
+
"age-gender-recognition-retail-0013.bin"
);
params
.
model_path
=
findDataFile
(
SUBDIR
+
"age-gender-recognition-retail-0013.xml"
,
false
);
params
.
weights_path
=
findDataFile
(
SUBDIR
+
"age-gender-recognition-retail-0013.bin"
,
false
);
params
.
device_id
=
"CPU"
;
...
...
@@ -432,8 +432,8 @@ struct ROIList: public ::testing::Test {
void
SetUp
()
{
initDLDTDataPath
();
params
.
model_path
=
findDataFile
(
SUBDIR
+
"age-gender-recognition-retail-0013.xml"
);
params
.
weights_path
=
findDataFile
(
SUBDIR
+
"age-gender-recognition-retail-0013.bin"
);
params
.
model_path
=
findDataFile
(
SUBDIR
+
"age-gender-recognition-retail-0013.xml"
,
false
);
params
.
weights_path
=
findDataFile
(
SUBDIR
+
"age-gender-recognition-retail-0013.bin"
,
false
);
params
.
device_id
=
"CPU"
;
// FIXME: it must be cv::imread(findDataFile("../dnn/grace_hopper_227.png", false));
...
...
@@ -505,8 +505,8 @@ struct ROIListNV12: public ::testing::Test {
void
SetUp
()
{
initDLDTDataPath
();
params
.
model_path
=
findDataFile
(
SUBDIR
+
"age-gender-recognition-retail-0013.xml"
);
params
.
weights_path
=
findDataFile
(
SUBDIR
+
"age-gender-recognition-retail-0013.bin"
);
params
.
model_path
=
findDataFile
(
SUBDIR
+
"age-gender-recognition-retail-0013.xml"
,
false
);
params
.
weights_path
=
findDataFile
(
SUBDIR
+
"age-gender-recognition-retail-0013.bin"
,
false
);
params
.
device_id
=
"CPU"
;
cv
::
Size
sz
{
320
,
240
};
...
...
@@ -585,8 +585,8 @@ struct SingleROI: public ::testing::Test {
void
SetUp
()
{
initDLDTDataPath
();
params
.
model_path
=
findDataFile
(
SUBDIR
+
"age-gender-recognition-retail-0013.xml"
);
params
.
weights_path
=
findDataFile
(
SUBDIR
+
"age-gender-recognition-retail-0013.bin"
);
params
.
model_path
=
findDataFile
(
SUBDIR
+
"age-gender-recognition-retail-0013.xml"
,
false
);
params
.
weights_path
=
findDataFile
(
SUBDIR
+
"age-gender-recognition-retail-0013.bin"
,
false
);
params
.
device_id
=
"CPU"
;
// FIXME: it must be cv::imread(findDataFile("../dnn/grace_hopper_227.png", false));
...
...
@@ -644,8 +644,8 @@ struct SingleROINV12: public ::testing::Test {
void
SetUp
()
{
initDLDTDataPath
();
params
.
model_path
=
findDataFile
(
SUBDIR
+
"age-gender-recognition-retail-0013.xml"
);
params
.
weights_path
=
findDataFile
(
SUBDIR
+
"age-gender-recognition-retail-0013.bin"
);
params
.
model_path
=
findDataFile
(
SUBDIR
+
"age-gender-recognition-retail-0013.xml"
,
false
);
params
.
weights_path
=
findDataFile
(
SUBDIR
+
"age-gender-recognition-retail-0013.bin"
,
false
);
params
.
device_id
=
"CPU"
;
cv
::
Size
sz
{
320
,
240
};
...
...
@@ -809,8 +809,8 @@ TEST(TestAgeGenderIE, GenericInfer)
initDLDTDataPath
();
cv
::
gapi
::
ie
::
detail
::
ParamDesc
params
;
params
.
model_path
=
findDataFile
(
SUBDIR
+
"age-gender-recognition-retail-0013.xml"
);
params
.
weights_path
=
findDataFile
(
SUBDIR
+
"age-gender-recognition-retail-0013.bin"
);
params
.
model_path
=
findDataFile
(
SUBDIR
+
"age-gender-recognition-retail-0013.xml"
,
false
);
params
.
weights_path
=
findDataFile
(
SUBDIR
+
"age-gender-recognition-retail-0013.bin"
,
false
);
params
.
device_id
=
"CPU"
;
cv
::
Mat
in_mat
(
cv
::
Size
(
320
,
240
),
CV_8UC3
);
...
...
@@ -859,8 +859,8 @@ TEST(TestAgeGenderIE, InvalidConfigGeneric)
{
initDLDTDataPath
();
std
::
string
model_path
=
findDataFile
(
SUBDIR
+
"age-gender-recognition-retail-0013.xml"
);
std
::
string
weights_path
=
findDataFile
(
SUBDIR
+
"age-gender-recognition-retail-0013.bin"
);
std
::
string
model_path
=
findDataFile
(
SUBDIR
+
"age-gender-recognition-retail-0013.xml"
,
false
);
std
::
string
weights_path
=
findDataFile
(
SUBDIR
+
"age-gender-recognition-retail-0013.bin"
,
false
);
std
::
string
device_id
=
"CPU"
;
// Configure & run G-API
...
...
@@ -885,8 +885,8 @@ TEST(TestAgeGenderIE, CPUConfigGeneric)
{
initDLDTDataPath
();
std
::
string
model_path
=
findDataFile
(
SUBDIR
+
"age-gender-recognition-retail-0013.xml"
);
std
::
string
weights_path
=
findDataFile
(
SUBDIR
+
"age-gender-recognition-retail-0013.bin"
);
std
::
string
model_path
=
findDataFile
(
SUBDIR
+
"age-gender-recognition-retail-0013.xml"
,
false
);
std
::
string
weights_path
=
findDataFile
(
SUBDIR
+
"age-gender-recognition-retail-0013.bin"
,
false
);
std
::
string
device_id
=
"CPU"
;
// Configure & run G-API
...
...
@@ -912,8 +912,8 @@ TEST(TestAgeGenderIE, InvalidConfig)
{
initDLDTDataPath
();
std
::
string
model_path
=
findDataFile
(
SUBDIR
+
"age-gender-recognition-retail-0013.xml"
);
std
::
string
weights_path
=
findDataFile
(
SUBDIR
+
"age-gender-recognition-retail-0013.bin"
);
std
::
string
model_path
=
findDataFile
(
SUBDIR
+
"age-gender-recognition-retail-0013.xml"
,
false
);
std
::
string
weights_path
=
findDataFile
(
SUBDIR
+
"age-gender-recognition-retail-0013.bin"
,
false
);
std
::
string
device_id
=
"CPU"
;
using
AGInfo
=
std
::
tuple
<
cv
::
GMat
,
cv
::
GMat
>
;
...
...
@@ -937,8 +937,8 @@ TEST(TestAgeGenderIE, CPUConfig)
{
initDLDTDataPath
();
std
::
string
model_path
=
findDataFile
(
SUBDIR
+
"age-gender-recognition-retail-0013.xml"
);
std
::
string
weights_path
=
findDataFile
(
SUBDIR
+
"age-gender-recognition-retail-0013.bin"
);
std
::
string
model_path
=
findDataFile
(
SUBDIR
+
"age-gender-recognition-retail-0013.xml"
,
false
);
std
::
string
weights_path
=
findDataFile
(
SUBDIR
+
"age-gender-recognition-retail-0013.bin"
,
false
);
std
::
string
device_id
=
"CPU"
;
using
AGInfo
=
std
::
tuple
<
cv
::
GMat
,
cv
::
GMat
>
;
...
...
@@ -1017,8 +1017,8 @@ TEST(TestAgeGenderIE, MediaInputNV12)
initDLDTDataPath
();
cv
::
gapi
::
ie
::
detail
::
ParamDesc
params
;
params
.
model_path
=
findDataFile
(
SUBDIR
+
"age-gender-recognition-retail-0013.xml"
);
params
.
weights_path
=
findDataFile
(
SUBDIR
+
"age-gender-recognition-retail-0013.bin"
);
params
.
model_path
=
findDataFile
(
SUBDIR
+
"age-gender-recognition-retail-0013.xml"
,
false
);
params
.
weights_path
=
findDataFile
(
SUBDIR
+
"age-gender-recognition-retail-0013.bin"
,
false
);
params
.
device_id
=
"CPU"
;
cv
::
Size
sz
{
320
,
240
};
...
...
@@ -1082,8 +1082,8 @@ TEST(TestAgeGenderIE, MediaInputBGR)
initDLDTDataPath
();
cv
::
gapi
::
ie
::
detail
::
ParamDesc
params
;
params
.
model_path
=
findDataFile
(
SUBDIR
+
"age-gender-recognition-retail-0013.xml"
);
params
.
weights_path
=
findDataFile
(
SUBDIR
+
"age-gender-recognition-retail-0013.bin"
);
params
.
model_path
=
findDataFile
(
SUBDIR
+
"age-gender-recognition-retail-0013.xml"
,
false
);
params
.
weights_path
=
findDataFile
(
SUBDIR
+
"age-gender-recognition-retail-0013.bin"
,
false
);
params
.
device_id
=
"CPU"
;
cv
::
Size
sz
{
320
,
240
};
...
...
@@ -1134,8 +1134,8 @@ TEST(InferROI, MediaInputBGR)
initDLDTDataPath
();
cv
::
gapi
::
ie
::
detail
::
ParamDesc
params
;
params
.
model_path
=
findDataFile
(
SUBDIR
+
"age-gender-recognition-retail-0013.xml"
);
params
.
weights_path
=
findDataFile
(
SUBDIR
+
"age-gender-recognition-retail-0013.bin"
);
params
.
model_path
=
findDataFile
(
SUBDIR
+
"age-gender-recognition-retail-0013.xml"
,
false
);
params
.
weights_path
=
findDataFile
(
SUBDIR
+
"age-gender-recognition-retail-0013.bin"
,
false
);
params
.
device_id
=
"CPU"
;
cv
::
Size
sz
{
320
,
240
};
...
...
@@ -1196,8 +1196,8 @@ TEST(InferROI, MediaInputNV12)
initDLDTDataPath
();
cv
::
gapi
::
ie
::
detail
::
ParamDesc
params
;
params
.
model_path
=
findDataFile
(
SUBDIR
+
"age-gender-recognition-retail-0013.xml"
);
params
.
weights_path
=
findDataFile
(
SUBDIR
+
"age-gender-recognition-retail-0013.bin"
);
params
.
model_path
=
findDataFile
(
SUBDIR
+
"age-gender-recognition-retail-0013.xml"
,
false
);
params
.
weights_path
=
findDataFile
(
SUBDIR
+
"age-gender-recognition-retail-0013.bin"
,
false
);
params
.
device_id
=
"CPU"
;
cv
::
Size
sz
{
320
,
240
};
...
...
@@ -1587,8 +1587,8 @@ TEST(Infer, TestStreamingInfer)
std
::
string
filepath
=
findDataFile
(
"cv/video/768x576.avi"
);
cv
::
gapi
::
ie
::
detail
::
ParamDesc
params
;
params
.
model_path
=
findDataFile
(
SUBDIR
+
"age-gender-recognition-retail-0013.xml"
);
params
.
weights_path
=
findDataFile
(
SUBDIR
+
"age-gender-recognition-retail-0013.bin"
);
params
.
model_path
=
findDataFile
(
SUBDIR
+
"age-gender-recognition-retail-0013.xml"
,
false
);
params
.
weights_path
=
findDataFile
(
SUBDIR
+
"age-gender-recognition-retail-0013.bin"
,
false
);
params
.
device_id
=
"CPU"
;
// Load IE network, initialize input data using that.
...
...
@@ -1654,8 +1654,8 @@ TEST(InferROI, TestStreamingInfer)
std
::
string
filepath
=
findDataFile
(
"cv/video/768x576.avi"
);
cv
::
gapi
::
ie
::
detail
::
ParamDesc
params
;
params
.
model_path
=
findDataFile
(
SUBDIR
+
"age-gender-recognition-retail-0013.xml"
);
params
.
weights_path
=
findDataFile
(
SUBDIR
+
"age-gender-recognition-retail-0013.bin"
);
params
.
model_path
=
findDataFile
(
SUBDIR
+
"age-gender-recognition-retail-0013.xml"
,
false
);
params
.
weights_path
=
findDataFile
(
SUBDIR
+
"age-gender-recognition-retail-0013.bin"
,
false
);
params
.
device_id
=
"CPU"
;
// Load IE network, initialize input data using that.
...
...
@@ -1732,8 +1732,8 @@ TEST(InferList, TestStreamingInfer)
std
::
string
filepath
=
findDataFile
(
"cv/video/768x576.avi"
);
cv
::
gapi
::
ie
::
detail
::
ParamDesc
params
;
params
.
model_path
=
findDataFile
(
SUBDIR
+
"age-gender-recognition-retail-0013.xml"
);
params
.
weights_path
=
findDataFile
(
SUBDIR
+
"age-gender-recognition-retail-0013.bin"
);
params
.
model_path
=
findDataFile
(
SUBDIR
+
"age-gender-recognition-retail-0013.xml"
,
false
);
params
.
weights_path
=
findDataFile
(
SUBDIR
+
"age-gender-recognition-retail-0013.bin"
,
false
);
params
.
device_id
=
"CPU"
;
// Load IE network, initialize input data using that.
...
...
@@ -1821,8 +1821,8 @@ TEST(Infer2, TestStreamingInfer)
std
::
string
filepath
=
findDataFile
(
"cv/video/768x576.avi"
);
cv
::
gapi
::
ie
::
detail
::
ParamDesc
params
;
params
.
model_path
=
findDataFile
(
SUBDIR
+
"age-gender-recognition-retail-0013.xml"
);
params
.
weights_path
=
findDataFile
(
SUBDIR
+
"age-gender-recognition-retail-0013.bin"
);
params
.
model_path
=
findDataFile
(
SUBDIR
+
"age-gender-recognition-retail-0013.xml"
,
false
);
params
.
weights_path
=
findDataFile
(
SUBDIR
+
"age-gender-recognition-retail-0013.bin"
,
false
);
params
.
device_id
=
"CPU"
;
// Load IE network, initialize input data using that.
...
...
@@ -1911,8 +1911,8 @@ TEST(InferEmptyList, TestStreamingInfer)
std
::
string
filepath
=
findDataFile
(
"cv/video/768x576.avi"
);
cv
::
gapi
::
ie
::
detail
::
ParamDesc
params
;
params
.
model_path
=
findDataFile
(
SUBDIR
+
"age-gender-recognition-retail-0013.xml"
);
params
.
weights_path
=
findDataFile
(
SUBDIR
+
"age-gender-recognition-retail-0013.bin"
);
params
.
model_path
=
findDataFile
(
SUBDIR
+
"age-gender-recognition-retail-0013.xml"
,
false
);
params
.
weights_path
=
findDataFile
(
SUBDIR
+
"age-gender-recognition-retail-0013.bin"
,
false
);
params
.
device_id
=
"CPU"
;
// Load IE network, initialize input data using that.
...
...
@@ -1965,8 +1965,8 @@ TEST(Infer2EmptyList, TestStreamingInfer)
std
::
string
filepath
=
findDataFile
(
"cv/video/768x576.avi"
);
cv
::
gapi
::
ie
::
detail
::
ParamDesc
params
;
params
.
model_path
=
findDataFile
(
SUBDIR
+
"age-gender-recognition-retail-0013.xml"
);
params
.
weights_path
=
findDataFile
(
SUBDIR
+
"age-gender-recognition-retail-0013.bin"
);
params
.
model_path
=
findDataFile
(
SUBDIR
+
"age-gender-recognition-retail-0013.xml"
,
false
);
params
.
weights_path
=
findDataFile
(
SUBDIR
+
"age-gender-recognition-retail-0013.bin"
,
false
);
params
.
device_id
=
"CPU"
;
// Load IE network, initialize input data using that.
...
...
@@ -2294,8 +2294,8 @@ struct LimitedSourceInfer: public ::testing::Test {
GStreamingCompiled
compileStreaming
(
int
nireq
)
{
cv
::
gapi
::
ie
::
detail
::
ParamDesc
params
;
params
.
model_path
=
findDataFile
(
SUBDIR
+
"age-gender-recognition-retail-0013.xml"
);
params
.
weights_path
=
findDataFile
(
SUBDIR
+
"age-gender-recognition-retail-0013.bin"
);
params
.
model_path
=
findDataFile
(
SUBDIR
+
"age-gender-recognition-retail-0013.xml"
,
false
);
params
.
weights_path
=
findDataFile
(
SUBDIR
+
"age-gender-recognition-retail-0013.bin"
,
false
);
params
.
device_id
=
"CPU"
;
auto
pp
=
cv
::
gapi
::
ie
::
Params
<
AgeGender
>
{
...
...
@@ -2348,8 +2348,8 @@ TEST(TestAgeGenderIE, InferWithBatch)
constexpr
int
batch_size
=
4
;
cv
::
gapi
::
ie
::
detail
::
ParamDesc
params
;
params
.
model_path
=
findDataFile
(
SUBDIR
+
"age-gender-recognition-retail-0013.xml"
);
params
.
weights_path
=
findDataFile
(
SUBDIR
+
"age-gender-recognition-retail-0013.bin"
);
params
.
model_path
=
findDataFile
(
SUBDIR
+
"age-gender-recognition-retail-0013.xml"
,
false
);
params
.
weights_path
=
findDataFile
(
SUBDIR
+
"age-gender-recognition-retail-0013.bin"
,
false
);
params
.
device_id
=
"CPU"
;
cv
::
Mat
in_mat
({
batch_size
,
3
,
62
,
62
},
CV_8U
);
...
...
@@ -3091,8 +3091,8 @@ struct AgeGenderInferTest: public ::testing::Test {
void
SetUp
()
{
initDLDTDataPath
();
m_params
.
model_path
=
findDataFile
(
SUBDIR
+
"age-gender-recognition-retail-0013.xml"
);
m_params
.
weights_path
=
findDataFile
(
SUBDIR
+
"age-gender-recognition-retail-0013.bin"
);
m_params
.
model_path
=
findDataFile
(
SUBDIR
+
"age-gender-recognition-retail-0013.xml"
,
false
);
m_params
.
weights_path
=
findDataFile
(
SUBDIR
+
"age-gender-recognition-retail-0013.bin"
,
false
);
m_params
.
device_id
=
"CPU"
;
m_plugin
=
cv
::
gimpl
::
ie
::
wrap
::
getPlugin
(
m_params
);
...
...
@@ -3191,8 +3191,8 @@ TEST(TestAgeGenderIE, InferTensorWithPreproc) {
initDLDTDataPath
();
cv
::
gapi
::
ie
::
detail
::
ParamDesc
params
;
params
.
model_path
=
findDataFile
(
SUBDIR
+
"age-gender-recognition-retail-0013.xml"
);
params
.
weights_path
=
findDataFile
(
SUBDIR
+
"age-gender-recognition-retail-0013.bin"
);
params
.
model_path
=
findDataFile
(
SUBDIR
+
"age-gender-recognition-retail-0013.xml"
,
false
);
params
.
weights_path
=
findDataFile
(
SUBDIR
+
"age-gender-recognition-retail-0013.bin"
,
false
);
params
.
device_id
=
"CPU"
;
// Load IE network, initialize input data using that.
...
...
modules/gapi/test/infer/gapi_infer_ov_tests.cpp
浏览文件 @
2b87e78e
...
...
@@ -255,8 +255,8 @@ private:
struct
BaseAgeGenderOV
:
public
::
testing
::
Test
{
BaseAgeGenderOV
()
{
initDLDTDataPath
();
xml_path
=
findDataFile
(
SUBDIR
+
"age-gender-recognition-retail-0013.xml"
);
bin_path
=
findDataFile
(
SUBDIR
+
"age-gender-recognition-retail-0013.bin"
);
xml_path
=
findDataFile
(
SUBDIR
+
"age-gender-recognition-retail-0013.xml"
,
false
);
bin_path
=
findDataFile
(
SUBDIR
+
"age-gender-recognition-retail-0013.bin"
,
false
);
device
=
"CPU"
;
blob_path
=
"age-gender-recognition-retail-0013.blob"
;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录