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

Classifier-Free Guidance Formulation #303

Open
MoayedHajiAli opened this issue Sep 18, 2023 · 3 comments
Open

Classifier-Free Guidance Formulation #303

MoayedHajiAli opened this issue Sep 18, 2023 · 3 comments

Comments

@MoayedHajiAli
Copy link

In the classifier-free guidance paper, the formulation is as follow
image

However, it is implemented in DALL-2 as
null_logits + (logits - null_logits) * cond_scale
According to the formula it should be
logits + (logits - null_logits) * cond_scale
where the logits are the conditional score and null_logits are the unconditional ones.

Can you please clarify the reason for this modification?
Thank you!

@nshidqi
Copy link

nshidqi commented Dec 13, 2023

@MoayedHajiAli Have you found the reason?
I'm also wondering why

@tengteng95
Copy link

@nshidqi @MoayedHajiAli I also have the same question. May I ask if you have found the reason now?

@MoayedHajiAli
Copy link
Author

MoayedHajiAli commented Jan 19, 2024

Hi @tengteng95. I couldn't find the reason

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

3 participants