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

_interpreter_wrapper.CreateWrapperFromFile ValueError when inference #148

Open
ARusDian opened this issue Jul 24, 2024 · 0 comments
Open
Labels
comp:model Model related isssues comp:thirdparty Thirdparty related issues Hardware:USB Accelerator Coral USB Accelerator issues subtype:ubuntu/linux Ubuntu/Linux Build/installation issues type:bug Bug

Comments

@ARusDian
Copy link

ARusDian commented Jul 24, 2024

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
@google-coral-bot google-coral-bot bot added comp:model Model related isssues comp:thirdparty Thirdparty related issues Hardware:USB Accelerator Coral USB Accelerator issues subtype:ubuntu/linux Ubuntu/Linux Build/installation issues type:bug Bug labels Jul 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp:model Model related isssues comp:thirdparty Thirdparty related issues Hardware:USB Accelerator Coral USB Accelerator issues subtype:ubuntu/linux Ubuntu/Linux Build/installation issues type:bug Bug
Projects
None yet
Development

No branches or pull requests

1 participant