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

Better default scheduler and number of inference steps #14

Open
Necr0x0Der opened this issue Aug 7, 2023 · 5 comments
Open

Better default scheduler and number of inference steps #14

Necr0x0Der opened this issue Aug 7, 2023 · 5 comments

Comments

@Necr0x0Der
Copy link
Collaborator

Some experiments should be conducted to optimize the number of inference steps used by default together with the default scheduler.

@noskill
Copy link
Collaborator

noskill commented Aug 11, 2023

I would just take settings from showcase images from dreemshaper or "I Can't Believe It's Not Photography" on civitai.

DPM++ 2M Karras is often used on civitai, diffusers implement it as sample_dpmpp_2m but it doesn't work with custom pipeline like long prompt weighting. I suggest we use DPMSolverMultistepScheduler since it gives most similiar results to sample_dpmpp_2m. "ICBINP" showcase images use on average 25 steps and dreamshaper 28. Almost all images have clip_skip=2

@noskill
Copy link
Collaborator

noskill commented Aug 11, 2023

For SDXL they often use 50-100 steps, but there are good images with 20-25 steps

@Necr0x0Der
Copy link
Collaborator Author

I'd prefer to perform some tests. Also, some examples of different control net pipelines explicitly specify other schedulers. I wonder if there is a reason behind this.

@noskill
Copy link
Collaborator

noskill commented Aug 18, 2023

@Necr0x0Der what would be score function in such tests? In civit.ai we have likes and downloads which is good proxy for image quality.

@noskill
Copy link
Collaborator

noskill commented Jun 3, 2024

we can adapt callbacks to turn off guidance at first few steps of diffusion huggingface/diffusers#7761

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