<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[AIoT Taipei - Medium]]></title>
        <description><![CDATA[跟你一起探索 AI + IoT 的世界，不管是新手或老鳥都歡迎加入 - Medium]]></description>
        <link>https://medium.com/aiot-taipei?source=rss----e17d00c9fe71---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>AIoT Taipei - Medium</title>
            <link>https://medium.com/aiot-taipei?source=rss----e17d00c9fe71---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 09:04:55 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/aiot-taipei" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Training trick — Label smoothing]]></title>
            <link>https://medium.com/aiot-taipei/training-trick-label-smoothing-93833db95ef8?source=rss----e17d00c9fe71---4</link>
            <guid isPermaLink="false">https://medium.com/p/93833db95ef8</guid>
            <dc:creator><![CDATA[22 12]]></dc:creator>
            <pubDate>Sat, 21 Nov 2020 10:24:33 GMT</pubDate>
            <atom:updated>2020-11-27T15:59:27.914Z</atom:updated>
            <content:encoded><![CDATA[<h3>模型壓縮及優化 — Label smoothing</h3><p>首先先付上<br><a href="https://arxiv.org/abs/1512.00567">論文連結</a></p><p>實作程式</p><pre>def label_smoothing(labels, factor=0.1):</pre><pre>labels *= (1 — factor)<br> labels += (factor / labels.shape[1])<br> return labels</pre><pre>def label_smoothing(labels, factor=0.1):<br> num_labels = labels.get_shape().as_list()[-1]<br> labels = ((1-factor) * labels) + (factor/ num_labels)<br> return labels</pre><h3>Label smoothing 介紹</h3><p>label smoothing 又稱為標籤平滑，常用在分類網路中來防止過擬和的一種方法，整體簡單易用，在小資料集上可以取得非常好的效果，首先我們先來看看整體是怎麼運作的。</p><p>首先來看看公式</p><p>傳統的one hot encoding</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/276/1*8Cf_j-8daAlE-XNlDujKyw.png" /></figure><p>而Label smoothing 導入一個factor 機制呈現</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/608/1*5fx_yaDOyhQPpd8oa1_JRA.png" /></figure><p>假設今天有四個類別，分別為dog , cat , bird , turtle</p><p># 分別對應到的類別為</p><p>dog = 0 , cat = 1 , bird = 2 , turtle = 3</p><p># 變成one hot encoding 後</p><p>dog = [ 1 , 0 , 0 , 0 ]</p><p>cat = [ 0 , 1, 0 , 0 ]</p><p>bird = [ 0 , 0 , 1 , 0 ]</p><p>turtle = [ 0, 0 , 0 , 1 ]</p><p># 而Label smoothing 概念很簡單 就是擁有一個factor 把其機率，分配給其他類別 ，假設factor = 0.1 其類別會變為</p><p>dog = [ 0.9 , 0.03 , 0.03 , 0.03 ]</p><p>cat = [ 0.03 , 0.9 , 0.03 , 0.03]</p><p>bird = [ 0.03 , 0.03 , 0.9 , 0.03 ]</p><p>turtle = [ 0.03 , 0.03 , 0.03 , 0.9 ]</p><p>那這樣做會有甚麼效果呢，我們從Loss 來觀察此問題，</p><p>首先我們先來看一下分類任務中最常見的cross entropy</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*b8DUx9eeuk8YieDvdweDfA.png" /></figure><p>我們如果套用上面的四種類別，首先來看看正確的Loss會呈現甚麼樣子</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rsDbfRaB6UyXJ8nIMHKXhg.png" /></figure><p>可以看到如果整體分類呈現正常梯度下降的話 使用Label smoothing 對比不使用的loss下降會比較少</p><p>那如果是呈現反向呢?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*M1tTUqMGFEWtI69gbunzKA.png" /></figure><p>可以看到就算Training時 判錯 loss 也不會相較原本扣的太多</p><h3>Label smoothing 結論</h3><p>(1) 今天True positive的時候 loss 不會下降得太快，False positive 的時候 loss 不會逞罰得太多，使其不容易陷入局部最優點 一定程度可以抑制過擬和現象</p><p>(2) 如果今天類別過於相像時，其判定不會過於絕對，而假如今天可能有類別相近的時候，分配給這些少數的機率也能使神經網路不這麼絕對</p><h3>Label smoothing 經驗分享</h3><p>(1) 不管是在object detection 的分類網路 又或是 多分類網路導入label smoothing 皆有不錯的效果，基本上算輕鬆又容易上升準確度的做法</p><p>(2) 當資料足夠多的時候，Label smoothing 這個效果很容易使網路變得欠擬和，有時候甚至會看見其分類的score 上限變為0.9</p><p>(3) factor設計通常為0.1 ，筆者試過使用0.2 ,0.3 等參數，會發現皆無較好的效果，反而使網路難以收斂</p><p>(4) 由於Training 時使用label smoothing 這個機制，而Validation的時候則不會使用，所以在觀察loss 圖的時候 Validation loss 通常會比 Training loss 低0.5 ，不易於觀察，這時候只要記錄好三條曲線，分別為計算正常的Training loss， label smoothing 的loss 以及Validation loss即可。</p><p>(5) 可以利用label smoothing的特性來做點變形，甚至遇上同樣類型的事物時，甚至可以將factor分配給相似類別，而不是全部類別，也通常會有不錯的效果。</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=93833db95ef8" width="1" height="1" alt=""><hr><p><a href="https://medium.com/aiot-taipei/training-trick-label-smoothing-93833db95ef8">Training trick — Label smoothing</a> was originally published in <a href="https://medium.com/aiot-taipei">AIoT Taipei</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AIoT for beginner — Voice device]]></title>
            <link>https://medium.com/aiot-taipei/aiot-for-beginner-voice-device-b274248b4176?source=rss----e17d00c9fe71---4</link>
            <guid isPermaLink="false">https://medium.com/p/b274248b4176</guid>
            <category><![CDATA[voice-kit]]></category>
            <category><![CDATA[aioti]]></category>
            <category><![CDATA[jetson-nano]]></category>
            <category><![CDATA[voice-recognition]]></category>
            <dc:creator><![CDATA[22 12]]></dc:creator>
            <pubDate>Sun, 28 Apr 2019 07:13:19 GMT</pubDate>
            <atom:updated>2019-05-02T02:36:08.679Z</atom:updated>
            <content:encoded><![CDATA[<h3>AIoT for Beginner — Voice device</h3><p>首先我們帶大家入門實作一個語音裝置(Voice device)</p><p>目前市面上有著許多現成的智慧音箱可供選擇，例如: echo dot、google home等等的。</p><p>對於開發者(or Maker)來說也有許多套件以及平台可供選擇，以下是這次會用到的材料與相關套件：</p><blockquote>1.材料清單</blockquote><ol><li>Raspberry Pi (建議使用 Raspberry Pi 3 B or B+)</li><li>喇叭(Speaker)</li><li>USB 麥克風</li></ol><p>( 在RPi3上，2 跟 3 也可以使用iPhone耳機 or 其他有speaker的耳機代替)</p><p>4. Google Voice Kit</p><p>也可以購買Googe 的語音套件(不含樹莓派與SD卡)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Q4qC4ag93LWyjzWfJ0IZOg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1YA-8DIxo9ICbGz3NIo9cg.jpeg" /></figure><blockquote>2.聽覺 — STT</blockquote><p>STT 就是 Speech To Text，就是所謂的語音辨識，將一段聲音傳給模型後，模型會回傳給你相應的文字。目前已經有許多訓練好的模型可供使用，也可以使用各大廠提供的雲端API (如: Goolge、AWS及微軟等等的)</p><p>對於python用戶來說還有一個很方便的套件包可供使用，那就是<a href="https://pypi.org/project/SpeechRecognition/"><strong><em>SpeechRecognition</em></strong></a><strong><em> </em></strong>，這個套件包幫你整合了許多的語音辨識API，讓你可以更方便及更彈性的去做選擇，如下：</p><ul><li><a href="http://cmusphinx.sourceforge.net/wiki/">CMU Sphinx</a> (works offline)</li><li>Google Speech Recognition</li><li><a href="https://cloud.google.com/speech/">Google Cloud Speech API</a></li><li><a href="https://wit.ai/">Wit.ai</a></li><li><a href="https://www.microsoft.com/cognitive-services/en-us/speech-api">Microsoft Bing Voice Recognition</a></li><li><a href="https://houndify.com/">Houndify API</a></li><li><a href="http://www.ibm.com/smarterplanet/us/en/ibmwatson/developercloud/speech-to-text.html">IBM Speech to Text</a></li><li><a href="https://snowboy.kitt.ai/">Snowboy Hotword Detection</a></li></ul><p><a href="https://pypi.org/project/SpeechRecognition/">SpeechRecognition</a></p><p>在安裝前須先安裝以下相關套件</p><pre># jeston nano<br>$ sudo apt-get install python-pyaudio python3-pyaudio<br>$ sudo apt-get install flac ffmpeg</pre><pre># raspberry <br><em>$ sudo pip3 install pyaudio</em></pre><p>最後便可以安裝 <strong><em>SpeechRecognition</em></strong></p><pre>sudo pip3 install SpeechRecognition</pre><p>在使用上也很精簡，我們首先看看一段範例程式(以下使用<strong>python3</strong>):</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/49db4053957925a442840850400f092e/href">https://medium.com/media/49db4053957925a442840850400f092e/href</a></iframe><p>運用一段簡單的程式便能讓電腦聽得懂自己的話!!!</p><blockquote>3.說話 — TTS</blockquote><p>現在電腦聽得懂自己的話了，該怎麼讓電腦進行回答呢?</p><p>便是運用TTS ，所謂的TTS就是 Text to speech，就是將語音辨識模型傳回來的文字轉成語音，這樣看起來就像是電腦在說話呢！</p><p>我們運用google免費提供的套件包<strong><em>gTTs(Google Text-to-Speech)</em></strong>，來進行回答，由於這個套件算是免費的，所以她的處理速度較慢，需要比較有耐心才行。</p><pre>sudo pip3 install gTTS</pre><pre>sudo pip3 install pydub</pre><p>程式範例:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/09d19178c8b393caf5d2de6d7b6e00af/href">https://medium.com/media/09d19178c8b393caf5d2de6d7b6e00af/href</a></iframe><p>有了這段code後，只要將上面 STT 程式範例中的 <strong><em>print() </em></strong>改成 <strong><em>speak()</em></strong></p><p>便可以完成一個簡單的語音裝置。</p><blockquote>4. alexa</blockquote><p>關於TTS個人認為在辨識效率及速度上已經十分不錯了，但是STT還是過於機械化，這邊我是採用alexa的Polly能讓你的語音更為順暢，並且小編覺得好聽非常多非常多!</p><p>以下是範例程式碼:</p><p>基本上只要輸入自己的key_id以及asscess_key就能使用</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/92a2ff0f3dd07d4f89ae7839dea62313/href">https://medium.com/media/92a2ff0f3dd07d4f89ae7839dea62313/href</a></iframe><blockquote>5. 測試結果</blockquote><p>以下是在Google的Voice Kit上使用的結果，之後也會補上在Jetson Nano上測試的影片上來。</p><p><a href="https://drive.google.com/file/d/13-ahVWhy1KqsIgmqc3N5cbEKWFSI7ds1/view?usp=sharing">voice-kit.mp4</a></p><p>如果有任何問題能在下面進行留言~</p><p>現在已經可以讓你的嵌入式裝置聽得懂，並且也可以說了。</p><p>下一篇就會教大家如何讓自己的嵌入式裝置思考，敬請期待！</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b274248b4176" width="1" height="1" alt=""><hr><p><a href="https://medium.com/aiot-taipei/aiot-for-beginner-voice-device-b274248b4176">AIoT for beginner — Voice device</a> was originally published in <a href="https://medium.com/aiot-taipei">AIoT Taipei</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AIoT for Beginner — Introduce]]></title>
            <link>https://medium.com/aiot-taipei/aiot-for-beginner-introduce-f31446bd5d64?source=rss----e17d00c9fe71---4</link>
            <guid isPermaLink="false">https://medium.com/p/f31446bd5d64</guid>
            <category><![CDATA[iota]]></category>
            <category><![CDATA[edge-computing]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[22 12]]></dc:creator>
            <pubDate>Thu, 04 Apr 2019 10:52:48 GMT</pubDate>
            <atom:updated>2019-04-04T11:21:42.934Z</atom:updated>
            <content:encoded><![CDATA[<h3>AIoT for Beginner — Introduce</h3><blockquote>1. 前言</blockquote><p>筆者曾經擔任關於AIoT通識課程的講者，此門課是開放給所有科系的人選修的，來上課的大部分學生都只知道 AI 卻不知道 IoT，或是知道這兩者卻不知道如何入門，於是這邊會簡單介紹一下什麼是<strong><em>AIoT。</em></strong></p><blockquote>2. AIoT = AI +IoT</blockquote><p>AIoT從字面上來看便是AI (人工智慧) 與IoT (物聯網) 的疊加。</p><blockquote>2–1. AI</blockquote><p>AI 也就是大家熟知的人工智慧(Artificial Intelligence) ，通指由人製造出來的智慧，現今人工智慧大部分著重於 機器視覺 (Computer Version )與語音 (Speech) 兩種</p><p>這兩種又代表了兩個很大的學門 捲積神經網路 (CNN) 以及循環神經網路 (RNN) 兩種 當然這其中也有很多混用的方式，筆者建議大家初學者不要侷限在某一種，因為是初學者，我們只要先知道如何去使用它就好。</p><blockquote>2–2. IoT</blockquote><p>IoT (Internet of Things)又指物聯網，最簡單的概念就是萬物互聯，將所有終端設備都連接上網。</p><p>而物聯網的物例如:感測器，一些終端裝置如家電或是微電腦等</p><p>連接上網又有甚麼好處呢?</p><p>我們便可以透過<strong>網路</strong>就取用到這些終端裝置提供的資訊，像是獲取你使用電風扇的時間，或是車子輪胎的胎壓等等，便可以透過數據來使生活更加便利。</p><p>這些終端裝置將會收集大量的數據，我們便需要進行處理甚至是預測便會達到，在產業面上，自駕車，智慧音箱，無人車等大多屬於AIoT範疇</p><blockquote><strong>AI +IoT =AIoT</strong></blockquote><blockquote>3. AIoT 的生態以及挑戰</blockquote><p>以往的AIoT通常通過網路傳送至遠端主機以進行分析，但是在科技的日新月異下，傳送至終端會有許多問題，例如:封包遺失，時間過長，不具有即時性以及頻寬不夠等等的問題。</p><p>而最大一部分的問題是目前網路不是覆蓋至所有地區，任何情況，還是會被阻擋，有些具有即時性的裝置不能有這種疑慮。</p><p>於是為了解決這個問題現今的AIoT逐漸向所謂的邊緣運算也就是所謂的edge computing靠攏，邊緣運算也就是在邊緣裝置(也就是終端裝置)進行處理，並且即時進行運算，這很大一部分也要歸功於硬體能力的增長。</p><p>而相較於傳統回傳至伺服器的做法，現在的AIoT更強調:</p><h3>a. 低運算量</h3><p>畢竟終端裝置通常都要具有微型化且耗電量要低，無法像一般電腦那樣處理大量數據，所以設計的程式便是需要低運算量的特點，讓系統能正常運行。</p><h3>b. 合理的準確度</h3><p>在低運算量的要求下，準確度便不能達到使用高強度伺服器運算過後的結果，所以會focus在盡量讓準確度不要下降太多且又符合使用需求的情況，而不是一昧地強調超高準確率。</p><h3>c. 速度</h3><p>由於終端裝置的大小需求，硬體效能也不會過高，速度便也需要應付運算要求，如果終端裝置運算速度低於回傳至伺服器再回傳回來，那其效益性也會降低</p><blockquote><strong><em>AIoT =速度+合理的準確度+低運算量</em></strong></blockquote><p>整體相較於目前運用強大硬體暴力破解的AI技術，更容易打入產業鏈。</p><blockquote>4. 入門開發板</blockquote><p>現今市面已經有不少得開發板or其它相關套件供大家選擇，例如：</p><p>(1) Raspberry pi</p><p>(2) Jetson Nano</p><p>(3) Edge TPU</p><p>(4) Intel Movidius</p><p>由於筆者手上只有 Raspberry Pi 跟 Jetson Nano，所以之後的教學會以此兩種板子為主，如果想跟筆者一起探索AIoT世界的讀者們，希望也能準備好此兩種板子之一喔～</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/462/1*ECTuMUZoVf_AZx7VCKsGfQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/630/1*MHJznfSDMfqiPtI2zQ6p4A.png" /></figure><p>下一篇將會帶大家了解如何做一個自己的語音裝置，敬請期待！</p><p>PS: 如果想做圖片or影像辨識裝置的讀者們不要急喔，講完語音裝置後就會進入辨識裝置囉。</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f31446bd5d64" width="1" height="1" alt=""><hr><p><a href="https://medium.com/aiot-taipei/aiot-for-beginner-introduce-f31446bd5d64">AIoT for Beginner — Introduce</a> was originally published in <a href="https://medium.com/aiot-taipei">AIoT Taipei</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Jetson Nano 測試與使用心得]]></title>
            <link>https://medium.com/aiot-taipei/jetson-nano-%E6%B8%AC%E8%A9%A6%E8%88%87%E4%BD%BF%E7%94%A8%E5%BF%83%E5%BE%97-b0a9d2f49050?source=rss----e17d00c9fe71---4</link>
            <guid isPermaLink="false">https://medium.com/p/b0a9d2f49050</guid>
            <category><![CDATA[tensorflow]]></category>
            <category><![CDATA[object-detection]]></category>
            <category><![CDATA[opencv-python]]></category>
            <dc:creator><![CDATA[22 12]]></dc:creator>
            <pubDate>Mon, 01 Apr 2019 14:24:09 GMT</pubDate>
            <atom:updated>2019-04-01T14:24:09.782Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>1. Raspberry Pi?</blockquote><p>經過這幾天的把玩，筆者認為Nano相對於 Jeston Xavier 與 Jeston Tx2 這兩大家族成員來說，在安裝與操作上非常的簡單易懂，筆者認為已經接近於 Raspberry Pi(樹莓派)的便利性。</p><p>整體十分的流暢，在介面的使用上幾乎不會像Raspberry Pi一樣頓，安裝套件上也比 Jeston 其他系列來的方便非常多非常多(用過Jeston其他系列的人一定知道我在說甚麼)，基本上可以把他當成是<strong><em>高級版的Raspberry Pi，</em></strong>簡單來說就是能使用<strong><em>tensorflow-gpu的升級版Raspberry Pi</em></strong>，但是他也有自己很嚴重的問題，也就是供電這邊放在最後討論。</p><blockquote>2. 簡單測試 with OpenCV</blockquote><p>筆者在網路上隨邊抓了一個OpenCV的範例來跑跑看，整體的流暢度還是十分高的。(請忽略我凌亂的桌子)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/320/1*F7qXiCJM9NX9X6P9F7NPqA.gif" /></figure><blockquote>3. Tensorflow運行測試</blockquote><p>a. 在Tensorflow的使用上我認為載入速度是跟Raspberry Pi 差不多的，但其整體速度提升十分多(這是筆者之前寫給Raspberry Pi 的tensorflow範例)。</p><p>b. FPS如同預期的比Raspberry Pi 好上許多。</p><p>補充: 有朋友反應在使用Tensorflow時，遇到OOM(out of memory)問題，筆者這邊建議大家，如果遇到各種OOM問題，可以先嘗試關機或是關閉所有process再運行一次，如果還是出現OOM問題請參考下列程式碼:</p><pre>gpu_options = tf.GPUOptions(per_process_gpu_memory_fraction=0.7)<br>sess = tf.Session(config=tf.ConfigProto(gpu_options=gpu_options))</pre><p>這行程式代表: 在運行Tensorflow的時候，佔用的memory不會超過總memory的7成，這樣就不會發生OOM了！</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/320/1*RW01xJ1iP-ESuIgNd97C2Q.gif" /></figure><blockquote>4. Object-detection</blockquote><p>目前測試各種 Object-detection model 基本上都會瞬間造成死機。(附上程式碼位置給大家參考測試: <a href="https://github.com/kaka-lin/object-detection">https://github.com/kaka-lin/object-detection</a>)</p><p>如果是編譯<strong>權重檔</strong>方面Kill，這邊筆者推估大概是因為jetson的process都不會關閉，所有memory 會被占用，基本上只要在沒開啟任何process下，還是能用OpenCV編譯<strong>權重檔</strong>。</p><p>但是只要用webcam跑real-time的 Object-detection 他還是會直接死機給你看(偵測照片還是沒問題的)。</p><p>目前很容易會遇到下面這個issue</p><p><a href="https://github.com/pjreddie/darknet/issues/1073?fbclid=IwAR1mr786DMxC0u1zdahgvXXYiFtPsugI_qN9Hy7hStQpz3me1_SrSXLr2gk">On tx2, killed · Issue #1073 · pjreddie/darknet</a></p><p>如果要編譯的各位建議可以把所有process關掉然後再進行編譯，會比較容易編譯過去。</p><p>這邊放上死機實錄(大概在後面負荷太大他就直接關機了)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/320/1*Ua1RjnxXs_dRAW1PIYIW9Q.gif" /></figure><blockquote>5. 缺點</blockquote><p>在使用套件包上算是非常便利了，如果大家還是安裝不起來套件包可以參考上一篇文章最後面</p><p><a href="https://medium.com/aiot-taipei/jeston-nano-tensorflow-gpu-%E5%AE%89%E8%A3%9D-b26d42f7c3f3">Jeston nano tensorflow-gpu 安裝</a></p><p>基本上這邊不會有之前jetson家族的問題。</p><h3>但是目前有一個十分嚴重的問題，就是供電非常容易不足</h3><p>只要電壓一不穩他就會直接閃退給你看，甚至只要程式負荷太大他也會直接跳出關機 ，在小編這幾天測試下來死機對於jetson nano已經變一種常態了~</p><p>對於穩定度來講這邊還是建議大家如果要購買能順便一起買好一點的充電器!!</p><p>小編是採用2.5A/5V的供電器基本上使用沒問題，但是就是效能負荷過高會直接關機，或是推薦大家使用官方所用的DC 4A供電器。</p><p>以上就是筆者這幾天把玩Jetson Nano得心得，歡迎大家一起來討論你的使用心得。</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b0a9d2f49050" width="1" height="1" alt=""><hr><p><a href="https://medium.com/aiot-taipei/jetson-nano-%E6%B8%AC%E8%A9%A6%E8%88%87%E4%BD%BF%E7%94%A8%E5%BF%83%E5%BE%97-b0a9d2f49050">Jetson Nano 測試與使用心得</a> was originally published in <a href="https://medium.com/aiot-taipei">AIoT Taipei</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Jeston nano tensorflow-gpu 安裝]]></title>
            <link>https://medium.com/aiot-taipei/jeston-nano-tensorflow-gpu-%E5%AE%89%E8%A3%9D-b26d42f7c3f3?source=rss----e17d00c9fe71---4</link>
            <guid isPermaLink="false">https://medium.com/p/b26d42f7c3f3</guid>
            <category><![CDATA[edge-computing]]></category>
            <category><![CDATA[python3]]></category>
            <category><![CDATA[tensorflow]]></category>
            <dc:creator><![CDATA[22 12]]></dc:creator>
            <pubDate>Thu, 28 Mar 2019 08:42:43 GMT</pubDate>
            <atom:updated>2019-03-28T08:42:43.295Z</atom:updated>
            <content:encoded><![CDATA[<h3>Jetson Nano Tensorflow-GPU 安裝</h3><blockquote>1. Installing dependencies</blockquote><p>在安裝 tensorflow-gpu 前，你需先安裝以下套件:</p><p>a. <a href="https://docs.nvidia.com/sdk-manager/index.html">NVIDIA SDK Manager</a></p><p>b. <a href="https://en.wikipedia.org/wiki/Hierarchical_Data_Format">HDF5</a>: 是一種為存儲和處理大容量科學數據設計的文件格式及相應庫文件</p><pre>$ sudo apt-get install libhdf5-serial-dev hdf5-tools</pre><p>c. pip: 套件管理工具</p><pre>$ sudo apt-get install python3-pip<br>$ sudo pip3 install -U pip</pre><p>d. 安裝相關套件</p><pre>$ sudo apt-get install zlib1g-dev zip libjpeg8-dev libhdf5-dev<br>$ sudo pip3 install -U numpy grpcio absl-py py-cpuinfo psutil portpicker grpcio six mock requests gast h5py astor termcolor</pre><blockquote>2. Installing tensorflow-gpu</blockquote><p>安裝完上述套件後，便可以開始安裝 <strong>tensorflow-gpu</strong>，如下:</p><pre>$ sudo pip3 install --pre --extra-index-url <a href="https://developer.download.nvidia.com/compute/redist/jp/v42">https://developer.download.nvidia.com/compute/redist/jp/v42</a> tensorflow-gpu</pre><p>也可以安裝特定版本:</p><pre>$ sudo pip3 install --extra-index-url <a href="https://developer.download.nvidia.com/compute/redist/jp/v42">https://developer.download.nvidia.com/compute/redist/jp/v42</a> tensorflow-gpu == $ TF_VERSION + nv $ NV_VERSION</pre><p>TF_VERSION: TensorFlow的發布版本，例如: 1.12.0。</p><p>NV_VERSION: TensorFlow的每月NVIDIA容器版本，例如: 19.01。</p><blockquote>3. 確認安裝成功</blockquote><ol><li>開啟 Terminal ，並run:</li></ol><pre>$ python3</pre><p>2. Import TensorFlow:</p><pre>&gt;&gt;&gt; import tensorflow</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/670/1*5ojJ8zUzvNOJUGCRuGM6Tw.png" /></figure><blockquote>4 . 補充</blockquote><p>一般來說在安裝python套件時都會使用下面命令:</p><pre>$ sudo pip3 install 套件 </pre><p>但是在Embedded linux下，常常會發現上面命令無法安裝相關套件</p><p>這時候可以使用 <strong>apt </strong>來去安裝相關套件，如下:</p><pre>$ sudo apt-get install python3-套件</pre><p>以上簡單帶大家安裝 tensorflow-gpu</p><p>敬請期待下一篇 Jetson Nano的使用心得！</p><p>以上來源參考自:</p><p><a href="https://docs.nvidia.com/deeplearning/dgx/install-tf-xavier/index.html">https://docs.nvidia.com/deeplearning/dgx/install-tf-xavier/index.html</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b26d42f7c3f3" width="1" height="1" alt=""><hr><p><a href="https://medium.com/aiot-taipei/jeston-nano-tensorflow-gpu-%E5%AE%89%E8%A3%9D-b26d42f7c3f3">Jeston nano tensorflow-gpu 安裝</a> was originally published in <a href="https://medium.com/aiot-taipei">AIoT Taipei</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Jeston Nano 安裝 for Windows]]></title>
            <link>https://medium.com/aiot-taipei/jeston-nano-%E5%AE%89%E8%A3%9D-for-windows-5a8ce8f6d2d0?source=rss----e17d00c9fe71---4</link>
            <guid isPermaLink="false">https://medium.com/p/5a8ce8f6d2d0</guid>
            <dc:creator><![CDATA[22 12]]></dc:creator>
            <pubDate>Wed, 27 Mar 2019 07:16:16 GMT</pubDate>
            <atom:updated>2019-03-27T07:16:16.539Z</atom:updated>
            <content:encoded><![CDATA[<p>終於拿到熱騰騰的 Jetson Nano 了阿，就讓我們趕緊開箱來跟大家分享。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SEn_MfVzTWAvsEWgkXSjBg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BXnTiAO38cIGvtZi_djdgg.jpeg" /></figure><p>由於 Jeston Nano 沒有 wifi，所以只能插wifi網卡或者使用有線網路</p><p>自己手邊剛好有平常 Raspberry Pi 在使用的wifi網卡，於是就使用他啦!</p><p>有些wifi網卡不相容建議大家還是買官方推薦的!</p><p>基本上 Jetson Nano 的安裝參照官方的安裝方式即可</p><p>以下帶領大家跟著步驟做一次！</p><p><a href="https://developer.nvidia.com/embedded/learn/get-started-jetson-nano-devkit">Get Started With Jetson Nano Developer Kit</a></p><blockquote>1. SD Card 格式化</blockquote><p>在開始前燒錄映像檔(image)前建議大家都先格式化 SD Card</p><p>以下使用官方建議的工具: <a href="https://www.sdcard.org/downloads/formatter/eula_windows/"><strong>SD Card Formatter</strong></a></p><p>PS: 如果直接使用格式化也是可以但是有時候系統會跑不出來，建議大家還是安裝 <strong>SD Card Formatter</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/771/1*DEzCgori93FGDA2b3G1UIQ.png" /></figure><p>這邊選完你要格式化的SD card後點選 <strong>quick format</strong></p><blockquote>2. 燒錄映像檔</blockquote><p>下載完官方 <a href="https://developer.nvidia.com/embedded/dlc/jetson-nano-dev-kit-sd-card-image">Image</a> 檔後使用 <a href="https://www.balena.io/etcher/">etcher</a> 來寫入映像檔</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*90cqk8GGUFNeyiA3HYHyig.png" /></figure><p>再燒入映像檔的同時，此映像檔會產生很多分區，建議大家不要去點他，然後</p><h3>一定要點右下角安全退出硬體!一定要點右下角安全退出硬體!一定要點右下角安全退出硬體!</h3><p>因為沒有安全退出硬體我大概重複試了好幾次都有閃退情形發生。</p><blockquote>3. 遇到的問題-閃退</blockquote><p>在把玩 Jetson Nano 時常常發生供電不足造成閃退的情形。</p><p>不管是使用2.5A電源，還是一般手機充電器只要電壓不穩他就會閃退給你看!</p><p>在嘗試過一些手邊有的其他電源供應的方式後發現，</p><p>使用 <strong>小米電源 </strong>似乎就比較穩定，目前都沒有發生閃退的情形。</p><blockquote>4. 完成！！！</blockquote><p>最後給大家看一下 Jetson Nano 的開機畫面</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GXsM5VHFj4DpDszFqbN8Tw.png" /></figure><p>敬請期待下一篇教你如何在 nano 上安裝 tensorflow gpu 版本！</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5a8ce8f6d2d0" width="1" height="1" alt=""><hr><p><a href="https://medium.com/aiot-taipei/jeston-nano-%E5%AE%89%E8%A3%9D-for-windows-5a8ce8f6d2d0">Jeston Nano 安裝 for Windows</a> was originally published in <a href="https://medium.com/aiot-taipei">AIoT Taipei</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Python Environment Setup (for Deep Learning) on Windows]]></title>
            <link>https://medium.com/aiot-taipei/python-environment-setup-for-deep-learning-on-windows-c5bb335d7ac6?source=rss----e17d00c9fe71---4</link>
            <guid isPermaLink="false">https://medium.com/p/c5bb335d7ac6</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[windows]]></category>
            <dc:creator><![CDATA[kaka Lin]]></dc:creator>
            <pubDate>Tue, 26 Mar 2019 08:10:36 GMT</pubDate>
            <atom:updated>2019-11-23T07:38:11.470Z</atom:updated>
            <content:encoded><![CDATA[<h3>1. Install Package Manager</h3><ul><li><a href="https://chocolatey.org/">Chocolate</a></li></ul><p>It is the package manager for windows. Following the install step on the website to install it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/604/1*gMzThXcXzZ4qsknc-LQ3CQ.png" /></figure><h3>2. Install More Handy Terminal</h3><ul><li><a href="https://conemu.github.io/">ConEmu</a></li></ul><p>Using choco to install it.</p><pre>&gt; choco install conemu</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/802/1*v6-vrwIcIIaWrCsBT6R-9w.png" /></figure><h3>3. Install Git Bash</h3><ul><li><a href="https://gitforwindows.org/">Git for Window</a></li></ul><p>Download and Install it.</p><h3>4. Open ConEmu</h3><p>Opening ConEmu and choose git bash, then you can use Unix-commands.</p><ul><li><a href="/service/vscode-resource:/home/kaka/Desktop/t.md">git bash</a></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/619/0*p4YpNYdaT5Np1ER6.png" /></figure><h3>5. Install Python3</h3><ul><li>Install Miniconda3</li></ul><pre>$ choco install miniconda3 --params=&quot;&#39;/AddToPath:1&#39;&quot;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/797/0*uqBrECJkmYdbkF-0.png" /></figure><p>then you can use conda and python</p><ul><li>If you want to use python3.6</li></ul><pre>$ conda install python=3.6</pre><p>or create a new environment (Recommend)</p><pre>$ conda create --name py36 python=3.6</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/727/0*i6ru2hKhKouAt6XQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/558/0*6kCxuZBkNrZPRurj.png" /></figure><ul><li>Activate the environment of py36</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/0*eBifZQ7Z8FMghgh1.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*PKEhPJA6lsFT3up1.png" /></figure><h3>Note:</h3><p>Because git bash use MinTTY that doesn&#39;t support interactive operation, If you want to use python interactive shell, you can follow the method as follows</p><pre>$ python -i</pre><p>GitHub: <a href="https://github.com/kaka-lin/pyenv-setup-tutorials/blob/master/Windows/README.md">https://github.com/kaka-lin/pyenv-setup-tutorials/blob/master/Windows/README.md</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c5bb335d7ac6" width="1" height="1" alt=""><hr><p><a href="https://medium.com/aiot-taipei/python-environment-setup-for-deep-learning-on-windows-c5bb335d7ac6">Python Environment Setup (for Deep Learning) on Windows</a> was originally published in <a href="https://medium.com/aiot-taipei">AIoT Taipei</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>