caffe网络各层参数详解

caffe网络中主要分为 data数据层、Convolution卷积层、Pooling池化层、ReLU激活函数层、InnerProduct全连接层、Accuracy分类准确率层、loss损失层七层。

data数据层参数信息:
name: 这一层的名字。
type:这一层的类型。
top: 这一层所连接的上一层。注意,网络是从下往上生长的。最底层是数据层,越往上特征越抽象。
phase: TRAIN 表示这一层是训练时候网络的定义。
mirror:是否使用镜像。
crop_size:将输入数据裁剪为227。
mean_file:均值文件的路径。
source:训练集的路径。
batch_size:一次迭代输入的图片数量。
backend:数据集的格式。

Convolution卷积层参数信息:
num_output (c_o):过滤器的个数
kernel_size (or kernel_h and kernel_w):过滤器的大小
可选参数:
weight_filler [default type: 'constant' value: 0]:参数的初始化方法
bias_filler:偏置的初始化方法
bias_term [default true]:指定是否是否开启偏置项
pad (or pad_h and pad_w) [default 0]:指定在输入的每一边加上多少个像素
stride (or stride_h and stride_w) [default 1]:指定过滤器的步长
group (g) [default 1]: If g > 1, we restrict the connectivityof each filter to a subset of the input. Specifically, the input and outputchannels are separated into g groups, and the ith output group channels will beonly connected to the ith input group channels.
通过卷积后的大小变化:
输入:n c_i h_i * w_i
输出:n c_o h_o w_o,其中h_o = (h_i + 2 pad_h - kernel_h) /stride_h + 1,w_o通过同样的方法计算。

Pooling池化层:
必需参数:
kernel_size (or kernel_h and kernel_w):过滤器的大小

可选参数:
pool [default MAX]:pooling的方法,目前有MAX, AVE, 和STOCHASTIC三种方法
pad (or pad_h and pad_w) [default 0]:指定在输入的每一遍加上多少个像素
stride (or stride_h and stride_w) [default1]:指定过滤器的步长

上一篇:《Access 2007开发指南(修订版)》一一1.6 对象命名约定


下一篇:桌面开发者的界面故事,该醒醒了