dsisds / caffe-SPPNet

detection-developing
BSD 2-Clause "Simplified" License
20 stars 10 forks source link

SPP layer error #4

Open Isaamarod opened 5 years ago

Isaamarod commented 5 years ago

Hi,

I added SPP layer into my network in Caffe official version as:

layers { name: "spatial_pyramid_pooling" type: "SPP" bottom: "pool5" top: "spatial_pyramid_pooling" spatial_pyramid_pooling_param { pool: MAX spatial_bin: 1 spatial_bin: 2 spatial_bin: 3 spatial_bin: 6 scale: 1 } }

It launchs the following error while train step: Error parsing text-format caffe.NetParameter: 262:9: Expected integer or identifier. F0130 11:18:58.817456 5416 upgrade_proto.cpp:88] Check failed: ReadProtoFromTextFile(param_file, param) Failed to parse NetParameter file: examples/glioma/alexnet_spp_new.prototxt

I'm trying with and works as:

layer { name: "spatial_pyramid_pooling" type: "SPP" bottom: "pool5" top: "spatial_pyramid_pooling" spp_param { pyramid_height: 2 } }

Do I have to add some to layer .hpp?

Thanks.