Skip to Main Content
Python Deep Learning Projects
book

Python Deep Learning Projects

by Matthew Lamons, Rahul Kumar, Abhishek Nagaraja
October 2018
Intermediate to advanced content levelIntermediate to advanced
472 pages
10h 57m
English
Packt Publishing
Content preview from Python Deep Learning Projects

Defining the generator

The generator that we are using here is a simple convolution autoencoder that is a combination of two parts—an encoder and a decoder. 

In the encoder, we have the following:

  • The first layer is a convolution 2D layer with 32 filters of a size of 3*3, followed by batch normalization, with activation as relu, followed by downsampling done with AveragePooling2D of size 2*2
  • The second layer is a convolution 2D layer with 64 filters of a size of 3*3, followed by batch normalization, with activation as relu, followed by downsampling with AveragePooling2D of a size of 2*2
  • The third layer or the final layer in this encoder part is again a convolution 2D layer with 128 filters of a size of 3*3, batch normalization, with activation ...
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.
Start your free trial

You might also like

Hands-On Python Deep Learning for the Web

Hands-On Python Deep Learning for the Web

Anubhav Singh, Sayak Paul

Publisher Resources

ISBN: 9781788997096Supplemental Content