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

DDS_zeroshot.ipynb - sds loss derivation #83

Open
zoharbarzelay opened this issue Feb 6, 2024 · 2 comments
Open

DDS_zeroshot.ipynb - sds loss derivation #83

zoharbarzelay opened this issue Feb 6, 2024 · 2 comments

Comments

@zoharbarzelay
Copy link

i liked your DDS paper a lot, thanks for sharing your code!

It would be really great if you could explain the math/derivation of the SDS loss you're using;
specifically, the following two lines:

grad_z = alpha_t * sigma_t * (e_t - eps)
sds_loss = grad_z.clone() * z

or link any relevant references.

Thx a lot!

@RainbowZhuu
Copy link

I have the same question
grad_z = (alpha_t ** self.alpha_exp) * (sigma_t ** self.sigma_exp) * (e_t - eps)
sds_loss = grad_z.clone() * z

@Sutongtong233
Copy link

you can refer to this: threestudio-project/threestudio#266.
\delta sds_loss / \delta z will direcly be the grad_z (e_t - eps), which can avoid Unet backward required for Chain Rule.

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

3 participants