当前位置:网站首页>Param in the paper
Param in the paper
2022-06-26 09:14:00 【G fruit】
The following figure comes from ECA-Net (CVPR2020, paper)
GitHub link :https://github.com/BangguWu/ECANet
As soon as I saw Params Of M At the end, I thought of the storage capacity unit , It's not true , This M Refers to ten thousand , It means parameter quantity , As can be seen from the figure above Resnet50 The parameters of the model are 24.37 ten thousand individual ,ResNet101 The parameter quantity of the model is 42.49 ten thousand individual . To calculate the storage capacity, you need to convert the following formula :
1 G = 1000 MB
1 MB = 1000 KB
1 KB= 1000 Byte
1 Byte = 8 bit
The model is generally saved with 32bit Of Double precision floating point , The storage capacity corresponding to a parameter is 4Byte, That is, about equal to 0.004KB, That is to say 0.000004MB.
Key formula :
Memory of the model = Parameters of the model x 0.000004MB( This is just an estimate , There may be some deviation in the specific model memory )
There are two reasons for my analysis , One is the node name of the model , for example resnet_block、conv 、bn And so on. , Another is that the parameter storage format of the volume layer is different from that of other layers , It means The parameters of the whole model are not uniform double precision floating-point type

Try to calculate the following figure LeNet Memory of the model :
Memory of the model (245.95KB) = Parameters of the model (61495) x 0.004KB
The picture below is 240.21KB, It's a little biased

Try to calculate the memory of the model in the following figure :
Memory of the model (31.915MB) = Parameters of the model (7978856) x 0.000004MB
The picture below is 30.44MB, It's a little biased

It is recommended to read reference articles
Reference article :CNN The computation of the model 、 Parameters 、 Memory occupation
边栏推荐
- PD fast magnetization mobile power supply scheme
- 51 single chip microcomputer ROM and ram
- PD快充磁吸移動電源方案
- [cloud primordial | kubernetes chapter] go deep into the foundation of all things - container (V)
- 修复小程序富文本组件不支持video视频封面、autoplay、controls等属性问题
- 2021 software university ranking crawler program
- Baidu applet rich text parsing tool bdparse
- ThreadLocal
- How to use the least money to quickly open the Taobao traffic portal?
- PD快充磁吸移动电源方案
猜你喜欢

什么是乐观锁,什么是悲观锁

MySQL cannot be found in the service (not uninstalled)
![[program compilation and pretreatment]](/img/c9/45353cf6578628ad44f149350873f5.png)
[program compilation and pretreatment]

20220623 getting started with Adobe Illustrator

Regular expression

《一周搞定模电》—55定时器

如何编译构建

Games104 Lecture 12 游戏引擎中的粒子和声效系统

JSON file to XML file

Live review | smardaten lihongfei interprets the Research Report on China's low / no code industry: the wind direction has changed
随机推荐
How to set the shelves and windows, and what to pay attention to in the optimization process
Self learning neural network series - 7 feedforward neural network pre knowledge
Autoregressive model of Lantern Festival
PD快充磁吸移動電源方案
cookie session 和 token
Nacos registry structure and the principle of massive service registration and concurrent read-write source code analysis
Upgrade phpcms applet plug-in API interface to 4.3 (add batch acquisition interface, search interface, etc.)
运行时端常用类的介绍
小程序首页加载之前加载其他相关资源或配置(小程序的promise应用)
ThreadLocal
PD fast magnetization mobile power supply scheme
What is optimistic lock and what is pessimistic lock
dedecms小程序插件正式上线,一键安装无需任何php或sql基础
phpcms v9后台文章列表增加一键推送到百度功能
Regular expression
微信小程序如何转换成百度小程序
拦截器与过滤器的实现代码
浅谈一下Type-C接口发展历程
【C】青蛙跳台阶和汉诺塔问题(递归)
Differences between commonjs and ES6 modularity