You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
which I read as using the unconditioned (i.e. null prompt) embeddings.
Is that the way it's supposed to work? That doesn't feel like how it's supposed to work. Like, if the normal classifier-free guidance function is turned off, it would be using the embeddings from the text prompt, not the nulls.
But this pipeline was added without any tests or samples or other reference material, so I really don't know.
IIUC the correct behavior would be to use pred_original_sample to do the CLIP comparison - i.e. it should be the sample, not pred_original_sample * (fac) + latents * (1 - fac)
IIUC the correct behavior would be to use pred_original_sample to do the CLIP comparison - i.e. it should be the sample, not pred_original_sample * (fac) + latents * (1 - fac)
Afaik, this is correct because the conditional diffusion is conditional on predicted x_t rather than predicted x_0。
Activity
patrickvonplaten commentedon Sep 22, 2022
cc @patil-suraj might be good to take a look soon since we just released it :-)
keturn commentedon Sep 23, 2022
Someone posted another concern on discord:
patil-suraj commentedon Sep 28, 2022
That's a great catch @keturn ! Sorry to come back to this only now, will send a fix right away.
patil-suraj commentedon Sep 28, 2022
Also updated the colab notebook https://colab.research.google.com/github/huggingface/notebooks/blob/main/diffusers/CLIP_Guided_Stable_diffusion_with_diffusers.ipynb#scrollTo=-bzXx-2EhlQY
ajundo commentedon Sep 29, 2022
Afaik, this is correct because the conditional diffusion is conditional on predicted x_t rather than predicted x_0。
zzhang2816 commentedon Apr 11, 2023
I think the correct format is "sample = pred_original_sample * (fac) + noise_pred * (1 - fac)"
