tensorflow tutorial part1

19
TensorFlow tutorial Part1 Sungjoon Choi ([email protected])

Upload: sungjoon-choi

Post on 22-Jan-2018

924 views

Category:

Engineering


1 download

TRANSCRIPT

Page 1: TensorFlow Tutorial Part1

TensorFlow tutorialPart1

Sungjoon Choi([email protected])

Page 2: TensorFlow Tutorial Part1

Overview

2

Part1: TensorFlow Tutorials

Handling images

Logistic regression

Multi-layer perceptron

Part2: Advances in convolutional neural networks

CNN basics

Four CNN architectures (AlexNet, VGG, GoogLeNet, ResNet)

Application1: Semantic segmentation

Application2: Object detection

Convolutional neural network

Page 3: TensorFlow Tutorial Part1

Before going on

3

Terminologies are Important!

Page 4: TensorFlow Tutorial Part1

Goal of (most of) Deep Learning

4

Most of the deep learning or machine learning algorithms can be viewed as a mapping from a vector space to another.

In other words, it is just numbers to numbers.

Page 5: TensorFlow Tutorial Part1

Input data

5

Page 6: TensorFlow Tutorial Part1

Output / Class / Label

6

Cat[1 0 0 0]

Dog[0 1 0 0]

Cow[0 0 1 0]

Horse[0 0 0 1]

One-hot coding

Page 7: TensorFlow Tutorial Part1

Training / Learning

7

Page 8: TensorFlow Tutorial Part1

Epoch / Batch size / Iteration

8

One epoch: one forward and backward pass of all training data

Batch size: the number of training examples in one forward and backward pass

One iteration: number of passes

If we have 55,000 training data, and the batch size is 1,000. Then, we need 55 iterations to complete 1 epoch.

Page 9: TensorFlow Tutorial Part1

Part1: TensorFlow tutorial

Handling images

Logistic regression

Multi-layer perceptron

Convolutional neural network

Page 10: TensorFlow Tutorial Part1

Part1: TensorFlow tutorial

Handling images

Logistic regression

Multi-layer perceptron

Convolutional neural network

Page 11: TensorFlow Tutorial Part1
Page 12: TensorFlow Tutorial Part1

Load packages

12

Page 13: TensorFlow Tutorial Part1

Specify folders containing images

13

Page 14: TensorFlow Tutorial Part1

Load images

14

Page 15: TensorFlow Tutorial Part1

Check loaded images

15

Page 16: TensorFlow Tutorial Part1

Divide into train and test sets

16

Page 17: TensorFlow Tutorial Part1

Save!

17

Page 18: TensorFlow Tutorial Part1

Plot to check

18

Page 19: TensorFlow Tutorial Part1

Plot to check

19