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

Message type "caffe.LayerParameter" has no field named " " #2839

Closed
johnnyconstantine opened this issue Jul 30, 2015 · 5 comments
Closed

Message type "caffe.LayerParameter" has no field named " " #2839

johnnyconstantine opened this issue Jul 30, 2015 · 5 comments

Comments

@johnnyconstantine
Copy link

hi ,now I came with a problem of using python.
I created a new layer named "Insanity",and I added the layer into caffe followed this blog https://yunmingzhang.wordpress.com/2015/01/19/how-to-create-your-own-layer-in-deep-learning-framework-caffe/
then I designed my own network and trained with it . It worked !!!!!!.But when I tried to do classification job like this http://nbviewer.ipython.org/github/BVLC/caffe/blob/master/examples/00-classification.ipynb
it failed.
net = caffe.Net(caffe_root + 'mydeploy.prototxt',
caffe_root + 'my.caffemodel',
caffe.TEST)
the bug shows:
[libprotobuf ERROR google/protobuf/text_format.cc:245] Error parsing text-format caffe.NetParameter: 40:17: Message type "caffe.LayerParameter" has no field named "insanity_param".
WARNING: Logging before InitGoogleLogging() is written to STDERR
F0730 16:25:56.419668 15099 upgrade_proto.cpp:928] Check failed: ReadProtoFromTextFile(param_file, param) Failed to parse NetParameter file: ./mydeploy.prototxt
*** Check failure stack trace: ***
Aborted (core dumped)
i need help , any suggestions would be helpful

@johnnyconstantine
Copy link
Author

problem solved, it was the path being setting wrong.

@WoooHaa
Copy link

WoooHaa commented Oct 23, 2015

@johnnyconstantine Hi, I have the same problem with you, can you tell me how did you solve it in detail please.
What's the "path being setting wrong" mean specifically?
Thx.

@musafirsafwan
Copy link

@WoooHaa and for others who are getting this error, you can find a variable called CAFFE_ROOT in your main python file or config.py. Set that to your Caffe root path.

@tlmolane
Copy link

tlmolane commented Jan 22, 2019

where is this config.py file? I am having a similar problem

@saudpp
Copy link

saudpp commented Mar 5, 2019

@johnnyconstantine Hi, I have the same problem with you, can you tell me how did you solve it in detail please.
What's the "path being setting wrong" mean specifically?
Thx.

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

5 participants