chibi@zori:~/caffe$ cd python; python classify.py --raw_scale 255 ../101_ObjectCategories/cougar_face/image_0033.jpg ../result.npy; cd .. CPU mode WARNING: Logging before InitGoogleLogging() is written to STDERR I1017 11:32:03.457757 3007 net.cpp:53] Initializing net from parameters: name: "CaffeNet" state { phase: TEST level: 0 } layer { name: "data" type: "Input" top: "data" input_param { shape { dim: 10 dim: 3 dim: 227 dim: 227 } } } layer { name: "conv1" type: "Convolution" bottom: "data" top: "conv1" convolution_param { num_output: 96 kernel_size: 11 stride: 4 } } layer { name: "relu1" type: "ReLU" bottom: "conv1" top: "conv1" } layer { name: "pool1" type: "Pooling" bottom: "conv1" top: "pool1" pooling_param { pool: MAX kernel_size: 3 stride: 2 } } layer { name: "norm1" type: "LRN" bottom: "pool1" top: "norm1" lrn_param { local_size: 5 alpha: 0.0001 beta: 0.75 } } layer { name: "conv2" type: "Convolution" bottom: "norm1" top: "conv2" convolution_param { num_output: 256 pad: 2 kernel_size: 5 group: 2 } } layer { name: "relu2" type: "ReLU" bottom: "conv2" top: "conv2" } layer { name: "pool2" type: "Pooling" bottom: "conv2" top: "pool2" pooling_param { pool: MAX kernel_size: 3 stride: 2 } } layer { name: "norm2" type: "LRN" bottom: "pool2" top: "norm2" lrn_param { local_size: 5 alpha: 0.0001 beta: 0.75 } } layer { name: "conv3" type: "Convolution" bottom: "norm2" top: "conv3" convolution_param { num_output: 384 pad: 1 kernel_size: 3 } } layer { name: "relu3" type: "ReLU" bottom: "conv3" top: "conv3" } layer { name: "conv4" type: "Convolution" bottom: "conv3" top: "conv4" convolution_param { num_output: 384 pad: 1 kernel_size: 3 group: 2 } } layer { name: "relu4" type: "ReLU" bottom: "conv4" top: "conv4" } layer { name: "conv5" type: "Convolution" bottom: "conv4" top: "conv5" convolution_param { num_output: 256 pad: 1 kernel_size: 3 group: 2 } } layer { name: "relu5" type: "ReLU" bottom: "conv5" top: "conv5" } layer { name: "pool5" type: "Pooling" bottom: "conv5" top: "pool5" pooling_param { pool: MAX kernel_size: 3 stride: 2 } } layer { name: "fc6" type: "InnerProduct" bottom: "pool5" top: "fc6" inner_product_param { num_output: 4096 } } layer { name: "relu6" type: "ReLU" bottom: "fc6" top: "fc6" } layer { name: "drop6" type: "Dropout" bottom: "fc6" top: "fc6" dropout_param { dropout_ratio: 0.5 } } layer { name: "fc7" type: "InnerProduct" bottom: "fc6" top: "fc7" inner_product_param { num_output: 4096 } } layer { name: "relu7" type: "ReLU" bottom: "fc7" top: "fc7" } layer { name: "drop7" type: "Dropout" bottom: "fc7" top: "fc7" dropout_param { dropout_ratio: 0.5 } } layer { name: "fc8" type: "InnerProduct" bottom: "fc7" top: "fc8" inner_product_param { num_output: 1000 } } layer { name: "prob" type: "Softmax" bottom: "fc8" top: "prob" } I1017 11:32:03.457881 3007 layer_factory.hpp:77] Creating layer data I1017 11:32:03.457892 3007 net.cpp:86] Creating Layer data I1017 11:32:03.457898 3007 net.cpp:382] data -> data I1017 11:32:03.457913 3007 net.cpp:124] Setting up data I1017 11:32:03.457921 3007 net.cpp:131] Top shape: 10 3 227 227 (1545870) I1017 11:32:03.457926 3007 net.cpp:139] Memory required for data: 6183480 I1017 11:32:03.457929 3007 layer_factory.hpp:77] Creating layer conv1 I1017 11:32:03.457937 3007 net.cpp:86] Creating Layer conv1 I1017 11:32:03.457940 3007 net.cpp:408] conv1 <- data I1017 11:32:03.457947 3007 net.cpp:382] conv1 -> conv1 I1017 11:32:04.356118 3007 net.cpp:124] Setting up conv1 I1017 11:32:04.356144 3007 net.cpp:131] Top shape: 10 96 55 55 (2904000) I1017 11:32:04.356153 3007 net.cpp:139] Memory required for data: 17799480 I1017 11:32:04.356171 3007 layer_factory.hpp:77] Creating layer relu1 I1017 11:32:04.356184 3007 net.cpp:86] Creating Layer relu1 I1017 11:32:04.356189 3007 net.cpp:408] relu1 <- conv1 I1017 11:32:04.356194 3007 net.cpp:369] relu1 -> conv1 (in-place) I1017 11:32:04.356554 3007 net.cpp:124] Setting up relu1 I1017 11:32:04.356564 3007 net.cpp:131] Top shape: 10 96 55 55 (2904000) I1017 11:32:04.356570 3007 net.cpp:139] Memory required for data: 29415480 I1017 11:32:04.356573 3007 layer_factory.hpp:77] Creating layer pool1 I1017 11:32:04.356580 3007 net.cpp:86] Creating Layer pool1 I1017 11:32:04.356585 3007 net.cpp:408] pool1 <- conv1 I1017 11:32:04.356590 3007 net.cpp:382] pool1 -> pool1 I1017 11:32:04.356603 3007 net.cpp:124] Setting up pool1 I1017 11:32:04.356609 3007 net.cpp:131] Top shape: 10 96 27 27 (699840) I1017 11:32:04.356612 3007 net.cpp:139] Memory required for data: 32214840 I1017 11:32:04.356616 3007 layer_factory.hpp:77] Creating layer norm1 I1017 11:32:04.356624 3007 net.cpp:86] Creating Layer norm1 I1017 11:32:04.356628 3007 net.cpp:408] norm1 <- pool1 I1017 11:32:04.356632 3007 net.cpp:382] norm1 -> norm1 I1017 11:32:04.357167 3007 net.cpp:124] Setting up norm1 I1017 11:32:04.357179 3007 net.cpp:131] Top shape: 10 96 27 27 (699840) I1017 11:32:04.357183 3007 net.cpp:139] Memory required for data: 35014200 I1017 11:32:04.357187 3007 layer_factory.hpp:77] Creating layer conv2 I1017 11:32:04.357197 3007 net.cpp:86] Creating Layer conv2 I1017 11:32:04.357200 3007 net.cpp:408] conv2 <- norm1 I1017 11:32:04.357205 3007 net.cpp:382] conv2 -> conv2 I1017 11:32:04.361162 3007 net.cpp:124] Setting up conv2 I1017 11:32:04.361176 3007 net.cpp:131] Top shape: 10 256 27 27 (1866240) I1017 11:32:04.361181 3007 net.cpp:139] Memory required for data: 42479160 I1017 11:32:04.361189 3007 layer_factory.hpp:77] Creating layer relu2 I1017 11:32:04.361197 3007 net.cpp:86] Creating Layer relu2 I1017 11:32:04.361202 3007 net.cpp:408] relu2 <- conv2 I1017 11:32:04.361207 3007 net.cpp:369] relu2 -> conv2 (in-place) I1017 11:32:04.361814 3007 net.cpp:124] Setting up relu2 I1017 11:32:04.361825 3007 net.cpp:131] Top shape: 10 256 27 27 (1866240) I1017 11:32:04.361829 3007 net.cpp:139] Memory required for data: 49944120 I1017 11:32:04.361834 3007 layer_factory.hpp:77] Creating layer pool2 I1017 11:32:04.361840 3007 net.cpp:86] Creating Layer pool2 I1017 11:32:04.361843 3007 net.cpp:408] pool2 <- conv2 I1017 11:32:04.361850 3007 net.cpp:382] pool2 -> pool2 I1017 11:32:04.361860 3007 net.cpp:124] Setting up pool2 I1017 11:32:04.361865 3007 net.cpp:131] Top shape: 10 256 13 13 (432640) I1017 11:32:04.361868 3007 net.cpp:139] Memory required for data: 51674680 I1017 11:32:04.361871 3007 layer_factory.hpp:77] Creating layer norm2 I1017 11:32:04.361878 3007 net.cpp:86] Creating Layer norm2 I1017 11:32:04.361883 3007 net.cpp:408] norm2 <- pool2 I1017 11:32:04.361888 3007 net.cpp:382] norm2 -> norm2 I1017 11:32:04.362298 3007 net.cpp:124] Setting up norm2 I1017 11:32:04.362308 3007 net.cpp:131] Top shape: 10 256 13 13 (432640) I1017 11:32:04.362313 3007 net.cpp:139] Memory required for data: 53405240 I1017 11:32:04.362315 3007 layer_factory.hpp:77] Creating layer conv3 I1017 11:32:04.362324 3007 net.cpp:86] Creating Layer conv3 I1017 11:32:04.362329 3007 net.cpp:408] conv3 <- norm2 I1017 11:32:04.362334 3007 net.cpp:382] conv3 -> conv3 I1017 11:32:04.365254 3007 net.cpp:124] Setting up conv3 I1017 11:32:04.365267 3007 net.cpp:131] Top shape: 10 384 13 13 (648960) I1017 11:32:04.365272 3007 net.cpp:139] Memory required for data: 56001080 I1017 11:32:04.365281 3007 layer_factory.hpp:77] Creating layer relu3 I1017 11:32:04.365289 3007 net.cpp:86] Creating Layer relu3 I1017 11:32:04.365293 3007 net.cpp:408] relu3 <- conv3 I1017 11:32:04.365298 3007 net.cpp:369] relu3 -> conv3 (in-place) I1017 11:32:04.365914 3007 net.cpp:124] Setting up relu3 I1017 11:32:04.365926 3007 net.cpp:131] Top shape: 10 384 13 13 (648960) I1017 11:32:04.365931 3007 net.cpp:139] Memory required for data: 58596920 I1017 11:32:04.365934 3007 layer_factory.hpp:77] Creating layer conv4 I1017 11:32:04.365943 3007 net.cpp:86] Creating Layer conv4 I1017 11:32:04.365947 3007 net.cpp:408] conv4 <- conv3 I1017 11:32:04.365954 3007 net.cpp:382] conv4 -> conv4 I1017 11:32:04.372030 3007 net.cpp:124] Setting up conv4 I1017 11:32:04.372043 3007 net.cpp:131] Top shape: 10 384 13 13 (648960) I1017 11:32:04.372047 3007 net.cpp:139] Memory required for data: 61192760 I1017 11:32:04.372054 3007 layer_factory.hpp:77] Creating layer relu4 I1017 11:32:04.372063 3007 net.cpp:86] Creating Layer relu4 I1017 11:32:04.372068 3007 net.cpp:408] relu4 <- conv4 I1017 11:32:04.372073 3007 net.cpp:369] relu4 -> conv4 (in-place) I1017 11:32:04.372493 3007 net.cpp:124] Setting up relu4 I1017 11:32:04.372504 3007 net.cpp:131] Top shape: 10 384 13 13 (648960) I1017 11:32:04.372509 3007 net.cpp:139] Memory required for data: 63788600 I1017 11:32:04.372512 3007 layer_factory.hpp:77] Creating layer conv5 I1017 11:32:04.372520 3007 net.cpp:86] Creating Layer conv5 I1017 11:32:04.372525 3007 net.cpp:408] conv5 <- conv4 I1017 11:32:04.372529 3007 net.cpp:382] conv5 -> conv5 I1017 11:32:04.377566 3007 net.cpp:124] Setting up conv5 I1017 11:32:04.377579 3007 net.cpp:131] Top shape: 10 256 13 13 (432640) I1017 11:32:04.377584 3007 net.cpp:139] Memory required for data: 65519160 I1017 11:32:04.377596 3007 layer_factory.hpp:77] Creating layer relu5 I1017 11:32:04.377604 3007 net.cpp:86] Creating Layer relu5 I1017 11:32:04.377607 3007 net.cpp:408] relu5 <- conv5 I1017 11:32:04.377614 3007 net.cpp:369] relu5 -> conv5 (in-place) I1017 11:32:04.378039 3007 net.cpp:124] Setting up relu5 I1017 11:32:04.378051 3007 net.cpp:131] Top shape: 10 256 13 13 (432640) I1017 11:32:04.378054 3007 net.cpp:139] Memory required for data: 67249720 I1017 11:32:04.378059 3007 layer_factory.hpp:77] Creating layer pool5 I1017 11:32:04.378065 3007 net.cpp:86] Creating Layer pool5 I1017 11:32:04.378069 3007 net.cpp:408] pool5 <- conv5 I1017 11:32:04.378075 3007 net.cpp:382] pool5 -> pool5 I1017 11:32:04.378084 3007 net.cpp:124] Setting up pool5 I1017 11:32:04.378089 3007 net.cpp:131] Top shape: 10 256 6 6 (92160) I1017 11:32:04.378093 3007 net.cpp:139] Memory required for data: 67618360 I1017 11:32:04.378096 3007 layer_factory.hpp:77] Creating layer fc6 I1017 11:32:04.378104 3007 net.cpp:86] Creating Layer fc6 I1017 11:32:04.378109 3007 net.cpp:408] fc6 <- pool5 I1017 11:32:04.378113 3007 net.cpp:382] fc6 -> fc6 I1017 11:32:04.436795 3007 net.cpp:124] Setting up fc6 I1017 11:32:04.436820 3007 net.cpp:131] Top shape: 10 4096 (40960) I1017 11:32:04.436823 3007 net.cpp:139] Memory required for data: 67782200 I1017 11:32:04.436833 3007 layer_factory.hpp:77] Creating layer relu6 I1017 11:32:04.436842 3007 net.cpp:86] Creating Layer relu6 I1017 11:32:04.436847 3007 net.cpp:408] relu6 <- fc6 I1017 11:32:04.436856 3007 net.cpp:369] relu6 -> fc6 (in-place) I1017 11:32:04.437695 3007 net.cpp:124] Setting up relu6 I1017 11:32:04.437707 3007 net.cpp:131] Top shape: 10 4096 (40960) I1017 11:32:04.437712 3007 net.cpp:139] Memory required for data: 67946040 I1017 11:32:04.437716 3007 layer_factory.hpp:77] Creating layer drop6 I1017 11:32:04.437727 3007 net.cpp:86] Creating Layer drop6 I1017 11:32:04.437732 3007 net.cpp:408] drop6 <- fc6 I1017 11:32:04.437739 3007 net.cpp:369] drop6 -> fc6 (in-place) I1017 11:32:04.437747 3007 net.cpp:124] Setting up drop6 I1017 11:32:04.437752 3007 net.cpp:131] Top shape: 10 4096 (40960) I1017 11:32:04.437755 3007 net.cpp:139] Memory required for data: 68109880 I1017 11:32:04.437759 3007 layer_factory.hpp:77] Creating layer fc7 I1017 11:32:04.437765 3007 net.cpp:86] Creating Layer fc7 I1017 11:32:04.437769 3007 net.cpp:408] fc7 <- fc6 I1017 11:32:04.437774 3007 net.cpp:382] fc7 -> fc7 I1017 11:32:04.463646 3007 net.cpp:124] Setting up fc7 I1017 11:32:04.463672 3007 net.cpp:131] Top shape: 10 4096 (40960) I1017 11:32:04.463675 3007 net.cpp:139] Memory required for data: 68273720 I1017 11:32:04.463685 3007 layer_factory.hpp:77] Creating layer relu7 I1017 11:32:04.463693 3007 net.cpp:86] Creating Layer relu7 I1017 11:32:04.463698 3007 net.cpp:408] relu7 <- fc7 I1017 11:32:04.463706 3007 net.cpp:369] relu7 -> fc7 (in-place) I1017 11:32:04.464275 3007 net.cpp:124] Setting up relu7 I1017 11:32:04.464287 3007 net.cpp:131] Top shape: 10 4096 (40960) I1017 11:32:04.464290 3007 net.cpp:139] Memory required for data: 68437560 I1017 11:32:04.464295 3007 layer_factory.hpp:77] Creating layer drop7 I1017 11:32:04.464303 3007 net.cpp:86] Creating Layer drop7 I1017 11:32:04.464308 3007 net.cpp:408] drop7 <- fc7 I1017 11:32:04.464314 3007 net.cpp:369] drop7 -> fc7 (in-place) I1017 11:32:04.464321 3007 net.cpp:124] Setting up drop7 I1017 11:32:04.464326 3007 net.cpp:131] Top shape: 10 4096 (40960) I1017 11:32:04.464330 3007 net.cpp:139] Memory required for data: 68601400 I1017 11:32:04.464334 3007 layer_factory.hpp:77] Creating layer fc8 I1017 11:32:04.464339 3007 net.cpp:86] Creating Layer fc8 I1017 11:32:04.464342 3007 net.cpp:408] fc8 <- fc7 I1017 11:32:04.464349 3007 net.cpp:382] fc8 -> fc8 I1017 11:32:04.469679 3007 net.cpp:124] Setting up fc8 I1017 11:32:04.469689 3007 net.cpp:131] Top shape: 10 1000 (10000) I1017 11:32:04.469693 3007 net.cpp:139] Memory required for data: 68641400 I1017 11:32:04.469700 3007 layer_factory.hpp:77] Creating layer prob I1017 11:32:04.469707 3007 net.cpp:86] Creating Layer prob I1017 11:32:04.469710 3007 net.cpp:408] prob <- fc8 I1017 11:32:04.469715 3007 net.cpp:382] prob -> prob I1017 11:32:04.471611 3007 net.cpp:124] Setting up prob I1017 11:32:04.471622 3007 net.cpp:131] Top shape: 10 1000 (10000) I1017 11:32:04.471626 3007 net.cpp:139] Memory required for data: 68681400 I1017 11:32:04.471630 3007 net.cpp:202] prob does not need backward computation. I1017 11:32:04.471635 3007 net.cpp:202] fc8 does not need backward computation. I1017 11:32:04.471639 3007 net.cpp:202] drop7 does not need backward computation. I1017 11:32:04.471643 3007 net.cpp:202] relu7 does not need backward computation. I1017 11:32:04.471647 3007 net.cpp:202] fc7 does not need backward computation. I1017 11:32:04.471652 3007 net.cpp:202] drop6 does not need backward computation. I1017 11:32:04.471655 3007 net.cpp:202] relu6 does not need backward computation. I1017 11:32:04.471659 3007 net.cpp:202] fc6 does not need backward computation. I1017 11:32:04.471663 3007 net.cpp:202] pool5 does not need backward computation. I1017 11:32:04.471668 3007 net.cpp:202] relu5 does not need backward computation. I1017 11:32:04.471671 3007 net.cpp:202] conv5 does not need backward computation. I1017 11:32:04.471675 3007 net.cpp:202] relu4 does not need backward computation. I1017 11:32:04.471678 3007 net.cpp:202] conv4 does not need backward computation. I1017 11:32:04.471683 3007 net.cpp:202] relu3 does not need backward computation. I1017 11:32:04.471686 3007 net.cpp:202] conv3 does not need backward computation. I1017 11:32:04.471693 3007 net.cpp:202] norm2 does not need backward computation. I1017 11:32:04.471696 3007 net.cpp:202] pool2 does not need backward computation. I1017 11:32:04.471700 3007 net.cpp:202] relu2 does not need backward computation. I1017 11:32:04.471704 3007 net.cpp:202] conv2 does not need backward computation. I1017 11:32:04.471709 3007 net.cpp:202] norm1 does not need backward computation. I1017 11:32:04.471711 3007 net.cpp:202] pool1 does not need backward computation. I1017 11:32:04.471715 3007 net.cpp:202] relu1 does not need backward computation. I1017 11:32:04.471719 3007 net.cpp:202] conv1 does not need backward computation. I1017 11:32:04.471724 3007 net.cpp:202] data does not need backward computation. I1017 11:32:04.471727 3007 net.cpp:244] This network produces output prob I1017 11:32:04.471740 3007 net.cpp:257] Network initialization done. I1017 11:32:04.603453 3007 upgrade_proto.cpp:46] Attempting to upgrade input file specified using deprecated transformation parameters: ../models/bvlc_reference_caffenet/bvlc_reference_caffenet.caffemodel I1017 11:32:04.603482 3007 upgrade_proto.cpp:49] Successfully upgraded file specified using deprecated data transformation parameters. W1017 11:32:04.603487 3007 upgrade_proto.cpp:51] Note that future Caffe releases will only support transform_param messages for transformation fields. I1017 11:32:04.603489 3007 upgrade_proto.cpp:55] Attempting to upgrade input file specified using deprecated V1LayerParameter: ../models/bvlc_reference_caffenet/bvlc_reference_caffenet.caffemodel I1017 11:32:04.823818 3007 upgrade_proto.cpp:63] Successfully upgraded file specified using deprecated V1LayerParameter I1017 11:32:04.862773 3007 net.cpp:746] Ignoring source layer loss Loading file: ../101_ObjectCategories/cougar_face/image_0033.jpg Classifying 1 inputs. Done in 1.04 s. Saving results into ../result.npy chibi@zori:~/caffe$ python show_result.py data/ilsvrc12/synset_words.txt result.npy #1 | n02125311 cougar, puma, catamount, mountain lion, painter, panther, Felis concolor | 99.3% #2 | n02114712 red wolf, maned wolf, Canis rufus, Canis niger | 0.1% #3 | n02129165 lion, king of beasts, Panthera leo | 0.1% chibi@zori:~/caffe$