/Hands-On-Generative-AI-with-Python-and-TensorFlow-2

Hands-On Generative AI with Python and TensorFlow 2, published by Packt

Primary LanguageJupyter NotebookMIT LicenseMIT

Generative AI with Python and TensorFlow 2

Generative AI with Python and TensorFlow 2, Published by Packt

About the book

In recent years, generative artificial intelligence has been instrumental in the creation of lifelike data (images, speech, video, music, and text) from scratch. In this book you will unpack how these powerful models are created from relatively simple building blocks, and how you might adapt these models to your own use cases.

You will begin by setting up clean containerized environments for Python and getting to grips with the fundamentals of deep neural networks, learning about core concepts like the perceptron, activation functions, backpropagation, and how they all tie together. Once you have covered the basics, you will explore deep generative models in depth, including OpenAI’s GPT-series of news generators, networks for style transfer and deepfakes, and synergy with reinforcement learning.

As you progress, you will focus on abstractions where useful, and understand the “nuts and bolts” of how the models are composed in code, underpinned by detailed architecture diagrams. The book concludes with a variety of practical projects to generate music, images, text, and speech using the methods you have learned in prior sections, piecing together TensorFlow layers, utility functions, and training loops to uncover links between the different modes of generation.

By the end of this book, you will have acquired the knowledge to create and implement your own generative AI models.

What you will learn

  1. Implement paired and unpaired style transfer with networks like StyleGAN
  2. Use facial landmarks, autoencoders, and pix2pix GAN to create deepfakes
  3. Build several text generation pipelines based on LSTMs, BERT, and GPT-2, learning how attention and transformers changed the NLP landscape
  4. Compose music using LSTM models, simple generative adversarial networks, and the intricate MuseGAN
  5. Train a deep learning agent to move through a simulated physical environment
  6. Discover emerging applications of generative AI, such as folding proteins and creating videos from images