0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

深層学習(Coral TPU)とかでのPythonエラー「ValueError: Failed to load delegate from edgetpu.dll」への対処(0秒解決)。

Last updated at Posted at 2020-05-09

目的

Coral TPUをCoralのページをみて動かそうとして、
おおぼけで、
以下の難しそうなエラーをたたき出した。

ValueError: Failed to load delegate from edgetpu.dll

エラー全体を以下に示す。

C:\_work1\_win_corel1\edgetpu_runtime\corel\tflite-master\python\examples\classification>python classify_image.py --model efficientnet-edgetpu-M_quant_edgetpu.tflite --labels imagenet_labels.txt --input images/parrot.jpg
Traceback (most recent call last):
  File "C:\Users\XYZZZ\AppData\Local\Programs\Python\Python37\lib\site-packages\tflite_runtime\interpreter.py", line 162, in load_delegate
    delegate = Delegate(library, options)
  File "C:\Users\XYZZZ\AppData\Local\Programs\Python\Python37\lib\site-packages\tflite_runtime\interpreter.py", line 121, in __init__
    raise ValueError(capture.message)
ValueError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "classify_image.py", line 122, in <module>
    main()
  File "classify_image.py", line 99, in main
    interpreter = make_interpreter(args.model)
  File "classify_image.py", line 73, in make_interpreter
    {'device': device[0]} if device else {})
  File "C:\Users\XYZZZ\AppData\Local\Programs\Python\Python37\lib\site-packages\tflite_runtime\interpreter.py", line 165, in load_delegate
    library, str(e)))
ValueError: Failed to load delegate from edgetpu.dll

対処方法は、以下に示しますが。。。。
自分で解決したほうが、気持ちがいいと思うので、
まず、自分で考えて下さい。

答えが見えないように、少々、余白。

余白
余白
余白
余白
余白
余白
余白
余白
余白
余白
余白
余白
余白
余白
余白
余白
余白
余白
余白
余白
余白
余白
余白

ヒント。
考えるというよりは、よく環境を見て下さい。

余白
余白
余白
余白
余白
余白
余白
余白
余白
余白
余白
余白
余白
余白
余白
余白
余白
余白
余白
余白
余白
余白
余白

対処方法

(たぶん、USBのアクセラレータ、付け忘れてませんか?)
付け忘れているUSBアクセラレータを挿入する。

想像ですが、
上記以外で、このエラーはなかなか出せないのでは。

まとめ

特にありません。
おそらく、一人二人に、僅かには役に立つはず、この記事。
コメントなどあれば、宜しくお願いします。:candy:
このエラーメッセージ自体については、自分でも、少し、コメントしたい気もしますが、ちょっと、考え中。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?