google-coral/pycoral

_interpreter_wrapper.CreateWrapperFromFile ValueError when inference

Opened this issue · 0 comments

Description

got error when try using the model from example but got error something, II follow code from official tutorial https://coral.ai/docs/edgetpu/tflite-python/#inferencing-example.

I'm using python 3.11 and tflite_runtime 2.17, also i can run the example model from the another official tutorial from
https://coral.ai/docs/accelerator/get-started/#3-run-a-model-on-the-edge-tpu

image

Click to expand!

Issue Type

Bug

Operating System

Linux

Coral Device

USB Accelerator

Other Devices

Rapsberry Pi 4

Programming Language

Other

Relevant Log Output

Traceback (most recent call last):
  File "/home/dian/Programming/avisent-device-test/inference/camera_detect/mobile_net_inference.py", line 17, in <module>
    interpreter = tflite.Interpreter(model_file,experimental_delegates=[tflite.load_delegate('libedgetpu.so.1')])
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/dian/.local/lib/python3.11/site-packages/tflite_runtime/interpreter.py", line 473, in __init__
    self._interpreter = _interpreter_wrapper.CreateWrapperFromFile(
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError