123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873 |
- # SqueezeNet architecture for image classification on ImageNet dataset
- name: "SqueezeNet"
- input: "data"
- input_dim: 1
- input_dim: 3
- input_dim: 416
- input_dim: 416
- layer {
- name: "conv1"
- type: "Convolution"
- bottom: "data"
- top: "conv1"
- convolution_param {
- num_output: 96
- kernel_size: 7
- stride: 2
- weight_filler {
- type: "xavier"
- }
- bias_filler {
- type: "constant"
- value: 0.01
- }
- }
- }
- layer {
- name: "rect_conv1"
- type: "ReLU"
- relu_param {
- negative_slope: 0.01
- }
- bottom: "conv1"
- top: "conv1"
- }
- layer {
- name: "pool1"
- type: "Pooling"
- bottom: "conv1"
- top: "pool1"
- pooling_param {
- pool: MAX
- kernel_size: 3
- stride: 2
- }
- }
- layer {
- name: "fire2_squeeze"
- type: "Convolution"
- bottom: "pool1"
- top: "fire2_squeeze"
- convolution_param {
- num_output: 16
- kernel_size: 1
- stride: 1
- pad: 0
- weight_filler {
- type: "xavier"
- }
- bias_filler {
- type: "constant"
- value: 0.01
- }
- }
- }
- layer {
- name: "rect_fire2_squeeze"
- type: "ReLU"
- relu_param {
- negative_slope: 0.01
- }
- bottom: "fire2_squeeze"
- top: "fire2_squeeze"
- }
- layer {
- name: "fire2_expand_1x1"
- type: "Convolution"
- bottom: "fire2_squeeze"
- top: "fire2_expand_1x1"
- convolution_param {
- num_output: 64
- kernel_size: 1
- stride: 1
- pad: 0
- weight_filler {
- type: "xavier"
- }
- bias_filler {
- type: "constant"
- value: 0.01
- }
- }
- }
- layer {
- name: "rect_fire2_expand_1x1"
- type: "ReLU"
- relu_param {
- negative_slope: 0.01
- }
- bottom: "fire2_expand_1x1"
- top: "fire2_expand_1x1"
- }
- layer {
- name: "fire2_expand_3x3"
- type: "Convolution"
- bottom: "fire2_squeeze"
- top: "fire2_expand_3x3"
- convolution_param {
- num_output: 64
- kernel_size: 3
- stride: 1
- pad: 1
- weight_filler {
- type: "xavier"
- }
- bias_filler {
- type: "constant"
- value: 0.01
- }
- }
- }
- layer {
- name: "rect_fire2_expand_3x3"
- type: "ReLU"
- relu_param {
- negative_slope: 0.01
- }
- bottom: "fire2_expand_3x3"
- top: "fire2_expand_3x3"
- }
- layer {
- name: "fire2"
- type: "Concat"
- bottom: "fire2_expand_1x1"
- bottom: "fire2_expand_3x3"
- top: "fire2"
- concat_param {
- axis: 1
- }
- }
- layer {
- name: "fire3_squeeze"
- type: "Convolution"
- bottom: "fire2"
- top: "fire3_squeeze"
- convolution_param {
- num_output: 16
- kernel_size: 1
- stride: 1
- pad: 0
- weight_filler {
- type: "xavier"
- }
- bias_filler {
- type: "constant"
- value: 0.01
- }
- }
- }
- layer {
- name: "rect_fire3_squeeze"
- type: "ReLU"
- relu_param {
- negative_slope: 0.01
- }
- bottom: "fire3_squeeze"
- top: "fire3_squeeze"
- }
- layer {
- name: "fire3_expand_1x1"
- type: "Convolution"
- bottom: "fire3_squeeze"
- top: "fire3_expand_1x1"
- convolution_param {
- num_output: 64
- kernel_size: 1
- stride: 1
- pad: 0
- weight_filler {
- type: "xavier"
- }
- bias_filler {
- type: "constant"
- value: 0.01
- }
- }
- }
- layer {
- name: "rect_fire3_expand_1x1"
- type: "ReLU"
- relu_param {
- negative_slope: 0.01
- }
- bottom: "fire3_expand_1x1"
- top: "fire3_expand_1x1"
- }
- layer {
- name: "fire3_expand_3x3"
- type: "Convolution"
- bottom: "fire3_squeeze"
- top: "fire3_expand_3x3"
- convolution_param {
- num_output: 64
- kernel_size: 3
- stride: 1
- pad: 1
- weight_filler {
- type: "xavier"
- }
- bias_filler {
- type: "constant"
- value: 0.01
- }
- }
- }
- layer {
- name: "rect_fire3_expand_3x3"
- type: "ReLU"
- relu_param {
- negative_slope: 0.01
- }
- bottom: "fire3_expand_3x3"
- top: "fire3_expand_3x3"
- }
- layer {
- name: "fire3"
- type: "Concat"
- bottom: "fire3_expand_1x1"
- bottom: "fire3_expand_3x3"
- top: "fire3"
- concat_param {
- axis: 1
- }
- }
- layer {
- name: "fire4_squeeze"
- type: "Convolution"
- bottom: "fire3"
- top: "fire4_squeeze"
- convolution_param {
- num_output: 32
- kernel_size: 1
- stride: 1
- pad: 0
- weight_filler {
- type: "xavier"
- }
- bias_filler {
- type: "constant"
- value: 0.01
- }
- }
- }
- layer {
- name: "rect_fire4_squeeze"
- type: "ReLU"
- relu_param {
- negative_slope: 0.01
- }
- bottom: "fire4_squeeze"
- top: "fire4_squeeze"
- }
- layer {
- name: "fire4_expand_1x1"
- type: "Convolution"
- bottom: "fire4_squeeze"
- top: "fire4_expand_1x1"
- convolution_param {
- num_output: 128
- kernel_size: 1
- stride: 1
- pad: 0
- weight_filler {
- type: "xavier"
- }
- bias_filler {
- type: "constant"
- value: 0.01
- }
- }
- }
- layer {
- name: "rect_fire4_expand_1x1"
- type: "ReLU"
- relu_param {
- negative_slope: 0.01
- }
- bottom: "fire4_expand_1x1"
- top: "fire4_expand_1x1"
- }
- layer {
- name: "fire4_expand_3x3"
- type: "Convolution"
- bottom: "fire4_squeeze"
- top: "fire4_expand_3x3"
- convolution_param {
- num_output: 128
- kernel_size: 3
- stride: 1
- pad: 1
- weight_filler {
- type: "xavier"
- }
- bias_filler {
- type: "constant"
- value: 0.01
- }
- }
- }
- layer {
- name: "rect_fire4_expand_3x3"
- type: "ReLU"
- relu_param {
- negative_slope: 0.01
- }
- bottom: "fire4_expand_3x3"
- top: "fire4_expand_3x3"
- }
- layer {
- name: "fire4"
- type: "Concat"
- bottom: "fire4_expand_1x1"
- bottom: "fire4_expand_3x3"
- top: "fire4"
- concat_param {
- axis: 1
- }
- }
- layer {
- name: "pool4"
- type: "Pooling"
- bottom: "fire4"
- top: "pool4"
- pooling_param {
- pool: MAX
- kernel_size: 3
- stride: 2
- }
- }
- layer {
- name: "fire5_squeeze"
- type: "Convolution"
- bottom: "pool4"
- top: "fire5_squeeze"
- convolution_param {
- num_output: 32
- kernel_size: 1
- stride: 1
- pad: 0
- weight_filler {
- type: "xavier"
- }
- bias_filler {
- type: "constant"
- value: 0.01
- }
- }
- }
- layer {
- name: "rect_fire5_squeeze"
- type: "ReLU"
- relu_param {
- negative_slope: 0.01
- }
- bottom: "fire5_squeeze"
- top: "fire5_squeeze"
- }
- layer {
- name: "fire5_expand_1x1"
- type: "Convolution"
- bottom: "fire5_squeeze"
- top: "fire5_expand_1x1"
- convolution_param {
- num_output: 128
- kernel_size: 1
- stride: 1
- pad: 0
- weight_filler {
- type: "xavier"
- }
- bias_filler {
- type: "constant"
- value: 0.01
- }
- }
- }
- layer {
- name: "rect_fire5_expand_1x1"
- type: "ReLU"
- relu_param {
- negative_slope: 0.01
- }
- bottom: "fire5_expand_1x1"
- top: "fire5_expand_1x1"
- }
- layer {
- name: "fire5_expand_3x3"
- type: "Convolution"
- bottom: "fire5_squeeze"
- top: "fire5_expand_3x3"
- convolution_param {
- num_output: 128
- kernel_size: 3
- stride: 1
- pad: 1
- weight_filler {
- type: "xavier"
- }
- bias_filler {
- type: "constant"
- value: 0.01
- }
- }
- }
- layer {
- name: "rect_fire5_expand_3x3"
- type: "ReLU"
- relu_param {
- negative_slope: 0.01
- }
- bottom: "fire5_expand_3x3"
- top: "fire5_expand_3x3"
- }
- layer {
- name: "fire5"
- type: "Concat"
- bottom: "fire5_expand_1x1"
- bottom: "fire5_expand_3x3"
- top: "fire5"
- concat_param {
- axis: 1
- }
- }
- layer {
- name: "fire6_squeeze"
- type: "Convolution"
- bottom: "fire5"
- top: "fire6_squeeze"
- convolution_param {
- num_output: 48
- kernel_size: 1
- stride: 1
- pad: 0
- weight_filler {
- type: "xavier"
- }
- bias_filler {
- type: "constant"
- value: 0.01
- }
- }
- }
- layer {
- name: "rect_fire6_squeeze"
- type: "ReLU"
- relu_param {
- negative_slope: 0.01
- }
- bottom: "fire6_squeeze"
- top: "fire6_squeeze"
- }
- layer {
- name: "fire6_expand_1x1"
- type: "Convolution"
- bottom: "fire6_squeeze"
- top: "fire6_expand_1x1"
- convolution_param {
- num_output: 192
- kernel_size: 1
- stride: 1
- pad: 0
- weight_filler {
- type: "xavier"
- }
- bias_filler {
- type: "constant"
- value: 0.01
- }
- }
- }
- layer {
- name: "rect_fire6_expand_1x1"
- type: "ReLU"
- relu_param {
- negative_slope: 0.01
- }
- bottom: "fire6_expand_1x1"
- top: "fire6_expand_1x1"
- }
- layer {
- name: "fire6_expand_3x3"
- type: "Convolution"
- bottom: "fire6_squeeze"
- top: "fire6_expand_3x3"
- convolution_param {
- num_output: 192
- kernel_size: 3
- stride: 1
- pad: 1
- weight_filler {
- type: "xavier"
- }
- bias_filler {
- type: "constant"
- value: 0.01
- }
- }
- }
- layer {
- name: "rect_fire6_expand_3x3"
- type: "ReLU"
- relu_param {
- negative_slope: 0.01
- }
- bottom: "fire6_expand_3x3"
- top: "fire6_expand_3x3"
- }
- layer {
- name: "fire6"
- type: "Concat"
- bottom: "fire6_expand_1x1"
- bottom: "fire6_expand_3x3"
- top: "fire6"
- concat_param {
- axis: 1
- }
- }
- layer {
- name: "fire7_squeeze"
- type: "Convolution"
- bottom: "fire6"
- top: "fire7_squeeze"
- convolution_param {
- num_output: 48
- kernel_size: 1
- stride: 1
- pad: 0
- weight_filler {
- type: "xavier"
- }
- bias_filler {
- type: "constant"
- value: 0.01
- }
- }
- }
- layer {
- name: "rect_fire7_squeeze"
- type: "ReLU"
- relu_param {
- negative_slope: 0.01
- }
- bottom: "fire7_squeeze"
- top: "fire7_squeeze"
- }
- layer {
- name: "fire7_expand_1x1"
- type: "Convolution"
- bottom: "fire7_squeeze"
- top: "fire7_expand_1x1"
- convolution_param {
- num_output: 192
- kernel_size: 1
- stride: 1
- pad: 0
- weight_filler {
- type: "xavier"
- }
- bias_filler {
- type: "constant"
- value: 0.01
- }
- }
- }
- layer {
- name: "rect_fire7_expand_1x1"
- type: "ReLU"
- relu_param {
- negative_slope: 0.01
- }
- bottom: "fire7_expand_1x1"
- top: "fire7_expand_1x1"
- }
- layer {
- name: "fire7_expand_3x3"
- type: "Convolution"
- bottom: "fire7_squeeze"
- top: "fire7_expand_3x3"
- convolution_param {
- num_output: 192
- kernel_size: 3
- stride: 1
- pad: 1
- weight_filler {
- type: "xavier"
- }
- bias_filler {
- type: "constant"
- value: 0.01
- }
- }
- }
- layer {
- name: "rect_fire7_expand_3x3"
- type: "ReLU"
- relu_param {
- negative_slope: 0.01
- }
- bottom: "fire7_expand_3x3"
- top: "fire7_expand_3x3"
- }
- layer {
- name: "fire7"
- type: "Concat"
- bottom: "fire7_expand_1x1"
- bottom: "fire7_expand_3x3"
- top: "fire7"
- concat_param {
- axis: 1
- }
- }
- layer {
- name: "fire8_squeeze"
- type: "Convolution"
- bottom: "fire7"
- top: "fire8_squeeze"
- convolution_param {
- num_output: 64
- kernel_size: 1
- stride: 1
- pad: 0
- weight_filler {
- type: "xavier"
- }
- bias_filler {
- type: "constant"
- value: 0.01
- }
- }
- }
- layer {
- name: "rect_fire8_squeeze"
- type: "ReLU"
- relu_param {
- negative_slope: 0.01
- }
- bottom: "fire8_squeeze"
- top: "fire8_squeeze"
- }
- layer {
- name: "fire8_expand_1x1"
- type: "Convolution"
- bottom: "fire8_squeeze"
- top: "fire8_expand_1x1"
- convolution_param {
- num_output: 256
- kernel_size: 1
- stride: 1
- pad: 0
- weight_filler {
- type: "xavier"
- }
- bias_filler {
- type: "constant"
- value: 0.01
- }
- }
- }
- layer {
- name: "rect_fire8_expand_1x1"
- type: "ReLU"
- relu_param {
- negative_slope: 0.01
- }
- bottom: "fire8_expand_1x1"
- top: "fire8_expand_1x1"
- }
- layer {
- name: "fire8_expand_3x3"
- type: "Convolution"
- bottom: "fire8_squeeze"
- top: "fire8_expand_3x3"
- convolution_param {
- num_output: 256
- kernel_size: 3
- stride: 1
- pad: 1
- weight_filler {
- type: "xavier"
- }
- bias_filler {
- type: "constant"
- value: 0.01
- }
- }
- }
- layer {
- name: "rect_fire8_expand_3x3"
- type: "ReLU"
- relu_param {
- negative_slope: 0.01
- }
- bottom: "fire8_expand_3x3"
- top: "fire8_expand_3x3"
- }
- layer {
- name: "fire8"
- type: "Concat"
- bottom: "fire8_expand_1x1"
- bottom: "fire8_expand_3x3"
- top: "fire8"
- concat_param {
- axis: 1
- }
- }
- layer {
- name: "pool8"
- type: "Pooling"
- bottom: "fire8"
- top: "pool8"
- pooling_param {
- pool: MAX
- kernel_size: 3
- stride: 2
- }
- }
- layer {
- name: "fire9_squeeze"
- type: "Convolution"
- bottom: "pool8"
- top: "fire9_squeeze"
- convolution_param {
- num_output: 64
- kernel_size: 1
- stride: 1
- pad: 0
- weight_filler {
- type: "xavier"
- }
- bias_filler {
- type: "constant"
- value: 0.01
- }
- }
- }
- layer {
- name: "rect_fire9_squeeze"
- type: "ReLU"
- relu_param {
- negative_slope: 0.01
- }
- bottom: "fire9_squeeze"
- top: "fire9_squeeze"
- }
- layer {
- name: "fire9_expand_1x1"
- type: "Convolution"
- bottom: "fire9_squeeze"
- top: "fire9_expand_1x1"
- convolution_param {
- num_output: 256
- kernel_size: 1
- stride: 1
- pad: 0
- weight_filler {
- type: "xavier"
- }
- bias_filler {
- type: "constant"
- value: 0.01
- }
- }
- }
- layer {
- name: "rect_fire9_expand_1x1"
- type: "ReLU"
- relu_param {
- negative_slope: 0.01
- }
- bottom: "fire9_expand_1x1"
- top: "fire9_expand_1x1"
- }
- layer {
- name: "fire9_expand_3x3"
- type: "Convolution"
- bottom: "fire9_squeeze"
- top: "fire9_expand_3x3"
- convolution_param {
- num_output: 256
- kernel_size: 3
- stride: 1
- pad: 1
- weight_filler {
- type: "xavier"
- }
- bias_filler {
- type: "constant"
- value: 0.01
- }
- }
- }
- layer {
- name: "rect_fire9_expand_3x3"
- type: "ReLU"
- relu_param {
- negative_slope: 0.01
- }
- bottom: "fire9_expand_3x3"
- top: "fire9_expand_3x3"
- }
- layer {
- name: "fire9"
- type: "Concat"
- bottom: "fire9_expand_1x1"
- bottom: "fire9_expand_3x3"
- top: "fire9"
- concat_param {
- axis: 1
- }
- }
- layer {
- name: "conv10"
- type: "Convolution"
- bottom: "fire9"
- top: "conv10"
- convolution_param {
- num_output: 1000
- kernel_size: 1
- stride: 1
- weight_filler {
- type: "gaussian"
- mean: 0.0
- std: 0.01
- }
- bias_filler {
- type: "constant"
- value: 0.01
- }
- }
- }
- layer {
- name: "rect_conv10"
- type: "ReLU"
- relu_param {
- negative_slope: 0.01
- }
- bottom: "conv10"
- top: "conv10"
- }
- layer {
- name: "pool10"
- type: "Pooling"
- bottom: "conv10"
- top: "pool10"
- pooling_param {
- pool: AVE
- global_pooling: true
- }
- }
- layer {
- name: "predictions"
- type: "Softmax"
- bottom: "pool10"
- top: "predictions"
- softmax_param {
- axis: 1
- }
- }
|