影像與視訊生成 Image and Video Generations 劉育綸 Yu-Lun (Alex) Liu · National Yang Ming Chiao Tung University

Course Contents

In this course, we will discuss diffusion models, covering both their theoretical foundations and practical applications.

Topics include:

  • Background of Generative Models
  • DDPM / DDIM / Score-Based Models
  • CFG / Latent Diffusion
  • Conditional Generation
  • Stylization / Personalization
  • Inverse Problem
  • Knowledge Distillation
  • Diffusion Synchronization
  • SDE / ODE Solvers
  • Consistency Models / Flow-Based Models
  • DiT / Applications / Future of Generative Models
Reverse diffusion: from pure noise to a clean image
反向擴散過程:從純雜訊逐步去噪成影像

Prerequisites

Background in machine learning / deep learning. We'll specifically focus on diffusion models (while briefly discussing the background of generative models).

Experience with neural network implementation. There will be programming assignments and a final project — you'll need basic programming skills in Python and PyTorch to complete them.

Recommended prior courses: 線性代數、機率、微分方程、深度學習 + 深度學習實驗.

Lectures

Thursday100 mins in-person lecture
Online50 mins recorded video

2026 年課程直接沿用 2025 年的課程錄影,並新增部分內容。

本課程內容 adapted from KAIST 的兩門課程:CS492(D): Diffusion Models and Their Applications(Fall 2024)Diffusion Models and Their Applications(diffusion.kaist.ac.kr),並已取得 Prof. Minhyuk Sung 的授權。

Grading Policy

40% Programming Assignments
4 assignments, 10% each — see Programming Assignments and the AI Coding Assistant Tool Policy.
15% Paper Presentation
10% Hacker's Deliverables (code, demo, presentation) · 5% 問問題
40% Final Project
10% Proposal Presentation · 15% Oral & Demo Presentation · 10% Final Report (4 pages in CVPR LaTeX format) · 5% 問問題
5% Participation in Guest Lectures

Programming Assignments

  • Assignment 1 (DDPM)
  • Assignment 2 (DDIM & LoRA)
  • Assignment 3 (Distillation)
  • Assignment 4 (Flow Matching)

Each programming assignment is due two weeks after the assignment session. Submit your solutions on E3.

No late submissions allowed. I.e., you will get zero credit even with only 1 minute late submitting deliverables on E3.

Start the programming assignments as early as possible!

DDPM generated animal faces
Assignment 1(DDPM)
DDIM and LoRA personalization examples
Assignment 2(DDIM & LoRA)
Distilled text-to-image generation samples
Assignment 3(Distillation)
Diffusion versus optimal transport trajectories
Assignment 4(Flow Matching)

出題助教:黃怡川李杰穎、陳映寰、張欀齡鄭淮薰柯柏旭

Paper Presentation

  • 每組四位學生(請現在就開始找組員!)
  • 報告的組別:報告近三年發表於 CVPR / ICCV / ECCV / NeurIPS / ICLR / ICML / SIGGRAPH / SIGGRAPH Asia main conference 的論文
  • 根據你報告的好壞給予評分(總成績 5%)+ Hacker's Deliverables(總成績 5%)
  • 其他所有組別:問問題 — 在 presentation 中間或結束後皆可發問,每個 presentation 選出最 insightful 的問題加分(每次總成績 1%)

報告的組別必須扮演一個需要盡快展示這篇論文的駭客:在你自己的資料/任務上展示這篇論文的結果、準備與班上同學分享演算法的核心程式碼並展示你的實作、展示 code diff 或說明安裝環境踩到的坑 — 不要只是下載並執行現有的實作。

Hacker illustration for the paper presentation role
扮演駭客:在自己的資料/任務上展示論文的核心實作與 demo。Credit: Shenlong Wang, UIUC CS 598 3D Vision

Hacker 怎麼做

