Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Opencv
提交
265acccd
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,发现更多精彩内容 >>
提交
265acccd
编写于
6月 11, 2020
作者:
Y
YashasSamaga
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
allow multiple inputs to resize, fix tests
上级
55ca0fcc
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
16 addition
and
1 deletion
+16
-1
modules/dnn/src/cuda4dnn/primitives/resize.hpp
modules/dnn/src/cuda4dnn/primitives/resize.hpp
+2
-1
modules/dnn/test/test_darknet_importer.cpp
modules/dnn/test/test_darknet_importer.cpp
+5
-0
modules/dnn/test/test_onnx_importer.cpp
modules/dnn/test/test_onnx_importer.cpp
+2
-0
modules/dnn/test/test_tf_importer.cpp
modules/dnn/test/test_tf_importer.cpp
+7
-0
未找到文件。
modules/dnn/src/cuda4dnn/primitives/resize.hpp
浏览文件 @
265acccd
...
...
@@ -35,7 +35,8 @@ namespace cv { namespace dnn { namespace cuda4dnn {
const
std
::
vector
<
cv
::
Ptr
<
BackendWrapper
>>&
outputs
,
csl
::
Workspace
&
workspace
)
override
{
CV_Assert
(
inputs
.
size
()
==
1
&&
outputs
.
size
()
==
1
);
// sometimes the target shape is taken from the second input; we don't use it however
CV_Assert
((
inputs
.
size
()
==
1
||
inputs
.
size
()
==
2
)
&&
outputs
.
size
()
==
1
);
auto
input_wrapper
=
inputs
[
0
].
dynamicCast
<
wrapper_type
>
();
auto
input
=
input_wrapper
->
getView
();
...
...
modules/dnn/test/test_darknet_importer.cpp
浏览文件 @
265acccd
...
...
@@ -574,6 +574,11 @@ TEST_P(Test_Darknet_nets, YOLOv4)
double
scoreDiff
=
(
target
==
DNN_TARGET_OPENCL_FP16
||
target
==
DNN_TARGET_MYRIAD
)
?
0.006
:
8e-5
;
double
iouDiff
=
(
target
==
DNN_TARGET_OPENCL_FP16
||
target
==
DNN_TARGET_MYRIAD
)
?
0.042
:
3e-4
;
if
(
target
==
DNN_TARGET_CUDA_FP16
)
{
scoreDiff
=
0.008
;
iouDiff
=
0.03
;
}
std
::
string
config_file
=
"yolov4.cfg"
;
std
::
string
weights_file
=
"yolov4.weights"
;
...
...
modules/dnn/test/test_onnx_importer.cpp
浏览文件 @
265acccd
...
...
@@ -355,6 +355,8 @@ TEST_P(Test_ONNX_layers, MatMul)
{
if
(
backend
==
DNN_BACKEND_INFERENCE_ENGINE_NN_BUILDER_2019
)
applyTestTag
(
CV_TEST_TAG_DNN_SKIP_IE_NN_BUILDER
);
if
(
backend
==
DNN_BACKEND_CUDA
)
applyTestTag
(
CV_TEST_TAG_DNN_SKIP_CUDA
);
// not supported
testONNXModels
(
"matmul_2d"
);
testONNXModels
(
"matmul_3d"
);
...
...
modules/dnn/test/test_tf_importer.cpp
浏览文件 @
265acccd
...
...
@@ -1067,6 +1067,8 @@ TEST_P(Test_TensorFlow_layers, tf2_prelu)
applyTestTag
(
CV_TEST_TAG_DNN_SKIP_IE_NN_BUILDER
);
if
(
backend
==
DNN_BACKEND_INFERENCE_ENGINE_NGRAPH
)
applyTestTag
(
CV_TEST_TAG_DNN_SKIP_IE_NGRAPH
);
if
(
backend
==
DNN_BACKEND_CUDA
)
applyTestTag
(
CV_TEST_TAG_DNN_SKIP_CUDA
);
// not supported; only across channels is supported
runTensorFlowNet
(
"tf2_prelu"
);
}
...
...
@@ -1239,6 +1241,11 @@ TEST_P(Test_TensorFlow_nets, EfficientDet)
0
,
7
,
0.8039304
,
0.6118435263633728
,
0.13175517320632935
,
0.9065558314323425
,
0.2943994700908661
);
double
scoreDiff
=
(
target
==
DNN_TARGET_OPENCL_FP16
||
target
==
DNN_TARGET_MYRIAD
)
?
4e-3
:
1e-5
;
double
iouDiff
=
(
target
==
DNN_TARGET_OPENCL_FP16
||
target
==
DNN_TARGET_MYRIAD
)
?
2e-3
:
1e-4
;
if
(
target
==
DNN_TARGET_CUDA_FP16
)
{
scoreDiff
=
0.002
;
iouDiff
=
0.003
;
}
normAssertDetections
(
ref
,
out
,
""
,
0.5
,
scoreDiff
,
iouDiff
);
expectNoFallbacksFromIE
(
net
);
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录