google-coral / edgetpu

Coral issue tracker (and legacy Edge TPU API source)
https://coral.ai
Apache License 2.0
429 stars 125 forks source link

Failed to load delegate from edgetpu.dll #825

Open AlaaArboun opened 9 months ago

AlaaArboun commented 9 months ago

Description

Encountered a 'ValueError: Failed to load delegate from edgetpu.dll' when attempting to load the Edge TPU delegate in TensorFlow Lite. Has anyone experienced similar issues while working with TensorFlow Lite and the Edge TPU, and how did you resolve them?

Click to expand! ### Issue Type _No response_ ### Operating System Windows 10 ### Coral Device Mini PCIe ### Other Devices _No response_ ### Programming Language Python 3.9 ### Relevant Log Output ```shell -------------------------------------------------------------------------- ValueError Traceback (most recent call last) File c:\object-detection-coral\myenv\Lib\site-packages\tflite_runtime\interpreter.py:166, in load_delegate(library, options) 165 try: --> 166 delegate = Delegate(library, options) 167 except ValueError as e: File c:\object-detection-coral\myenv\Lib\site-packages\tflite_runtime\interpreter.py:104, in Delegate.__init__(self, library, options) 103 if self._delegate_ptr is None: --> 104 raise ValueError(capture.message) ValueError: During handling of the above exception, another exception occurred: ValueError Traceback (most recent call last) Cell In[7], line 14 12 # Load the TensorFlow Lite model with Edge TPU delegate 13 model_path = 'yolov8m_saved_model/yolov8m_float32.tflite' ---> 14 interpreter = tflite.Interpreter(model_path=model_path, experimental_delegates=[load_delegate('edgetpu.dll')]) 15 interpreter.allocate_tensors() 17 input_details = interpreter.get_input_details() File c:\object-detection-coral\myenv\Lib\site-packages\tflite_runtime\interpreter.py:168, in load_delegate(library, options) 166 delegate = Delegate(library, options) ... 169 library, str(e))) 170 return delegate ValueError: Failed to load delegate from edgetpu.dll Output is truncated. View as a scrollable element or open in a text editor. Adjust cel ```