Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Opencv
提交
249c5081
O
Opencv
项目概览
Greenplum
/
Opencv
11 个月 前同步成功
通知
7
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
Opencv
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
249c5081
编写于
12月 17, 2021
作者:
A
Alexander Alekhin
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
dnn(test): skip failed tests on Vulkan backend
上级
622b9d92
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
41 addition
and
2 deletion
+41
-2
modules/dnn/test/test_misc.cpp
modules/dnn/test/test_misc.cpp
+8
-2
modules/dnn/test/test_onnx_importer.cpp
modules/dnn/test/test_onnx_importer.cpp
+27
-0
modules/dnn/test/test_tf_importer.cpp
modules/dnn/test/test_tf_importer.cpp
+6
-0
未找到文件。
modules/dnn/test/test_misc.cpp
浏览文件 @
249c5081
...
...
@@ -842,6 +842,12 @@ TEST_P(Test_two_inputs, basic)
Backend
backendId
=
get
<
0
>
(
get
<
2
>
(
GetParam
()));
Target
targetId
=
get
<
1
>
(
get
<
2
>
(
GetParam
()));
int
type1
=
get
<
0
>
(
GetParam
());
int
type2
=
get
<
1
>
(
GetParam
());
if
(
backendId
==
DNN_BACKEND_VKCOM
&&
!
(
type1
==
CV_32F
&&
type2
==
CV_32F
))
applyTestTag
(
CV_TEST_TAG_DNN_SKIP_VULKAN
);
Net
net
;
LayerParams
lp
;
lp
.
type
=
"Eltwise"
;
...
...
@@ -851,8 +857,8 @@ TEST_P(Test_two_inputs, basic)
net
.
connect
(
0
,
1
,
eltwiseId
,
1
);
// connect to a second input
int
inpSize
[]
=
{
1
,
2
,
3
,
4
};
Mat
firstInp
(
4
,
&
inpSize
[
0
],
get
<
0
>
(
GetParam
())
);
Mat
secondInp
(
4
,
&
inpSize
[
0
],
get
<
1
>
(
GetParam
())
);
Mat
firstInp
(
4
,
&
inpSize
[
0
],
type1
);
Mat
secondInp
(
4
,
&
inpSize
[
0
],
type2
);
randu
(
firstInp
,
0
,
100
);
randu
(
secondInp
,
0
,
100
);
...
...
modules/dnn/test/test_onnx_importer.cpp
浏览文件 @
249c5081
...
...
@@ -242,6 +242,9 @@ TEST_P(Test_ONNX_layers, Deconvolution3D)
if
(
backend
==
DNN_BACKEND_OPENCV
)
throw
SkipTestException
(
"OpenCV backend is not supported"
);
// FIXIT use tags
if
(
backend
==
DNN_BACKEND_VKCOM
)
applyTestTag
(
CV_TEST_TAG_DNN_SKIP_VULKAN
);
testONNXModels
(
"deconv3d"
);
}
...
...
@@ -260,6 +263,9 @@ TEST_P(Test_ONNX_layers, Deconvolution3D_bias)
if
(
backend
==
DNN_BACKEND_OPENCV
)
throw
SkipTestException
(
"OpenCV backend is not supported"
);
// FIXIT use tags
if
(
backend
==
DNN_BACKEND_VKCOM
)
applyTestTag
(
CV_TEST_TAG_DNN_SKIP_VULKAN
);
testONNXModels
(
"deconv3d_bias"
);
}
...
...
@@ -278,6 +284,9 @@ TEST_P(Test_ONNX_layers, Deconvolution3D_pad)
if
(
backend
==
DNN_BACKEND_OPENCV
)
throw
SkipTestException
(
"OpenCV backend is not supported"
);
// FIXIT use tags
if
(
backend
==
DNN_BACKEND_VKCOM
)
applyTestTag
(
CV_TEST_TAG_DNN_SKIP_VULKAN
);
testONNXModels
(
"deconv3d_pad"
);
}
...
...
@@ -296,6 +305,9 @@ TEST_P(Test_ONNX_layers, Deconvolution3D_adjpad)
if
(
backend
==
DNN_BACKEND_OPENCV
)
throw
SkipTestException
(
"OpenCV backend is not supported"
);
// FIXIT use tags
if
(
backend
==
DNN_BACKEND_VKCOM
)
applyTestTag
(
CV_TEST_TAG_DNN_SKIP_VULKAN
);
testONNXModels
(
"deconv3d_adjpad"
);
}
...
...
@@ -384,6 +396,9 @@ TEST_P(Test_ONNX_layers, ReduceMean3D)
if
(
backend
==
DNN_BACKEND_OPENCV
&&
target
!=
DNN_TARGET_CPU
)
throw
SkipTestException
(
"Only CPU is supported"
);
// FIXIT use tags
if
(
backend
==
DNN_BACKEND_VKCOM
)
applyTestTag
(
CV_TEST_TAG_DNN_SKIP_VULKAN
);
testONNXModels
(
"reduce_mean3d"
);
}
...
...
@@ -671,6 +686,9 @@ TEST_P(Test_ONNX_layers, MaxPooling3D)
if
(
backend
==
DNN_BACKEND_OPENCV
&&
target
!=
DNN_TARGET_CPU
)
throw
SkipTestException
(
"Only CPU is supported"
);
// FIXIT use tags
if
(
backend
==
DNN_BACKEND_VKCOM
)
applyTestTag
(
CV_TEST_TAG_DNN_SKIP_VULKAN
);
testONNXModels
(
"max_pool3d"
,
npy
,
0
,
0
,
false
,
false
);
}
...
...
@@ -685,6 +703,9 @@ TEST_P(Test_ONNX_layers, AvePooling3D)
if
(
backend
==
DNN_BACKEND_OPENCV
&&
target
!=
DNN_TARGET_CPU
)
throw
SkipTestException
(
"Only CPU is supported"
);
// FIXIT use tags
if
(
backend
==
DNN_BACKEND_VKCOM
)
applyTestTag
(
CV_TEST_TAG_DNN_SKIP_VULKAN
);
testONNXModels
(
"ave_pool3d"
);
}
...
...
@@ -699,6 +720,9 @@ TEST_P(Test_ONNX_layers, PoolConv3D)
if
(
backend
==
DNN_BACKEND_OPENCV
&&
target
!=
DNN_TARGET_CPU
)
throw
SkipTestException
(
"Only CPU is supported"
);
// FIXIT use tags
if
(
backend
==
DNN_BACKEND_VKCOM
)
applyTestTag
(
CV_TEST_TAG_DNN_SKIP_VULKAN
);
testONNXModels
(
"pool_conv_3d"
);
}
...
...
@@ -1777,6 +1801,9 @@ TEST_P(Test_ONNX_nets, Resnet34_kinetics)
if
(
backend
==
DNN_BACKEND_OPENCV
&&
target
!=
DNN_TARGET_CPU
)
throw
SkipTestException
(
"Only CPU is supported"
);
// FIXIT use tags
if
(
backend
==
DNN_BACKEND_VKCOM
)
applyTestTag
(
CV_TEST_TAG_DNN_SKIP_VULKAN
);
String
onnxmodel
=
findDataFile
(
"dnn/resnet-34_kinetics.onnx"
,
false
);
Mat
image0
=
imread
(
findDataFile
(
"dnn/dog416.png"
));
Mat
image1
=
imread
(
findDataFile
(
"dnn/street.png"
));
...
...
modules/dnn/test/test_tf_importer.cpp
浏览文件 @
249c5081
...
...
@@ -627,6 +627,9 @@ TEST_P(Test_TensorFlow_layers, MaxPooling3D)
if
(
backend
==
DNN_BACKEND_OPENCV
&&
target
!=
DNN_TARGET_CPU
)
throw
SkipTestException
(
"Only CPU is supported"
);
// FIXIT use tags
if
(
backend
==
DNN_BACKEND_VKCOM
)
applyTestTag
(
CV_TEST_TAG_DNN_SKIP_VULKAN
);
runTensorFlowNet
(
"max_pool3d"
);
}
...
...
@@ -641,6 +644,9 @@ TEST_P(Test_TensorFlow_layers, AvePooling3D)
if
(
backend
==
DNN_BACKEND_OPENCV
&&
target
!=
DNN_TARGET_CPU
)
throw
SkipTestException
(
"Only CPU is supported"
);
// FIXIT use tags
if
(
backend
==
DNN_BACKEND_VKCOM
)
applyTestTag
(
CV_TEST_TAG_DNN_SKIP_VULKAN
);
runTensorFlowNet
(
"ave_pool3d"
);
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录