-
Notifications
You must be signed in to change notification settings - Fork 136
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
Do we need to scale word embeddings to [-1, 1]? #49
Comments
Hi, Thanks for the question. We are not mapping the word embeddings to be between [-1, 1], and this is different from image diffusions. There are three terms in the objective: (1) Lsimple (mse), (2) the reconstruction (i.e. decoder_nll) (3) the prior (t_T_loss) as in
Hope this helps! |
Yes this explains it! Thank you very much for the quick response and the great explanation! |
Hi @XiangLi1999, I am sorry for reopening the issue. I just have one more question about the loss function. Can I ask why in If that's the purpose of this reconstruction loss, then we need to use the predicted x_start (the denoised version) to calculate reconstruction loss, right? Sorry if the answer seems obvious but I didn't get it. Thank you very much for your help!
|
Hi there, thank you very much for providing the code!
I am new to diffusion model, so I apologize in advance if I ask a dumb question.
In this line, it seems we are getting word embeddings and adding noise directly to it, without making sure word embeddings are between [-1, 1].
In DDPM, we need to scale image to [-1, 1] for parameters in noise scheduler to work properly.
I am wondering how we control the scale in text.
Thank you very much!
The text was updated successfully, but these errors were encountered: