-
-
Notifications
You must be signed in to change notification settings - Fork 310
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 to include caffe_pb2 #12
Comments
I encountered this before, however solved it with upgrade to protobuf 3.2
If you still suffer this problem, the alternative is install my ImageData layer to your own Caffe.
and https://github.com/yihui-he/caffe-pro/blob/master/src/caffe/proto/caffe.proto#L783-L814 |
whether these parts still works well in current caffe is not granted |
According to BVLC/caffe#2464, this problem is solved in latest Caffe version. Since I can't reproduce this problem, I've merge my Caffe to the latest BVLC/caffe. Please update and try remake. |
@yihui-he Thanks for your suggestion. |
@tianyuandu I clone the official caffe, and replaced the files you mentioned, but still face this problem. Does anything I'm missing? I installed the protobuf 3.2 and python3 is Python3.5. |
Can you built official caffe successfully in the first place? If not, please ask this question in Caffe. |
@yihui-he Yes, I can compile caffe successfully, problem will happy while I run the command: |
@LearnerInGithub Hope that can help you. |
@tianyuandu Thanks for your reply, when I import caffe, error will occurs: Traceback (most recent call last): |
@LearnerInGithub |
@tianyuandu I execute this command: sudo pip3 install --upgrade python-util: However, the import caffe still have problem:
|
@LearnerInGithub Seem like caffe_pb2.py has some problem. Is your protobuf 3 install by pip3? |
@tianyuandu Sounds a good idea, I will try it. Thanks you! |
@tianyuandu @yihui-he protobuf problem fixed, because of the c++ version pb not matching the python version, reinstall them has fixed. Thanks two guys! |
@LearnerInGithub ,you mentioned you reinstall protobuf and python ? which version of protobuf and python you used? I had the same problem and my protobuf is 3.5.0 ,python version is 2.7.13 of anaconda. what should I do to fix this problem?Thanks . |
@tianyuandu @LearnerInGithub Hello, I downloaded the latest version of caffe, installed anaconda, and installed both python 2.7 and 3.5. The protoc in usr/lib is version 2.5. If I don't install(conda install) protoc 3.2 (or later) in python and use protoc2.5 , then caffe can be made all. But once protoc3.2 (or later) is installed in python, i cannot make all caffe. I hope you can provide some advice, thank you. |
solved with sudo pip3 install sklearn-contrib-lightning |
i am facing same problem,have you solved the problem? |
I have solved this problem. I update protobuf from v2.5.0 to v3.2.0, it seems work! ps: I use python 3.5.0. |
Hi Yihui,
I tried your code and met some problems.
After make -j8 and make pycaffe, I tried to python3 train.py, but found something wrong with protobuf.
So I change the protobuf version but the problem was still not solved.
Here is the problem:
When I tried protobuf 3.0.0(b1,b2,b3,b4) or 3.1.0 , the error message is:
and when I change protobuf to 3.2.0 / 3.3.0 / 3.4.0, the error message is
When I first met this problem, my Python version is 3.4 and your default setting is with Python 3.5. So I install Python3.5 and Python3.6 by Anaconda, Python 3.6 by apt-get. No matter what version is, the problem was still not solved.
Hope you can show me the specific version of your coding environment!
Thanks!
The text was updated successfully, but these errors were encountered: