-
Notifications
You must be signed in to change notification settings - Fork 5
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
Wasn't able to get it to work: Pi Zero image available? #3
Comments
Hi Tyler, I had a similar issue. I found that reverting back to a specific version of Tensorflow Lite (1.13.1 worked for me) fixed all issues and the Makefile worked as expected. Let me know if you still have issues, I've misplaced my SD card but I have documented all the steps I took so I'm happy to send them over. |
I would appreciate knowing the steps! I'm having a hard time finding Tflow 1.13.1 Thank you! |
Apologies for the slow response folks - not getting GH notifications for some reason. |
I seem to have a similar problem. I get the following error when I try to complete the compilation:
'benchmark' executable is in the bin folder but 'minimal' and 'label_image' are missing. 'libtensorflow-lite.a' and 'benchmark-lib.a' are in the lib folder. |
Just downloaded Tensorflow v1.13.1. When I try to compile I get the following error:
|
Just to confirm - these errors were the output of |
Yes. I used the script:
'libtensorflow-lite.a' and 'benchmark-lib.a' are present in the lib folder. |
This is usually the consequence of previous errors so you'd need to look earlier in the build process to see if other dependencies are missing/failing. |
Yes, this was a clean install of TF 1.13.1. There were alot of undefined reference messages to files starting with `_atomic'. However, I can try compiling with TF 1.14.1 and see if there's any success. Is this the recommended Makefile for TF 1.14.1? |
Yes - this was the original makefile in TF 1.14.1 but only builds the lib, minimal and benchmark. |
OK - after a |
Swap space is at 2GB, double checked with htop. I've just downloaded 1.14.0 source file from the tensorflow library and very early during compilation (with Makefile and Makefile 1.14.0) I get the following error:
If it means anything I'm running 4.19.79+ kernel |
That sounds like a fundamental TF Lite build issue - it might be worth a search here or on StackOverflow in case others have reported the same. |
I have shared a zip of my Tensorflow 1.14.0 folders installed at This also includes the binaries, model files and sample input images as described in the ObjectDetectionRPiZero repo on GH. Hope this helps. |
Hello. I wasn't able to get this to work. Do you have an image of a Pi Zero I can download and use instead? Thank you!
Ps, here is my error message:
arm-linux-gnueabihf-g++ -O3 -DNDEBUG -fPIC --std=c++11 -march=armv6 -mfpu=vfp -funsafe-math-optimizations -ftree-vectorize -fPIC -I. -I/home/tdoggo/tensorflow/tensorflow/lite/tools/make/../../../../../ -I/home/tdoggo/tensorflow/tensorflow/lite/tools/make/../../../../../../ -I/home/tdoggo/tensorflow/tensorflow/lite/tools/make/downloads/ -I/home/tdoggo/tensorflow/tensorflow/lite/tools/make/downloads/eigen -I/home/tdoggo/tensorflow/tensorflow/lite/tools/make/downloads/absl -I/home/tdoggo/tensorflow/tensorflow/lite/tools/make/downloads/gemmlowp -I/home/tdoggo/tensorflow/tensorflow/lite/tools/make/downloads/neon_2_sse -I/home/tdoggo/tensorflow/tensorflow/lite/tools/make/downloads/farmhash/src -I/home/tdoggo/tensorflow/tensorflow/lite/tools/make/downloads/flatbuffers/include -I -I/usr/local/include -c tensorflow/lite/arena_planner.cc -o /home/tdoggo/tensorflow/tensorflow/lite/tools/make/gen/rpi_armv6/obj/tensorflow/lite/arena_planner.o
arm-linux-gnueabihf-gcc -O3 -DNDEBUG -fPIC -I. -I/home/tdoggo/tensorflow/tensorflow/lite/tools/make/../../../../../ -I/home/tdoggo/tensorflow/tensorflow/lite/tools/make/../../../../../../ -I/home/tdoggo/tensorflow/tensorflow/lite/tools/make/downloads/ -I/home/tdoggo/tensorflow/tensorflow/lite/tools/make/downloads/eigen -I/home/tdoggo/tensorflow/tensorflow/lite/tools/make/downloads/absl -I/home/tdoggo/tensorflow/tensorflow/lite/tools/make/downloads/gemmlowp -I/home/tdoggo/tensorflow/tensorflow/lite/tools/make/downloads/neon_2_sse -I/home/tdoggo/tensorflow/tensorflow/lite/tools/make/downloads/farmhash/src -I/home/tdoggo/tensorflow/tensorflow/lite/tools/make/downloads/flatbuffers/include -I -I/usr/local/include -c tensorflow/lite/c/c_api_internal.c -o /home/tdoggo/tensorflow/tensorflow/lite/tools/make/gen/rpi_armv6/obj/tensorflow/lite/c/c_api_internal.o
arm-linux-gnueabihf-g++ -O3 -DNDEBUG -fPIC --std=c++11 -march=armv6 -mfpu=vfp -funsafe-math-optimizations -ftree-vectorize -fPIC -I. -I/home/tdoggo/tensorflow/tensorflow/lite/tools/make/../../../../../ -I/home/tdoggo/tensorflow/tensorflow/lite/tools/make/../../../../../../ -I/home/tdoggo/tensorflow/tensorflow/lite/tools/make/downloads/ -I/home/tdoggo/tensorflow/tensorflow/lite/tools/make/downloads/eigen -I/home/tdoggo/tensorflow/tensorflow/lite/tools/make/downloads/absl -I/home/tdoggo/tensorflow/tensorflow/lite/tools/make/downloads/gemmlowp -I/home/tdoggo/tensorflow/tensorflow/lite/tools/make/downloads/neon_2_sse -I/home/tdoggo/tensorflow/tensorflow/lite/tools/make/downloads/farmhash/src -I/home/tdoggo/tensorflow/tensorflow/lite/tools/make/downloads/flatbuffers/include -I -I/usr/local/include -c tensorflow/lite/allocation.cc -o /home/tdoggo/tensorflow/tensorflow/lite/tools/make/gen/rpi_armv6/obj/tensorflow/lite/allocation.o
arm-linux-gnueabihf-g++ -O3 -DNDEBUG -fPIC --std=c++11 -march=armv6 -mfpu=vfp -funsafe-math-optimizations -ftree-vectorize -fPIC -I. -I/home/tdoggo/tensorflow/tensorflow/lite/tools/make/../../../../../ -I/home/tdoggo/tensorflow/tensorflow/lite/tools/make/../../../../../../ -I/home/tdoggo/tensorflow/tensorflow/lite/tools/make/downloads/ -I/home/tdoggo/tensorflow/tensorflow/lite/tools/make/downloads/eigen -I/home/tdoggo/tensorflow/tensorflow/lite/tools/make/downloads/absl -I/home/tdoggo/tensorflow/tensorflow/lite/tools/make/downloads/gemmlowp -I/home/tdoggo/tensorflow/tensorflow/lite/tools/make/downloads/neon_2_sse -I/home/tdoggo/tensorflow/tensorflow/lite/tools/make/downloads/farmhash/src -I/home/tdoggo/tensorflow/tensorflow/lite/tools/make/downloads/flatbuffers/include -I -I/usr/local/include -c tensorflow/lite/core/api/error_reporter.cc -o /home/tdoggo/tensorflow/tensorflow/lite/tools/make/gen/rpi_armv6/obj/tensorflow/lite/core/api/error_reporter.o
In file included from tensorflow/lite/core/api/error_reporter.cc:15:0:
./tensorflow/lite/core/api/error_reporter.h: In destructor ‘virtual tflite::ErrorReporter::~ErrorReporter()’:
./tensorflow/lite/core/api/error_reporter.h:37:28: sorry, unimplemented: Thumb-1 hard-float VFP ABI
virtual ~ErrorReporter() {}
^
In file included from /usr/arm-linux-gnueabihf/include/c++/5/bits/stl_algobase.h:62:0,
from /usr/arm-linux-gnueabihf/include/c++/5/memory:62,
from ./tensorflow/lite/arena_planner.h:18,
from tensorflow/lite/arena_planner.cc:15:
/usr/arm-linux-gnueabihf/include/c++/5/ext/type_traits.h: In function ‘bool __gnu_cxx::__is_null_pointer(std::nullptr_t)’:
/usr/arm-linux-gnueabihf/include/c++/5/ext/type_traits.h:160:35: sorry, unimplemented: Thumb-1 hard-float VFP ABI
__is_null_pointer(std::nullptr_t)
^
tensorflow/lite/tools/make/Makefile:216: recipe for target '/home/tdoggo/tensorflow/tensorflow/lite/tools/make/gen/rpi_armv6/obj/tensorflow/lite/core/api/error_reporter.o' failed
make: *** [/home/tdoggo/tensorflow/tensorflow/lite/tools/make/gen/rpi_armv6/obj/tensorflow/lite/core/api/error_reporter.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from /usr/arm-linux-gnueabihf/include/stdio.h:933:0,
from /usr/arm-linux-gnueabihf/include/c++/5/cstdio:42,
from ./tensorflow/lite/allocation.h:20,
from tensorflow/lite/allocation.cc:16:
/usr/arm-linux-gnueabihf/include/bits/stdio.h: In function ‘int getchar()’:
/usr/arm-linux-gnueabihf/include/bits/stdio.h:44:14: sorry, unimplemented: Thumb-1 hard-float VFP ABI
getchar (void)
^
tensorflow/lite/tools/make/Makefile:216: recipe for target '/home/tdoggo/tensorflow/tensorflow/lite/tools/make/gen/rpi_armv6/obj/tensorflow/lite/allocation.o' failed
make: *** [/home/tdoggo/tensorflow/tensorflow/lite/tools/make/gen/rpi_armv6/obj/tensorflow/lite/allocation.o] Error 1
tensorflow/lite/tools/make/Makefile:216: recipe for target '/home/tdoggo/tensorflow/tensorflow/lite/tools/make/gen/rpi_armv6/obj/tensorflow/lite/arena_planner.o' failed
make: *** [/home/tdoggo/tensorflow/tensorflow/lite/tools/make/gen/rpi_armv6/obj/tensorflow/lite/arena_planner.o] Error 1
The text was updated successfully, but these errors were encountered: