google-coral / pycoral

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

ValueError: Failed to load delegate from libedgetpu.so.1 #108

Closed bme323 closed 1 year ago

bme323 commented 1 year ago

Description

Hi,

Attempting to follow the Get Started with Coral USB accelerator https://coral.ai/docs/accelerator/get-started/#3-run-a-model-on-the-edge-tpu and getting the error output 'ValueError: Failed to load delegate from libedgetpu.so.1' as shown.

image

I have attempted to follow issues with the same error but I get error messages when trying to add the apex user using the command 'sudo adduser root apex'.

I am running on Raspberry Pi 4B, arm7l 32-bit, Python 3.9.2

Thank you

Click to expand! ### Issue Type Bug, Build/Install, Support ### Operating System Linux ### Coral Device USB Accelerator ### Other Devices Rapsberry Pi 4 ### Programming Language Python 3.9 ### Relevant Log Output _No response_
hjonnala commented 1 year ago

Could you please share the output of below commands:

python3 -c 'from pycoral.utils.edgetpu import get_runtime_version; print(get_runtime_version())'

sudo 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
bme323 commented 1 year ago

image

image

bme323 commented 1 year ago

I get the same initial error message when I run the edge tpu parrot example after running the commands you suggested.

hjonnala commented 1 year ago

Hi can you please try the demo adding the below lines at: https://github.com/google-coral/pycoral/blob/master/examples/classify_image.py#L41 and share the logs..Thanks!

from pycoral.pybind._pywrap_coral import SetVerbosity as set_verbosity
set_verbosity(10)
CristiFati commented 1 year ago

Make sure the device is connected and visible. For some reason on my laptop, if I connect it to a certain USB port I get this error, but if I move it to another, it works fine.

hjonnala commented 1 year ago

Feel free to reopen if issue still exists. Thanks!!

google-coral-bot[bot] commented 1 year ago

Are you satisfied with the resolution of your issue? Yes No