Skip to content

Commit ebec383

Browse files
author
Sungjin Han
committed
Add a new post and edit configs
1 parent 738c59f commit ebec383

File tree

3 files changed

+83
-3
lines changed

3 files changed

+83
-3
lines changed

_config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@ footer-links:
2222
facebook: meinside
2323
flickr:
2424
github: meinside
25-
instagram:
25+
instagram: frageverything
2626
linkedin: meinside
2727
pinterest:
2828
rss: meinside # just type anything here for a working RSS icon, make sure you set the "url" above!
2929
twitter: thespeedofpain
3030
stackoverflow: # your stackoverflow profile, e.g. "users/50476/bart-kiers"
3131
youtube: user/frageverything # channel/<your_long_string> or user/<user-name>
32-
googleplus: +SungjinHan # anything in your profile username that comes after plus.google.com/
32+
googleplus: # anything in your profile username that comes after plus.google.com/
3333

3434
# Enter your Disqus shortname (not your username) to enable commenting on posts
3535
# You can find your shortname on the Settings page of your Disqus account
Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
---
2+
layout: post
3+
title: Hands-on with Coral USB Accelerator (for Raspberry Pi)
4+
tags:
5+
- google
6+
- coral
7+
- tpu
8+
- raspberry pi
9+
published: true
10+
---
11+
12+
[Coral](https://coral.withgoogle.com/) launched [dev board](https://coral.withgoogle.com/products/dev-board/) and [usb accelerator](https://coral.withgoogle.com/products/accelerator/) a couple of weeks ago and they are now available on the store.
13+
14+
I though the usb accelerator would be enough for me, so I ordered one of it and tested on my Raspberry Pi 3B+.
15+
16+
----
17+
18+
## 1. Purchase
19+
20+
Fortunately, the shipping and delivery fee to my country was *zero* on Mouser.
21+
22+
Ordered on Saturday and received on Monday.
23+
24+
What an amazing delivery!
25+
26+
## 2. Unboxing
27+
28+
![coral_box](https://user-images.githubusercontent.com/185988/54582450-174ad800-4a54-11e9-80d3-2aa5d2b7a57c.jpg)
29+
30+
![coral_box_contents](https://user-images.githubusercontent.com/185988/54582451-174ad800-4a54-11e9-9dde-d40ad99a511d.jpg)
31+
32+
![coral_box_contents_rear](https://user-images.githubusercontent.com/185988/54582453-174ad800-4a54-11e9-8327-fb1b1e6db5e8.jpg)
33+
34+
![coral_box_opened](https://user-images.githubusercontent.com/185988/54582454-17e36e80-4a54-11e9-9708-80378bfc7e8f.jpg)
35+
36+
![coral_manual](https://user-images.githubusercontent.com/185988/54582456-17e36e80-4a54-11e9-9d33-02cdf171d8f3.jpg)
37+
38+
## 3. Configuration
39+
40+
Following [this guide](https://coral.withgoogle.com/tutorials/accelerator/), I downloaded and unzipped [edgetpu_api.tar.gz](https://coral.withgoogle.com/tutorials/accelerator/)
41+
42+
and executed `python-tflite-source/install.sh`.
43+
44+
It installed several packages, changed udev rules, and copied library files.
45+
46+
The guide advices to plug in & out the usb accelerator, but to make sure, I just rebooted the machine.
47+
48+
## 4. Test
49+
50+
In the `edgetpu` directory, ran following command:
51+
52+
{% highlight bash %}
53+
python3 demo/classify_image.py \
54+
--model test_data/mobilenet_v2_1.0_224_inat_bird_quant_edgetpu.tflite \
55+
--label test_data/inat_bird_labels.txt \
56+
--image test_data/parrot.jpg
57+
{% endhighlight %}
58+
59+
and got almost the same result:
60+
61+
{% highlight bash %}
62+
W0320 09:13:03.732145 6245 package_registry.cc:65] Minimum runtime version required by package (5) is lower than expected (10).
63+
---------------------------
64+
Ara macao (Scarlet Macaw)
65+
Score : 0.61328125
66+
---------------------------
67+
Platycercus elegans (Crimson Rosella)
68+
Score : 0.15234375
69+
{% endhighlight %}
70+
71+
There was a warning message: `Minimum runtime version required by package (5) is lower than expected (10).`.
72+
73+
It doesn't seem like a critical issue, but needs to be fixed sooner or later.
74+
75+
## 5. What now?
76+
77+
So, I got the usb accelerator and made sure it runs ok on my Raspberry Pi, but what to do now?
78+
79+
Maybe I need to learn TensorFlow Lite and related stuffs, train my own models, and build some applications with them.
80+

about.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ permalink: /about/
1616

1717
## want to know more about me?
1818

19-
* visit my [homepage](http://meinside.pe.kr)
19+
* visit my [homepage](https://meinside.dev)
2020
* or click social icons below.
2121

0 commit comments

Comments
 (0)