当前位置:网站首页>深度卷积和普通卷积的对比
深度卷积和普通卷积的对比
2022-07-22 03:00:00 【Pr Young】
逐深度可分离卷积(depthwise separable conv)
逐点卷积(Pointwise Convolution)
逐通道卷积(Depthwise Convolution)
普通卷积:输入是三个通道,输出是四个通道
这里需要4个卷积核(输出几个通道就要几个卷积核,这里输出四个通道所以需要四个卷积核)
每个卷积核是3*3*3
所以参数总量是4个3*3*3,等于108个参数
深度卷积:
深度可分离卷积可分为两个过程,分别为逐通道卷积(Depthwise Convolution)和逐点卷积(Pointwise Convolution)
(1)逐通道卷积
这里参数量是3个3*3,等于27个
这样卷积的话,通道数不可改变,而且通道之间的信息也没有进行交互
(2)逐点卷积
这里我们再用四个卷积核,每个卷积核大小为1*1*3
这样的话,参数总量就是4*1*1*3+27=39
可以看到,参数量大大减少
代码实现:
Conv2d(in_channel,out_channel,kernel_size,stride=1,padding=0,dilation=0,groups=1,bias=True)
groups是一个数,当groups=in_channel时,就代表在做深度可分离卷积(depth—wise conv)、
边栏推荐
- ADB 命令结合 monkey 的简单使用,超详细
- img.shape[-2:]/len(img.shape[-2:]):GeneralizedRCNN:original_image_sizes中的 torch._assert
- golang语言cli库
- 60 open-ended test questions, recite them and get a pay rise directly
- Autocomplete (autocomplete)
- 小乌龟上传远程仓库
- 【医学分割】Medical Image Segmentation Using Deep Learning: A Survey
- Delete Nan points in 3D point cloud TXT file
- Check for degenerate boxes检查退化框
- LeetCode 0814. 二叉树剪枝
猜你喜欢
Industry digitalization has accelerated in an all-round way, and Intelligent Cloud 2.0 redefines digital transformation
temporal database
Pyside2 as a simple browser
60道测开面试题,背完直接涨工资
Cloud native ide: the first general and powerful codeless development platform of IVX
浏览器无痕浏览还能查到记录吗,如何开启无痕模式
Kubernetes基础部分学习笔记
AutoComplete(自动完成)
C语言实现通讯录详细教学
玩转CANoe,博客目录大全
随机推荐
TDengine学习笔记
Product banner style type analysis
VLC error - "live555 error: no data received in 10s, aborting"
Kubernetes basic part learning notes
60道测开面试题,背完直接涨工资
Reasons for driving voltage deviation caused by high voltage differential probe
ROS学习(28)Web GUI
Creation and call of QT dynamic DLL
img.shape[-2:]/len(img.shape[-2:]):GeneralizedRCNN:original_image_sizes中的 torch._assert
C语言输出所有水仙花数
蒙特卡洛树搜索(MCTS)详解
微信小程序实现PDF预览功能——pdf.js(含源码解析)
[06] instruction jump: it turns out that if... Else is goto
Several methods that affect the original array
QT 动态dll的创建和调用
Write a maze game with R
【医学分割】Medical Image Segmentation Using Deep Learning: A Survey
With the advent of the meta universe era, how does soul Zhang Lu team create a new social experience?
ROS2自学笔记:TF坐标管理
深度学习之 8 深度模型优化与正则化