tensorflow: tensorflow mobile : pi_examples - unable to locate graph.pb.h
GitHub issues are for bugs / installation problems / feature requests.
For general support from the community, see StackOverflow.
To make bugs and feature requests more easy to find and organize, we close issues that are deemed
out of scope for GitHub Issues and point people to StackOverflow.
For bugs or installation issues, please provide the following information. The more information you provide, the more easily we will be able to offer help and advice.
Environment info
Operating System: pi@raspberrypi:~ $ cat /proc/version Linux version 4.4.13-v7+ (dc4@dc4-XPS13-9333) (gcc version 4.9.3 (crosstool-NG crosstool-ng-1.22.0-88-g8460611) ) #894 SMP Mon Jun 13 13:13:27 BST 2016
Installed version of CUDA and cuDNN:
(please attach the output of ls -l /path/to/cuda/lib/libcud*):
If installed from binary pip package, provide:
- Which pip package you installed.
- The output from
python -c "import tensorflow; print(tensorflow.__version__)".
If installed from sources, provide the commit hash:
Steps to reproduce
- Follow https://github.com/tensorflow/tensorflow/tree/master/tensorflow/contrib/pi_examples/
- When you get to the final step in “Building the Examples”, the following error occurs. pi@raspberrypi:~/tf/tensorflow $ make -f tensorflow/contrib/pi_examples/label_image/Makefile gcc --std=c++11 -O0 -I/usr/local/include -I. -I/home/pi/tf/tensorflow/tensorflow/contrib/pi_examples/label_image/…/…/makefile/downloads -I/home/pi/tf/tensorflow/tensorflow/contrib/pi_examples/label_image/…/…/makefile/downloads/eigen-latest/ -I/home/pi/tf/tensorflow/tensorflow/contrib/pi_examples/label_image/…/…/makefile/gen/proto/ -I/home/pi/tf/tensorflow/tensorflow/contrib/pi_examples/label_image/…/…/makefile/gen/proto_text/ -c tensorflow/contrib/pi_examples/label_image/label_image.cc -o /home/pi/tf/tensorflow/tensorflow/contrib/pi_examples/label_image/gen/obj/tensorflow/contrib/pi_examples/label_image/label_image.o tensorflow/contrib/pi_examples/label_image/label_image.cc:30:48: fatal error: tensorflow/core/framework/graph.pb.h: No such file or directory #include “tensorflow/core/framework/graph.pb.h” ^ compilation terminated. tensorflow/contrib/pi_examples/label_image/Makefile:78: recipe for target ‘/home/pi/tf/tensorflow/tensorflow/contrib/pi_examples/label_image/gen/obj/tensorflow/contrib/pi_examples/label_image/label_image.o’ failed make: *** [/home/pi/tf/tensorflow/tensorflow/contrib/pi_examples/label_image/gen/obj/tensorflow/contrib/pi_examples/label_image/label_image.o] Error 1
What have you tried?
- Searching for similar issues.
Logs or other output that would be helpful
(If logs are large, please upload as attachment).
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 22 (13 by maintainers)
I pretty much followed the instructions in the following posts. First git clone the tensorflow repo. (did a fresh clone with the latest code)
https://github.com/tensorflow/tensorflow/tree/master/tensorflow/contrib/makefile#raspberry-pi I used the second option which should optimize for Pi 2&3.
https://github.com/tensorflow/tensorflow/tree/master/tensorflow/contrib/pi_examples
make -f tensorflow/contrib/pi_examples/label_image/MakefileI’m not sure what caused the problem with graph.pb.h but downloading the latest repo and going through the procedure again resolved the problem.
Thanks!