-
Notifications
You must be signed in to change notification settings - Fork 124
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
Edge TPU lifespan resulted in Failed to load delegate #589
Comments
Hello @smart-face can you please update/reflash the mendel software and share the output of following commands.
|
Hi, I am using py coral on raspberry PI4 with a USB edge TPU accelerator. I get the same error when I run the example code provided in pycoral. I also download edge you runtime repo from here https://github.com/google-coral/libedgetpu/releases/download/release-grouper/edgetpu_runtime_20210726.zip and run install.sh to generate libedgetpu.so library for my armv7l device and then I change the path to newly generated .so file. But still I get the same error.
After generating new libedgetpu.so and changing path in "/usr/lib/python3/dist-packages/tflite_runtime/interpreter.py" I get again the same issue:
any help or suggestion. Thanks |
@sharoseali can you please share the output of below commands:
|
Here are the results
Good News !! I managed to make it work by using |
@sharoseali can you please try changing the permissions so that you don't need to run with sudo.
|
Thanks @hjonnala i tried but it gives the same message without sudo
|
Hello, sorry for the delay, the first device with continuous inference was not showing any of the PCI devices, and later it started heating up more so I dumped it. I tried flashing a new installation. For a second case, I figured out the issue by reinstalling a new Mendel. There was a problem with a kernel module that handles the socket connections. BTW thanks for the replay. |
@smart-face Thanks for response. Can you please confirm that issue got resolved with new Mendel software for the second case. Thanks! |
Yes, the story behind this issue is as follows,
I use this device as a tiny HTTP server that processes the requests in a FIFO fashion. During testing, I have performed multiple sockets queries where the kernel module failed and all TCP requests got stuck, resulting in the entire PCI line getting down. In imx8, a Wi-Fi uses pcie1 data lines and pcie2 for EdgeTPU. The issue was there until I re-flashed the SoM. I have tried finding the PCI kernel driver but I chose to reinstall everything for time constraints.
Maybe you guys can try this test and figure out the problem.
Yes I confirm that my issue is resolved.
Thanks
…Sent from my Galaxy
-------- Original message --------
From: Hemanth-Jonnala ***@***.***>
Date: 5/26/22 10:03 PM (GMT+09:00)
To: google-coral/edgetpu ***@***.***>
Cc: Abhijeet ***@***.***>, Mention ***@***.***>
Subject: Re: [google-coral/edgetpu] Edge TPU lifespan resulted in Failed to load delegate (Issue #589)
@smart-face<https://github.com/smart-face> Thanks for the response. Can you please confirm that issue got resolved with new Mendel software for the second case? Thanks!
—
Reply to this email directly, view it on GitHub<#589 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AUGPGWKYYZIQPYSTTSZWDY3VL5ZCLANCNFSM5VQFNVOA>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Description
I have used Dev board SoM continuously for 2 years in the following two cases:
case (1) EdgeTPU lasted about 8 months for continuous object detection (without motion sensing) on the mobilenetSSD model and now I got the following error,
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "face_run.py", line 129, in
experimental_delegates=[load_delegate('libedgetpu.so.1.0')])
File "/usr/local/lib/python3.7/dist-packages/tflite_runtime/interpreter.py", line 163, in load_delegate
library, str(e)))
ValueError: Failed to load delegate from libedgetpu.so.1.0
case (2) A model inference is only performed when a motion is detected in the camera scene, and this device lasted about 1.5 years, and again I got the same error as above.
![image](https://user-images.githubusercontent.com/84734809/167537291-586e0e5e-dcee-4fe2-8b9d-f9f288201d39.png)
Then, I performed and device query so there are no available TPU devices.
Any luck on extending the lifespan of EdgeTPU or solving these errors?
Click to expand!
Issue Type
Performance
Operating System
Mendel Linux
Coral Device
Dev Board
Other Devices
No response
Programming Language
Python 3.7
Relevant Log Output
No response
The text was updated successfully, but these errors were encountered: