Account
Computer Science & Technology

Generative Deep Learning

Teaching Machines to Paint, Write, Compose, and Play

Generative deep learning in practice: build VAEs, GANs, Transformers, and diffusion models from scratch with TensorFlow and Keras.

  • 456pages
  • 14chapters
  • Secondedition

This book is for you if you are

  • a machine learning engineer who can train models but has not built a generative one from scratch
  • a data scientist moving from prediction tasks into image, text, or audio generation
  • a developer who wants to understand diffusion and Transformer sampling at the code level

Why this book

Generative deep learning is the branch of machine learning that teaches a network to produce new images, text, music, and game states rather than just label what it sees. David Foster, published by O'Reilly Media, walks you through that craft model by model using TensorFlow and Keras. It matters because the architectures covered here — variational autoencoders, GANs, Transformers, and denoising diffusion models — are the working foundation of today's generative systems.

Most competitor listings for this title give you a price and a one-paragraph blurb lifted from the back cover. This edition goes further: it builds every model from scratch, so you see the loss function, the sampling step, and the architectural trade-off instead of importing a black box. The second edition adds diffusion models, Transformers, and multimodal work to the generative modeling, deep learning, and normalizing flow chapters, which is where much of the current practice now lives. Chapters are organized as a progression rather than a catalog.

  • Builds each architecture by hand in TensorFlow and Keras, not with prebuilt wrappers
  • Covers VAEs, GANs, autoregressive models, normalizing flows, energy-based models, and diffusion
  • Extends beyond images into music generation, world models, and multimodal models
  • Treats sampling, latent space, and training stability as first-class design problems

Machine learning engineers, data scientists, and research-minded developers who already train models and want to generate with them get the most from it. Get your copy today.

What you'll learn

  • Build variational autoencoders and inspect the latent space they learn
  • Train generative adversarial networks and diagnose their common failure modes
  • Implement autoregressive models and Transformer blocks for sequence generation
  • Apply normalizing flows and energy-based models to density estimation
  • Implement denoising diffusion models from the forward and reverse processes up
  • Generate music and model game environments with world models
  • Combine text, image, and audio pathways in multimodal architectures

Not the right book for: Readers who want a beginner-level introduction to deep learning

Questions about this book

What prior knowledge do I need for Generative Deep Learning?

You should be comfortable with Python and have trained a neural network before. The book assumes deep learning familiarity and spends its pages on generative architectures rather than introductory theory.

Does it cover diffusion models and Transformers?

Yes. The second edition adds dedicated chapters on Transformers, diffusion models, and multimodal models alongside the original VAE, GAN, and autoregressive material.

Is the book TensorFlow and Keras only?

The worked examples are written in TensorFlow and Keras, so you get complete code rather than framework-neutral pseudocode. Readers working in other frameworks can still follow the architecture and math.

How does it approach music generation?

Music generation has its own chapter, where sequence modeling ideas from autoregressive models are applied to audio and note sequences rather than pixels.

Who is this book not suited for?

Readers looking for a first course in deep learning or a survey of prompt engineering will find it too implementation-heavy.

Can I get it in another format?

Yes. You get the PDF right away. Need EPUB, Kindle, Word or any other format? Email support@ebooksonline.si with your order number and we send it.

Does it work on Kindle?

Yes. Email support@ebooksonline.si with your order number and we send you a Kindle-ready file.

How many times can I download it?

As many times as you like. Sign in to your account and download it again at any time.

What if the file does not work?

Contact us with your order number and we will fix it or refund you.

Contents

  1. 1Generative Modelingp. 3
  2. 2Deep Learningp. 23
  3. 3Variational Autoencodersp. 59
  4. 4Generative Adversarial Networksp. 95
  5. 5Autoregressive Modelsp. 129
  6. 6Normalizing Flow Modelsp. 167
  7. 7Energy-Based Modelsp. 189
  8. 8Diffusion Modelsp. 205
  9. 9Transformersp. 235
  10. 10Advanced GANsp. 267
  11. 11Music Generationp. 297
  12. 12World Modelsp. 331
  13. 13Multimodal Modelsp. 359
  14. 14Conclusionp. 391

Details

Author
David Foster
Publisher
O'Reilly Media, Inc.
Edition
Second edition, 2023
ISBN
9781098134181
Pages
456
Language
English
Formats
PDF (EPUB, Kindle or any other format on request)
File size
60.7 MB
Licence
Personal use, keep forever

David Foster

David Foster is the author of this O'Reilly guide to building generative models with TensorFlow and Keras.

Buy with confidence

If your file does not open or download, we fix it or refund you. Read the refund policy.

More in Computer Science & Technology

See all
Cover of 10-Minute Focus by Daniel Walter

Get a free ebook

Join the list and get 10-Minute Focus free, plus a short note when new books arrive.

Your cart

No products in the cart.

Subjects

More

Look inside

Sample