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

Fix minimal example to compile in Dev Board with Makefile #97

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jlz3008
Copy link

@jlz3008 jlz3008 commented Apr 19, 2020

The Makefile for minimal example don't work in Dev Board with Mendel distro .
With this patch you can compile the minimal application but don't work with edgetpu models in Dev Board

mendel@undefined-dog:~/coral/edgetpu/src/cpp/examples$  LD_LIBRARY_PATH=/home/mendel/coral/edgetpu/libedgetpu/direct/aarch64 ./minimal ~/coral/edgetpu/test_data/mobilenet_v1_1.0_224_quant_edgetpu.tflite ~/coral/edgetpu/test_data/resized_cat.bmp 
ERROR: Internal: Unsupported data type in custom op handler: -610837120
ERROR: Node number 0 (edgetpu-custom-op) failed to prepare.

Failed to allocate tensors.
Segmentation fault

But works with tflite models

LD_LIBRARY_PATH=/home/mendel/coral/edgetpu/libedgetpu/direct/aarch64 ./minimal
 ~/coral/edgetpu/test_data/mobilenet_v1_1.0_224_quant.tflite ~/coral/edgetpu/test_data/resized_cat.bmp
[Image analysis] max value index: 286 value: 0.804688

The models works with python demos

mendel@undefined-dog:~/coral/tflite/python/examples/classification$ LD_LIBRARY_PATH=/home/mendel/coral/edgetpu/libedgetpu/direct/aarch64 python3 classify_image.py --model ~/coral/edgetpu/test_data/mobilenet_v1_1.0_224_quant_edgetpu.tflite --input  ~/coral/edgetpu/test_data/resized_cat.bmp 
----INFERENCE TIME----
Note: The first inference on Edge TPU is slow because it includes loading the model into Edge TPU memory.
14.6ms
2.3ms
2.3ms
2.3ms
2.3ms
-------RESULTS--------
286: 0.79297

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

Successfully merging this pull request may close these issues.

1 participant