Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Confusion about the 'warmup-decay' of the noise schedule #86

Open
Sometimesrains opened this issue Nov 13, 2024 · 0 comments
Open

Confusion about the 'warmup-decay' of the noise schedule #86

Sometimesrains opened this issue Nov 13, 2024 · 0 comments

Comments

@Sometimesrains
Copy link

Hi, your work is outstanding, but I have a question.
In the file gaussian_diffusion.py, line 36 as follow:
elif schedule_name == 'warmup-decay':
warmup_steps = max(1, int(warmup_steps_ratio * num_diffusion_timesteps))
sqrt_steps = get_named_beta_schedule('sqrt', num_diffusion_timesteps)
beta_mid = sqrt_steps[-warmup_steps]
warmup = np.linspace(beta_mid, 0.0001, warmup_steps)
return np.concatenate([sqrt_steps[:-warmup_steps], warmup])
Why should the beta values of the last steps be reduced to 0.0001 and what is the benefit?
shouldn't the warm-up start from the very beginning, namely increasing to 0.0001, like this
elif schedule_name == 'warmup-decay':
warmup_steps = max(1, int(warmup_steps_ratio * num_diffusion_timesteps))
warmup = np.linspace(0.0001, sqrt_steps[warmup_steps], warmup_steps)
return np.concatenate([warmup, sqrt_steps[warmup_steps:]])

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant