net = caffe.Classifier(caffe_root + 'models/bvlc_reference_caffenet/deploy.prototxt',
caffe_root + 'models/bvlc_reference_caffenet/bvlc_reference_caffenet.caffemodel')
If I set the last layer to exist only in the test phase, like this:
layers {
name: "prob"
type: SOFTMAX
bottom: "fc8"
top: "prob"
include: {phase: TEST}
}
And then this layer will be filtered, although in the init of Classifier "self.set_phase_test()" is excuted!
Furthermore, in the http://nbviewer.ipython.org/github/BVLC/caffe/blob/master/examples/filter_visualization.ipynb
caffe.set_phase_test()
caffe.set_mode_cpu()
will cause an error:" AttributeError: 'module' object has no attribute 'set_phase_train' ". Is it because of any change of caffe version?