Skip to Content
深度學習|內行人的做法
book

深度學習|內行人的做法

by Josh Patterson, Adam Gibson
January 2019
Beginner to intermediate
576 pages
14h 31m
Chinese
GoTop Information, Inc.
Content preview from 深度學習|內行人的做法
364
|
第八章:向量化
圖片格式
每一種格式都採用不同的方式儲存圖片資料,並對原始資料執行不同等級
的壓縮。圖片與文字有所不同,相較之下圖片的向量化做法會比較直接
一點。
處理影片資料
影片資料向量化是圖片向量化與時間序列向量化的綜合體。在影片資料
中,我們會有一系列帶有時間戳(timestamp)的圖片。影片的向量化過
程必須隨時間追蹤圖片向量化的結果,而且以我們所考慮的單一向量而言
(例如採用單一畫格,或是跨越多個畫格的圖片子集),情況有可能還會
變得更加複雜。
圖片資料在 DL4J 中的表達方式
在深度學習的領域中,我們最感興趣的就是 CNN 的圖片向量化做法。在 DL4J 中,我們
會用
INDArray
物件把每個圖片轉換成三維張量表達方式(更多關於這個主題的介紹,請
參見附錄 E 內容),如 8-1 所示。
轉換函數 激活函數
激活值
淨輸入
輸入立方體
(特別強調過濾器關注的部分)
過濾器
人工神經元模型細節
神經元
8-1 CNN 的三維輸入立方體
圖片資料的向量化
|
365
我們在建立圖片的小批量資料以做為訓練之用時,正如本書範例中所見,我們實際上是
在建立具有以下維度的四維張量:
1. 小批量數量
2. 深度
3. 高度
4. 寬度
其中寬度與高度直接對映到輸入圖片的寬度與高度,深度則是圖片資料中顏色通道的數 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

高效能網站建置指南

高效能網站建置指南

Steve Souders
初探深度學習|使用TensorFlow

初探深度學習|使用TensorFlow

Reza Zadeh, Bharath Ramsundar
深度学习实战

深度学习实战

Douwe Osinga

Publisher Resources

ISBN: 9789865020262