IntroductionDiffusionModels icon indicating copy to clipboard operation
IntroductionDiffusionModels copied to clipboard

few mistakes

Open houdezaiwu2019 opened this issue 1 year ago • 0 comments

code in diffusion_basic.py has some problems,:

for t in range(timesteps):
    if t%20==0 or t==timesteps - 1:
        sample = x_t.copy()
        processed_xs.append(sample[0])
    
    x_t = forward_process_ddpm_v2(x_0, alpha_bar, t=t)

_, ax = plt.subplots(1, len(processed_xs), figsize=(15, 6))

we should replace sample[0] to sample

houdezaiwu2019 avatar Apr 02 '23 09:04 houdezaiwu2019