Deep Learning: GANs and Variational Autoencoders (Udemy.com)
Generative Adversarial Networks and Variational Autoencoders in Python, Theano, and Tensorflow
Created by: Lazy Programmer Team
Last updated February 2026
What you will learn
- Learn the basic principles of generative models
- Build a variational autoencoder in Theano and Tensorflow
- Build a GAN (Generative Adversarial Network) in Theano and Tensorflow
- Understand important foundations for OpenAI ChatGPT, GPT-4, DALL-E, Midjourney, and Stable Diffusion
How it compares
Against the other 126 rated Udemy courses in Deep Learning on CourseDuck:
- Rating4.7 out of 5higher than 82% of them
- Reviews3,387#28 of 127 by number of reviews
- Length7.9 hoursshorter than 58% of them
- Last updatedFebruary 2026more recently than 71% of them
Course Description
Ever wondered how AI technologies like OpenAI DALL-E, Midjourney, and Stable Diffusion really work? In this course, you will learn the foundations of these groundbreaking applications.
Variational autoencoders and GANs have been 2 of the most interesting developments in deep learning and machine learning recently.
Yann LeCun, a deep learning pioneer, has said that the most important development in recent years has been adversarial training, referring to GANs.
GAN stands for generative adversarial network, where 2 neural networks compete with each other.
What is unsupervised learning?
Unsupervised learning means we’re not trying to map input data to targets, we’re just trying to learn the structure of that input data.
Once we’ve learned that structure, we can do some pretty cool things.
One example is generating poetry - we’ve done examples of this in the past.
But poetry is a very specific thing, how about writing in general?
If we can learn the structure of language, we can generate any kind of text. In fact, big companies are putting in lots of money to research how the news can be written by machines.
But what if we go back to poetry and take away the words?
Well then we get art, in general.
By learning the structure of art, we can create more art.
How about art as sound?
If we learn the structure of music, we can create new music.
Imagine the top 40 hits you hear on the radio are songs written by robots rather than humans.
The possibilities are endless!
You might be wondering, "how is this course different from the first unsupervised deep learning course?"
In this first course, we still tried to learn the structure of data, but the reasons were different.
We wanted to learn the structure of data in order to improve supervised training, which we demonstrated was possible.
In this new course, we want to learn the structure of data in order to produce more stuff that resembles the original data.
This by itself is really cool, but we'll also be incorporating ideas from Bayesian Machine Learning, Reinforcement Learning, and Game Theory. That makes it even cooler!
Thanks for reading and I’ll see you in class. =)
"If you can't implement it, you don't understand it"
Or as the great physicist Richard Feynman said: "What I cannot create, I do not understand".
My courses are the ONLY courses where you will learn how to implement machine learning algorithms from scratch
Other courses will teach you how to plug in your data into a library, but do you really need help with 3 lines of code?
After doing the same thing with 10 datasets, you realize you didn't learn 10 things. You learned 1 thing, and just repeated the same 3 lines of code 10 times...
Suggested Prerequisites:
Calculus
Probability
Object-oriented programming
Python coding: if/else, loops, lists, dicts, sets
Numpy coding: matrix and vector operations
Linear regression
Gradient descent
Know how to build a feedforward and convolutional neural network in Theano or TensorFlow
WHAT ORDER SHOULD I TAKE YOUR COURSES IN?:
Check out the lecture "Machine Learning and AI Prerequisite Roadmap" (available in the FAQ of any of my courses, including the free Numpy course)
UNIQUE FEATURES
Every line of code explained in detail - email me any time if you disagree
No wasted time "typing" on the keyboard like other courses - let's be honest, nobody can really write code worth learning about in just 20 minutes from scratch
Not afraid of university-level math - get important details about algorithms that other courses leave out
Instructor Details
- 4.7 Rating
3,387 Reviews
Lazy Programmer Team
The Lazy Programmer is a seasoned online educator with an unwavering passion for sharing knowledge. With over 10 years of experience, he has revolutionized the field of data science and machine learning by captivating audiences worldwide through his comprehensive courses and tutorials.
Equipped with a multidisciplinary background, the Lazy Programmer holds a remarkable duo of master's degrees. His first foray into academia led him to pursue computer engineering, with a specialized focus on machine learning and pattern recognition. Undeterred by boundaries, he then ventured into the realm of statistics, exploring its applications in financial engineering.
Recognized as a trailblazer in his field, the Lazy Programmer quickly embraced the power of deep learning when it was still in its infancy. As one of the pioneers, he fearlessly embarked on instructing one of the first-ever online courses on deep learning, catapulting him to the forefront of the industry.
More courses by Lazy Programmer Team
Artificial Intelligence: Reinforcement Learning in Python (2026)
4.9 (10,817 Reviews)
Provider: Udemy
Time: 14.7h
$79.99
Advanced AI: Deep Reinforcement Learning in Python (2026)
4.8 (6,557 Reviews)
Provider: Udemy
Time: 10.7h
$29.99
Cluster Analysis and Unsupervised Machine Learning in Python (2026)
4.7 (5,236 Reviews)
Provider: Udemy
Time: 8h
$29.99
Unsupervised Machine Learning Hidden Markov Models in Python (2026)
4.4 (4,436 Reviews)
Provider: Udemy
Time: 9.8h
$29.99
Deep Learning Prerequisites: The Numpy Stack in Python V2 (2026)
4.4 (3,835 Reviews)
Provider: Udemy
Time: 2h
Free
Data Science: Supervised Machine Learning in Python (2026)
4.7 (3,555 Reviews)
Provider: Udemy
Time: 6.4h
$29.99
More Deep Learning courses
A deep understanding of deep learning (with Python intro) (2026)
4.8 (6,559 Reviews)
Provider: Udemy
Time: 57.3h
$109.99
Deep Learning Prerequisites: Logistic Regression in Python (2026)
4.8 (4,922 Reviews)
Provider: Udemy
Time: 6.9h
$109.99
Data Science: Transformers for Natural Language Processing (2026)
4.8 (3,034 Reviews)
Provider: Udemy
Time: 19.1h
$79.99
Complete Tensorflow 2 and Keras Deep Learning Bootcamp (2022)
4.7 (8,938 Reviews)
Provider: Udemy
Time: 19.2h
$16.99
Deep Learning: Advanced Computer Vision (GANs, SSD, +More!) (2026)
4.7 (7,132 Reviews)
Provider: Udemy
Time: 17.2h
$124.99
Reviews
By Anderson dos Santos Paschoalon on 6/5/2024
Excelent course, the explanations are very clear and made in intuitive way. Lazy Programmer courses are the best in this subject in this platform. The only issue is that part of the code is written using tensorflow 1.0, and googgle colab right now only support 2.0. One improvement would be to provide implementations using tf2.X too.
By Daniel Chou on 8/12/2022
Very nice course! The instructor always reply my problems, even they cannot directly provide the plain solution, they still provides some suggestions and concepts of de-bugging! I will finish the rest parts (GANs) later! But I want to leave the message here now!! The sampling techniques were introduced in terms of friendly/systematic way. I can easily obtain the required core concepts to dive in the area of VAE. And I feel very good to implement (partially for some sections like GMM) every mentioned algorithm by myself. While student who are considering to take this course should know that: The style of Lazy Programmer is always that the theory parts are mentioned ONLY in the simplest (easy to be digested) way, the rest parts are practicing sections. Therefore, in this course, practicing is extremely critical to gain knowledge. And most of issues pop up during implementations for every student is different, it's critical to find the problems and try to solve them by going through practicing sections. This course is definitely not for who want to learn things without using their brain!
By Anders Albert on 3/6/2021
This is my 12th course by this instructor and as always I learned what I set out to learn. In particular, I enjoyed the variational autoencoder section. I will admit that I skipped through the implementation lectures, as I utilized PyTorch instead. I can recommend the DCGAN tutorial in the PyTorch docs as it closely matches the use case used in Section 4 while taking advantage of PyTorch which I find easier to implement than Theano or Tensorflow 1.x.
By Vitalii Pohribnyi on 6/16/2020
Liked this course. It does not contain too much information, so it doesn't get boring. It explains of all the tricky parts so that I'm good to go with own solutions. Code examples could've been split into parts, though, for simplicity. Especially in the GAN and VAE sections. But the course is still great!
By Joe Hsu on 6/7/2020
Lazy programmer has the ability to teach and give us a thorough understanding of the theory behind machine learning, not just plug in this code and voila. Really appreciate the coding from scratch, it really helps me to understand everything happening from the inputs to the outputs. No stone left unturned. I recommend this course for you if you want to know all the details of GAN and VAE.
By Anonymized User on 4/6/2018
I like the Python examples. They help to program in an elegant manner. The presentation in the PP-style is a bit boring. I wished more illustrative explanations about the underlying theory. Implementations of VAs and GANs can be found anywhere, but tutorials written by people who have a deep insight into Variational Inference are very seldom.
By Martin Caceres on 4/4/2018
Thorough explanation of deep generative models. Assignments are challenging (especially DCGAN) yet can be done with hard work. The lectures are informative and derivations are shown step by step. Instructor is not afraid to use high level math and show all the steps which sets it apart from most online courses.
By Ahmad Asghariyan Rezayi on 1/30/2018
I think this is the most comprehensive course about GANs in Udemy. However, this is not actually for the beginners, and mostly, it is useful for those who are engaged with advanced machine learning, etc. Me, as a Phd student, could improve my understanding about GANs, and VAE, mostly in a very practical way. Thanks to the instructor.
By Andres Sancho Asensio on 11/20/2017
Very illustrative course on Generative algorithms, which are somehow less well-known in the industry. Code is very clean and direct to the point. Also lessons are crystal clear. It is very satisfactory that the teacher is stressing the stuff that matters without losing the focus on details that are not that important in order to understand how these algorithms work.
By Stephan Eule on 8/7/2017
This course is great! It provides you with all the necessary knowledge to dive into the exciting world of generative models. The balance between theoretical and implementation details is very good. As ususal in his courses the material is pretty condensed so take your time and take notes! As always a good portion of mathematical background is provided. I found this course much better than the first unsupervised DL part.
Quality Score
No CourseDuck member has rated this course yet. Taken it? Give each part a thumbs up or down.
Overall Score : 94 / 100












