kaist_cs492d_fall_2024_assignment_2
kaist_cs492d_fall_2024_assignment_2
Applications
Assignment 2 Session
SEUNGWOO YOO
Fall 2024
KAIST
Diffusion Models Beat GANs on Image Synthesis, Dhariwal and Nichol, PMLR 2021
• Late submission will incur 20% penalty for each late day!
1 1 − 𝛼! !
𝒙!"# = 𝒙! − 𝜖$ 𝒙! + 𝜎! 𝜖!
𝛼! 1 − 𝛼&!
𝒙! − 1 − 𝛼! 𝜖$! 𝒙! % !
𝒙!"# = 𝛼!"# + 1 − 𝛼!"# − 𝜎! 𝜖$ 𝒙! + 𝜎! 𝜖!
𝛼!
• ddim_p_sample
• ddim_p_sample_loop
2d_plot_diffusion_todo/ddpm.py
Wildlife
Cat
Dog
Wildlife
(100)
Cat
(001)
Dog
(010)
image_diffusion_todo/network.py
image_diffusion_todo/network.py
image_diffusion_todo/model.py
Try CFG scale of 0.0 and 7.5 and observe how sample quality changes.
Specifically, use
• GT_DIR: data/afhq/eval
• Your code without any model checkpoints, training data, and outputs.
Task 1
• 0 point: Otherwise.
Task 2
• 10 points: Achieve FID lower than 30 in both CFG scales = {0.0, 7.5}.
• 5 points: Achieve FID between 30 and 50 in one of the two CFG scales.
• 0 point: Otherwise.