Advertisement
Guest User

deploy.prototxt

a guest
Jan 16th, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.81 KB | None | 0 0
  1. layer {
  2. name: "data"
  3. type: "Input"
  4. top: "data"
  5. input_param { shape: { dim: 1 dim: 1 dim: 28 dim: 28 } }
  6. }
  7. layer {
  8. name: "conv1"
  9. type: "Convolution"
  10. bottom: "data"
  11. top: "conv1"
  12. param {
  13. lr_mult: 1
  14. }
  15. param {
  16. lr_mult: 2
  17. }
  18. convolution_param {
  19. num_output: 20
  20. kernel_size: 5
  21. stride: 1
  22. weight_filler {
  23. type: "xavier"
  24. }
  25. bias_filler {
  26. type: "constant"
  27. }
  28. }
  29. }
  30. layer {
  31. name: "pool1"
  32. type: "Pooling"
  33. bottom: "conv1"
  34. top: "pool1"
  35. pooling_param {
  36. pool: MAX
  37. kernel_size: 2
  38. stride: 2
  39. }
  40. }
  41. layer {
  42. name: "conv2"
  43. type: "Convolution"
  44. bottom: "pool1"
  45. top: "conv2"
  46. param {
  47. lr_mult: 1
  48. }
  49. param {
  50. lr_mult: 2
  51. }
  52. convolution_param {
  53. num_output: 50
  54. kernel_size: 5
  55. stride: 1
  56. weight_filler {
  57. type: "xavier"
  58. }
  59. bias_filler {
  60. type: "constant"
  61. }
  62. }
  63. }
  64. layer {
  65. name: "pool2"
  66. type: "Pooling"
  67. bottom: "conv2"
  68. top: "pool2"
  69. pooling_param {
  70. pool: MAX
  71. kernel_size: 2
  72. stride: 2
  73. }
  74. }
  75. layer {
  76. name: "ip1"
  77. type: "InnerProduct"
  78. bottom: "pool2"
  79. top: "ip1"
  80. param {
  81. lr_mult: 1
  82. }
  83. param {
  84. lr_mult: 2
  85. }
  86. inner_product_param {
  87. num_output: 500
  88. weight_filler {
  89. type: "xavier"
  90. }
  91. bias_filler {
  92. type: "constant"
  93. }
  94. }
  95. }
  96. layer {
  97. name: "relu1"
  98. type: "ReLU"
  99. bottom: "ip1"
  100. top: "ip1"
  101. }
  102. layer {
  103. name: "ip2"
  104. type: "InnerProduct"
  105. bottom: "ip1"
  106. top: "ip2"
  107. param {
  108. lr_mult: 1
  109. }
  110. param {
  111. lr_mult: 2
  112. }
  113. inner_product_param {
  114. num_output: 10
  115. weight_filler {
  116. type: "xavier"
  117. }
  118. bias_filler {
  119. type: "constant"
  120. }
  121. }
  122. }
  123. layer {
  124. name: "prob"
  125. type: "Softmax"
  126. bottom: "ip2"
  127. top: "prob"
  128. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement