prompt-to-prompt icon indicating copy to clipboard operation
prompt-to-prompt copied to clipboard

Question about the equation of deterministic DDIM sampling in the Null-text Inversion paper

Open jueqiw opened this issue 2 years ago • 3 comments

Hi,

Thanks for this wonderful work! I have a question about the equation of deterministic DDIM sampling in the Null-text Inversion paper. image Based on my understanding, deterministic DDIM sampling is to set the $\sigma_t=0$ for equation 12 in the DDIM paper. It should be the following equation: $z_{t-1} = \sqrt{\alpha_{t-1}}\left(\frac{z_t - \sqrt{1-\alpha_t}\cdot\epsilon_\theta(z_t,\mathcal{C},t)}{\sqrt{\alpha_t}}\right) + \sqrt{1-\alpha_{t-1}}\cdot\epsilon_\theta(z_t, \mathcal{C}, t)$ If you rewrite this equation into the Null-text Inversion paper version, it should be: $z_{t-1} = \sqrt{\frac{\alpha_{t-1}}{\alpha_t}}z_t + \sqrt{\alpha_{t-1}}\left(\sqrt{\frac{1}{\alpha_{t-1}} - 1}- \sqrt{\frac{1}{\alpha_t}-1} \right)\cdot\epsilon_\theta(z_t, \mathcal{C}, t)$ Which is different from it the Null-text Inversion paper.

It may be my understanding is wrong. I would very much appreciate it if you could point me in the right direction!

Thanks,

Jueqi

jueqiw avatar Feb 11 '23 17:02 jueqiw

I have the sam question. When I campare equation of deterministic DDIM sampling in the Null-text Inversion paper, it is different with DDIM & DiffuisonCLIP & Diffusion models beat GAN papers.

junseokoh1 avatar Apr 01 '23 07:04 junseokoh1

same question here, thought it would be a typo

jwh97nn avatar May 19 '23 12:05 jwh97nn

It is a typo!

YasminZhang avatar Sep 01 '23 07:09 YasminZhang