• caffe prototxt分析


    测试用prototxt

    name: "CIFAR10_quick"
    layer {
    name: "data"
    type: "MemoryData"
    top: "data"
    top: "label"
    memory_data_param {
    batch_size: 1     #样本个数
    channels: 3
    height: 32
    32
    }
    }
    layer {
    name: "conv1"
    type: "Convolution"    #卷积层
    bottom: "data"
    top: "conv1"
    param {
    lr_mult: 1
    }
    param {
    lr_mult: 2
    }
    convolution_param {
    num_output: 32
    pad: 2
    kernel_size: 5
    stride: 1
    weight_filler {
    type: "gaussian"
    std: 0.0001
    }
    bias_filler {
    type: "constant"
    }
    }
    }
    layer {
    name: "pool1"
    type: "Pooling"    #池化层
    bottom: "conv1"
    top: "pool1"
    pooling_param {
    pool: MAX
    kernel_size: 3
    stride: 2
    }
    }
    layer {
    name: "relu1"
    type: "ReLU"
    bottom: "pool1"
    top: "pool1"
    }
    layer {
    name: "conv2"
    type: "Convolution"
    bottom: "pool1"
    top: "conv2"
    param {
    lr_mult: 1
    }
    param {
    lr_mult: 2
    }
    convolution_param {
    num_output: 32
    pad: 2
    kernel_size: 5
    stride: 1
    weight_filler {
    type: "gaussian"
    std: 0.01
    }
    bias_filler {
    type: "constant"
    }
    }
    }
    layer {
    name: "relu2"
    type: "ReLU"      #非线性ReLU层
    bottom: "conv2"
    top: "conv2"
    }
    layer {
    name: "pool2"
    type: "Pooling"
    bottom: "conv2"
    top: "pool2"
    pooling_param {
    pool: AVE
    kernel_size: 3
    stride: 2
    }
    }
    layer {
    name: "conv3"
    type: "Convolution"
    bottom: "pool2"
    top: "conv3"
    param {
    lr_mult: 1
    }
    param {
    lr_mult: 2
    }
    convolution_param {
    num_output: 64
    pad: 2
    kernel_size: 5
    stride: 1
    weight_filler {
    type: "gaussian"
    std: 0.01
    }
    bias_filler {
    type: "constant"
    }
    }
    }
    layer {
    name: "relu3"
    type: "ReLU"
    bottom: "conv3"
    top: "conv3"
    }
    layer {
    name: "pool3"
    type: "Pooling"
    bottom: "conv3"
    top: "pool3"
    pooling_param {
    pool: AVE
    kernel_size: 3
    stride: 2
    }
    }
    layer {
    name: "ip1"
    type: "InnerProduct"
    bottom: "pool3"
    top: "ip1"
    param {
    lr_mult: 1
    }
    param {
    lr_mult: 2
    }
    inner_product_param {
    num_output: 64
    weight_filler {
    type: "gaussian"
    std: 0.1
    }
    bias_filler {
    type: "constant"
    }
    }
    }
    layer {
    name: "ip2"
    type: "InnerProduct"
    bottom: "ip1"
    top: "ip2"
    param {
    lr_mult: 1
    }
    param {
    lr_mult: 2
    }
    inner_product_param {
    num_output: 10
    weight_filler {
    type: "gaussian"
    std: 0.1
    }
    bias_filler {
    type: "constant"
    }
    }
    }
    layer {
    name: "prob"
    type: "Softmax"
    bottom: "ip2"
    top: "prob"
    }

  • 相关阅读:
    前端面试题
    【429】关于ADT的访问权限
    【428】Dijkstra 算法
    【427】Graph 实现 以及 DFS & BFS
    【426】C 传递数组给函数
    【425】堆排序方法(二叉堆)优先队列(PQ)
    Hadoop案例(九)流量汇总案例
    Hadoop案例(八)辅助排序和二次排序案例(GroupingComparator)
    Hadoop案例(七)MapReduce中多表合并
    Hadoop案例(六)小文件处理(自定义InputFormat)
  • 原文地址:https://www.cnblogs.com/luoyinjie/p/9258627.html
Copyright © 2020-2023  润新知