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

[Question] What's the meaning of these equations in sample and cfg_model_fn(from sample.py ) #23

Open
zhangquanwei962 opened this issue Dec 18, 2022 · 0 comments

Comments

@zhangquanwei962
Copy link

zhangquanwei962 commented Dec 18, 2022

Hello, thank you for your great work! I have a little puzzle in sample.py
`# Get the model output (v, the predicted velocity)
with torch.cuda.amp.autocast():
v = model(x, ts * steps[i], **extra_args).float()

    # Predict the noise and the denoised image
    pred = x * alphas[i] - v * sigmas[i]
    eps = x * sigmas[i] + v * alphas[i]`

what the meaning ? Where it comes?

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