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

A question on the equation (43) from the paper. #2

Open
aylive opened this issue Dec 7, 2024 · 0 comments
Open

A question on the equation (43) from the paper. #2

aylive opened this issue Dec 7, 2024 · 0 comments

Comments

@aylive
Copy link

aylive commented Dec 7, 2024

Great thanks for your effort in explaining this work with this repo. It helps me a lot.

Just a small question for the derivation in the paper, in Eq(43), it derives the score matching loss as below,

$\mathcal{L}_{SM}(\theta) = \mathbb{E}\left[\lambda(t)\Vert{s_t(x) - \nabla{\log{p_t(x|x_1)}}}\Vert^2\right] = \mathbb{E}\left[\lambda(t)\Vert{s_t(x) - \frac{x-\mu_t(x_1)}{\sigma_t^2(x_1)}}\Vert^2\right]$,

where $p_t(x|x_1) = \mathcal{N}(x|\mu_t(x_1), \sigma_t^2(x_1)\mathbf{I})$. But given the derivation of Gaussian, this seems should be,

$\mathcal{L}_{SM}(\theta) = \mathbb{E}\left[\lambda(t)\Vert{s_t(x) + \frac{x-\mu_t(x_1)}{\sigma_t^2(x_1)}}\Vert^2\right]$.

Right? It confuses me to connect the theories behind ddpm, score-based, sde, flow-mathcing together. :(

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