Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
huihuangzhao opened this issue Jul 28, 2018 · 2 comments

Comments

@huihuangzhao
Copy link

[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
Copy link
Owner

yun-liu commented Jul 29, 2018

Your Caffe does not have Eltwise and SigmoidCrossEntropyLoss layers. I don't understand it. Maybe you should use my Caffe. Otherwise, please refer to #24 for more information.

@huihuangzhao
Copy link
Author

Thanks ,i will try it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants