-
Notifications
You must be signed in to change notification settings - Fork 5k
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
How can we use DPM++ 2M Karras sampler in Diffusers? #1887
Comments
Hey, this should be identical to this scheduler: https://huggingface.co/docs/diffusers/api/schedulers/multistep_dpm_solver Could you try using this one to see if quality matches the one of Auto1111. |
I tried this and the quality didn't match. |
I think @danishboy000 might be referring to the use of Karras sigmas #1633 in combination with this scheduler's algorithm, but I'm not an expert in Automatic1111 nomenclature. Perhaps @apolinario can confirm? |
Yes that is correct! |
@danishboy000 could you copy-paste some code snippets that you used for Auto1111 and |
@patrickvonplaten , I think in this issue #1633 I showcase the code snippet used by AUTO1111 for using Karras sigmas for all samplers |
@patrickvonplaten I was able to get KDiffusion samplers with Karras sigmas with some modifications to your KDiffusion experimental model: I am getting similar results to A111 (using AnythingV4 - there are multiple versions of the checkpoint, hence the tiny change, quality-wise seems good to me) I would make a PR but I am busy right now, so if you have someone that can take a look at it, feel free to add it. PS - There are more optimizations in the model, callback was implemented as well. Thanks for the hard work on |
Very cool, thanks a lot @Stax124 :-) We have an open issue to add karras sigmas to |
This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread. Please note that issues that do not follow the contributing guidelines are likely to be ignored. |
Is now possible to use DPM++ 2M Karras on DiffusionPipeline? I'm using custom_pipeline = "lpw_stable_diffusion" |
I'm trying to use the latest samplers which provide better performance with stable diffusion in the diffusers library, but I couldn't find DPM++ 2M Karras sampler in the library. These samplers are present in Automatic111. Can anyone guide me on how to use these samplers in the Diffusers library?
The text was updated successfully, but these errors were encountered: