当前位置:   article > 正文

ResNet-18 Caffemodel and prototxt_resnet18.caffemodel

resnet18.caffemodel

GitHub: https://github.com/HolmesShuan/ResNet-18-Caffemodel-on-ImageNet


Prototxt:

  1. name: "ResNet-18"
  2. layer {
  3. name: "data"
  4. type: "Data"
  5. top: "data"
  6. top: "label"
  7. include {
  8. phase: TRAIN
  9. }
  10. transform_param {
  11. mirror: true
  12. crop_size: 224
  13. mean_value: 104
  14. mean_value: 117
  15. mean_value: 123
  16. }
  17. data_param {
  18. source: "../ilsvrc2012/ilsvrc2012_shrt_256_train"
  19. batch_size: 100
  20. backend: LMDB
  21. }
  22. }
  23. layer {
  24. name: "data"
  25. type: "Data"
  26. top: "data"
  27. top: "label"
  28. include {
  29. phase: TEST
  30. }
  31. transform_param {
  32. mirror: false
  33. crop_size: 224
  34. mean_value: 104
  35. mean_value: 117
  36. mean_value: 123
  37. }
  38. data_param {
  39. source: "../ilsvrc2012/ilsvrc2012_shrt_256_val"
  40. batch_size: 50
  41. backend: LMDB
  42. }
  43. }
  44. layer {
  45. bottom: "data"
  46. top: "conv1"
  47. name: "conv1"
  48. type: "Convolution"
  49. convolution_param {
  50. num_output: 64
  51. kernel_size: 7
  52. pad: 3
  53. stride: 2
  54. weight_filler {
  55. type: "msra"
  56. }
  57. bias_term: false
  58. }
  59. }
  60. layer {
  61. bottom: "conv1"
  62. top: "conv1"
  63. name: "bn_conv1"
  64. type: "BatchNorm"
  65. }
  66. layer {
  67. bottom: "conv1"
  68. top: "conv1"
  69. name: "scale_conv1"
  70. type: "Scale"
  71. scale_param {
  72. bias_term: true
  73. }
  74. }
  75. layer {
  76. bottom: "conv1"
  77. top: "conv1"
  78. name: "conv1_relu"
  79. type: "ReLU"
  80. }
  81. layer {
  82. bottom: "conv1"
  83. top: "pool1"
  84. name: "pool1"
  85. type: "Pooling"
  86. pooling_param {
  87. kernel_size: 3
  88. stride: 2
  89. pool: MAX
  90. }
  91. }
  92. layer {
  93. bottom: "pool1"
  94. top: "res2a_branch1"
  95. name: "res2a_branch1"
  96. type: "Convolution"
  97. convolution_param {
  98. num_output: 64
  99. kernel_size: 1
  100. pad: 0
  101. stride: 1
  102. weight_filler {
  103. type: "msra"
  104. }
  105. bias_term: false
  106. }
  107. }
  108. layer {
  109. bottom: "res2a_branch1"
  110. top: "res2a_branch1"
  111. name: "bn2a_branch1"
  112. type: "BatchNorm"
  113. }
  114. layer {
  115. bottom: "res2a_branch1"
  116. top: "res2a_branch1"
  117. name: "scale2a_branch1"
  118. type: "Scale"
  119. scale_param {
  120. bias_term: true
  121. }
  122. }
  123. layer {
  124. bottom: "pool1"
  125. top: "res2a_branch2a"
  126. name: "res2a_branch2a"
  127. type: "Convolution"
  128. convolution_param {
  129. num_output: 64
  130. kernel_size: 3
  131. pad: 1
  132. stride: 1
  133. weight_filler {
  134. type: "msra"
  135. }
  136. bias_term: false
  137. }
  138. }
  139. layer {
  140. bottom: "res2a_branch2a"
  141. top: "res2a_branch2a"
  142. name: "bn2a_branch2a"
  143. type: "BatchNorm"
  144. }
  145. layer {
  146. bottom: "res2a_branch2a"
  147. top: "res2a_branch2a"
  148. name: "scale2a_branch2a"
  149. type: "Scale"
  150. scale_param {
  151. bias_term: true
  152. }
  153. }
  154. layer {
  155. bottom: "res2a_branch2a"
  156. top: "res2a_branch2a"
  157. name: "res2a_branch2a_relu"
  158. type: "ReLU"
  159. }
  160. layer {
  161. bottom: "res2a_branch2a"
  162. top: "res2a_branch2b"
  163. name: "res2a_branch2b"
  164. type: "Convolution"
  165. convolution_param {
  166. num_output: 64
  167. kernel_size: 3
  168. pad: 1
  169. stride: 1
  170. weight_filler {
  171. type: "msra"
  172. }
  173. bias_term: fa
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/羊村懒王/article/detail/290940
推荐阅读
相关标签
  

闽ICP备14008679号