Skip to content

Fix a bug for DDIM sampling#587

Open
chenky9106 wants to merge 1 commit intolllyasviel:mainfrom
chenky9106:cky
Open

Fix a bug for DDIM sampling#587
chenky9106 wants to merge 1 commit intolllyasviel:mainfrom
chenky9106:cky

Conversation

@chenky9106
Copy link

'alphas_prev' of the DDIM sampler here should start with 1. In the original implementation, 'alpha_prev' starts with 'alphacums[0]', which is close to but not 1.. and is not theoretically correct. 'alphacums_prev[0]' is 1. instead.

This will lead to noisy outputs of the diffusion model. I understand it has limited influence to the LDM framework, since generated latent variables are not directly visible. But I believe the model perform better if modified.

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

Successfully merging this pull request may close these issues.

1 participant