Search before asking
YOLOv5 Component
Export
Bug
@zldrobit I think recent changes to EdgeTPU inference created a bug where load_delegate import was attempted from tensorflow.lite.load_delegate instead of tensorflow.lite.experimental.load_delegate causing this error message:
AttributeError: module 'tensorflow._api.v2.lite' has no attribute 'load_delegate'
If I attempt a fix in #6536 I still see a new error message on EdgeTPU inference:
AttributeError: 'Delegate' object has no attribute '_library'
Environment
YOLOv5 🚀 v6.0-231-g9bc72a3 torch 1.10.0+cu111 CPU
Minimal Reproducible Example
In Colab Notebook
https://colab.research.google.com/github/ultralytics/yolov5/blob/master/tutorial.ipynb
!python export.py --include edgetpu
!python detect.py --weights yolov5s-int8_edgetpu.tflite
Additional
Will submit PR with fix for original error.
Are you willing to submit a PR?
Search before asking
YOLOv5 Component
Export
Bug
@zldrobit I think recent changes to EdgeTPU inference created a bug where
load_delegateimport was attempted fromtensorflow.lite.load_delegateinstead oftensorflow.lite.experimental.load_delegatecausing this error message:If I attempt a fix in #6536 I still see a new error message on EdgeTPU inference:
Environment
YOLOv5 🚀 v6.0-231-g9bc72a3 torch 1.10.0+cu111 CPU
Minimal Reproducible Example
In Colab Notebook
https://colab.research.google.com/github/ultralytics/yolov5/blob/master/tutorial.ipynb
Additional
Will submit PR with fix for original error.
Are you willing to submit a PR?