<?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[Stories by AI.FREE on Medium]]></title>
        <description><![CDATA[Stories by AI.FREE on Medium]]></description>
        <link>https://medium.com/@ai-free-startup?source=rss-d19031115432------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*0ASfrlm3wtTsHmM3Q3J-DQ.png</url>
            <title>Stories by AI.FREE on Medium</title>
            <link>https://medium.com/@ai-free-startup?source=rss-d19031115432------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 16:38:53 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ai-free-startup/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Win 11 本地端運行語音生成服務（NeMo/Streamlit）]]></title>
            <link>https://ai-free-startup.medium.com/win-11-%E6%9C%AC%E5%9C%B0%E7%AB%AF%E9%81%8B%E8%A1%8C%E8%AA%9E%E9%9F%B3%E7%94%9F%E6%88%90%E6%9C%8D%E5%8B%99-nemo-streamlit-624498e800f4?source=rss-d19031115432------2</link>
            <guid isPermaLink="false">https://medium.com/p/624498e800f4</guid>
            <category><![CDATA[tts]]></category>
            <category><![CDATA[win11]]></category>
            <category><![CDATA[nemo]]></category>
            <category><![CDATA[generative-ai-use-cases]]></category>
            <category><![CDATA[streamlit]]></category>
            <dc:creator><![CDATA[AI.FREE]]></dc:creator>
            <pubDate>Tue, 21 Nov 2023 07:12:57 GMT</pubDate>
            <atom:updated>2023-11-22T02:53:45.945Z</atom:updated>
            <content:encoded><![CDATA[<h3>■ 基本資訊</h3><p>▶ 測試環境：Windows 11 + Nvidia GeForce RTX 4050<br>▶ 作者：<a href="https://www.linkedin.com/in/%E6%B5%A9%E7%B6%AD-%E6%9D%8E-996248236/">李浩維</a>（Hank）@ <a href="https://www.facebook.com/aifreeteam">AI . FREE Team</a><br>▶ 聯絡資訊：ai.free.hankli@gmail.com<br>▶ 最後更新時間：2023/11/22</p><h3>■ 大綱</h3><p>▶ 如果你也在安裝 NeMo 時發生困難<br>▶ 認識 Nvidia NeMo<br>▶ 建置虛擬環境<br>▶ 安裝基礎運算套件<br><strong>▶ 安裝 NeMo（重頭戲）<br></strong>▶ 架設語音合成的網頁服務 — Streamlit<br>▶ 實際執行<br>▶ 參考連結</p><h3>■ 如果你也在安裝 NeMo 時發生困難</h3><p>把 Nvidia NeMo 專案 Clone 到專案資料夾了，也已經為電腦準備好 GPU 了，在你以為一切都將順利的時候，輸入 pip install … 之後你就會看到 Terminal / Command Line 裡頭 Pop up 紅紅的一片 Error Message。<strong>如果你是 Win10、Win11 的用戶，你最可能遇到的問題就是 pynini 和 fasttext 這兩個套件無法順利安裝</strong>。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*knb_XRbOJMzsRVu2rU45NQ.jpeg" /><figcaption>pynini, fastext 套件無法順利安裝</figcaption></figure><p>因為我們也遇過這個挑戰，因此<strong>本文將會幫助你完整理解為什麼會出現這個神奇的 Error Message、克服 pynini 和 fasttext 的安裝問題</strong>，並且<strong>利用資料科學家最愛用的 Streamlit 建置一個馬上就能運作而且還能說話的 AI 助理！</strong></p><h3>■ <strong>認識 Nvidia NeMo</strong></h3><p>NeMo 是 Nvidia 推出的開源 NLP 工具，包含許多好用的語音識別與自然語言處理 API。這個開源套件讓我們距離人手一個智能助手的目標更加接近，它不僅能夠聽懂你說什麼，還能跟你聊天，甚至幫你寫詩（笑</p><p>NeMo 擅長的事情，目前主要包含 3 個面向的 Toolkit：</p><p>1. ASR（Automatic Speech Recognition）：這是一種語音識別技術，能夠將我們口語的內容轉為文字。較常見的應用像是語音助手或語音輸入服務。</p><p>2. TTS（Text-to-Speech）：它將文字資料轉為聽起來像人說出來的語言，使機器能夠“說話”。我們團隊也曾經製作過太魯閣族的 TTS，並且使用此技術重現耆老的聲音：）</p><p>3. NLP（Natural Language Processing）：包含了各式各樣的文字處理功能，從翻譯、情感分析、資訊提取到自然語言理解，讓電腦能夠解釋和生成人類語言，以便更自然地與人類互動。</p><p>在這篇文章，<strong>我們將使用能夠合成聲音的 TTS 工具包</strong>，只是要讓這個助手在 Windows 上實際執行起來，會有幾個難過的坑需要避開，果然還是 Linux 最好裝套件嗎（？）</p><p>總之，對這個開源專案有興趣的你，不妨花個3分鐘快速逛一下 <a href="https://github.com/NVIDIA/NeMo/tree/main">NeMo 的 Github</a> 和可以直接 <a href="https://docs.nvidia.com/deeplearning/nemo/user-guide/docs/en/stable/starthere/tutorials.html">Run 在 Google Colab</a> 的教學資源吧！</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/926/1*P-2bA2GPKAnz6yD2QYRkwg.jpeg" /><figcaption>NeMo 的 Github Page</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Et97_p1IcOx5uJbm_MYOhg.jpeg" /><figcaption>NeMo 的 ReadMe</figcaption></figure><p>對於 NeMo 基本的認識之後，我們就再繼續往下閱讀！</p><h3>■ 建置虛擬環境</h3><p>在開始之前，首要步驟是<strong>建立一個「與其它軟體專案區隔開來的」開發環境</strong>。使用 Conda 的虛擬環境就是其中一個資料科學界常見的手段，能夠幫助在安裝套件的時候自動避免套件之間的版本衝突。</p><ul><li>請確保電腦具有 <a href="https://www.anaconda.com/download">Anaconda</a>（沒有的話建議下載）</li><li>透過 Anaconda 中的「Anaconda Prompt」建立虛擬環境（貼心提醒，如果你是 Mac 用戶，安裝好 Anaconda 之後直接開 Terminal 就可以了。）</li></ul><pre># 使用 conda 創建一個名為 nemo 的新虛擬環境，並將 python 版本指定為 3.10.12<br>conda create --name nemo python==3.10.12<br><br># 切入虛擬環境（務必注意到最前面的小括號會變成 nemo 字樣）<br>conda activate nemo</pre><p>Note: 我們特地指定此虛擬環境的 Python 環境為 3.10.12，這是因為 3.10.12是 <a href="https://github.com/NVIDIA/NeMo/blob/main/README.rst#getting-help-with-nemo">NeMo 文件中</a>提及最穩定運作的版本，如果過了一陣子有更新的話，也請讀者以 NeMo 推薦的最穩定版本為準！</p><p>要使用 NeMo 的 TTS 工具，勢必需要安裝一些基礎的運算套件。</p><h3>■ 安裝基礎運算套件</h3><p>NeMo 的底層是利用 PyTorch 運作的，因此我們就先透過 conda 把衍伸的套件裝一裝（注意，這一步驟需要在虛擬環境裡面執行）</p><pre># 安裝 Pytorch 等相關套件<br>conda install pytorch torchvision torchaudio pytorch-cuda=11.8 -c pytorch -c nvidia<br><br># Cython 可以將 Python 語言擴展或模組編譯程 C 語言<br>pip install cython==3.0.5</pre><h3>■ 安裝 NeMo（重頭戲）</h3><p>這邊非常的 Tricky，多數 Windows 開發者基本上都會在這關卡住，我們會很自然地想要直接輸入下面的指令進行安裝 …</p><pre>pip install &quot;nemo_toolkit[all] @ git+https://github.com/NVIDIA/NeMo.git@r1.21.0&quot;</pre><p>… 然後就結束這回合（Crossed Hands 祈禱一切順利），但是 Error Message 會告訴你基於某種因素，總之它安裝不了 fasttext 和 pynini 這兩個套件，所以就導致整個 NeMo 都裝不起來。</p><p>因此，解決方法就是先個別安裝好 fasttext 和 pynini，再使用上面的指令，這樣就能順利裝起 NeMo，因為當我們先安裝好 fasttext 和 pynini 之後，在用上面的指令安裝時，它就會發現已經有裝了，所以就會自動跳過。</p><p>計畫明確之後，<strong>下個問題是，那我們要怎麼知道要安裝哪一個版本的 fasttext 和 pynini？</strong></p><p>要回答這個問題，就需要跳脫 Windows 的思維框架，想想看 NeMo 再哪邊可以好好運作呢？答案就是 Nvidia 官方教學使用的 Google Colab！所以我們就不用客氣，直接開啟 NeMo TTS 的教學 Colab Notebook — <a href="https://colab.research.google.com/github/NVIDIA/NeMo/blob/stable/tutorials/tts/NeMo_TTS_Primer.ipynb">Nemo TTS Primer</a>（見下圖）找答案</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XqbIsniyTa-OvaHhFMLfKA.png" /><figcaption>Nvidia Colab Notebook — NeMo TTS Primer</figcaption></figure><p>點進去之後、連線、安裝、然後再新增一格程式碼輸入</p><pre>!pip list</pre><p>答案就跑出來了！</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*z5La2VdHYqtJVLd6p1vwBA.jpeg" /><figcaption>fasttext 和 pynini 的可以運作的版本號</figcaption></figure><p>找到版本號之後，我們馬上回到 Anaconda 裡面執行（注意，要在虛擬環境裡面執行）</p><pre># 先執行上面這個<br>pip install fasttext==0.9.2<br><br># 再執行下面這個<br>pip install pynini==2.1.5</pre><p>結果還是 Error Message …</p><p>經過一陣查找之後，才知道 fasttext 這個套件<a href="https://pypi.org/project/fasttext/">在官方文件上</a>表示只支援 Mac 和 Linux 的 OS。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/764/1*Pc9LZS8gF-ncOhaDDiDbVA.jpeg" /><figcaption>fasttext 官方文件</figcaption></figure><p>還好，這是一個開源時代，網路上的技術大神特地整理了許多 Windows 可以在 Local 端直接 pip install 的 wheel！像是<a href="https://www.lfd.uci.edu/~gohlke/pythonlibs/">這個網站</a>！</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/421/1*xn2nMkSdUGLPWyZNagrFmw.jpeg" /><figcaption>fasttext 針對 windows 用戶的 wheel</figcaption></figure><p>在上面的第三方資源網業中，利用 Ctrl + F 找到 fasttext-0.9.2-cp310-win_amd64.whl，並且下載之後，再切換路徑到所在路徑中，直接執行</p><pre>pip install fasttext-0.9.2-cp310-cp310-win_amd.whl</pre><p>完成安裝後，你的虛擬環境就會有 fasttext 這個套件了，所以等一下 pip install ... 的時候，它就會自動跳過 fasttext 的安裝囉！</p><p>好，解決了 fasttext 這個套件，下一個是 pynini。</p><p>Pynini 比較簡單，可以直接仰賴 conda install 的方式處理好，關鍵就是剛剛要在 colab 順利找到它的版本號碼，請大家進入虛擬環境之後，輸入以下指令，就可以順利安裝起來了。</p><pre>conda install -c conda-forge pynini==2.1.5</pre><p>等待 pynini 也安裝完成之後，就可以來執行最一開始的指令了！</p><pre>pip install &quot;nemo_toolkit[all] @ git+https://github.com/NVIDIA/NeMo.git@r1.21.0&quot;</pre><p>靜靜等待安裝，然後就出現我們最想看到的 successfully installed 字樣！</p><p>來到這邊，我們就已經完成了最核心套件 — NeMo 的安裝了。</p><h3>■ 架設語音合成的網頁服務 — Streamlit</h3><p>完成上述步驟後，你的 NVIDIA NeMo 環境就算是安裝好了！這裡我們選擇的是 Streamlit 這個工具，能夠快速地建構一個網站，這個網站的功能就是你輸入文字進去，它就能即時利用 NeMo 的 TTS 將文字轉成語音檔。</p><pre># 安裝 Streamlit<br>pip install streamlit<br><br># 安裝額外的音訊處理套件<br>pip install torchaudio pydub</pre><p>然後我們就可以開始寫程式了，歡迎各位讀者直接複製下方的程式，然後貼到一個新的檔案中，並且另存檔案為 <strong>streamlit_nemo.py</strong>。</p><pre>import streamlit as st<br>import torch<br>from io import BytesIO<br>import torchaudio<br>from nemo_text_processing.text_normalization.normalize import Normalizer<br>from nemo.collections.tts.models import Tacotron2Model, HifiGanModel<br>import matplotlib.pyplot as plt  # 新增這行來繪製頻譜圖<br><br># 檢查 CUDA 可用性並設置設備<br>device = torch.device(&#39;cuda&#39; if torch.cuda.is_available() else &#39;cpu&#39;)<br><br># 設置 Streamlit 應用標題<br>st.title(&#39;NeMo 文字轉語音&#39;)<br><br># 創建一個文本輸入框供用戶輸入要轉換的文本<br>input_text = st.text_area(&quot;輸入文本，然後點擊下方按鈕進行語音合成&quot;)<br><br># 加載預訓練的 TTS 模型和正規化器<br>normalizer = Normalizer(input_case=&quot;cased&quot;, lang=&quot;en&quot;)<br>spectrogram_model = Tacotron2Model.from_pretrained(&quot;tts_en_tacotron2&quot;).eval().to(device)<br>vocoder_model = HifiGanModel.from_pretrained(&quot;tts_en_hifigan&quot;).eval().to(device)<br># 當按鈕被按下，執行 TTS 轉換<br>if st.button(&#39;合成語音&#39;):<br>    if input_text:<br>        # 正規化文本<br>        normalized_text = normalizer.normalize(input_text)<br><br>        # 轉換文本為音素<br>        tokens = spectrogram_model.parse(normalized_text, normalize=True)<br><br>        # 生成頻譜圖<br>        spectrogram = spectrogram_model.generate_spectrogram(tokens=tokens)<br>        <br>        # 轉換頻譜圖為 NumPy 數據<br>        spectrogram_np = spectrogram.squeeze().cpu().detach().numpy()<br><br>        # 使用 Matplotlib 繪製頻譜圖<br>        fig, ax = plt.subplots(figsize=(10, 4))<br>        cax = ax.matshow(spectrogram_np, aspect=&#39;auto&#39;, origin=&#39;lower&#39;)<br>        fig.colorbar(cax)<br>        ax.set_title(&#39;頻譜圖&#39;)<br>        ax.set_xlabel(&#39;時間&#39;)<br>        ax.set_ylabel(&#39;頻率&#39;)<br><br>        # 顯示頻譜圖<br>        st.pyplot(fig)<br><br>        # 將頻譜圖轉換為音頻樣本<br>        audio = vocoder_model.convert_spectrogram_to_audio(spec=spectrogram)<br><br>        # 將音頻轉換為可播放格式<br>        audio_numpy = audio.squeeze().cpu().detach().numpy()<br>        audio_buffer = BytesIO()<br>        torchaudio.save(audio_buffer, format=&quot;wav&quot;, src=torch.Tensor([audio_numpy]), sample_rate=22050)<br>        audio_buffer.seek(0)<br><br>        # 在 Streamlit 上播放音頻<br>        st.audio(audio_buffer, format=&#39;audio/wav&#39;)<br>    else:<br>        st.write(&#39;請輸入一些文本...&#39;)</pre><p>稍微解釋一下裡面的 AI 概念：</p><p>這段程式碼所使用的的兩個 AI 模型，i.e. Tacotron2 和 HiFi-GAN，分別負責了音訊生成的兩個步驟。Tacotron2 好比作曲家，將文字變成音樂譜，這個樂譜的專有名稱是梅爾頻譜圖（Melspectrogram），記錄了應該怎麼唱這首歌，比如哪裡高聲哪裡低聲，哪裡快哪裡慢；而 HiFi-GAN 就像是歌手，能夠看懂這個樂譜，把譜上的音轉化成真正的歌聲。</p><p>從你輸入的文字到最後聽到的語音，就是這兩個模型合作的結果，如果對於模型設計的原理感興趣，請見下方論文連結囉！<br>▶ Tacotron 2 : <a href="https://arxiv.org/pdf/1712.05884.pdf">https://arxiv.org/pdf/1712.05884.pdf</a><br>▶ HiFi-GAN : <a href="https://arxiv.org/pdf/2010.05646.pdf">https://arxiv.org/pdf/2010.05646.pdf</a></p><h3>■ 實際執行</h3><p>終於到了我們的最後一步，準備好了嗎？我們要讓 streamlit 跑起來，讓這個專案說出它的第一句話囉！</p><p>Step 1：啟動虛擬環境，利用 streamlit 執行剛剛撰寫的程式碼。</p><pre>streamlit run streamlit_nemo.py</pre><p>Step 2：確認服務成功執行，然後輸入文字產出聲音！</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/773/1*AeavKBMa-YMp1AonHXZiaA.jpeg" /><figcaption>實際 Run Streamlit</figcaption></figure><p>相信執行到這邊的你已經順利看到也聽到合成出來的語音了，恭喜你，這一戰真的不容易，我們一起克服了 NeMo 的安裝問題，然後也在本地端建置了一個可用的 TTS 服務。</p><p>希望這篇文章有真正的幫助到你進入 NLP 或是語音合成的領域，能在這個生成式 AI 崛起的時代與你一起走到這邊也是我們的榮幸：）</p><p>若對於生成式 AI 多元的應用也感興趣，也歡迎追縱下圖的 <a href="https://github.com/AI-FREE-Team/Generative-AI-Industrial-Case-Study">Github Repo</a>：生成式 AI 於產業應用教案實作練習模組，裡頭有著我們團隊整理好的生成式 AI 應用，歡迎你多加探索囉！</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4vVWLWkh5wdQIuF1YvcJUQ.png" /><figcaption>Github 開源專案：生成式 AI 於產業應用教案實作練習模組</figcaption></figure><p>謝謝你看到這邊，我們下一篇文章見！</p><h3>■ 參考連結</h3><p>▶ Anaconda 載點：<a href="https://www.anaconda.com/download">https://www.anaconda.com/download</a><br>▶ Nemo Github：<a href="https://github.com/NVIDIA/NeMo/blob/main/README.rst">https://github.com/NVIDIA/NeMo/blob/main/README.rst</a><br>▶ Nemo TTS Primer — Colab Notebook：<a href="https://colab.research.google.com/github/NVIDIA/NeMo/blob/stable/tutorials/tts/NeMo_TTS_Primer.ipynb#scrollTo=ODp1OnA0SYdF">https://colab.research.google.com/github/NVIDIA/NeMo/blob/stable/tutorials/tts/NeMo_TTS_Primer.ipynb#scrollTo=ODp1OnA0SYdF</a><br>▶ Fasttext官方：<a href="https://pypi.org/project/fasttext/">https://pypi.org/project/fasttext/</a><br>▶ Windows 版本 wheel 載點：<a href="https://www.lfd.uci.edu/~gohlke/pythonlibs/">https://www.lfd.uci.edu/~gohlke/pythonlibs/</a><br>▶ Paper — Tacotron 2：<a href="https://arxiv.org/pdf/1712.05884.pdf">https://arxiv.org/pdf/1712.05884.pdf</a><br>▶ Paper — HiFi-GAN：<a href="https://arxiv.org/pdf/2010.05646.pdf">https://arxiv.org/pdf/2010.05646.pdf</a><br>▶ 開源生成式 AI 教案：<a href="https://github.com/AI-FREE-Team/Generative-AI-Industrial-Case-Study">https://github.com/AI-FREE-Team/Generative-AI-Industrial-Case-Study</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=624498e800f4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AI繪圖：解鎖創意潛力的藝術之旅]]></title>
            <link>https://ai-free-startup.medium.com/ai%E7%B9%AA%E5%9C%96-%E8%A7%A3%E9%8E%96%E5%89%B5%E6%84%8F%E6%BD%9B%E5%8A%9B%E7%9A%84%E8%97%9D%E8%A1%93%E4%B9%8B%E6%97%85-199f46a01d57?source=rss-d19031115432------2</link>
            <guid isPermaLink="false">https://medium.com/p/199f46a01d57</guid>
            <category><![CDATA[ai-art]]></category>
            <category><![CDATA[design]]></category>
            <category><![CDATA[ai繪圖]]></category>
            <category><![CDATA[interior-design]]></category>
            <dc:creator><![CDATA[AI.FREE]]></dc:creator>
            <pubDate>Sat, 01 Jul 2023 06:15:00 GMT</pubDate>
            <atom:updated>2023-07-01T06:15:17.165Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EmHitKwT6Cff53qKvjfJ8A.jpeg" /></figure><p>在數位時代的藝術領域中，AI繪圖的興起引發了一場創意革命，在 2022 Colorado 數位藝術大賽，與 2023 年 Sony 世界攝影大賽中，冠軍作品都是由 AI 所創作。因為 AI 的到來而使藝術創作門檻顯著降低、讓創作效率大幅提升，使許多無法踏入藝術創作領域的人們看見新的契機，透過人工智慧的力量，我們能夠突破傳統繪畫的限制，開創出無限可能性的藝術創作。</p><h3><strong><em>AI 繪圖新趨勢</em></strong></h3><p>近未來，掌握AI繪圖技術成為一個關鍵的競爭優勢。AI繪圖已經成為🎨設計、💡創意和📀數位藝術領域的重要趨勢，從雜誌封面設計、LOGO設計，到實際的繪畫應用，都可見其蹤影。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*gr0xF_aftI53x5rrXXzMoQ.jpeg" /><figcaption>雜誌封面設計</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*RuohaYnmwfHddvmNHZCCew.jpeg" /><figcaption>LOGO設計</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*lGktNEeHGkUKVQhbxyW9tA.jpeg" /><figcaption>繪畫應用：線稿轉為彩圖</figcaption></figure><h3>從熟悉Stable Diffusion開始</h3><p>其中，眾多AI工具層出不窮，若想要深入與工作知識💼結合，加入客製創作靈感🪄，會建議從熟悉SD開始入門，其中<a href="https://github.com/AUTOMATIC1111/stable-diffusion-webui"> Automatic1111/stable-diffusion-webui</a>為最知名的AI繪圖操作平台。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*bNex-nJcuCi0bM09.png" /></figure><h3>繪圖應用的無限可能</h3><p>想要直觀了解AI繪圖在各產業的應用? AI . Free Team致力於探索 A I繪圖在產業的可能性，幫你整理目前各主題的發展潛力。創作可能觸及室內設計、主題式人像創作等領域。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*yDZWhbuFWhgLTWz-ToMnAQ.png" /><figcaption>室內設計</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cggKN4YvvJp3nUPxEhsi0A.png" /><figcaption>主題式人像創作：視角切換、拍攝距離控制</figcaption></figure><h3>如何入門AI繪圖，談AI繪圖的日常應用感</h3><p>AI繪圖，可以把一段文字轉成想像中圖片的機制，相信有許多朋友對這樣神奇的機制感到好奇且興奮，如果可以簡單用文字將想像變成視覺素材傳遞，會改變整個資訊傳播的型態，但相信很多朋友嘗試過Midjourney、Stable Diffusion Playground 之後產生了這些想法：</p><p>「我說的和AI理解的不太一樣」、「好像只能隨機產圖而已」、「不知道怎麼基於這張圖片優化加入創作想法」。</p><p>這些都是因為從AI繪圖到日常應用還有好一段路要走，許多企業看準了新興市場全世界開始進入AI應用時代，想透過友善化的介面和情境用途的特化，幫助完全沒接觸過AI繪圖的新手也能直覺進行設計創作，消除這段學習門檻，但是這樣真的夠嗎？</p><p>在這樣的發展過程我們可以做些什麼行動加入AI繪圖的行列呢？</p><p><a href="https://ai-free-team.github.io/course/index"><strong>立即行動，🕺🏻學習AI繪圖（政府認證AI培訓課程，學費補助50%）</strong></a></p><p>為了幫助大家掌握AI繪圖的操作技巧，我們與數位發展部 AIGO 合作開設了專項課程：<strong>【AI繪圖實務應用】</strong>，課程將與您從零開始學習AI繪圖工具-Stable Diffusion WebUI 的操作技巧，並結合第三方工具（如：Photopea, Relight, Planner5D…etc），並讓 AI 依據我們的想像生成各種風格和主題的精美設計。</p><blockquote><strong>Stable Diffusion 基礎功能</strong></blockquote><p>從安裝到運用文生圖、圖生圖進行創作，掌握AI繪圖工具-Stable Diffsuion Web UI 操作的基礎。</p><blockquote><strong>Stable Diffusion 進階功能</strong></blockquote><p>運用設計思維進行創意發想，深入AI繪圖核心運用：融合AI模型、Prompt 撰寫框架、調整 Clip Skip</p><blockquote><strong>主題式人像創作</strong></blockquote><p>結合AI繪圖工具與日常工作流程：線稿與彩圖轉換、人像三/四視圖自動生成、調整光影變化，甚至是製作搖擺運鏡的效果。</p><blockquote><strong>從室內設計到都市建築規劃</strong></blockquote><p>利用擅長生成室內設計的AI模型自動生成相關視覺意象圖，並結合 Planner5D 與 ControlNet 達到精準控制。</p><blockquote><strong>商業視覺設計</strong></blockquote><p>AI 繪圖工具在雜誌封面、Banner、EDM 到 QRCode 等商業場景多元應用。</p><p>本課程將圍繞在 Stable Diffusion Web UI，透過深入理解其中的每個功能：txt2img, img2img, Lora, CFG Scale, ControlNet, Deforum, … etc，以及引入多元的第三方工具，包含：Photopea, Relight, Planner5D, … etc，創造各式兼具精美與實用性的視覺作品。</p><p><a href="https://ai-free-team.github.io/course/index"><strong>立即報名加入</strong></a><strong>我們的AI繪圖課程，踏上創意之旅，探索AI繪圖的無限可能！</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=199f46a01d57" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[智慧商務：引領企業進入數位轉型的關鍵]]></title>
            <link>https://ai-free-startup.medium.com/%E6%99%BA%E6%85%A7%E5%95%86%E5%8B%99-%E5%BC%95%E9%A0%98%E4%BC%81%E6%A5%AD%E9%80%B2%E5%85%A5%E6%95%B8%E4%BD%8D%E8%BD%89%E5%9E%8B%E7%9A%84%E9%97%9C%E9%8D%B5-b4a5ffcaf732?source=rss-d19031115432------2</link>
            <guid isPermaLink="false">https://medium.com/p/b4a5ffcaf732</guid>
            <category><![CDATA[人工智慧]]></category>
            <category><![CDATA[數位轉型]]></category>
            <dc:creator><![CDATA[AI.FREE]]></dc:creator>
            <pubDate>Sat, 01 Jul 2023 05:30:46 GMT</pubDate>
            <atom:updated>2023-07-01T06:17:22.286Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XKSTqXqo-wn_o03Rv0fF2w.jpeg" /></figure><p>在當今競爭激烈的商業環境中，企業面臨著日益增長的<strong>數位轉型</strong>壓力。隨著科技的快速發展，數位化已成為企業成功的重要關鍵。其中，智慧商務的概念不僅引人矚目，而且為企業帶來了前所未有的商機。</p><p>智慧商務，即是利用<strong>數據分析方法（如：資料科學方法論）</strong>，將傳統商業運營與數位科技相結合，以提升效率、創造價值並提供更好的客戶體驗。這是一個全新的商業模式，可以幫助企業實現更高的營收和市場佔有率。</p><p>近年來，人工智慧（AI）的快速發展為智慧商務帶來了無限的可能性。AI 技術能夠自動運算大量數據、處理重複性高的任務、分析市場趨勢、預測客戶需求，並為企業提供即時洞察力和策略指引。這使企業能夠更快速地做出明智的商業決策，並實現更高的競爭優勢。</p><p>智慧商務不僅局限於傳統的線下零售業務，還延伸到了電子商務、移動商務和社交媒體等領域。這些新興商業模式提供了更多的機會和挑戰，需要企業具備敏捷性和創新力來應對。智慧商務的關鍵在於理解並運用數據，通過AI技術和分析工具，能夠從數據中提取價值並做出更明確的商業決策。</p><p>然而，實現智慧商務並不僅僅是擁有先進的技術。這需要企業內部的文化轉變和組織架構的重新設計。智慧商務需要企業建立數據驅動的思維方式，並培養數據分析師和科技專家的人才。同時，與傳統商業模式相比，智慧商務還需要更加注重客戶體驗，並提供客製化的服務。</p><p>為了幫助企業順利實現智慧商務轉型，<strong>我們與數位發展部 AIGO 合作開設了專項課程：【智慧商務 AI 實務應用】，</strong>結合了最新的數位科技趨勢和商業實踐，提供實用的工具和策略，幫助企業順利達成數位轉型目標。無論您是企業主、高管還是對數位轉型有興趣的個人，我們的課程都將為您提供寶貴的知識和實踐經驗。</p><blockquote><a href="https://ai-free-team.github.io/course/index"><strong><em>立即行動</em></strong></a><em>瞭解更多關於</em><strong><em>數位轉型、智慧商務</em></strong><em>的觀點。<br></em><a href="https://ai-free-team.github.io/course/index"><strong>（政府認證AI培訓課程，學費補助50%）</strong></a></blockquote><p>加入我們的課程，您將學習到如何<strong>透過 AI 技術應用、數據分析進行企業營運優化，提升業務彈性、行政效率與強化決策判斷</strong>。</p><p>本課程將以企業數位轉型為基礎，並透過企業五管的情境為例，引導學員透過資料科學方法論，從資料分析與前處理、AI 模型介紹與技術應用開發到 AI 系統的建立，並實作四大 AI 技術主題：</p><ol><li><strong>電商銷售數據分析：<br></strong>透過電商銷售歷史數據，進行質化結合量化的競品分析方法。</li><li><strong>人員離職意象預測分析：<br></strong>透過人事數據，預測企業內部人員離職意象，並擬定策略。</li><li><strong>智能化聊天/客服機器人：<br></strong>透過行政相關常見問答，建立自動化的資訊回覆機器人。</li><li><strong>線上社群輿情評論分析系統：<br></strong>透過社群輿情、評論等數據，建立 AI 判讀分析系統。</li></ol><p>本課程核心的技術使用：Python、Pandas 與 Tensorflow 等，進行數據分析、開發機器學習系統與深度學習模型等實務，並透過介紹生成式 AI 的應用實務，加速內部行政作業效率；除了實務應用的專題外，課程設計更加入數位轉型策略探討，提供學員認識 AI 技術、開發智能化應用之餘，更能深入認識數位轉型成功的關鍵。</p><blockquote>👉詳細課程介紹請參考<a href="https://ai-free-team.github.io/course/index"><strong>此連結</strong></a></blockquote><p>無論您是想要提升企業競爭力，還是掌握數位時代商業趨勢，我們的智慧商務課程將為您提供全方位的支持和指導。您可以透過<a href="https://ai-free-team.github.io/course/index">此連結</a>報名加入我們的課程，讓智慧商務引領您的企業邁向成功的數位轉型之路。</p><p>👊現在就開始了解智慧商務，一同與我們開啟數位轉型的新時代！</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b4a5ffcaf732" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[智慧製造：重新定義未來生產力關鍵]]></title>
            <link>https://ai-free-startup.medium.com/%E6%99%BA%E6%85%A7%E8%A3%BD%E9%80%A0-%E9%87%8D%E6%96%B0%E5%AE%9A%E7%BE%A9%E6%9C%AA%E4%BE%86%E7%94%9F%E7%94%A2%E5%8A%9B%E9%97%9C%E9%8D%B5-7d533d24b6f5?source=rss-d19031115432------2</link>
            <guid isPermaLink="false">https://medium.com/p/7d533d24b6f5</guid>
            <category><![CDATA[人工智慧]]></category>
            <category><![CDATA[工業4]]></category>
            <dc:creator><![CDATA[AI.FREE]]></dc:creator>
            <pubDate>Sat, 01 Jul 2023 05:30:05 GMT</pubDate>
            <atom:updated>2023-07-01T05:30:05.996Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UfZyKD_5shvtoU_h5FKcJA.jpeg" /></figure><p>隨著數位科技的快速發展和工業領域的變革，智慧製造已經成為了現代製造業的關鍵趨勢。智慧製造結合了人工智慧（AI）、物聯網（IoT）和自動化，為企業帶來了更高效率、更靈活性和更具競爭力的生產力。</p><p>傳統製造業面臨著許多挑戰，例如：成本壓力、資源浪費、供應鏈管理和生產調度等。智慧製造的目標是通過數據驅動（Data-Driven）的模式與自動化系統來優化製造所衍伸的相關流程，最終達到生產過程的優化和創新。</p><p>在智慧製造中，物聯網扮演著資料蒐集的關鍵角色。通過連接製造設備和感測器，企業可以實現即時的數據監控與分析，從而提高生產過程的透明度和效率。例如，智慧感測器可以監測機器的運行狀態和資源消耗情況，再交由 AI 系統判斷，以數據為基礎，進行預測性維護，以減少停機時間和降低維修成本。</p><p>除了物聯網，人工智慧（AI）和大數據分析也是智慧製造的重要組成部分。AI技術可以用於優化生產計劃、預測需求、自動化生產流程和品質控制。大數據分析則能夠從龐大的數據中提取洞察，幫助企業做出更明智的決策並改進生產效率。</p><p>智慧製造不僅是生產過程的數位化，在上游的供應鏈管理上，企業也能透過數據共享（Data Sharing）來實現供應鏈的透明度和彈性，從而降低庫存成本。完善的智慧製造也可以促使節能減排與資源循環利用，為企業拓展永續版圖。</p><p>近年來人工智慧更為智慧製造開創了更多元的可能性，基於此，<strong>我們與數位發展部 AIGO 合辦了專項課程：【智慧製造 AI 實務應用】</strong>，旨在幫助企業與個人順利實踐智慧製造的核心技術。</p><blockquote>👉點選<a href="https://ai-free-team.github.io/course/index"><strong>此連結</strong></a>瞭解更多關於<strong>智慧製造、工業4.0</strong>的觀點。</blockquote><p>加入我們的課程，您將學習到如何<strong>透過 AI 技術應用進行製造流程轉型，提升效率、品質與價值的課程。</strong></p><p>本課程將以工業 4.0 的理念為基礎，引導學員透過資料科學方法論，從資料分析與前處理、AI 模型介紹與技術應用開發到 AI 系統的建立，並實作五大 AI 技術主題：</p><ol><li>應用<strong>統計/機器學習模型</strong>，針對數據資訊進行分析與決策判斷</li><li>應用<strong>電腦視覺技術</strong>，開發物件辨識、影像切割、瑕疵檢測等模型</li><li>識別物件、影像處理與分析、<strong>自動偵測瑕疵</strong>，提升品管效率和準確度。</li><li>應用<strong>時間序列技術</strong>，進行價格預測、設備健康檢測與機台異常監測</li><li>預測價格波動，<strong>設備壽命預測</strong>，與偵測異常事件，降低生產風險。</li></ol><p>本課程核心的技術使用：Python、Scikit-Learn 與 Tensorflow 等，進行開發統計、機器學習與深度學習模型等實務，並透過介紹生成式 AI 的應用實務，加速程式碼開發的效率；除了實務的專題外，課程設計更加入可解釋性人工智慧、自監督式學習等新技術領域介紹，提供學員發展智慧製造的應用契機。</p><blockquote>👉詳細課程介紹請參考<a href="https://ai-free-team.github.io/course/index"><strong>此連結</strong></a></blockquote><p>加入我們的智慧製造課程，您將與業界專家同行一同學習智慧製造與工業4.0的最新趨勢和實踐經驗。無論您是製造業的企業主、工程師還是對上述主題有興趣的個人，我們的課程都將為您提供能夠落地，並能實際達成智慧製造的應用服務。</p><p>👊現在就加入我們的智慧製造課程，開啟您企業的智慧製造之旅，重新定義未來的生產力！</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7d533d24b6f5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AI 週報 (Apr , W5)]]></title>
            <link>https://ai-free-startup.medium.com/ai-%E9%80%B1%E5%A0%B1-apr-w5-4deb74679a8c?source=rss-d19031115432------2</link>
            <guid isPermaLink="false">https://medium.com/p/4deb74679a8c</guid>
            <category><![CDATA[mit]]></category>
            <category><![CDATA[semantic-similarity]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[computer-vision]]></category>
            <category><![CDATA[sony]]></category>
            <dc:creator><![CDATA[AI.FREE]]></dc:creator>
            <pubDate>Fri, 30 Apr 2021 16:28:11 GMT</pubDate>
            <atom:updated>2021-04-30T16:28:56.919Z</atom:updated>
            <content:encoded><![CDATA[<p>關鍵字: Generative Adversarial Network, Computer Vision, Sony, MIT, Semantic Similarity Video Retrieval</p><p>作者: Joseph Chang</p><p>聯絡方式: ai.free.startup@gmail.com</p><p>更新時間: 2021/04/30</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*rjAeA_-5d_0f7IsN" /></figure><h4>1. MIT通過圖像分析來判斷材料的可承受壓力</h4><p><strong>為什麼研發: </strong>為了能夠更快的計算出各種材料的壓力承受程度，提升建築物的結構規劃，相較於以往使用複雜的工程學公式計算，MIT的研究人員希望可以透過引入AI來使得這一流程更有效率。</p><p><strong>如何運作: </strong>透過使用電腦視覺，在MIT人員開發的AI工具中可以即時的生成使用材料的壓力估計。他們更是運用生成對抗網路(GAN)來對數千張圖片進行訓練，其中一部分圖像顯示了材料在遭受到特定壓力時內部的微觀結構，另外一部分則是被針對他們的顏色編碼的壓力與應變數進行標記。接著通過賽局理論，GAN可以確定材料的外觀與他們能夠承受的壓力之間的關係。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Bunlrmi7eODvo5fs" /></figure><p><strong>引入AI 系統與單純工程學之差別: </strong>透過這個系統我們看到，電腦可以自動預測這些力值、圖形狀快以及相對應的變化，與過去比較而言最大的進步應該是AI可以模擬材料的裂縫及損傷，因為一項完整材料與一項有損傷的材料在面對壓力時所表現的結果一定不一樣，而傳統的工程學是難以透過外觀來及時計算出差別的。</p><p><strong>已知風險及困難: </strong>研究人員也提到，進行全部材料的模擬必須花費許多時間，其中需要投入的金額也是相當龐大，但是不管如何，他們會盡力完成這個系統的開發以及用AI來解決這個問題。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/687/0*-8_1mYRP9yCZw6XL" /></figure><h4><strong>2. SONY 提出可以幫忙玩家自動進行遊戲的AI專利</strong></h4><p><strong>為什麼研發: </strong>為了幫助遊戲玩家在某些無法中斷的遊戲途中可以繼續遊玩，SONY正在研發可以模擬各種玩家習慣與行為的AI 助手。在玩家離開座位的同時也能接手玩家進度繼續進行遊戲。</p><p><strong>如何運作: </strong>透過監視用戶在遊玩多種遊戲時的過程來調整AI的運作方式，在一開始的AI助手的默認存檔中，遊玩方式將會是比較特定且制式化的基本操作，藉由機器學習針對玩家的行為加以訓練，在進行多場遊戲後便能自動模仿玩家的操作型態。</p><p><strong>AI 助手的下一步: </strong>除了模仿玩家的遊玩風格之外，AI 助手在未來也可以擔任提供提示或是示範的角色，幫助玩家在困難的關卡裡可以更快的找到通關方式，成為一個更為具體的攻略指南。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*L2r-L04zBVoF8Qfq" /></figure><h4><strong>3. University of Bristol 探索更好的影片關鍵字搜尋系統</strong></h4><p><strong>為什麼研發: </strong>由於目前普遍影片網站的排序演算法偏向於使用單部影片本身排名來決定排位順序，而沒有考慮到影片與關鍵字的其他匹配程度。團隊負責人Michael Wrey 提出新的語意相似性影片檢索方式 (<a href="https://arxiv.org/abs/2103.10095v1">Semantic Similarity Video Retrieval</a>, SVR)，可以重新定義關鍵字與影片的相關程度以及新的排名定義方式。</p><p><strong>如何運作:</strong> 藉由將字幕及影片建立一個新的獨立表現模式，研究人員可以訓練系統辨視各種句子與影片的相關程度。作者使用 <a href="https://www.aclweb.org/anthology/W05-0909/">METEOR</a> 計算每個敘述與敘述間的相似程度，如果此相似程度超過基準值，他們將會使用該敘述與影片進行匹配。藉此來訓練系統的<a href="https://cdn.openai.com/better-language-models/language_models_are_unsupervised_multitask_learners.pdf">GPT</a>語言模型。 最後系統將會生成匹配過的影片以及沒有通過的影片相似程度。並可以將資料的相似度與匹配度做影片的排名順序。</p><p><strong>研發成果: </strong>最後Michael的研究圖隊使用 <a href="https://dl.acm.org/doi/abs/10.1145/582415.582418">nDCG</a> 來衡量他們系統對於每部影片與每個敘述間的排名，他們強調該系統並不是設定一道牆來隔開匹配與不匹配的影片與關鍵字，而是建立一種測試機制來讓整體的影片搜尋系統更加順暢。</p><p><strong>4. 參考資料來源:</strong></p><ul><li><a href="https://artificialintelligence-news.com/2021/04/22/mit-researchers-developer-ai-calculate-material-stress-using-images/">https://artificialintelligence-news.com/2021/04/22/mit-researchers-developer-ai-calculate-material-stress-using-images</a>/</li><li>DeepLearning.ai: Issue 88</li><li><a href="https://ccc.technews.tw/2021/04/23/sony-ai-can-help-you-play-games-through-deep-learning/">https://ccc.technews.tw/2021/04/23/sony-ai-can-help-you-play-games-through-deep-learning/</a></li><li><a href="https://artificialintelligence-news.com/2021/04/23/sony-patents-ai-assist-games-like-good-player-tw/">https://artificialintelligence-news.com/2021/04/23/sony-patents-ai-assist-games-like-good-player-tw/</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4deb74679a8c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[電腦視覺-超解析度-論文回顧]]></title>
            <link>https://ai-free-startup.medium.com/%E9%9B%BB%E8%85%A6%E8%A6%96%E8%A6%BA-%E8%B6%85%E8%A7%A3%E6%9E%90%E5%BA%A6-%E8%AB%96%E6%96%87%E5%9B%9E%E9%A1%A7-3ddcc88ff8c2?source=rss-d19031115432------2</link>
            <guid isPermaLink="false">https://medium.com/p/3ddcc88ff8c2</guid>
            <category><![CDATA[image-super-resolution]]></category>
            <category><![CDATA[computer-vision]]></category>
            <dc:creator><![CDATA[AI.FREE]]></dc:creator>
            <pubDate>Mon, 26 Apr 2021 01:08:53 GMT</pubDate>
            <atom:updated>2021-04-26T01:08:53.916Z</atom:updated>
            <content:encoded><![CDATA[<p>關鍵字: Computer Vision, Super Resolution, SRCNN</p><ul><li>作者: Eric (Github: <a href="https://github.com/Ratherman">https://github.com/Ratherman</a>)</li><li>聯絡方式: ai.free.startup@gmail.com</li><li>更新時間: 2021/04/26</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vufqn6gBoGN87ZvKkdmi4w.png" /><figcaption>Super Resolution 讓中間的照片，變成右邊的照片。</figcaption></figure><p><strong>超解析度(Super Resolution, SR)</strong> 在電腦視覺這個領域當中，也是相當熱門的主題之一，在上圖，我們看到中間的圖片解析度是比較低的，而在通過 Super Resolution 的 Model 之後，就可以生成如右邊解析度較高的照片了，很神奇吧!</p><h3>A. Promise</h3><ol><li>掌握 SRCNN Paper 的重點。</li></ol><h3>B. Introduction of paper (論文簡介)</h3><ul><li>標題: Image Super-Resolution Using Deep Convolutional Networks</li><li>作者: Chao Dong et al.</li><li>連結: <a href="https://arxiv.org/abs/1501.00092">https://arxiv.org/abs/1501.00092</a></li></ul><p>原則上為了方便與 Paper 相互對應，於 Medium 的架構會與論文相符。建議大家可以花點時間看看 C. Outline 的部分，以便對文章的架構有個快速的掌握。</p><h3>C. Outline</h3><p><strong>0 Abstract</strong><br><strong>1 Introduction</strong><br><strong>2 Related Work</strong><br> → 2.1 Image Super-Resolution<br> → 2.2 Convolutional Neural Networks<br> → 2.3 Deep Learning for Image Restoration<br><strong>3 Convolutional Neural Networks For Super-Resolution</strong><br> → 3.1 Formulation<br> → 3.2 Relationship to Sparse-Coding-Based Methods<br> → 3.3 Training<br><strong>4 Experiments</strong><br> → 4.1 Training Data<br> → 4.2 Learned Filters for Super-Resolution<br> → 4.3 Model and Performance Trade-offs<br> → 4.4 Comparisons to State-of-the-Arts<br> → 4.5 Experiments on Color Channels</p><p><strong>5 Conclusions</strong></p><p>— — — — — — — — — — — — — — — — — — — — — — — — — — — — — — —</p><p>我們會將<strong>重點</strong>以及我們的<strong>理解點</strong>放入部分的幾個小節，若有任何想法，再請於留言處告訴我們了。接下來，讓我們好好探索 SRCNN 這篇論文吧!</p><p>— — — — — — — — — — — — — — — — — — — — — — — — — — — — — — —</p><h3>0. Abstract (綱要)</h3><ul><li>此團隊針對 Super Resolution 提出了一套深度學習的方法。→ 也就是 SRCNN</li><li>這個方法是一個 CNN-based 的 Model，Input 是一張 low-resolution 的照片，而 Output 是一張 high-resolution 的照片。</li><li>可以把傳統的 sparse-coding-based SR 方法也視為 deep CNN 的方法。</li><li>此為相當輕量的模型，且保持高品質的輸出。</li></ul><h3>1. Introduction (介紹)</h3><h4>重申了 Super Resolution 在 CV 的 Mission，如下</h4><blockquote>Single image super-resolution (SR), which aims at recovering a high-resolution image from a single low-resolution image, is a classical problem in computer vision.</blockquote><h4>Sparse-coding-based method 有四步驟</h4><ol><li>Overlapping <strong>patches </strong>are densely cropped from the input image and pre-processed (e.g., subtracting mean and normalization)</li><li>These patches are then <strong>encoded </strong>by a low-resolution dictionary.</li><li>The sparse coefficients are passed into a high-resolution dictionary for reconstructing high-resolution patches.</li><li>The overlapping reconstructed patches are <strong>aggregated </strong>(e.g., by weighted averaging) to produce the final output.</li></ol><p><strong>理解點: <br></strong>作者等人提到，Sparse-coding-based method 是當時傳統方法常使用的策略，不過其實我們仔細分析這四個步驟，會發現這很像是 CNN 運算會做的事情。透過 CNN 運算，我們一次處理一個 window (對應到上面的 Patch)，然後把 window 和 kernal/filter 做卷積運算(對應到上面的 Encode)，接下來換 input image 的下一個 window，直到做完全部，其結果就會累積(<strong>aggregated</strong>) 在 Output 的 Feature Map 上。</p><p>受到啟發後，作者等人使用了 CNN 做為運算基礎。所以他們這樣說:</p><blockquote>We consider a convolutional neural network that directly learns an end-to-end mapping between low- and high-resolution images</blockquote><h4>命名 Model，SRCNN 從此誕生。</h4><blockquote>We name the proposed model Super-Resolution Convolutional Neural Network (SRCNN)</blockquote><h4><strong>以下為作者等人提到的 SRCNN 的優點</strong></h4><ul><li>Its structure is intentionally designed with simplicity in mind, and yet provides superior accuracy compared with state-of-the-art example-based methods.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/557/1*Wd1Ht9s5huCStDZ3AGAJvg.png" /><figcaption>這個圖表告訴我們 SRCNN 表現比 SC 和 Bicubic 還要好。PSNR 是一種衡量SR的指標。</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/491/1*r4dcgn0DgEDpY47sIH2-XQ.png" /><figcaption>從圖片上直接感受 SRCNN Outperform 另外兩種方法。</figcaption></figure><ul><li>With moderate number of filters and layers, our method achieves fast speed for practical on-line usage even on a CPU.</li><li>Experiments show that the restoration quality of the network can be further improved when (i) larger and more diverse datasets are available and/ or (ii) a larger and deeper model is used.</li></ul><p><strong>理解點:<br></strong>通常資料越多，且分布越豐富得到的模型表現力就會越高，這一點通常是正確的；但是針對第二點，我們從整個 Deep Learning 目前既有知名模型的角度思考這件事情的話，其實就不一定了，在這邊提到 Deeper &amp; Larger Model 會有更好的表現，這邊是只有針對這篇的 SRCNN，並不一定會適用於其他的知名的神經網路，如 ResNet。</p><h4>在 Introduction 的最後重申本篇論文的價值</h4><blockquote>1. We present a fully convolutional neural network for image super-resolution.</blockquote><blockquote>2. We establish a relationship between our deep learning-based SR method and the traditional sparse-coding-based SR methods.</blockquote><blockquote>3. We demonstrate that deep learning is useful in the classical computer vision problem of super resolution, and can achieve good quality and<br>speed.</blockquote><h3>2. Related Work (前人文獻)</h3><p>我們根據 Paper 的描述將提到的論文依照類別整理在本文最下方。</p><h3>3. Convolutional Neural Networks For Super-Resolution (CNN for SR)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hX4FCSiSD0hw_-ueXxf64A.png" /></figure><h4>3.1 Formulation</h4><p>在將 low-resolution 的照片餵進網路之前，作者等人有先利用 bicubic interpolation 將照片 resize 成目標大小(如上圖左邊的照片)，注意，這是本篇論文中唯一對照片做的 Pre-Processing。</p><p>接著在概念上將會針對做完放大(但為低解析度)的 Input Image，將會做三件事情。(1) Patch extraction and representation (2) Non-linear mapping (3) Reconstruction ，以下分小節說明。</p><h4>3.1.1 Patch extraction and representation</h4><ul><li>This operation extracts (overlapping) patches from the low-resolution image <strong>Y</strong> and represents each <strong>patch</strong> as a <strong>high-dimensional vector</strong>.</li><li>These vectors comprise a set of feature maps, of which the number equals to the dimensionality of the vectors.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/1*QBOPR5cXfzkW7YbHQceS-Q.png" /><figcaption>此公式即是把 Patch extraction 用數學寫下來。</figcaption></figure><ul><li><strong>W1</strong> and <strong>B1 </strong>represents the <strong>filters</strong> and <strong>biases </strong>respectively, and <strong>* </strong>denotes the <strong>convolutional operation</strong>.</li><li><strong>W1</strong> corresponds to <strong>n1</strong> filters of support <strong>c</strong> x <strong>f1</strong> x <strong>f1</strong>, where<strong> c</strong> is the number of channels in the image,<strong> f1 </strong>is the spatial size of a filter.</li><li>Intuitively, <strong>W1</strong> applies <strong>n1</strong> convolutions on the image, and each convolution has a kernel size <strong>c</strong> x <strong>f1</strong> x <strong>f1</strong>.</li><li><strong>B1</strong> is an <strong>n1</strong>-dimensional vector.</li><li>Apply <strong>ReLU</strong>.</li></ul><p><strong>理解點:</strong><br>觀察式(1)，能夠發現，最外層包著一個激活函數，ReLU，在 ReLU 內是一般常見的線性運算，Input 的一張 Image 的 Patch (<strong>Y</strong>)，和含有多個 filters 的 <strong>W1</strong> 做卷積運算後，再加上一個 Biases 項，即是 Patch Extraction and Representation 這一步驟再做的事情。</p><h4>3.1.2 Non-linear mapping</h4><ul><li>This operation nonlinearly maps each high-dimensional vector onto another high-dimensional vector.</li><li>Each mapped vector is conceptually the representation of a high-resolution patch.</li><li>These vectors comprise another set of feature maps.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/751/1*AL2jvIFCqsp1CmZwItW_Dw.png" /></figure><ul><li><strong>W2</strong> contains <strong>n2</strong> filters of size <strong>n1</strong> x <strong>f2</strong> x <strong>f2</strong>, and <strong>B2</strong> is <strong>n2</strong>-dimensional.</li></ul><p><strong>理解點:</strong><br>觀察式(2)，其形式與式(1)相當一致，在式(2)當中，作者等人再一次將訊號通過 ReLU 的非線性運作，以提取更加抽象的資訊。這樣的 High-Level 抽象資訊會變成下一步驟 Reconstruction 中的 Input。(而且每個 Input Patch 會對應到 n2 個抽象資訊。)</p><p>其實我們很容易可以發現，這樣的操作和各大知名CNN神經網路相當一致，將影像 Feed 進神經網路之後，其訊號會通過一層又一層的卷積層和池化層，其層數基本上都會大於3，所以才會用 Deep 來稱呼這些神經網路。</p><p>在 SRCNN 當中，一樣也是用了複數層卷積層，(都沒有使用池化層推測是因為我們的任務目標是 Super Resolution，而池化會使 Resolution 降低，所以不使用)，作者提到其實我們也可以再多加幾層卷積層以提高 non-linearity，只是訓練時間會再拉長一點，見以下內容。</p><blockquote>It is possible to add more convolutional layers to increase the non-linearity. But this can increase the complexity of the model, and thus demands more training time. We will explore deeper structures by introducing additional non-linear mapping layers in Section 4.3.3.</blockquote><h4>3.1.3 Reconstruction</h4><ul><li>This operations aggregates the above high-resolution patch-wise representations to generate the final high-resolution image.</li><li>This image is expected to be similar to the ground truth <strong>X</strong>.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/671/1*aK7vBGtvYRHei1g3Lj4VyQ.png" /></figure><ul><li><strong>W3</strong> corresponds to <strong>c</strong> filters of a size <strong>n2</strong> x <strong>f3</strong> x <strong>f3</strong>, and <strong>B3</strong> is a <strong>c</strong>-dimensional vector.</li></ul><p><strong>理解點:</strong><br>在以往，通常在得到 <strong>n2</strong> 個 High-Level 抽象資訊之後，會利用 average 的方式得到最後高解析度 Patch 的值(目標是離 Ground Truth <strong>X</strong> 越像越好)，我們其實可以把 average 當作是一個 already defined 的 filter，filter 裡面的值全部都是 1(因此貢獻都一樣，這就是 average)。既然是 filter，作者等人啟發於此，決定使用卷積運算(裡頭有 trainable filter)，讓裡面的 filter 去對每個 High-Level 的抽象資訊「加權運算」，所以化成數學就是式(3)。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/671/1*aK7vBGtvYRHei1g3Lj4VyQ.png" /></figure><p>在此，作者在此正式連結以上三個公式與 CNN 的關係，他們基本上就是一樣的概念。(見下方)</p><blockquote>Interestingly, although the above three operations are motivated by different intuitions, they all lead to the same form as a convolutional layer. We put all three operations together and form a convolutional neural network.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1013/1*HutBL4-IkmheOv9Q2JKNGA.png" /><figcaption>即便我們為<strong>每一層</strong>做不同的詮釋，他們 Generally 就是 <strong>CNN</strong>。</figcaption></figure><h4><strong>3.2 Relationship to Sparse-Coding-Based Methods</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sZlT1CLwLPh5v1323qILXg.png" /></figure><p><strong>前情提要:</strong><br>Sparse-Coding-Based Methods 是當時 Super-Resolution 傳統的方法(見文獻會顧[49][50])，而作者等人在此小節嘗試把此方法與 CNN 連結起來。</p><ul><li>In non-linear mapping operator, its spatial support is 1 x 1.</li><li>And, it’s an iterative algorithm, not feed-forward algorithm. <br>(也就是說，像是用兩個 loop 去對每個 pixel 做運算。)</li><li>On the contrary, our non-linear operator is fully feed-forward and can be computed efficiently.</li></ul><p><strong>理解點:</strong><br>雖然我們可以把 Sparse-Coding-Based Methods 視作是狹義的 CNN，但是還是與 SRCNN 有所區別，以下是作者提出的不同之處。</p><blockquote>Not all operations have been considered in the optimization in the sparse-coding-based SR methods. On the contrary, in our convolutional neural network, the low-resolution dictionary, high-resolution dictionary, non-linear mapping, together with mean subtraction and averaging, are all involved in the filters to e optimized.</blockquote><h4><strong>3.3 Training</strong></h4><ul><li>Network Parameters <strong>Θ ={W1, W2, W3, B1, B2, B3}</strong></li><li>The filter weights of each layer are initialized by drawing randomly form a Gaussian distribution with zero mean and standard deviation 0.001 (and 0 for biases.)</li><li>Use the loss between the reconstructed images <strong>F(Y;Θ)</strong> and the corresponding ground truth high-resolution images <strong>X</strong>.</li><li>Use Mean Square Error (MSE) as the loss function.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/846/1*zEXRKjz2S_xKEsRCZpVolA.png" /></figure><ul><li><strong>n</strong> is the <strong>number</strong> of the training examples.</li><li>The <strong>loss</strong> is minimized using <strong>stochastic gradient descent</strong> with standard backpropagation.</li><li>The <strong>learning rate</strong> is <strong>1e-4 </strong>for the first two layers, and <strong>1e-5</strong> for the last layer. <strong>They empirically find that a smaller learning rate in the last layer is important for the network to converge.</strong></li></ul><p><strong>理解點:</strong><br>作者提到使用 MSE 作為 Loss Function 是因為可以在 PSNR 拿到比較好的分數，PSNR 是一個常用的評估指標(見以下)，其它常用的指標有 SSIM, MSSIM。</p><p><strong>評估指標: PSNR<br></strong>The PSNR is a widely-used metric for quantitatively evaluating image restoration quality, and is at least partially related to the perceptual quality.</p><h3>4. Experiments (實驗)</h3><p>在此節，有分三個面向的實驗。</p><ul><li>We first investigate Impact of using <strong>different datasets </strong>on the model performance.</li><li>Next, they examine the <strong>filters </strong>learned by their approach.</li><li>Then, We explore<strong> different architecture</strong> designs of the networks. And, study the relationship between super-resolution performance and factors like depth, number of filters, and filter sizes.</li></ul><p>也與當時 state-of-the-arts 做比較。(使用評估指標如 PSNR, SSIM)</p><h4>4.1 Training Data</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/678/1*l04XMCdhEKS789UDG32RQA.png" /></figure><p>我們可以發現如果使用資料量較多的 ImageNet Train SRCNN 能夠得到比較高的 PSNR，這個是符合預期的。不過作者提到，其實用了 ImageNet 也沒有說讓 Performance 一下次就進步到另一個等級，其可能是因為，原本的 91 張 images 就足夠 SRCNN 學到怎麼樣才能讓 Super Resolution 做得好了，畢竟 SRCNN 算是個輕量的神經網路。(見下方)</p><blockquote>The results positively indicate that SRCNN performance may e further boosted using a larger training set, but the effect of big data is not as impressive as that shown in high-level vision problems. This is mainly because that the 91 images have already captured sufficient variability of natural images. On the other hand, our SRCNN is a relatively small network<br>(8,032 parameters), which could not overfit the 91 images.</blockquote><h4>4.2 Learned Filters for Super-Resolution</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/966/1*HzmVQt9iw8Od2105B1a5mQ.png" /><figcaption>These are filters trained on the ImageNet by an upscaling factor 3.</figcaption></figure><p><strong>理解點:</strong><br>作者提出發現有趣的事實，這些 filters 雖然都是透過 Back Propagation 一次又一次跌代更新得到的結果(不是 hand-crafted, human-defined 的)，但是自己學出來的結果有部分與人類定義出來的 filter 有異曲同工之妙。(見以下)</p><blockquote><strong>Interestingly, each learned filter has its specific functionality</strong>. For instance, the filters <strong>g and h are like Laplacian/Gaussian filters</strong>, the filters <strong>a — e are like edge detectors</strong> at different directions, and the filter f is like a <strong>texture extractor</strong>.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/724/1*zYuGiT973gHJONNwqpYglw.png" /><figcaption>Example feature maps of different layers</figcaption></figure><h4>4.3 Models and Performance Trade-offs</h4><h4>4.3.1 Filter number</h4><ul><li>In general, the performance would improve if we increase the network width, i.e. adding more filters , at the cost of running time.</li><li>We conduct two experiments: (i) one is with a larger network with n1 = 128 and n2 = 64. (ii) The other is with a smaller network with n1 = 32 and n2 = 16.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/814/1*aMDf29vUVdIBPBgo-hwpOw.png" /><figcaption>(i)左邊、中間是原本的setup、(ii)右邊</figcaption></figure><p><strong>理解點:</strong><br>我們知道 PSNR 越大越好，所以其實參數量越多，整體的表現確實越好，但是成本就是運算的時間也會變多(包含 訓練時間與 Feed-Forward 所需時間)，端看應用在哪邊，時間與表現常常是互相拉扯的兩個因子。</p><h4>4.3.2 Filter size</h4><ul><li>In this section, they examine the network sensitivity to different filter sizes.</li><li>We fix the filter size f1 = 9. f3 = 5, and enlarge the filter size of the second layer to be (i) f2 = 1 (9–1–5). (ii) f2 = 3 (9–3–5). (iii) f2 = 5 (9–5–5).</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/703/1*tW3ciRI_OS0Fz3QHFutp0Q.png" /></figure><ul><li>Convergence curves in the above figure show that using a larger filter size could significantly improve the performance.</li><li>The results suggest that utilizing neighborhood information in the mapping stage is beneficial.</li></ul><p><strong>理解點:</strong><br>從上圖得知，越大的 filter size 有越好的表現的趨勢，不過一樣也是需要考量到時間成本的議題，越大的 filter size 在 train 和 feed-forward 時都會花更多時間。</p><h4>4.3.3 Number of layers</h4><ul><li>We try to deeper structures by adding another non-linear mapping layer.</li><li>We conduct 3 controlled experiments, i.e., (i) 9–1–1–5, (ii) 9–3–1–5, (iii) 9–5–1–5.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/520/1*017a1uKJA9_BYk1DiZWD6g.png" /></figure><p><strong>思考點:<br></strong>結果四層的結構發現沒有比較好，差不多就是追平只有三層結構的 SRCNN。以下為作者的論述。</p><blockquote>We can observe that the four-layer networks converge slower than the three-layer network. Nevertheless, given enough training time, the deeper networks will finally catch up and converge to the three-layer ones.</blockquote><p>所以針對 4.3.3 Number of layers 的實驗可以下的結論就是</p><blockquote><strong>It’s NOT</strong> the deeper the better in this deep model for super-resolution.</blockquote><h4>4.4 Comparisons to State-of-the-Arts</h4><p><strong>使用的 SRCNN 參數設定:</strong></p><blockquote>A three-layer network with f1 = 9, f2 = 5, f3 = 5, n1 = 64, and n2 = 32 trained on the ImageNet.</blockquote><p>與 SRCNN 進行比較的 Models/ Methods: (參考[Num]可以在最下面的文獻回顧找到，有興趣了解更多的朋友可以看看。)</p><ul><li>SC: sparse coding-based method of Yang et al. [50]</li><li>NE+LLE: neighbour embedding + locally linear embedding method [4]</li><li>ANR: Anchored Neighbourhood Regression method [41]</li><li>A+L: Adjusted Anchored Neighbourhood Regression method [42]</li><li>KK: the method described in [25]</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/729/1*XnzkU9kM1U-cF2fMI7ktzg.png" /></figure><p>這裡可以看到 SRCNN Outperform 其它的方法。下面我們一起欣賞，這些方法各自產生的結果吧。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/811/1*AaUzwbFkncaX35_YV9ZfEQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/819/1*zJyL7sCaNbea3Bm-YKxeRw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/814/1*0iTLDFRsmZHdrd77tNcnOw.png" /></figure><h4>4.5 Experiments on Color Channels</h4><p>這部分主要談到使用不同的 Color Channels 會得到不同的結果。詳情請各位參考<a href="https://arxiv.org/abs/1501.00092">論文 4.5 節</a>。</p><h3>5. Conclusions (結論)</h3><p>前面的幾節重點回顧，以及重申 SRCNN 的價值:</p><ul><li>We have presented a novel deep learning approach for single image super-resolution (SR)</li><li>We show that conventional sparse-coding-based SR methods can be reformulated into a deep convolutional neural network. → Section 3.2</li><li>With a lightweight structure, the SRCNN has achieved superior performance than the state-of-the-art methods. → Section 4.4</li><li>We conjecture that additional performance can e further gained y exploring more filters and different training strategies.</li><li>The proposed structure, with its advantages of simplicity and robustness, could e applied to other low-level vision problems, such as image de￾<br>blurring or simultaneous SR+denoising.</li><li>One could also investigate a network to cope with different upscaling factors.</li></ul><p>以上! 就是 SRCNN 這個模型/這篇論文的重點介紹了。</p><p>希望本篇內容對大家有幫助，如果大家有任何想法，歡迎在留言區留下意見，我們會第一時間回覆大家，先和大家說謝謝指教了! 我們是 <a href="http://ai.free/">AI.FREE</a>，我們下篇文章見!</p><h3>Online Resources: 本篇文章使用到的網路資源</h3><ol><li>[<a href="https://arxiv.org/abs/1501.00092">Link</a>] Image Super-Resolution Using Deep Convolutional Networks</li><li>[<a href="https://github.com/kunal-visoulia/Image-Restoration-using-SRCNN">Link</a>] Github Repo: kunal-visoulia/Image-Restoration-using-SRCNN</li><li>[<a href="https://github.com/Slothfulwave612/Image-Super-Resolution">Link</a>] SRCNN Cover</li></ol><h3>2. Related Work (前人文獻)</h3><h4>2.1 Image Super-Resolution</h4><p><strong>Example-based methods<br>[46]</strong> Yang, C.Y., Ma, C., Yang, M.H.: Single-image super-resolution: A<br>benchmark<br><strong>[16]</strong> Glasner, D., Bagon, S., Irani, M.: Super-resolution from a single image.<br><strong>[25] Kim, K.I., Kwon, Y.: Single-image super-resolution using sparse regression and natural image prior</strong></p><p><strong>External example-based methods<br>[2]</strong> Bevilacqua, M., Roumy, A., Guillemot, C., Morel, M.L.A.: Low complexity single-image super-resolution ased on nonnegative neighbor embedding<br><strong>[4] Chang, H., Yeung, D.Y., Xiong, Y.: Super-resolution through neighbor embedding.</strong><br><strong>[6]</strong> Dai, D., Timofte, R., Van Gool, L.: ointly optimized regressors for<br>image super-resolution<br><strong>[15]</strong> Freeman, W.T., Pasztor, E.C., Carmichael, O.T.: Learning low level vision.<br><strong>[37]</strong> Schulter, S., Leistner, C., Bischof, H.: Fast and accurate image upscaling with super-resolution forests.<br><strong>[41] Timofte, R., De Smet, V., Van Gool, L.: Anchored neighborhood<br>regression for fast example-based super-resolution.<br>[42] Timofte, R., De Smet, V., Van Gool, L.: A+: Adjusted anchored<br>neighborhood regression for fast super-resolution<br>[48]</strong> Yang, J., Wang, Z., Lin, Z., Cohen, S., Huang, T.: Coupled dictionary training for image super-resolution.<br><strong>[49]</strong> Yang, J., Wright, J., Huang, T., Ma, Y.: Image super-resolution as<br>sparse representation of raw image patches.<br><strong>[50] Yang, J., Wright, J., Huang, T.S., Ma, Y.: Image super-resolution<br>via sparse representation.</strong><br><strong>[51]</strong> Zeyde, R., Elad, M., Protter, M.: On single image scale-up us￾<br>ing sparse-representations.</p><h4>2.2 Convolutional Neural Networks</h4><p><strong>[27]</strong> LeCun, Y., Boser, B., Denker, .S., Henderson, D., Howard, R.E.,<br>Hubbard, W., ackel, L.D.: Backpropagation applied to handwritten zip code recognition</p><p><strong>Image Classification<br>[18]</strong> He, K., Zhang, X., Ren, S., Sun, .: Spatial pyramid pooling in deep convolutional networks for visual recognition.<br><strong>[26]</strong> Krizhevsky, A., Sutskever, I., Hinton, G.: ImageNet classifcation<br>with deep convolutional neural networks.</p><p><strong>Object Detection<br>[34] </strong>Ouyang, W., Luo, P., Zeng, X., Qiu, S., Tian, Y., Li, H., Yang, S., Wang, Z., Xiong, Y., Qian, C., et al.: Deepid-net: multi-stage and deformable deep convolutional neural networks for object detection.<br><strong>[40] </strong>Szegedy, C., Reed, S., Erhan, D., Anguelov, D.: Scalable, high quality object detection.<br><strong>[52]</strong> Zhang, N., Donahue, ., Girshick, R., Darrell, T.: Part-based R-CNNs for fine-grained category detection</p><p><strong>Face Recognition<br>[39]</strong> Sun, Y., Chen, Y., Wang, X., Tang, X.: Deep learning face representation joint identification-verification.</p><p><strong>Pedestrian Detection<br>[35] </strong>Ouyang, W., Wang, X.: Joint deep learning for pedestrian detection</p><h4>2.3 Deep Learning for Image Restoration</h4><p><strong>Multi-layer Perceptron(MLP)<br>[3]</strong> Burger, H.C., Schuler, C.J., Harmeling, S.: Image denoising: Can plain neural networks compete with BM3D?<br><strong>[36]</strong> Schuler, C.J., Burger, H.C., Harmeling, S., Scholkopf, B.: A ma￾<br>chine learning approach for non-blind image deconvolution.</p><p><strong>Convolutional Neural Network (CNN)<br>[22]</strong> Jain, V., Seung, S.: Natural image denoising with convolutional networks.<br><strong>[12]</strong> Eigen, D., Krishnan, D., Fergus, R.: Restoring an image taken<br>through a window covered with dirt or rain.<br><strong>[5]</strong> Cui, Z., Chang, H., Shan, S., Zhong, B., Chen, X.: Deep network<br>cascade for image super-resolution.<br><strong>[16]</strong> Glasner, D., Bagon, S., Irani, M.: Super-resolution from a single<br>image.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3ddcc88ff8c2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AI 週報 (Apr , W4)]]></title>
            <link>https://ai-free-startup.medium.com/ai-%E9%80%B1%E5%A0%B1-apr-w4-33fd62bd6bcd?source=rss-d19031115432------2</link>
            <guid isPermaLink="false">https://medium.com/p/33fd62bd6bcd</guid>
            <category><![CDATA[object-detection]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[robotics]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[AI.FREE]]></dc:creator>
            <pubDate>Sat, 24 Apr 2021 15:30:49 GMT</pubDate>
            <atom:updated>2021-04-24T15:31:55.747Z</atom:updated>
            <content:encoded><![CDATA[<h3>AI 週報 (Apr , W4)</h3><p>關鍵字: Guide Dog, ImageNet, AI Trend, AI Application, Machine Learning</p><p>作者: Joseph Chang</p><p>聯絡方式: ai.free.startup@gmail.com</p><p>更新時間: 2021/04/24</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/639/0*0rmLiorW8_8qSY1o" /></figure><h3>1.美國加州 Berkeley大學研發導盲用機器人 — 小獵豹</h3><p><strong>為什麼研發: </strong>提供一款能夠安全引導盲人前往目的地的四足機器人，無論空間大小都能經過AI辨識系統調整路線，帶給有需求的人們多一種選擇。同時減少訓練專業導盲犬所需之經費及時間。</p><p><strong>如何運作: </strong>經由配備於小獵豹前方之雷射測距儀來掃描周遭地形，並且經過計算取得最短路線，如果途中遭遇障礙物即可重新計算修正。同時還帶有攝影機隨時可以主人的行動，</p><p><strong>開發重點: </strong>增加腿部工作空間，全身輕量化設計，著重於關節連接處之穩定性與運動能力，AI地理環境資料庫更新與計算系統的優化。</p><p><strong>小獵豹的下一步: </strong>控制成本，提供一款可以大量生產的導盲機器人是該團隊目前主要前進的方向，未來還將導入小獵豹專屬的行事曆與更進一步的導航測試。</p><p><strong>潛在問題: </strong>大多數導盲犬的主人對於導盲犬的需求不僅僅是帶領他們出門，更是一種精神上的寄託，對於他們而言，便利性及準確度不一定是他們的首要考量，在情感上所帶來的影響和心靈的連結更是許多視障人士所在乎的要素。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/998/0*jjJy-bNWg5XhuLaJ" /></figure><p><strong>2. ImageNet 啟用自動模糊人臉系統，保障隱私權新主張</strong></p><p><strong>為什麼研發: </strong>ImagenNet團隊一直以來致力於開發物體識別的演算功能，由於此項技術已經危害到一部分的民眾的隱私權，在美國的一些州及城市已經開始禁止當地政府使用這項技術，為了更完善的提供服務，如今ImageNet已經對其資料庫中的30萬張照片進行模糊處理。</p><p><strong>如何運作: </strong>藉由Amazon 的人工智慧服務Rekognition來模糊人臉，藉由在每一張照片中的人臉周圍繪製一個框架，由操作人員檢查並且修正框架形狀大小，同時進行框框內的高斯模糊(這個技術雖然不用AI，但是這個技術應該也可以放個圖片或GIF解釋)。除了照片中包含單純的人臉以外，由於許多圖片同時附有口罩或是其他物品，導致AI辨別分類的錯誤率提升，用於訓練模型的準確度還需要經過更進一步的修正。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/270/0*kQwrliCcTADUc_ar" /><figcaption>高斯模糊示意圖</figcaption></figure><p><strong>ImageNet的下一步: </strong>據VentureBeat 表示，經過人臉模糊過後的版本才會是ImageNet的全新型態，除了目前此功能僅用來模糊人臉之外，在未來的自動模糊功能也將擴展到Google Street View中的面部與車牌，同時也能用來訓練自動駕駛車輛的數據以及動作識別系統的模型。</p><p><strong>延伸案例: </strong>雖然此版本是針對人臉來進行的修正，但是對於一些沒有人臉的照片來說反而波動更大。一篇針對ImageNet的研究中提到在「哈士奇」與「愛斯基摩犬」的分類比較裡，哈士奇的識別準確率比以往上升了近17%，而愛斯基摩犬的辨別率卻下降了約13個百分比。由於此兩種分類裡皆沒有人臉，目前連作者本人都覺得相當奇妙，詳細原因還要等待後續研究。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*NhjyNv3hjIwjT149" /></figure><p><strong>3. Virginia Tech 工程教授按照蝙蝠原理研發聲音定位裝置</strong></p><p><strong>研發背景: </strong>受到蝙蝠接收聲音的原理啟發，機械工程學教授(Rolf Mueller)決定創造比人類耳朵還要更簡單與準確的聲音定位模型。該發明目前透過單一接收器來達到單一頻率精準的定位，有別於目前人類有兩隻耳朵同時判斷方位，團隊在研究一篇1967年的發現後表明，當接收器的數量減少到一個時，如果遇到不同的頻率，單一接收器即可快速找到聲音的位置並且與發生物體進行配對，未來的研究也將朝著單一接收器及單一頻率的方向前進。</p><p><strong>如何運作: </strong>由於團隊目標使用單接收器及單頻率的收音模式，Mueller的團隊嘗試複製蝙蝠移動耳朵的能力，他們創造了一種柔軟的耳朵模型，放在簡單的馬達及繩子上。透過特別的耳廓設計，讓接收器利用耳朵的形狀來使音頻進行迴繞，最後引導到耳道中。Mueller將耳朵放在麥克風的上方，用震動的方式來提供信號。但是由於蝙蝠耳朵複雜的構造使得團隊無法模擬，所以他們引入了一個深層的神經網路，透過機器學習模仿大腦中運作的多層次處理過程，提供每個接收到的音源的相對位置。</p><p><strong>實際運用與未來展望: </strong>目前Mueller表示將會更加提升該裝置的精確程度與實用性，未來希望可以應用於農業及林業中，帶來環境監測以及針對生物的多樣性監測功能。也可能應用於國防安全的相關領域中。</p><p>4. 參考資料來源:</p><ul><li><a href="https://techxplore.com/news/2021-04-laser-equipped-robotic-dog-people.html">https://techxplore.com/news/2021-04-laser-equipped-robotic-dog-people.html</a></li><li>DeepLearning.ai: Issue 86</li><li><a href="https://vtnews.vt.edu/articles/2021/04/me-research-batear.html">https://vtnews.vt.edu/articles/2021/04/me-research-batear.html</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=33fd62bd6bcd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[電腦視覺-物件偵測-影像標註]]></title>
            <link>https://ai-free-startup.medium.com/%E9%9B%BB%E8%85%A6%E8%A6%96%E8%A6%BA-%E7%89%A9%E4%BB%B6%E5%81%B5%E6%B8%AC-%E5%BD%B1%E5%83%8F%E6%A8%99%E8%A8%BB-4bbff60d544a?source=rss-d19031115432------2</link>
            <guid isPermaLink="false">https://medium.com/p/4bbff60d544a</guid>
            <category><![CDATA[custom-dataset]]></category>
            <category><![CDATA[bounding-box]]></category>
            <category><![CDATA[object-detection]]></category>
            <category><![CDATA[yolo]]></category>
            <category><![CDATA[labelimg]]></category>
            <dc:creator><![CDATA[AI.FREE]]></dc:creator>
            <pubDate>Sun, 18 Apr 2021 23:25:49 GMT</pubDate>
            <atom:updated>2021-04-19T13:04:02.527Z</atom:updated>
            <content:encoded><![CDATA[<p>關鍵字: Object Detection, Custom Dataset, YOLO, LabelImg, Bounding Box</p><ul><li>作者: Eric (Github: <a href="https://github.com/Ratherman">https://github.com/Ratherman</a>)</li><li>聯絡方式: ai.free.startup@gmail.com</li><li>更新時間: 2021/04/19</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/799/0*AnBoKyFB-b7trXrV" /></figure><h3>0. Promise: 在看完這篇文章後，將會了解:</h3><ol><li>取得標註工具 : LabelImg</li><li>操作 LabelImg</li><li>解讀 LabelImg 產生的 — Bounding Box — 資料</li><li>其實在標註自己的 Dataset 前，你也可以考慮 …</li></ol><h3>1. Preface: 前言</h3><p>目前的 YOLO 已經來到第5代了(i.e., YOLOv5)，表示它的應用需求相當廣泛。從它的命名就可以知道這是一個相當注重 Efficiency 的模型，YOLO 意思是 You Only Look Once (你只需要看一次)，其中 Once 這個想法就是模型設計時的核心概念，所以有其對應的設計巧思。最後結果確實也在不失準確度的情況下，達到高效率的表現，這點我們會於未來和大家一起細細品味 YOLO 的論文!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/0*kqi0fthivn_iEXqE" /></figure><p>而在訓練一個模型前，我們會需要準備好相對應的資料，有些任務所需要的資料集能夠在網路上找到(可以參考此篇文章最後的一節)，而也會有任務是需要我們自己準備照片/影片，自己框選出相對應的 Bounding Box，才能進到模型訓練的階段。上述的第二種 Case，即是本篇文章所會討論到的。</p><h3>2. Setup Tool — LabelImg: 準備標註工具</h3><p>根據電腦系統的不同(Linux, MacOS, Windows)，以及個人的喜好，一共有至少五種的方式能夠取得此工具並開始使用。在此介紹兩種方式:</p><ul><li>下載對應 Windows 的壓縮檔</li><li>Windows + Anaconda + Follow Cmd</li></ul><h4>下載對應 Windows 的壓縮檔</h4><p>Step 1: 前往 LabelImg Download List [<a href="https://tzutalin.github.io/labelImg/">Link</a>]</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/885/0*EZM2z1fsSNIw65vd" /></figure><p>Step 2: 找到 Windows 最新版本，點擊下載壓縮檔</p><ul><li>以這邊的例子而言是 Windows_v1.8.0</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/558/0*Zlx5BNKSDfrL_Ktp" /></figure><ul><li>下載後，可以看到一個壓縮檔。</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/280/0*4FuN_mkUGzBdM6xV" /></figure><p>Step 3: 解壓縮檔案</p><ul><li>解壓縮 Step 2 中的壓縮檔即可看到以下資料夾。</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/277/0*l4ku0rWswyWfRwH1" /></figure><p>Step 4: 進入資料夾中，開啟 labelImg，即可以看到操作介面了。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/283/0*vm018znJuiNPcT81" /></figure><h4>Windows + Anaconda + Follow Cmd</h4><p>Step 1: 前往 LabelImg 的 Github Repo 準備複製對應 Cmd [<a href="https://github.com/tzutalin/labelImg">Link</a>]</p><ul><li>點選此 Step 對應連結，可以看到 LabelImg 的 Github Repo，大家可以順手按個星星支持一下這個方便好用的工具喔!</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*sv0CDnghFq0TA-kp" /><figcaption>可以發現作者方面一直有在維護此 Project，很多 Commit 都是近一個月內的。</figcaption></figure><ul><li>往下滑動，找到於 Windows + Anaconda 安裝的部份。</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*1h6ugE4-D0Z4b73j" /></figure><p>Step 2: 準備好 Anaconda</p><ul><li>想要執行上面的 Cmd，會需要先準備 Anaconda 工具包，如果電腦環境還沒有 Anaconda 請至 Anaconda 官方網站下載。[<a href="https://www.anaconda.com/products/individual">Link</a>]</li></ul><p>Step 3: Clone 此專案</p><ul><li>開啟任何 Cmd Tool，像是已經下載好的 Anaconda Prompt。</li><li>Clone 此專案須執行以下指令</li></ul><pre>git clone <a href="https://github.com/tzutalin/labelImg.git">https://github.com/tzutalin/labelImg.git</a></pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/834/0*cKywwyDkKNv1LXZU" /><figcaption>實際執行情況</figcaption></figure><ul><li>即可以在目標路徑(ex: Desktop)得到以下資料夾 — labelImg/</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/281/0*AIa1-xOagzDvAXYK" /></figure><p>Step 4: 執行 Github Repo 上提到的 Cmd</p><ul><li>開始安裝必要套件前，先 cd 進去 labelImg 資料夾內。</li></ul><pre>cd labelImg</pre><ul><li>我們等等會需要在此 Step 中操作到 Step 2 圖片中看見的 Cmd，為方便大家複製貼上，在下方我們準備一模一樣的 Cmd。</li></ul><pre>conda install pyqt=5 <br>conda install -c anaconda lxml <br>pyrcc5 -o libs/resources.py resources.qrc <br>python labelImg.py</pre><ul><li>執行第一步</li></ul><pre>conda install pyqt=5</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*aln6U7DKXBk5RJ0D" /></figure><ul><li>執行第二步</li></ul><pre>conda install -c anaconda lxml</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*M3GrSxlvD-gncG2D" /></figure><ul><li>執行第三步</li></ul><pre>pyrcc5 -o libs/resources.py resources.qrc</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/806/0*EcvCoVjqIqXNyXzZ" /></figure><ul><li>執行第四步，即可以看到 labelImg 操作介面</li></ul><pre>python labelImg.py</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*dN7S-1slh9rfpQxt" /></figure><h3>3. Tool Usage: 使用標註工具</h3><p>Step 1 : 將需要標註的資料準備好。</p><ul><li>貓和狗的圖片各3張，我選擇放在同一個資料夾內(ex: animals/)。</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*d56ejYcjw7xOjGWM" /></figure><p>Step 2: 調整預測類別。</p><ul><li>不管在第二步驟是使用哪種方法 Setup 好 LabelImg，都可以在其中找到 Data 這個資料夾。</li><li>進入 Data 資料夾後，有一個原有的預設 predefined_classes.txt，我們使用此規範 Object 的種類有哪些。</li><li>所以開啟 predefined_classes.txt，我們可以進行編輯。</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/0*IEhYPA-RWJSTftYH" /><figcaption>編輯前</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/217/0*RoJZLxmUFe2-MwOt" /><figcaption>編輯後</figcaption></figure><p>Step 3: 操作 LabelImg</p><ul><li>開啟 labelImg</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*iiPtBg-EGdTxWkMZ" /></figure><ul><li>選擇 Open Dir，開啟於第一步準備好的資料夾(ex: animals/)。</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*pBplUDf5racLFbnd" /></figure><ul><li>假設目的為使用 YOLO 作為訓練模型，那就需要切換標註模式至「YOLO」。</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/246/0*rX9AOT3kmYFjAnCe" /><figcaption>點擊 PascalVOC 之前的畫面</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/229/0*_GogbKqSmJkiHE9k" /><figcaption>點選之後看到的畫面</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/872/0*bafnHwhb3Gsq_EIc" /></figure><ul><li>框選完畢後，labelImg 會立即跳出 Label 選項，在此可以發現，上面的選項會對應到編輯過後的 predefined_classes.txt 內容。接著選擇目標 Label (ex: cat)，點選 OK。</li><li>接著就可以點選左側的 Save，將我們標註的結果(Bounding Box 的 information)儲存起來。</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Z821ZKMzQ_ISn2Kn" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*v2Xv0uRlmVgmlFe0" /><figcaption>在此示範中，我將存放影像的資料夾(ex: animals/)做為存放 annotation 的路徑。</figcaption></figure><ul><li>開啟存放影像的資料夾(ex: animals/)，可以發現有與檔名對應的 txt 檔案自動生成。</li><li>完成了第一張影像的標記，我們回到 LabelImg 的操作介面，點選左側的 Next Image，即可以切換到下一張繼續標記。</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Ga5CAV1quZHUtakY" /></figure><ul><li>最終，所有檔案都標記完成後，就可以有類似於以下的結果了。</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/491/0*V2-eQIU4RVnpuXBf" /></figure><ul><li>除了提供 classes.txt 紀錄我們使用了哪些 Class (ex: dog, cat)之外，可以發現每張照片都有對應的 txt 檔案描述 Bounding Box 的資訊，我們於下一個 Section 討論如何解讀 Bounding Box 的資料格式。</li></ul><h3>4. Output Recognization: 解讀 B. Box 資料格式</h3><h4>在這裡我們同時觀察下圖三件事情:</h4><ol><li>LabelImg 開啟 Dog3.jpg 的畫面</li><li>Dog3.txt 的內容</li><li>classes.txt 的內容</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*HJWvxhsklMbr-Gkb" /></figure><h4>Dog3.txt 當中的 Bounding Box Information 如下</h4><ul><li>1，0.480612，0.601361，0.773469，0.651701</li><li>每個 Bounding Box 都會有 5 個資訊，分別對應到上面這五個數值。</li></ul><h4>第一個資訊: 「1」</h4><ul><li>類別(Label)，其資訊可以於 classes.txt 查看。</li><li>是 cat 或是 dog，如果是 cat 那就是 0，如果是 dog 那就是 1，若還有其他那就是 3, 4, …</li><li>理解: 「1」 表示這個 B. Box 所框選的是 Dog。</li></ul><h4>第二個資訊: 「0.480612」</h4><ul><li>X-center: 表示 Bounding Box 中心坐標 X 在整張照片的位置。</li><li>數值介於 0 ~ 1，因為 X-Center Pixel Value 有除以整張影像的「寬度」。</li><li>理解: 「0.480612」表示這個 B. Box 的 X-Center 落在整張照片的中間偏左邊一點點。</li></ul><h4>第三個資訊:「0.601361」</h4><ul><li>Y-center: 表示 Bounding Box 中心坐標 Y 在整張照片的位置。</li><li>數值介於 0 ~ 1，因為 Y-Center Pixel Value有再除以整張影像的「高度」。</li><li>理解:「0.601361」表示這個 B. Box 的 Y-Center 落在中間偏上的位置。</li></ul><h4>第四個資訊:「0.773469」</h4><ul><li>B. Box Width: 表示 Bounding Box 有多寬。</li><li>數值介於 0 ~ 1，因為 B. Box Width 有除以整張影像的「寬度」。</li><li>理解: 「0.773469」表示這個 B. Box 的寬度涵蓋影像 7~8 成的區域。</li></ul><h4>第五個資訊: 「0.651701」</h4><ul><li>B. Box Height: 表示 Bounding Box 有多長。</li><li>數值介於 0 ~ 1，因為 B. Box Width 有除以整張影像的「高度」。</li><li>理解: 「0.651701」表示這個 B. Box 的長度涵蓋影像 6~7 成的區域。</li></ul><p>用這5個資訊就能夠描述一個 Bounding Box 了，最後用一張簡單的示意圖歸納上方所述。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/287/0*TzbO5N0NOxenxsR-" /></figure><h4>注意:</h4><ul><li>x, y, w, h 因為都有除以影像高度及寬度，所以都是落在 0~1 之間。</li><li>綠色框框表示對應的 Label。</li></ul><h3>5. Existing Datasets: 既存的數據集</h3><p>其實在標註自己的 Dataset 前，也可以考慮再多花一些時間找找看網路上有沒有一些現成的資料庫可以使用，蒐集資料並標註資料都是相當花費時間和心力的工作，以下的一些 Datasets 都是可以免費 Access 的，推薦大家在標記資料前花些時間看看喔，說不定就會挖到寶!</p><h4>COCO: Common Objects in Context [<a href="https://cocodataset.org/#explore">Link</a>]</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*pCdfDFi0qVV3haTL" /></figure><ul><li>上圖為 COCO Dataset 在 Object Detection 所擁有的 80 種類別。</li><li>可以利用網頁的 Search 找看看有興趣的類別，圖中以 p 為例做搜尋。</li><li>其實 YOLO 目前使用的 Darknet 即是使用 COCO Dataset 作為訓練資料集，所以若是你發現COCO裡面有你有興趣的Object，那麼恭喜你! 你可以直接 Clone 當前的 YOLO 然後很快的在你的目標任務中取得一定表現了。</li></ul><h4>Open Images [<a href="https://storage.googleapis.com/openimages/web/visualizer/index.html?set=train&amp;type=detection&amp;c=%2Fm%2F0cnyhnx">Link</a>]</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*gllJ24Sx0K2wpjZ1" /></figure><p>於首頁展示其數據的龐大以及多元:</p><ul><li>龐大: 數據量是 million 等級的。</li><li>多元: 涵蓋 Object Detection, Image Segmentation, Visual Relationship 深度學習影像處理任務</li><li>點選首頁左下方的 Explore，即可進入下方圖片介面。</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*wpMKcGmAuaKv6WUr" /></figure><ul><li>於左上角調整 Type 選項至 Detection</li><li>於正上方 Category 輸入有興趣的類別: 如 Person</li><li>即可以看到網頁上既存的標記結果了。</li></ul><p>在此先介紹兩個好用的數據集，希望大家都能找到對自己有幫助的數據集，未來我們也會再陸續介紹其他能在線上 Access 到的既存數據集。</p><h3>6. Warp-up: 回頭看看 Promise，做個結尾。</h3><ol><li>取得標註工具 : LabelImg</li><li>操作 LabelImg</li><li>解讀 LabelImg 產生的 — Bounding Box — 資料</li><li>其實在標註自己的 Dataset 前，你也可以考慮線上的<strong>既存資料夾</strong>。</li></ol><p>希望本篇內容對大家有幫助，如果大家有任何想法，歡迎在留言區留下意見，我們會第一時間回覆大家，先和大家說謝謝指教了! 我們是 <a href="http://ai.free/">AI.FREE</a>，我們下篇文章見!</p><h3>Online Resources: 本篇文章使用到的網路資源</h3><ul><li>[<a href="https://memegenerator.net/instance/20315636/mr-bean-yolo-you-only-look-once-">Link</a>] YOLO Meme</li><li>[<a href="https://tzutalin.github.io/labelImg/">Link</a>] LabelImg Download List</li><li>[<a href="https://github.com/tzutalin/labelImg">Link</a>] tzutalin/labelImg Github Repo</li><li>[<a href="https://www.anaconda.com/products/individual">Link</a>] Anaconda | Individual Ediion</li><li>[<a href="https://cocodataset.org/#explore">Link</a>] COCO Explorer</li><li>Animal Image:<br>[<a href="https://www.rspcasa.org.au/adopt/cats/">Link</a>] Cat1，[<a href="https://www.petmd.com/cat/care/what-age-are-cats-fully-grown">Link</a>] Cat2，[<a href="https://scitechdaily.com/cats-can-spread-covid-19-coronavirus-infection-to-other-cats/">Link</a>] Cat3，<br>[<a href="https://www.goodhousekeeping.com/life/pets/g4531/cutest-dog-breeds/?slide=2">Link</a>] Dog1，[<a href="https://www.goodhousekeeping.com/life/pets/g4531/cutest-dog-breeds/?slide=5">Link</a>] Dog2，[<a href="https://www.goodhousekeeping.com/life/pets/g4531/cutest-dog-breeds/?slide=10">Link</a>] Dog3</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4bbff60d544a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>