帮助理解prototxt文件的格式说明

帮助理解prototxt文件的格式说明

主要分为三种:

  • ***_solver.prototxt
  • ***_train_val.prototxt
  • ***_deploy.prototxt

solver

train_val

数据来源 type 必选项
数据库(lmdb,leveldb等) “Data” batch_size, source
内存 “MemoryData” batch_size, channels, width,height
HDF5 “HDF5Data” batch_size
图片 “ImageData” batch_size, source
Windows “WindowData” batch_size, source
layer ensential
conv stride, pad, kernel_size, num_output, bias_filter{type, std}, weight_filter{type, std}
pool kernel_size, stride
relu bottom = top
LRN local_size, alpha, beta
InnerProduct
loss
accuracy
param
    {
        lr_mult:    1
        decay_mult: 1
    }
    param
    {
        lr_mult:    2
        decay_mult: 0
    }
convolution_param
    {
        num_output:     256
        kernel_size:    5
        stride: 1
        pad:    2
        weight_filter
        {
            type:   gaussian #or xavier
            std:    0.01
        }
        bias_filter
        {
            type:   constant
            std:    0
        }
    }
layer
{
    name:   "norm2"
    type:   "LRN"
    bottom: "pool2"
    top:    "lrn2"
    lrn_param
    {
        local_size: 5
        alpha:      0.3
        beta:       0.1
    }
}

你可能感兴趣的:(caffe)