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

What's the meaning of this equation in cond_fn (from cgd.py) #27

Open
Josh00-Lu opened this issue Aug 29, 2022 · 2 comments
Open

What's the meaning of this equation in cond_fn (from cgd.py) #27

Josh00-Lu opened this issue Aug 29, 2022 · 2 comments

Comments

@Josh00-Lu
Copy link

Josh00-Lu commented Aug 29, 2022

In cgd.py, in cond_fn(x, t, out, y=None):

fac = diffusion.sqrt_one_minus_alphas_cumprod[current_timestep]
sigmas = 1 - fac
x_in = out["pred_xstart"] * fac + x * sigmas

out["pred_xstart"] is the predicted x0.
x is the current xt.

what the meaning of x_in?

@Josh00-Lu Josh00-Lu changed the title What's the meaning of this equation in cond_fn (from cdg.py) What's the meaning of this equation in cond_fn (from cgd.py) Aug 29, 2022
@zhangquanwei962
Copy link

Hi, I also have this question, have you resolved it?

@EveningLin
Copy link

@zhangquanwei962 @Josh00-Lu Have you figured it out? Can you share your understanding?

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