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

fix: DDIM restoration when batch_size > 1 #527

Merged
merged 1 commit into from
Aug 22, 2023

Conversation

royale
Copy link
Collaborator

@royale royale commented Aug 22, 2023

y_t shape is (batch_size, 3, size, size)
gamma_t and gamma_prevt shape should be (batch_size, 1, 1, 1) instead of (batch_size, 1)

failed here:

torch.sqrt(gamma_prevt)
* (y_t - torch.sqrt(1.0 - gamma_t) * y_0_hat)
/ torch.sqrt(gamma_t)

RuntimeError: The size of tensor a (42) must match the size of tensor b (128) at non-singleton dimension 2

@royale royale added bug Something isn't working alg:diffusion labels Aug 22, 2023
@royale royale self-assigned this Aug 22, 2023
@beniz beniz merged commit ccb445b into jolibrain:master Aug 22, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants