Coral EdgeTPU USB Accelerator with VirtualBox
That is a very cool product because with Coral USB the performance is pretty good.
But, the thing is Raspberry Pi3B+ cannot use USB3.0 which means data transferring between Pi and Coral is limited.
So I really wanted to use Coral with USB3.0, however, unfortunately recently Parallel Desktop lite got a paid software and I didn't install it on Mac(not sure why).
In this post, I will explain how to set up VirtualBox env for
Coral
. I think it's been a while since the last time I used VirtualBox.1 Get VirtualBox
You need to get the latest one since I tried to use 5.2.22(not the latest version) and spent so much time then it didn't work. Once I switched from 5.2.22 to 6.0.6. Everything works perfectly.
htps //w w.ゃぃr 짠 l보 x. 오 rg / uuki / Down ぉ ds
2 Get Ubuntu (LTS 버전)
I think you can use 16.04 or 18.04. I'm using 18.04 since I use that for my GPU machine for training models. Maybe you can use 19.04, but not sure.
3 Install Ubuntu on VirtualBox
This article is very useful if you don't have any experience with VirtualBox.
4 Add USB Device Filters
This is the most important part of this article.
When you do this, you have to turn off your virtual machine
Settings > Ports > USB(the machine is running. sorry I'm lazy...)
If you power off your machine, you can select
USB3.0
. Then you need to add 2 USB Device Filters.3-1. Click Add button
3-2. Select
Global Unichip Corp [0100]
3-3. Add one more3-4. Select one filter you added and edit filter settings
Name: you can put anything you want
Vendor ID: 18d1
Product ID: 9302
5 Setup EdgeTPU
We are almost there. You can follow the link.
htps // 코라 l.ぃth おお gぇ. 코 m / 두 cs / 아세 ぇ 등과 r / 게 ts r d /
Seems Google update edgetpu, so we don't need to change the install shell script anymore, but I think edgetpu is optimized for python3.5.
So I set up a virtual environment for that. As you know there are some ways to set up virtual env. virtualenv, virtualenvwrapper, pyenv, pipenv and anaconda.
For this, I decided to use Anaconda since it just needs to type a couple of commands to set up the python3.5 environment.
Digital Ocean has a nice article on that.
htps //w w.ぢぎたぉ세안. 코 m / 안녕하세요 ty / 쓰리 아 ls /
After activating your virtual environment, probably you will need this.
bash
$ pip install edgetpu-1.9.2-py3-none-any.whl
6 룬 하지만
Just follow the official guide (easy easy easy)
$ cd /usr/local/lib/python3.6/dist-packages/edgetpu/demo
$ 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
---------------------------
Ara macao (Scarlet Macaw)
Score : 0.761719
Coral repos are on Github
htps : // 기주 b. 코 m / 고오 g ぇ 코라 l
Reference
이 문제에 관하여(Coral EdgeTPU USB Accelerator with VirtualBox), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/kojikanao/items/48ca7bc712cf2b44a97a텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념 (Collection and Share based on the CC Protocol.)