inflearn logo

DDPM to DDIM, Complete Mastery of Diffusion Through Implementation I

This course is a hands-on masterclass that completely conquers the evolution of Diffusion Models through papers and code implementation. You'll learn the core models of generative AI, including DDPM (Denoising Diffusion Probabilistic Model) and DDIM, by studying the paper principles and implementing them directly. We analyze step-by-step the background of each model's emergence, mathematical formulations, network architectures (U-Net, VAE, Transformer), training processes (Noise Schedule, Denoising Step), and the ideas that led to performance improvements. Students will directly code all models using PyTorch, gaining not just paper comprehension but 'practical skills to reproduce and apply' them in real-world scenarios. Additionally, by comparing the differences between models and their developmental flow, you'll clearly understand how they expand and evolve. This course integrates theory, code, and practice into one comprehensive journey, providing researchers, developers, and creators alike with a systematic way to master the evolution of generative models. Beyond simply 'reading' papers, start your experience of 'understanding and recreating' through direct implementation now.

(4.8) 5 reviews

32 learners

Level Basic

Course period Unlimited

Python
Python
Deep Learning(DL)
Deep Learning(DL)
AI
AI
Python
Python
Deep Learning(DL)
Deep Learning(DL)
AI
AI

What you will gain after the course

  • Understand the structure and principles of major diffusion models such as DDPM and DDIM step by step.

  • We directly implement the core ideas presented in each paper through code.

  • Compare the differences between models and experience through experiments how Diffusion-based models started and evolved.

  • Reproduce paper-based models with actual PyTorch code and perform custom image generation experiments.

Course Introduction

This course is a complete hands-on course that teaches you from the fundamental principles of Diffusion models to direct implementation all at once.
You'll understand DDPM (Denoising Diffusion Probabilistic Model), which has become the core of image generation AI, and
DDIM (Denoising Diffusion Implicit Model), which dramatically improved sampling speed,
by following through paper formulas, concepts, code implementation, and experiments.

It doesn't just stop at explaining theory,
but is designed so you can directly see and experience how models "restore from noise" images
by writing actual code.


🧩 Learning Objectives

Through this course, students will master the following completely:

  • ✅ Understanding the Forward / Reverse Process of Diffusion Models

  • ✅ Mathematical interpretation of Jensen's inequality, ELBO, Loss function

  • ✅ DDPM training and sampling process implementation (UNet, Diffusion Class, etc.)

  • DDIM Principles and Speed Improvement Methods Practice

  • ✅ Training to implement papers into actual code and analyze them directly like a Reviewer


🧰 Curriculum Overview

1️⃣ DDPM From Basics to Complete Implementation

  • Forward / Reverse Process, ELBO, Loss, Noising Schedule

  • Diffusion Class, UNet Implementation and Training Practice

  • Strengthen Logical Thinking Through Academic Paper Reviewer Role-Play

2️⃣ Understanding Sampling Optimization through DDIM

  • Theoretical Background of DDIM

  • Sampling Acceleration Implementation Practice

  • DDPM efficiency comparison mission execution


👩‍💻 Recommended For

This course is for the following people:

  • After building a foundation in deep learning, developers/researchers who want to deeply understand image generation AI

  • Those who want to learn the operating principles of models like Stable Diffusion and Midjourney from the ground up

  • For those who want to develop practical AI research skills through paper implementation, PyTorch code analysis, and model tuning

  • Someone preparing to expand their studies to the latest Diffusion models such as LDM, DiT, PixArt, etc.


🚀 Expected Benefits After Taking the Course

  • DDPM paper perfectly interpreted and reproducible from equations to code

  • You can directly design and customize the training pipeline of Diffusion-based models

  • Understanding and experimenting with the core concepts of DDIM sampling acceleration through actual code

  • Subsequent lectures "LDM & DiT Complete Mastery II", "PixArt & SANA Complete Mastery III" allow for
    natural expansion of learning

Recommended for
these people

Who is this course right for?

  • Developers and researchers who want to deeply understand the architecture of the latest generative AI models such as Stable Diffusion, DiT, SANA, etc.

  • Learners who want to go beyond simply reading Diffusion papers and actually implement and internalize them through hands-on practice

  • Graduate students, engineers, and data scientists interested in AI art, image generation, and model research and development

Need to know before starting?

  • If you have knowledge of basic mathematics and the fundamental syntax of Python and PyTorch, that will be sufficient.

  • You need a basic development environment where you can practice in Jupyter Notebook or VS Code.

Hello
This is Sotaaz

79

Learners

11

Reviews

1

Answers

4.5

Rating

5

Courses

Curriculum

All

17 lectures ∙ (2hr 52min)

Course Materials:

Lecture resources
Published: 
Last updated: 

Reviews

All

5 reviews

4.8

5 reviews

  • okjeong105171님의 프로필 이미지
    okjeong105171

    Reviews 3

    Average Rating 5.0

    5

    65% enrolled

    • dongun92689831님의 프로필 이미지
      dongun92689831

      Reviews 4

      Average Rating 5.0

      5

      82% enrolled

      I think this is a truly perfect lecture. I was wandering around trying to study Diffusion and happened to come across this course, and I was able to understand it perfectly here. Do you happen to have any plans to create a course on Flow Matching? I would really love to hear a lecture on Flow Matching taught by you.

      • sotaaz
        Instructor

        First of all, thank you so much for leaving such a thoughtful review. As an instructor, I feel incredibly proud and rewarded to hear that after exploring various resources, you were finally able to perfectly understand the principles of Diffusion through my lecture. Regarding your inquiry, I am currently preparing the Flow Matching course in great depth as the next step in the Generative Vision series. I am refining the curriculum to meet your expectations, so please stay tuned! Before the course is released, I am publishing a series of posts summarizing the core concepts of Flow Matching on my blog. Reading these in advance will be very helpful for understanding the upcoming lecture. Difference between SDE and ODE: Understanding SDE vs ODE (https://blog.sotaaz.com/post/sde-vs-ode-ko) Principles of Rectified Flow: Learning about Rectified Flow (https://blog.sotaaz.com/post/rectified-flow-ko) Flow Matching vs DDPM: Comparing the structures of the two models (https://blog.sotaaz.com/post/flow-matching-vs-ddpm-ko) Moving forward, I plan to present a solid lineup covering both AI practice and theory, including Flow Matching, Object Detection, LLM, and Statistics. I am also continuously updating related insights on my blog, so please visit often. I support your passionate learning and hope to see you soon in the new course. Thank you!

    • paulmoon008308님의 프로필 이미지
      paulmoon008308

      Reviews 111

      Average Rating 4.9

      5

      29% enrolled

      • sotaaz
        Instructor

        Thank you so much for taking the time to leave such valuable feedback despite your busy schedule. It truly means a lot to me. I sincerely hope this course helps you gain a deep understanding and practical implementation skills of Diffusion models, from DDPM to DDIM. If you have any questions while studying, please feel free to ask anytime! Thank you.

    • dctop2810님의 프로필 이미지
      dctop2810

      Reviews 1

      Average Rating 4.0

      4

      100% enrolled

      • sotaaz
        Instructor

        Thank you for the star rating and valuable feedback 🙂 I am continuously improving to create better lectures. If there are any areas you'd like to see improved or additional content you'd like me to cover, please feel free to let me know. I will actively reflect this in future updates!

    • juchala1118369님의 프로필 이미지
      juchala1118369

      Reviews 3

      Average Rating 5.0

      5

      35% enrolled

      Sotaaz's other courses

      Check out other courses by the instructor!

      Similar courses

      Explore other courses in the same field!

      $35.20