Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenCV
opencv_extra
提交
fa87b1bf
O
opencv_extra
项目概览
OpenCV
/
opencv_extra
10 个月 前同步成功
通知
118
Star
882
Fork
1584
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
opencv_extra
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
fa87b1bf
编写于
1月 18, 2023
作者:
A
Alexander Alekhin
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 4.x
上级
7e5d87c0
15071656
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
20 addition
and
22 deletion
+20
-22
testdata/dnn/onnx/data/README.md
testdata/dnn/onnx/data/README.md
+0
-22
testdata/dnn/onnx/data/input_depthwiseconv_add.npy
testdata/dnn/onnx/data/input_depthwiseconv_add.npy
+0
-0
testdata/dnn/onnx/data/output_depthwiseconv_add.npy
testdata/dnn/onnx/data/output_depthwiseconv_add.npy
+0
-0
testdata/dnn/onnx/generate_onnx_models.py
testdata/dnn/onnx/generate_onnx_models.py
+20
-0
testdata/dnn/onnx/models/depthwiseconv_add.onnx
testdata/dnn/onnx/models/depthwiseconv_add.onnx
+0
-0
未找到文件。
testdata/dnn/onnx/data/README.md
已删除
100644 → 0
浏览文件 @
7e5d87c0
### OpenCV: Open Source Computer Vision Library
This repository contains extra data for the OpenCV library.
#### Resources
*
Homepage: http://opencv.org
*
Docs: http://docs.opencv.org
*
Q&A forum: https://forum.opencv.org
*
previous forum (read only): http://answers.opencv.org
*
Issue tracking: https://github.com/opencv/opencv/issues
#### Contributing
Please read before starting work on a pull request: https://github.com/opencv/opencv/wiki/How_to_contribute
Summary of guidelines:
*
One pull request per issue;
*
Choose the right base branch;
*
Include tests and documentation;
*
Clean up "oops" commits before submitting;
*
Follow the coding style guide.
testdata/dnn/onnx/data/input_depthwiseconv_add.npy
0 → 100644
浏览文件 @
fa87b1bf
文件已添加
testdata/dnn/onnx/data/output_depthwiseconv_add.npy
0 → 100644
浏览文件 @
fa87b1bf
文件已添加
testdata/dnn/onnx/generate_onnx_models.py
浏览文件 @
fa87b1bf
...
...
@@ -689,6 +689,26 @@ input = Variable(torch.randn(1, 2, 4, 4, 19))
model
=
PoolConv
()
save_data_and_model
(
"pool_conv_3d"
,
input
,
model
)
class
DepthWiseAdd
(
nn
.
Module
):
def
__init__
(
self
):
super
(
DepthWiseAdd
,
self
).
__init__
()
self
.
dconv1
=
nn
.
Conv2d
(
8
,
8
,
kernel_size
=
3
,
stride
=
1
,
padding
=
0
,
groups
=
8
)
self
.
dconv2
=
nn
.
Conv2d
(
8
,
8
,
kernel_size
=
3
,
stride
=
1
,
padding
=
0
,
groups
=
8
)
def
forward
(
self
,
x
):
a
=
self
.
dconv1
(
x
)
b
=
self
.
dconv2
(
x
)
z
=
a
+
b
z
=
z
*
2
return
z
input
=
Variable
(
torch
.
randn
(
1
,
8
,
32
,
32
))
model
=
DepthWiseAdd
()
model
.
eval
()
save_data_and_model
(
"depthwiseconv_add"
,
input
,
model
)
class
Clip
(
nn
.
Module
):
def
__init__
(
self
):
...
...
testdata/dnn/onnx/models/depthwiseconv_add.onnx
0 → 100644
浏览文件 @
fa87b1bf
文件已添加
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录