ashwinnair14

Untitled

Jan 20th, 2016
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 5.39 KB | None | 0 0
  1. name: "mv_16f2"
  2. layer {
  3.   name: "data"
  4.   type: "HDF5Data"
  5.   top: "data"
  6.   top: "label"
  7.   include {
  8.     phase: TRAIN
  9.   }
  10.   hdf5_data_param {
  11.     source: "/caffe/models/mv16f/train.txt"
  12.     batch_size: 70
  13.   }
  14. }
  15. layer {
  16.   name: "data"
  17.   type: "HDF5Data"
  18.   top: "data"
  19.   top: "label"
  20.   include {
  21.     phase: TEST
  22.   }
  23.   hdf5_data_param {
  24.     source: "/caffe/models/mv16f/test.txt"
  25.     batch_size: 30
  26.   }
  27. }
  28. #####################Conv Layer Start##################################
  29. layer {
  30.   name: "conv1"
  31.   type: "Convolution"
  32.   bottom: "data"
  33.   top: "conv1"
  34.   param {
  35.     lr_mult: 1
  36.     decay_mult: 1
  37.   }
  38.   param {
  39.     lr_mult: 1
  40.     decay_mult: 1
  41.   }
  42.   convolution_param {
  43.     num_output: 64
  44.     kernel_size: 5
  45.     weight_filler {
  46.       type: "xavier"
  47.     }
  48.     bias_filler {
  49.       type: "xavier"
  50.     }
  51.   }
  52. }
  53. layer {
  54.   name: "relu1"
  55.   type: "ReLU"
  56.   bottom: "conv1"
  57.   top: "conv1"
  58. }
  59. layer {
  60.   name: "pool1"
  61.   type: "Pooling"
  62.   bottom: "conv1"
  63.   top: "pool1"
  64.   pooling_param {
  65.     pool: MAX
  66.     kernel_size: 2
  67.     stride: 2
  68.   }
  69. }
  70. #####################Conv Layer Start##################################
  71. layer {
  72.   name: "conv2"
  73.   type: "Convolution"
  74.   bottom: "pool1"
  75.   top: "conv2"
  76.   param {
  77.     lr_mult: 1
  78.     decay_mult: 1
  79.   }
  80.   param {
  81.     lr_mult: 1
  82.     decay_mult: 1
  83.   }
  84.   convolution_param {
  85.     num_output: 128
  86.     kernel_size: 3
  87.     stride: 1
  88.     weight_filler {
  89.       type: "xavier"
  90.     }
  91.     bias_filler {
  92.       type: "xavier"
  93.     }
  94.   }
  95. }
  96. layer {
  97.   name: "relu2"
  98.   type: "ReLU"
  99.   bottom: "conv2"
  100.   top: "conv2"
  101. }
  102. layer {
  103.   name: "pool2"
  104.   type: "Pooling"
  105.   bottom: "conv2"
  106.   top: "pool2"
  107.   pooling_param {
  108.     pool: AVE
  109.     kernel_size: 2
  110.     stride: 2
  111.   }
  112. }
  113.  
  114. #####################Conv Layer Start##################################
  115. layer {
  116.   name: "conv3"
  117.   type: "Convolution"
  118.   bottom: "pool2"
  119.   top: "conv3"
  120.   param {
  121.     lr_mult: 1
  122.     decay_mult: 1
  123.   }
  124.   param {
  125.     lr_mult: 1
  126.     decay_mult: 1
  127.   }
  128.   convolution_param {
  129.     num_output: 256
  130.     kernel_size: 3
  131.     stride: 1
  132.     weight_filler {
  133.       type: "xavier"
  134.     }
  135.     bias_filler {
  136.       type: "xavier"
  137.     }
  138.   }
  139. }
  140. layer {
  141.   name: "conv3_1"
  142.   type: "Convolution"
  143.   bottom: "conv3"
  144.   top: "conv3_1"
  145.   param {
  146.     lr_mult: 1
  147.     decay_mult: 1
  148.   }
  149.   param {
  150.     lr_mult: 1
  151.     decay_mult: 1
  152.   }
  153.   convolution_param {
  154.     num_output: 256
  155.     kernel_size: 3
  156.     stride: 1
  157.     weight_filler {
  158.       type: "xavier"
  159.     }
  160.     bias_filler {
  161.       type: "xavier"
  162.     }
  163.   }
  164. }
  165. layer {
  166.   name: "relu3"
  167.   type: "ReLU"
  168.   bottom: "conv3_1"
  169.   top: "conv3_1"
  170. }
  171. layer {
  172.   name: "pool3"
  173.   type: "Pooling"
  174.   bottom: "conv3_1"
  175.   top: "pool3"
  176.   pooling_param {
  177.     pool: MAX
  178.     kernel_size: 2
  179.     stride: 2
  180.   }
  181. }
  182. #####################Conv Layer Start##################################
  183. layer {
  184.   name: "conv4"
  185.   type: "Convolution"
  186.   bottom: "pool3"
  187.   top: "conv4"
  188.   param {
  189.     lr_mult: 1
  190.     decay_mult: 1
  191.   }
  192.   param {
  193.     lr_mult: 1
  194.     decay_mult: 1
  195.   }
  196.   convolution_param {
  197.     num_output: 512
  198.     kernel_size: 3
  199.     stride: 1
  200.     weight_filler {
  201.       type: "xavier"
  202.     }
  203.     bias_filler {
  204.       type: "xavier"
  205.     }
  206.   }
  207. }
  208. layer {
  209.   name: "conv4_1"
  210.   type: "Convolution"
  211.   bottom: "conv4"
  212.   top: "conv4_1"
  213.   param {
  214.     lr_mult: 1
  215.     decay_mult: 1
  216.   }
  217.   param {
  218.     lr_mult: 1
  219.     decay_mult: 1
  220.   }
  221.   convolution_param {
  222.     num_output: 512
  223.     kernel_size: 3
  224.     stride: 1
  225.     weight_filler {
  226.       type: "xavier"
  227.     }
  228.     bias_filler {
  229.       type: "xavier"
  230.     }
  231.   }
  232. }
  233. layer {
  234.   name: "relu4"
  235.   type: "ReLU"
  236.   bottom: "conv4_1"
  237.   top: "conv4_1"
  238. }
  239. layer {
  240.   name: "pool4"
  241.   type: "Pooling"
  242.   bottom: "conv4_1"
  243.   top: "pool4"
  244.   pooling_param {
  245.     pool: MAX
  246.     kernel_size: 2
  247.     stride: 2
  248.   }
  249. }
  250. ##################### IP Layer Start##################################
  251. layer {
  252.   name: "fc6"
  253.   type: "InnerProduct"
  254.   bottom: "pool4"
  255.   top: "fc6"
  256.   param {
  257.     lr_mult: 1
  258.     decay_mult: 1
  259.   }
  260.   param {
  261.     lr_mult: 1
  262.     decay_mult: 1
  263.   }
  264.   inner_product_param {
  265.     num_output: 1024
  266.     weight_filler {
  267.       type: "xavier"
  268.     }
  269.     bias_filler {
  270.       type: "xavier"
  271.     }
  272.   }
  273. }
  274. layer {
  275.   name: "relu6"
  276.   type: "ReLU"
  277.   bottom: "fc6"
  278.   top: "fc6"
  279. }
  280. ##################### IP Layer Start##################################
  281.  
  282. layer {
  283.   name: "fc7"
  284.   type: "InnerProduct"
  285.   bottom: "fc6"
  286.   top: "fc7"
  287.   param {
  288.     lr_mult: 1
  289.     decay_mult: 1
  290.   }
  291.   param {
  292.     lr_mult: 1
  293.     decay_mult: 1
  294.   }
  295.   inner_product_param {
  296.     num_output: 1024
  297.     weight_filler {
  298.       type: "xavier"
  299.     }
  300.     bias_filler {
  301.       type: "xavier"
  302.     }
  303.   }
  304. }
  305. layer {
  306.   name: "relu7"
  307.   type: "ReLU"
  308.   bottom: "fc7"
  309.   top: "fc7"
  310. }
  311. ##################### IP Layer Start##################################
  312.  
  313. layer {
  314.   name: "fc8"
  315.   type: "InnerProduct"
  316.   bottom: "fc7"
  317.   top: "fc8"
  318.   param {
  319.     lr_mult: 1
  320.     decay_mult: 1
  321.   }
  322.   param {
  323.     lr_mult: 1
  324.     decay_mult: 1
  325.   }
  326.   inner_product_param {
  327.     num_output: 101
  328.     weight_filler {
  329.       type: "xavier"
  330.     }
  331.     bias_filler {
  332.       type: "xavier"
  333.     }
  334.   }
  335. }
  336. layer {
  337.   name: "accuracy"
  338.   type: "Accuracy"
  339.   bottom: "fc8"
  340.   bottom: "label"
  341.   top: "accuracy"
  342.   include {
  343.     phase: TEST
  344.   }
  345. }
  346. layer {
  347.   name: "loss"
  348.   type: "SoftmaxWithLoss"
  349.   bottom: "fc8"
  350.   bottom: "label"
  351.   top: "loss"
  352. }
Advertisement
Add Comment
Please, Sign In to add comment