faster_rcnn
faster_rcnn copied to clipboard
Error parsing text-format caffe.NetParameter: 58:28:Message type "caffe.DropoutParameter" has no field named "scale_train"
when I try to test the faster_rcnn_VOC0712_ZF models ,one error occured: Protobuf : Error parsing text-format caffe.NetParameter: 58:28: Message type "caffe.DropoutParameter" has no field named "scale_train". . at D:\ThirdPartyLibrary\protobuf\src\google\protobuf\text_format.cc Line 296
error: caffe.get_net (line 27) hNet = caffe_('get_net', model_file, phase_name);
error: caffe.Net (line 31) self = caffe.get_net(varargin{:});
error: script_faster_rcnn_demo (line 36) fast_rcnn_net = caffe.Net(proposal_detection_model.detection_net_def, 'test'); Could anyone tell me what happened? and how to solve it? I'm waiting online!!!!
the aim is to define the "scale_train" into "dropout_layer.cpp/cu/hpp"
- Replace the file "dropout_layer.cpp", "dropout_layer.cu" in caffe-master/src/caffe/layers/ with the same files in ./caffe-fast-rcnn/
- Replace the file "dropout_layer.hpp" in caffe-master/include/caffe/layers/ with the same files in ./caffe-fast-rcnn/
- Change the file "caffe-master/src/caffe/proto/caffe.proto" as the same as " caffe-fast-rcnn/src/caffe/proto/caffe.proto" in "message DropoutParameter{ }" part by adding "optional bool scale_train = 2 [default = true]; // scale train or test phase".