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

Questions about code in diffusion_transformer.py (q_pred) #28

Open
Ed-ivan opened this issue Jun 19, 2023 · 1 comment
Open

Questions about code in diffusion_transformer.py (q_pred) #28

Ed-ivan opened this issue Jun 19, 2023 · 1 comment

Comments

@Ed-ivan
Copy link

Ed-ivan commented Jun 19, 2023

Thanks for your excellent works and sharing your code !
while I have questions about the code:
log_probs = torch.cat(
[
log_add_exp(log_x_start[:,:-1,:]+log_cumprod_at, log_cumprod_bt),
log_add_exp(log_x_start[:,-1:,:]+log_1_min_cumprod_ct, log_cumprod_ct)
],
dim=1
)
why log_add_exp is used , looking forward your reply!

@Ed-ivan
Copy link
Author

Ed-ivan commented Jun 19, 2023

while I notice that in line 212 of diffusion_transformer.py,
log_qt=self.q_pred(log_x_t,t) ,which is called by q_posterior(self,log_x_start,log_x_t,t) .
I feel a little confused that why is log_x_t is used but not log_x_start

looking forward your reply!

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

1 participant