์๋ ํ์ธ์.
ํ ๋ฌ๋ง์ USB Accelator ์ ๋ํด ๋๋์ด ๊ธ์ ์์ฑํฉ๋๋ค.
https://www.devicemart.co.kr/goods/view?no=12379075
Google Coral USB Accelerator
๊ตฌ๊ธ ์ฝ๋ USB ์ก์ ๋ ์ดํฐ / ์ปดํจํฐ์ ๊ฝ์ Google Edge TPU ๋ณด์กฐํ๋ก์ธ์๋ก ๊ธฐ๋ฅํ๋ ์ ํ / USB 3.0 Cํ์ / Google ํด๋ผ์ฐ๋์ ํธํ / ๋ก์ปฌ ์ธ๊ณต์ง๋ฅ
www.devicemart.co.kr
99,000์์ ๋๋ฐ์ด์ค๋งํธ์์ ๊ตฌ๋งคํ ์ ์์ต๋๋ค.
์์ธํ ๋ฐ์ดํฐ ์ํธ๋ฅผ ์์ธํ ๋ณด๊ณ ์ถ์ผ์๋ฉด ์ pdf๋ฅผ ์ฐธ๊ณ ํ์๊ธธ ๋ฐ๋๋๋ค.
๊ฐ๋จํ๊ฒ ์์ฝํ๋ฉด
์ ๊ฐ ๊ณต๋ถ์๋ฃ๋ก ๋ง๋ค์ด ๋์ PPT์ ์ผ๋ถ๋ถ์ ๋๋ค.
Cํ์ ํฌํธ TPU ์ด๋ฉฐ, USB 3.0 Port(ํ๋์), Python์ 3.5, 3.6. 3.7๋ง ์ง์ํฉ๋๋ค.
(Python 3.8์ ์ง์ํ์ง ์์ต๋๋ค.)
๋ฐ๋ก ์์ํด๋ณด๊ฒ ์ต๋๋ค.
USB Accelator(Edge TPU)๋ฅผ ์ฌ์ฉํ๊ธฐ ์ํด์๋ The Edge TPU runtime์ ์ค์นํด์ผํฉ๋๋ค.
(์๋์ฐ๋ก ๋ฐ์ง๋ฉด ๋๋ผ์ด๋ฒ๊ฐ์ ๊ฑฐ๋ผ๊ณ ์๊ฐํ์๋ฉด ํธํ ๊ฒ ๊ฐ์ต๋๋ค. )
๋ผ์ฆ๋น์์ด๋ ์ฐ๋ถํฌ๋ Linux ๊ณํต์ด๊ธฐ ๋๋ฌธ์ Linux ๋จ๊ณ๋ก ๋ฐ๋ผ๊ฐ๊ฒ ์ต๋๋ค.
(Mac์ด๋ Window์์ ์ํ์๋ฉด ์ ์ฃผ์๋ฅผ ํ์ธํ์๊ธฐ ๋ฐ๋๋๋ค. https://coral.ai/docs/accelerator/get-started/
1. Repository์ ์ถ๊ฐ
echo "deb https://packages.cloud.google.com/apt coral-edgetpu-stable main" | sudo tee /etc/apt/sources.list.d/coral-edgetpu.list
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -
sudo apt-get update
2. Edge TPU ์ค์น
sudo apt-get install libedgetpu1-std
3. ์ต์ (์๋ ์ต๋ํ : ๋์ ๊ธฐ๊ธฐ๊ฐ ๋จ๊ฑฐ์์ง ์ ์์ผ๋ ์ฃผ์)
sudo apt-get install libedgetpu1-max
USB Accelator(Edge TPU)๋ ์ง์ ๋ชจ๋ธ์ ํ์ต์ํฌ ์ ์์ต๋๋ค. Inference์ฉ์ ๋๋ค.
๋์ , TensorFlow๋ Keras๋ก ํ์ต๋ ๋ชจ๋ธ(32bit)์ TensorFlow lite(8bit)๋ก ๋ณํ ํ .tflite๋ก ๋ณ๊ฒฝ์ํค๊ณ ์ข ๋ ์ฑ๋ฅ์ ํฅ์น์ํค๋ ค๋ฉด Transfer Learning(์ ์ดํ์ต)์ ํ๋ฉด ๋ฉ๋๋ค.
์ค๋์ ์ธ๊ณต์ง๋ฅ์ ํ ์ ์๋ ์ ํ ๊น์ง๋ง ์ค๋ช ํ๊ฒ ์ต๋๋ค.
์ด์ TensorFlow Lite ์ธํฐํ๋ฆฌํฐ๋ฅผ ์ค์นํ๊ฒ ์ต๋๋ค.
https://www.tensorflow.org/lite/guide/python
Python ๋น ๋ฅธ ์์ | TensorFlow Lite
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trade
www.tensorflow.org
์๋ฅผ ์ฐธ๊ณ ํ์๊ธฐ ๋ฐ๋๋๋ค.
์ฐธ๊ณ ๋ก ๋ผ์ฆ๋ฒ ๋ฆฌํ์ด๋ ARM Architecture 32bit ์ ๋๋ค.
์์ ์ ํ์ด์ฌ ๋ฒ์ ผ์ ๋ง๊ฒ ๊น์์ฃผ์๋ฉด ๋ฉ๋๋ค. (python3 -V)
pip3 install <ํด๋น URL ๋ณต์ฌ/๋ถ์ฌ๋ฃ๊ธฐ>
์ด๋ ๊ฒ ๋ผ์ฆ๋ฒ ๋ฆฌํ์ด์์ ์ธ๊ณต์ง๋ฅ ์ถ๋ก ์ ํ ์ ์๋ ํ๊ฒฝ์ ๋ค ๊ฐ์ท์ต๋๋ค.
๋ค์ ๊ธ์ ๊ฐ๋จํ ์์ ํ๋๋ฅผ ๋๋ ค๋ณด๋๋ก ํ๊ฒ ์ต๋๋ค.