Book description
Simplify next-generation deep learning by implementing powerful generative models using Python, TensorFlow and Keras
Key Features
- Understand the common architecture of different types of GANs
- Train, optimize, and deploy GAN applications using TensorFlow and Keras
- Build generative models with real-world data sets, including 2D and 3D data
Book Description
Developing Generative Adversarial Networks (GANs) is a complex task, and it is often hard to find code that is easy to understand.
This book leads you through eight different examples of modern GAN implementations, including CycleGAN, simGAN, DCGAN, and 2D image to 3D model generation. Each chapter contains useful recipes to build on a common architecture in Python, TensorFlow and Keras to explore increasingly difficult GAN architectures in an easy-to-read format. The book starts by covering the different types of GAN architecture to help you understand how the model works. This book also contains intuitive recipes to help you work with use cases involving DCGAN, Pix2Pix, and so on. To understand these complex applications, you will take different real-world data sets and put them to use.
By the end of this book, you will be equipped to deal with the challenges and issues that you may face while working with GAN models, thanks to easy-to-follow code solutions that you can implement right away.
What you will learn
- Structure a GAN architecture in pseudocode
- Understand the common architecture for each of the GAN models you will build
- Implement different GAN architectures in TensorFlow and Keras
- Use different datasets to enable neural network functionality in GAN models
- Combine different GAN models and learn how to fine-tune them
- Produce a model that can take 2D images and produce 3D models
- Develop a GAN to do style transfer with Pix2Pix
Who this book is for
This book is for data scientists, machine learning developers, and deep learning practitioners looking for a quick reference to tackle challenges and tasks in the GAN domain. Familiarity with machine learning concepts and working knowledge of Python programming language will help you get the most out of the book.
Table of contents
- Title Page
- Copyright and Credits
- About Packt
- Dedication
- Contributors
- Preface
- Dedication2
-
What Is a Generative Adversarial Network?
- Introduction
- Generative and discriminative models
- A neural network love story
- Deep neural networks
- Architecture structure basics
- Basic building block – generator
- Basic building block – discriminator
- Basic building block – loss functions
- Training
- GAN pieces come together in different ways
- What does a GAN output?
- Understanding the benefits of a GAN structure
- Exercise
- Data First, Easy Environment, and Data Prep
-
My First GAN in Under 100 Lines
- Introduction
- From theory to code – a simple example
- Building a neural network in Keras and TensorFlow
- Explaining your first GAN component – discriminator
- Explaining your second GAN component – generator
- Putting all the GAN pieces together
- Training your first GAN
- Training the model and understanding the GAN output
- Exercise
-
Dreaming of New Outdoor Structures Using DCGAN
- Introduction
- What is DCGAN? A simple pseudocode example
- Tools – do I need any unique tools?
- Parsing the data – is our data unique?
- Code implementation – generator
- Code implementation – discriminator
- Training
- Evaluation – how do we know it worked?
- Adjusting parameters for better performance
- Exercise
- Pix2Pix Image-to-Image Translation
- Style Transfering Your Image Using CycleGAN
-
Using Simulated Images To Create Photo-Realistic Eyeballs with SimGAN
- Introduction
- How SimGAN architecture works
- Pseudocode – how does it work?
- How to work with training data
- Code implementation – loss functions
- Code implementation – generator
- Code implementation – discriminator
- Code implementation – GAN
- Training the simGAN network
- Exercise
-
From Image to 3D Models Using GANs
- Introduction
- Introduction to using GANs in order to produce 3D models
- Environment preparation
- Encoding 2D data and matching to 3D objects
- Code implementation – generator
- Code implementation – discriminator
- Code implementation – GAN
- Training this model
- Exercise
- Other Books You May Enjoy
Product information
- Title: Generative Adversarial Networks Cookbook
- Author(s):
- Release date: December 2018
- Publisher(s): Packt Publishing
- ISBN: 9781789139907
You might also like
book
Hands-On Generative Adversarial Networks with Keras
Develop generative models for a variety of real-world use cases and deploy them to production Key …
book
Generative Adversarial Networks Projects
Explore various Generative Adversarial Network architectures using the Python ecosystem Key Features Use different datasets to …
book
Hands-On Generative Adversarial Networks with PyTorch 1.x
Apply deep learning techniques and neural network methodologies to build, train, and optimize generative network models …
book
Practical Convolutional Neural Networks
One stop guide to implementing award-winning, and cutting-edge CNN architectures About This Book Fast-paced guide with …