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

Unsupported data type in custom op handler: 0Node number 1, libedgetpu-dev 15.0 #45

Closed
zdavatz opened this issue Apr 7, 2021 · 1 comment

Comments

@zdavatz
Copy link

zdavatz commented Apr 7, 2021

dpkg -l | grep edgetpu shows me:

ii  edgetpudemo                          3-1                                 all          Edge TPU demo script
ii  libedgetpu-dev                       15.0                                arm64        Development files for libedgetpu
rc  libedgetpu1-max:arm64                15.0                                arm64        Support library for Edge TPU
ii  libedgetpu1-std:arm64                15.0                                arm64        Support library for Edge TPU
ii  python3-edgetpuvision                7-1                                 arm64        EdgeTPU camera API

but when I run
python3 examples/classify_image.py --model test_data/mobilenet_v2_1.0_224_inat_bird_quant_edgetpu.tflite --labels test_data/inat_bird_labels.txt --input test_data/parrot.jpg
I still get:

Traceback (most recent call last):
  File "examples/classify_image.py", line 84, in <module>
    main()
  File "examples/classify_image.py", line 62, in main
    interpreter.allocate_tensors()
  File "/home/mendel/.local/lib/python3.7/site-packages/tflite_runtime/interpreter.py", line 242, in allocate_tensors
    return self._interpreter.AllocateTensors()
  File "/home/mendel/.local/lib/python3.7/site-packages/tflite_runtime/interpreter_wrapper.py", line 115, in AllocateTensors
    return _interpreter_wrapper.InterpreterWrapper_AllocateTensors(self)
RuntimeError: Internal: Unsupported data type in custom op handler: 0Node number 1 (EdgeTpuDelegateForCustomOp) failed to prepare.

any hints or thoughts?

@zdavatz
Copy link
Author

zdavatz commented Apr 7, 2021

Ok, I solved this. I had to many old tflite_runtime installed. First I removed all versions that I had installed using pip install --user and sudo pip install. Then I installed version 2.5.0 using apt-get sudo apt-get install python3-tflite-runtime.

This helped:

  1. pip3 uninstall tflite_runtime
  2. sudo pip3 uninstall tflite_runtime

@zdavatz zdavatz closed this as completed Apr 7, 2021
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

1 participant