当前位置:网站首页>MobileNet ShuffleNet & yolov5 replace backbone
MobileNet ShuffleNet & yolov5 replace backbone
2022-08-02 14:18:00 【weixin_50862344】
The following content refers to reference
MobileNet V1
Highlights:
(1) The use of separable convolution kernels greatly reduces the amount of parameters
(2) Increases hyperparameters a, b
a: magnification of the number of convolution kernels
b: resolution level
MobileNet V2
Highlights:
(1) Use inverted structure residuals
Residual structure: thick on both sides, thin in the middle
Inverted residual structure: thin on both sides, thick in the middle
MobileNet V3
Highlights:
(1) Update block
①Add SE module
②Replace activation function
(2) Redesign the time-consuming layer structure
①Reduce the number of convolution kernels in the first convolutional layer
②Simplify the last stage: delete the part that does not significantly improve performance
(3) Redesign the activation function
swishx is complicated, replace it with h-switch with similar effect
ShuffleNetV1
Highlights:
①Using group convolution to greatly reduce the amount of parameters
②Using Shuffle layer after group convolution is beneficial to information sharing between different groups
ShuffleNetV2
Notes from here!
ShuffleNetV2 directly tests how fast the network runs on the device by controlling different environments, rather than judging by FLOPs.
(1) Four Principles
1. When the input feature matrix of the convolutional layer is equal to the output feature matrix channel, the MAC is the smallest (keeping FLOPs unchanged)
- MAC:Memory access cost
2. When the GConv groups increase (while keeping the FLOPs unchanged), the MAC also increases
GConv: Group Convolution
The introduction of group convolution is here
GroupConv divides the convolutional Filters into G groups, and the input feature map channels are also divided into G groups, each group of convolutional Filters processes a corresponding set of input feature mapsaisle.Since each group of convolution filters is only applied to the corresponding input channel group, the computational cost of convolution is significantly reduced.
There are also disadvantages:
Channel information is not shared between different groups, that is, the output Feature map channels of different groups only receive information from the input channels of the corresponding group.This hinders the information flow between different group channels and reduces the feature extraction ability of GroupConv.
On the one hand, it allows more channels to be used under a fixed FLOPs, and increases network capacity (and thus accuracy).However, on the other hand, increased number of channels results in more MACs
3. The more fragmented the network design, the slower the speed
4. The impact of Element-wise operation cannot be ignored
Practice
Someone else wrote it so well!!!
Actually, the replacement of a module is nothing more than three steps:
①Define the module
②Register the module in yolo.py
In other words, registration may not necessarily use
③Replace the corresponding layer structure in the yaml file
Shufflenetv2
Mobilenetv3
边栏推荐
- LayoutParams的详解
- window10下半自动标注
- 线代:已知一个特征向量快速求另外两个与之正交的特征向量
- Data Organization---Chapter 6 Diagram---Graph Traversal---Multiple Choice Questions
- MobileNet ShuffleNet & yolov5替换backbone
- rhce第三天作业
- 配置zabbix自动发现和自动注册。
- What is the difference between web testing and app testing?
- paddle window10环境下使用conda安装
- 跑yolov5又出啥问题了(1)p,r,map全部为0
猜你喜欢
The most complete ever!A collection of 47 common terms of "digital transformation", read it in seconds~
deal!It's July 30th!
Data Organization---Chapter 6 Diagram---Graph Traversal---Multiple Choice Questions
第二讲 软件生命周期
专访|带着问题去学习,Apache DolphinScheduler 王福政
网络剪枝(1)
未来的金融服务永远不会停歇,牛市仍将继续 2021-05-28
你接受不了60%的暴跌,就没有资格获得6000%的涨幅 2021-05-27
Cloin 控制台乱码
目标检测场景SSD-Mobilenetv1-FPN
随机推荐
目标检测场景SSD-Mobilenetv1-FPN
yolov5改进(一) 添加注意力集中机制
Flask-SQLAlchemy
About the development forecast of the market outlook?2021-05-23
drf路由组件Routers
深度学习框架pytorch快速开发与实战chapter3
音频处理:浮点型数据流转PCM文件
What is the difference between web testing and app testing?
yolov5,yolov4,yolov3乱七八糟的
2022-08-02日报:2022年7月最热的10篇AI论文
第六单元 初识ORM
logback源码阅读(二)日志打印,自定义appender,encoder,pattern,converter
hsql是什么_MQL语言
drf序列化器-Serializer
如何选择正规的期货交易平台开户?
Flask-RESTful请求响应与SQLAlchemy基础
What are the file encryption software?Keep your files safe
第三单元 视图层
uview 2.x版本 tabbar在uniapp小程序里头点击两次才能选中图标
Flask上下文,蓝图和Flask-RESTful