google-coral / pycoral

Python API for ML inferencing and transfer-learning on Coral devices
https://coral.ai
Apache License 2.0
351 stars 145 forks source link

_interpreter_wrapper.CreateWrapperFromFile ValueError when inference #148

Open ARusDian opened 1 month ago

ARusDian commented 1 month ago

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 ```shell Traceback (most recent call last): File "/home/dian/Programming/avisent-device-test/inference/camera_detect/mobile_net_inference.py", line 17, in 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 ```