ShaoqingRen / SPP_net

SPP_net : Spatial Pyramid Pooling in Deep Convolutional Networks for Visual Recognition
364 stars 237 forks source link

prototxt file does not match the model corresponding #54

Closed ucasqcz closed 5 years ago

ucasqcz commented 8 years ago

when i modify the data/cnn_model/Zeiler_spm_scale224_test_conv5.prototxt according to the caffe.proto file in your SPP_net branch in the caffe fork,it can not copy model from the file Zeiler_conv5 model file ,and i get the following error , net.cpp:710] Ignoring source layer ImageNet net.cpp:713] Copying source layer conv1 net.cpp:716] Check failed: target_blobs.size() == source_layer.blobs_size() (2 vs. 0) Incompatible number of blobs for layer conv1

the modified prototxt is like this:

layers { name: "conv1" type: CONVOLUTION convolution_param{ num_output: 96 kernel_size: 7 pad: 1 stride: 2 weight_filler { type: "gaussian" std: 0.01 } bias_filler { type: "constant" value: 0 } } blobs_lr: 1.0 blobs_lr: 2.0 bottom: "data" top: "conv1" } the model file does not match the prototxt file ? Thanks!

ucasqcz commented 8 years ago

the model file is downloaded from the website in your fetch_model_data.m file , is the url not right? @ShaoqingRen