-
Notifications
You must be signed in to change notification settings - Fork 24
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
Potentially incorrect equation from paper #3
Comments
@WeilunWang thanks a lot for your code, it is a really nice work! :) Coming to the issue, I also find the implementation differs from what described in the paper. model_output = output(image | null_label) + s * (output(image | labelmap) - output(image | null_label))
= [...]
= output(image | labelmap) - s' * (output(image | labelmap) - output(image | null_label)) where s' = 1 - s. So, the sign in front of the parenthesis has changed. This means that instead of increasing by the distance from the model bias |
I believe it is a bug in the paper, not in the code. |
Figure 3. (c) in the paper is in sync with the code. |
it seems the author keeps the golden principle of programming: "If it works, don't touch it (don't try to understand it)" www |
Hi, does anyone know the name of the argparse parameter for guidance scale, s? When I debugging the code, the following if statement is false,
In this case, the classifier-free guidance is not functional at all! |
Equation 16. from the paper which gives the disentangled component seems to differ to what is actually in the code.
In the paper the equation is given as:
However looking at the code in
/guided_diffusion/gaussian_diffusion.py
within thep_mean_variance
function there is the code below:This seems to be calculating the following instead though:
Am I understanding this correctly or is this a bug in the paper/code?
The text was updated successfully, but these errors were encountered: