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

Add the newest DPM-Solver #40

Closed
LuChengTHU opened this issue Nov 2, 2022 · 6 comments
Closed

Add the newest DPM-Solver #40

LuChengTHU opened this issue Nov 2, 2022 · 6 comments

Comments

@LuChengTHU
Copy link

Thanks for your amazing work and interest in DPM-Solver! We have updated DPM-Solver v2.0, which supports four types of diffusion models: noise prediction model, data prediction model, v-prediction model, and score function.

Moreover, we supported both single-step and multi-step versions and the corresponding algorithms for the exponential integrators for both the noise prediction model and the data prediction model.

I'm glad to help if you want to further support our DPM-Solver in this repo :)

@crowsonkb
Copy link
Owner

crowsonkb commented Nov 4, 2022 via email

@LuChengTHU
Copy link
Author

Hi @crowsonkb

I suggest using the multistep version DPM-Solver++ for guided sampling. e.g., All my experiments for accelerating stable-diffusion use the DPM-Solver++(2M). Please check this page: https://github.com/LuChengTHU/dpm-solver/tree/main/example_v2/stable-diffusion

I also implement a third-order multistep version in https://github.com/LuChengTHU/dpm-solver and huggingface/diffusers#1132 . The third-order solver can further accelerate the results for medium and large NFEs.

If you want to support these algorithms, I'm happy to help :)

@crowsonkb
Copy link
Owner

I added 2S and 2M! :)

I tried implementing the 3M variant but it seemed worse/images looked kind of deep fried?

@LuChengTHU
Copy link
Author

Hi @crowsonkb

My recent work https://arxiv.org/abs/2211.01095 shows that for guided sampling with large guidance scales, high-order solvers all fail to converge in a small number of steps. So in my experience, I think 3M is preferred for unconditional sampling but is unsuitable for conditional (guided) sampling.

@LuChengTHU
Copy link
Author

I added 2S and 2M! :)

I tried implementing the 3M variant but it seemed worse/images looked kind of deep fried?

So quick and nice commit! Thank you for the support! I will close the issue.

@Timothy2046
Copy link

Timothy2046 commented Apr 19, 2023

I used the latest version of A1111 and K-diffusion, but the WEBUI still no DPM Solver and DPM Solver++ in the Sampling method list, why? what should i do to use DPM Solver

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

3 participants