![](/img/trans.png)
[英]Is it possible to install SpaCy to Raspberry Pi 4 Raspbian Buster
[英]Google Coral USB Accelerator on Raspbian Lite Buster and Raspberry PI 4
我正在遵循 Google Coral USB Accelerator 的入門指南,即使我能夠欺騙 install.sh 文件以安裝 RPI4
https://twitter.com/hansamann/status/1154021771554766849
我無法使用圖像分類運行示例。 當我運行示例時,我得到了這個:
python3 classify_image.py --model ~/Downloads/mobilenet_v2_1.0_224_inat_bird_quant_edgetpu.tflite --label ~/Downloads/inat_bird_labels.txt --image ~/Downloads/parrot.jpg
Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/edgetpu/swig/edgetpu_cpp_wrapper.py", line 18, in swig_import_helper
fp, pathname, description = imp.find_module('_edgetpu_cpp_wrapper', [dirname(__file__)])
File "/usr/lib/python3.7/imp.py", line 296, in find_module
raise ImportError(_ERR_MSG.format(name), name=name)
ImportError: No module named '_edgetpu_cpp_wrapper'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "classify_image.py", line 19, in <module>
from edgetpu.classification.engine import ClassificationEngine
File "/usr/local/lib/python3.7/dist-packages/edgetpu/classification/engine.py", line 17, in <module>
from edgetpu.basic.basic_engine import BasicEngine
File "/usr/local/lib/python3.7/dist-packages/edgetpu/basic/basic_engine.py", line 15, in <module>
from edgetpu.swig.edgetpu_cpp_wrapper import BasicEngine
File "/usr/local/lib/python3.7/dist-packages/edgetpu/swig/edgetpu_cpp_wrapper.py", line 28, in <module>
_edgetpu_cpp_wrapper = swig_import_helper()
File "/usr/local/lib/python3.7/dist-packages/edgetpu/swig/edgetpu_cpp_wrapper.py", line 20, in swig_import_helper
import _edgetpu_cpp_wrapper
ModuleNotFoundError: No module named '_edgetpu_cpp_wrapper'
知道為什么我可以嘗試嗎?
我遇到了同樣的問題,但使用的是較舊的 Rpi 3。這是我使用的解決方案。 我不認為完成項目是成敗的:
$ sudo cp _edgetpu_cpp_wrapper.cpython-35m-arm-linux-gnueabihf.so _edgetpu_cpp_wrapper.cpython-37m-arm-linux-gnueabihf.so
你能通過: https : //github.com/google-coral/edgetpu-platforms嗎?
該存儲庫包含與 Google Coral Edge TPU 相關的輔助平台相關材料。 在這里,您可以找到預編譯的圖像、共享庫和補丁,以便在主要支持的平台之外的其他平台上使用 USB Edge TPU 加速器。
為方便起見,Google 上傳了 Raspberry Pi Zero、Pi 3 和 Pi 4 的預構建圖像。只需將圖像寫入 SD 卡並啟動您的 Pi。 這些圖像包含幾個應該開箱即用的示例。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.