当前位置:网站首页>Visual analysis of ncnn param file and bin model
Visual analysis of ncnn param file and bin model
2022-07-19 03:12:00 【HySmiley】
param file
Content

first line 【7767517】 Version information
The second line 【79 87】layer Number and blob Count
layer Number finger :input、Convolution、BatchNorm、ReLU... Equal number

In fact, it is to remove the number of remaining lines in the first two lines when opening the file namely 81-2=79
blob Number finger The number of structural branches generated in the middle .
bin File Visualization
use netron open

param File with the bin Model network structure correspondence

The specific correspondence is as follows Convolution layer :
Convolution : Layer type
Conv_0 : Layer name
1: Enter the number of data structures
1: Number of output data structures
input : Network input layer name
123 : Network output layer name output( Some structure layer names are replaced by numbers )
0=64: Number of output channels -num_output
1=7 、11=7: Convolution kernel size -kernel_h/kernel_w
2=1、 12=1 : expand -dilation_h/dilation_w
3=2、 13=2 : step -stride_h/stride_w
4=3、 14=3 :pad-left /pad-right
15=3、 16=3 :pad-top/pad-bottom
5=0 :bias-term
6=9408(7*7*64*3) Total number of parameters k*k*in*out
With key=value Formal description , among 1=7,11=7 Both represent convolution kernels , the second key value +10 To distinguish , step 、pad similar
It is essentially a convolution layer function parameter
Such as nn.Conv2d function
Initialize parameters
def __init__(
self,
in_channels: int,
out_channels: int,
kernel_size: _size_2_t,
stride: _size_2_t = 1,
padding: Union[str, _size_2_t] = 0,
dilation: _size_2_t = 1,
groups: int = 1,
bias: bool = True,
padding_mode: str = 'zeros', # TODO: refine this type
device=None,
dtype=None
)
边栏推荐
- 通过Dao投票STI的销毁,SeekTiger真正做到由社区驱动
- D. Permutation Restoration(贪心/双指针/set)
- 04_服务注册Eureka
- About XML file (VI) - the difference between JSON and XML file
- Summary of the most complete methods of string interception in Oracle
- 05_ Service call ribbon
- 2. Actual use of asynctool framework
- 乐视还有400多位员工?过着没有老板的神仙日子 官方出来回应了...
- 【单片机仿真】(十五)指令系统位操作类指令 — 位运算指令、位条件转移指令
- ncnn paramdict&modelbin
猜你喜欢

05_服务调用Ribbon
![[PHP] tp6 multi table connection query](/img/f8/a3803f01820082792901bff98bb96c.png)
[PHP] tp6 multi table connection query

Code demonstration of fcos face detection model in openvino

人脸关键点检测

仿射变换实现

04_ Service registration Eureka

5. Is the asynctool framework flawed?

From the perspective of MySQL architecture, how does an SQL statement execute?

SysTick定时器的基础学习以及手撕代码

MySQL interview questions (2022)
随机推荐
D. Permutation restoration (greedy / double pointer /set)
Introduction to wangeditor (entry level)
Summary of the most complete methods of string interception in Oracle
05 central processing unit
RESNET learning notes
ncnn Allocator内存分配器
Pytorch best practices and code templates
[MCU simulation] (XIII) instruction system logic operation instruction shift instruction
仿射变换实现
[MCU simulation] (XVIII) control transfer instructions - empty operation instructions
SQL classic exercises (x30)
需要慢一点点
[single chip microcomputer simulation] (XII) instruction system logic operation instruction - logic XOR instruction XRL, accumulator clear 0 and reverse instruction
From the perspective of MySQL architecture, how does an SQL statement execute?
[single chip microcomputer simulation] (10) instruction system - multiplication instruction and division of arithmetic operation instruction
4. Some thoughts on asynctool framework
[MCU simulation] (V) addressing mode - immediate addressing and register indirect addressing
要开源节流
【单片机仿真】(九)指令系统 — 算术运算指令 之 ADD、ADDC、SUBB、INC、DEC、DA
[MCU simulation] (XVI) control transfer instructions - unconditional transfer instructions, conditional transfer instructions