把公開的 GitHub repo 的 README 跑完,展示 paper 上就有的結果
用自己的資料 / prompt 去跑
稍微改一點點 code 讓 visualization 更好看
搭配論文內容講解對應的程式碼區塊
展示 code diff 或說明安裝環境踩到的坑

其他組別怎麼問問題

不著邊際非常飄渺的問題:「這篇 paper 的東西能用在 video 上嗎?」
「為什麼不用 X,要這麼複雜?好處是 Y 嗎?」
「用 Z 演算法以及 A 改動,就可以 training-free 了嗎?」
「這樣做會有 B 的問題,也許可以使用 C 方法解決,因為…」

Final Project

每組四位學生(與 Paper Presentation 組別相同),三種選項:

  • [量變] 改善現有論文的演算法(生成品質、速度等等)
  • [質變] 創意開發新應用或演算法(影像 → 視訊、training → zero-shot)
  • [復現] Re-implement 近五年任何一篇沒有公開程式碼的頂尖會議論文

Oral Presentation 根據創意/實用度/完整度/報告的好壞等等給予評分(總成績 15%);其他所有組別扮演 reviewer 問問題,最 insightful 的問題加分(每次總成績 1%)。

Final Report 為四頁的 paper in CVPR LaTeX format:Title, Abstract, Introduction, Related Work, Method, Experiments, Conclusion, References.

Example four-page research paper in CVPR LaTeX format
CVPR LaTeX 格式論文範例

Guest Lectures

Ting-Hsuan Chen
CS PhD student @ USC
TBA
Yao-Chih Lee
CS PhD student @ University of Maryland
TBA

Participation in guest lectures counts for 5% of the final grade.

Instructor

劉育綸 Yu-Lun (Alex) Liu
Assistant Professor in the Department of Computer Science.

Homepageyulunalexliu.github.io
OfficeEC713

Teaching Assistants

劉珆睿 資科工所博一ray5233512.cs15@nycu.edu.tw
俞柏帆 資科工所碩二bamboofan.cs14@nycu.edu.tw
黃靖恩 數據所碩二jingenhuang.cs14@nycu.edu.tw
司徒立中 資科工所碩一sytwu.cs15@nycu.edu.tw

AI Coding Assistant Tool Policy

你可以在 programming assignments 和 final project 中使用 AI coding tools,例如 ChatGPT、Copilot 以及 coding agents(Claude Code、Codex、Gemini CLI 等)。

但直接抄網路上或別人的程式碼仍然是嚴格禁止的 — 學期成績零分,並向學校報告。

Plagiarism

我們將使用 TurnitinMoss 來比對原創性檢測與遏止抄襲。

Computing Resource

本課程不提供任何運算資源,請使用個人/實驗室/付費雲端資源完成 programming assignments 與 final project。

你會需要至少一張有 12 GB VRAM 的 NVIDIA GPU

Syllabus (tentative)

2026 年課程直接沿用 2025 年的課程錄影(見 2025 欄),並於部分週次新增內容;新增部分將另行公告(見 2026 欄)。主題列表中的粗體項目為本學期新增的內容。

2025 錄影・教材
2026 本學期

{{ r.sub }}{{ r.title }}

{{ r.title }}

{{ r.week }}
{{ r.kind }}
  • {{ t.text }}

{{ r.note }}

{{ r.d26 }}{{ r.s26 }}
{{ r.due }}
{{ r.out }}

Related Courses and Credits

Tutorials

Blogs

Books

Image Attribution

The header image is Théâtre D’opéra Spatial by Jason Allen, created using the AI software Midjourney.

Jason Allen won the digital-art competition at the Colorado State Fair last year for his piece “Theatre D’opera Spatial” that he created using the AI software Midjourney. Recently, the US Copyright Office refused to grant him a copyright for his piece, writing, “We have decided that we cannot register this copyright claim because the deposit does not contain any human authorship.” He plans to appeal.

Théâtre D’opéra Spatial on Wikipedia