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

I'm fused by the output and target noise. #96

Open
TMDTom opened this issue Mar 12, 2024 · 0 comments
Open

I'm fused by the output and target noise. #96

TMDTom opened this issue Mar 12, 2024 · 0 comments

Comments

@TMDTom
Copy link

TMDTom commented Mar 12, 2024

noise = default(noise, lambda: torch.randn_like(y_0))
y_noisy = self.q_sample(
y_0=y_0, t=t, noise=noise)

    if mask is not None:
        noise_hat = self.denoise_fn(torch.cat([y_cond, y_noisy*mask+(1.-mask)*y_0], dim=1), t)
        loss = self.loss_fn(mask*noise, mask*noise_hat)
    else:
        noise_hat = self.denoise_fn(torch.cat([y_cond, y_noisy], dim=1), t)
        loss = self.loss_fn(noise, noise_hat)
    return loss

The target noise is generated by white guassian noise whose value is [-3 , 3] with the bigger probility. The output activate function is Silu,whose value is [0 1]. I don't understand. Is there anybody can help me?

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