Tongcheng / DN_CaffeScript

128 stars 58 forks source link

Error parsing text-format caffe.NetParameter: 51:20: Message type "caffe.LayParameter" has no field named "denseblock_param" #11

Open DanChen001 opened 6 years ago

DanChen001 commented 6 years ago

Hello, thank you for sharing the code.

I meet the problem as follows, can you give me some advice? thank you.

[libprotobuf ERROR google/protobuf/text_format.cc:245] Error parsing text-format caffe.NetParameter: 51:20: Message type "caffe.LayerParameter" has no field named "denseblock_param". F0905 20:09:18.149165 3999 upgrade_proto.cpp:88] Check failed: ReadProtoFromTextFile(param_file, param) Failed to parse NetParameter file: examples/DenseNN_SR/Our_train_test_DenCNN_SR_Net.prototxt Check failure stack trace: @ 0x7f0aaa0b89fd google::LogMessage::Fail() @ 0x7f0aaa0ba89d google::LogMessage::SendToLog() @ 0x7f0aaa0b85ec google::LogMessage::Flush() @ 0x7f0aaa0bb1be google::LogMessageFatal::~LogMessageFatal() @ 0x7f0aaa726c37 caffe::ReadNetParamsFromTextFileOrDie() @ 0x7f0aaa6e5231 caffe::Solver<>::InitTrainNet() @ 0x7f0aaa6e56ff caffe::Solver<>::Init() @ 0x7f0aaa6e5b1d caffe::Solver<>::Solver() @ 0x7f0aaa6d6d61 caffe::Creator_NesterovSolver<>() @ 0x40ed51 caffe::SolverRegistry<>::CreateSolver() @ 0x408b2c train() @ 0x406432 main @ 0x7f0aa90c6f45 (unknown) @ 0x406ab6 (unknown)

winggan commented 6 years ago

You should run the network configuration on the customized caffe mentioned in README.md DenseBlockLayer is a custom layer in that caffe and will not appear in the official caffe

DanChen001 commented 6 years ago

Ok, thank you. I will try.

sytow commented 6 years ago

@DanChen001 Have you solved that?I meet the same problem when I test the model using python interface... thank u!

sytow commented 6 years ago

@gzygzy9211 Any further help please? I just run it under the caffe-master root and I don't know what's wrong ...thank you !!