当前位置:网站首页>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
边栏推荐
- Practice is the fastest way to become a network engineer
- Dedecms applet plug-in is officially launched, and one click installation does not require any PHP or SQL Foundation
- Nacos注册表结构和海量服务注册与并发读写原理 源码分析
- 【微积分】拉格朗日乘子法
- 《一周搞定模电》—功率放大器
- What is optimistic lock and what is pessimistic lock
- Phpcms V9 remove the phpsso module
- Analysis of ROS calculation diagram level
- Construction and verification of mongodb sharding environment (redis final assignment)
- Phpcms applet plug-in tutorial website officially launched
猜你喜欢

51单片机ROM和RAM

《一周搞定模电》—功率放大器

【开源】使用PhenoCV-WeedCam进行更智能、更精确的杂草管理

Self learning neural network series - 8 feedforward neural networks

uniapp用uParse实现解析后台的富文本编辑器的内容及修改uParse样式

Self taught neural network series - 9 convolutional neural network CNN

行为树的基本概念及进阶

phpcms v9去掉phpsso模块

板端电源硬件调试BUG

Yolov5 advanced camera real-time acquisition and recognition
随机推荐
行为树 文件说明
行为树的基本概念及进阶
Fix the problem that the rich text component of the applet does not support the properties of video cover, autoplay, controls, etc
Upgrade phpcms applet plug-in API interface to 4.3 (add batch acquisition interface, search interface, etc.)
Differences between commonjs and ES6 modularity
运行时端常用类的介绍
基于SSM的毕业论文管理系统
Data warehouse (3) star model and dimension modeling of data warehouse modeling
Srv6---is-is extension
[program compilation and pretreatment]
Live review | smardaten lihongfei interprets the Research Report on China's low / no code industry: the wind direction has changed
Machine learning (Part 1)
XSS cross site scripting attack
Basic concept and advanced level of behavior tree
关于小程序tabbar不支持传参的处理办法
Practice is the fastest way to become a network engineer
ImportError: ERROR: recursion is detected during loading of “cv2“ binary extensions. Check OpenCV in
Games104 Lecture 12 游戏引擎中的粒子和声效系统
Self taught neural network series - 1 Basic programming knowledge
phpcms小程序插件4.0版正式上线