Question about latent range in DDIM inversion: X_T or X_{T-1}? · Issue #10 · WindVChen/Diff-Harmonization · GitHub
More Web Proxy on the site http://driver.im/
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
From what I understand, when t = T-1 (961), the next_timestep becomes T (981), meaning the alpha_bar_next is α_T (α_981), so the newly computed latent should correspond to X_T (X_981).
However, according to the comment at the end of the code (all_latents[N] corresponds to X_{T-1} ~ X_0), it seems the stored latents start from X_{T-1}, not X_T.
Could you please clarify this point? Specifically: why is the range of all_latents described as X_{T-1} ~ X_0, instead of X_T ~ X_0?
Thank you in advance for your help!
The text was updated successfully, but these errors were encountered:
As the code was written quite some time ago, I tried to recall the exact reason behind that comment but unfortunately couldn't remember it precisely.
My guess is that the comment refers to the fact that, to transform x_0 to x_T (or vice versa), there should be T steps, where T = len(timesteps). Since we're only using timesteps[:-1] here, we go from x_0 to x_{T−1}, not all the way to x_T.
Dear Authors,
Thank you for your great work.
I have a question regarding the following DDIM inversion code:
diff_harmon.py line 268~287
From what I understand, when t = T-1 (961), the next_timestep becomes T (981), meaning the alpha_bar_next is α_T (α_981), so the newly computed latent should correspond to X_T (X_981).
However, according to the comment at the end of the code (all_latents[N] corresponds to X_{T-1} ~ X_0), it seems the stored latents start from X_{T-1}, not X_T.
Could you please clarify this point? Specifically: why is the range of all_latents described as X_{T-1} ~ X_0, instead of X_T ~ X_0?
Thank you in advance for your help!
The text was updated successfully, but these errors were encountered: