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

code is inconsistent with your paper #5

Closed
pengzhangzhi opened this issue Dec 7, 2022 · 3 comments
Closed

code is inconsistent with your paper #5

pengzhangzhi opened this issue Dec 7, 2022 · 3 comments

Comments

@pengzhangzhi
Copy link

def add_noise(self, v_0, mask_generate, t):

Hi. In the forward diffusion process, given e_0, the initial rotations, this function generates the noised rotations by R_noisy = E_scaled @ R0_scaled. where E_scaled is sampled from a prior distribution. I wonder why e_normal is not used but declared?

e_normal = e_scaled / (c1 + 1e-8)

In your paper, the R_noisy should be the interpolation between c0 * v_0(scaled v_0) and c1 * e_scaled. But your code does not use c1 at all.

@luost26
Copy link
Owner

luost26 commented Dec 7, 2022

I named the variable scaled because e_scaled is already scaled by c1. The scaling factor c1 is set as the std of the distribution.

self.angular_distrib_fwd = ApproxAngularDistribution(c1.tolist(), **angular_distrib_fwd_opt)

e_normal is for debugging. Just to check whether it comes back to a standard normal after division.

@luost26 luost26 closed this as completed Dec 7, 2022
@pengzhangzhi
Copy link
Author

My bad! Thank you soooo much.

@pengzhangzhi
Copy link
Author

@luost26 , Hi. I have another question regarding the posterior formula of orientation
image

Why the mean of the posterior is the predicted O_0 instead of the interpolation between O_t and predicted O_0. The later one is more popular in Diffusion Model, including original DDPM.

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

2 participants