Skip to content

Conversation

@George-Jiao
Copy link

File: diffusion_01_score.ipynb.
In the section 'Denoising score matching', the $\nabla_{\tilde{\mathbf{x}}} \log q_{\sigma}(\tilde{\mathbf{x}}\mid\mathbf{x})$ should be $= -\frac{\tilde{\mathbf{x}} - \mathbf{x}}{\sigma^{2}}$ instead of $= \frac{\tilde{\mathbf{x}} - \mathbf{x}}{\sigma^{2}}$.
Again, thanks for your repository, it is an awesome tutorial about score matching and diffusion model.

@pieris98
Copy link

pieris98 commented Nov 9, 2023

I believe this is true as can be seen in the code cell below that equation (-1/sigma**2*(perturbed_samples-samples). Maybe @esling can review and merge the PR?

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.

2 participants