yun-liu / RCF

Richer Convolutional Features for Edge Detection
Other
753 stars 259 forks source link

Failed in model= loadcaffe.load('./models/deploy2_cheng.prototxt', './models/rcf_pretrained_bsds.caffemodel', 'nn'): #49

Open huihuangzhao opened 5 years ago

huihuangzhao commented 5 years ago

[libprotobuf ERROR google/protobuf/text_format.cc:274] Error parsing text-format caffe.NetParameter: 54:69: Message type "caffe.ConvolutionParameter" has no field named "dilation". Successfully loaded ./models/rcf_pretrained_bsds.caffemodel warning: module 'data [type ImageLabelmapData]' not found warning: module 'data_data_0_split [type Split]' not found warning: module 'label_data_1_split [type Split]' not found warning: module 'conv1_1_relu1_1_0_split [type Split]' not found warning: module 'conv1_2_relu1_2_0_split [type Split]' not found warning: module 'conv2_1_relu2_1_0_split [type Split]' not found warning: module 'conv2_2_relu2_2_0_split [type Split]' not found warning: module 'conv3_1_relu3_1_0_split [type Split]' not found warning: module 'conv3_2_relu3_2_0_split [type Split]' not found warning: module 'conv3_3_relu3_3_0_split [type Split]' not found warning: module 'conv4_1_relu4_1_0_split [type Split]' not found warning: module 'conv4_2_relu4_2_0_split [type Split]' not found warning: module 'conv4_3_relu4_3_0_split [type Split]' not found warning: module 'conv5_1_relu5_1_0_split [type Split]' not found warning: module 'conv5_2_relu5_2_0_split [type Split]' not found warning: module 'score_fuse1 [type Eltwise]' not found warning: module 'upscore-dsn1_score-dsn1_0_split [type Split]' not found warning: module 'dsn1_loss [type SigmoidCrossEntropyLoss]' not found warning: module 'score_fuse2 [type Eltwise]' not found warning: module 'upsample_2 [type Deconvolution]' not found warning: module 'crop2 [type AutoCrop]' not found warning: module 'upscore-dsn2_crop2_0_split [type Split]' not found warning: module 'dsn2_loss [type SigmoidCrossEntropyLoss]' not found warning: module 'score_fuse3 [type Eltwise]' not found warning: module 'upsample_4 [type Deconvolution]' not found warning: module 'crop3 [type AutoCrop]' not found warning: module 'upscore-dsn3_crop3_0_split [type Split]' not found warning: module 'dsn3_loss [type SigmoidCrossEntropyLoss]' not found warning: module 'score_fuse4 [type Eltwise]' not found warning: module 'upsample_8 [type Deconvolution]' not found warning: module 'crop4 [type AutoCrop]' not found warning: module 'upscore-dsn4_crop4_0_split [type Split]' not found warning: module 'dsn4_loss [type SigmoidCrossEntropyLoss]' not found warning: module 'score_fuse5 [type Eltwise]' not found warning: module 'upsample_8_5 [type Deconvolution]' not found warning: module 'crop5 [type AutoCrop]' not found warning: module 'upscore-dsn5_crop5_0_split [type Split]' not found warning: module 'dsn5_loss [type SigmoidCrossEntropyLoss]' not found warning: module 'concat [type Concat]' not found warning: module 'fuse_loss [type SigmoidCrossEntropyLoss]' not found ........

Then when run local out= model:forward(image_test) There is error as following In 31 module of nn.Sequential: ~/torch/install/share/lua/5.1/nn/THNN.lua:110: Need input of dimension 3 and input.size[0] == 64 but got input to be of shape: [512 x 68 x 68] at /tmp/luarocks_cunn-scm-1-5732/cunn/lib/THCUNN/generic/SpatialConvolutionMM.cu:49 stack traceback:

Could you please tell me why?

Many thanks

yun-liu commented 5 years ago

Your Caffe does not have Eltwise and SigmoidCrossEntropyLoss layers. I don't understand it. Maybe you should use my Caffe. Otherwise, please refer to https://github.com/yun-liu/rcf/issues/24 for more information.

huihuangzhao commented 5 years ago

Thanks ,i will try it.