-
-
Notifications
You must be signed in to change notification settings - Fork 261
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
Quality Improvement #63
Comments
It would be extremely helpful if you could provide a skeleton code and I can look into how to hack A1111. |
new_schedule.txt And I changed make_schedule method of DDIMSampler class in repositories\stable-diffusion-stability-ai\ldm\models\diffusion\ddim.py of webui repo like below.
|
import torch
beta_start = 0.00085
beta_end = 0.012
# beta_schedule = "linear"
num_train_timesteps = 1000 # default
betas = torch.linspace(beta_start, beta_end, num_train_timesteps, dtype=torch.float32)
alphas = 1.0 - betas
alphas_cumprod = torch.cumprod(alphas, dim=0) |
Thank you very much for your contribution. I have merged the gist into v1.3.0 |
牛的牛的,只剩下75负面提示词了 |
Using DDIM, I found that aligning the alphas_cumprod tensor with the original Animatediff repository improves the quality. I haven't changed the way alphas_cumprod is calculated itself, so a proper implementation requires expertise. This is beyond my current capabilities. Could someone knowledgeable please correct it? Thank you.
Before and after the improvement. The generation conditions are identical for both.
The text was updated successfully, but these errors were encountered: