question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Efficient sampling via DPM-Solver

See original GitHub issue

Hi 👋,

https://github.com/LuChengTHU/dpm-solver just got released (with pytorch code!) and demonstrates how to sample in around 10 steps.
https://arxiv.org/abs/2206.00927

not sure how this compares to the sampling efficiencies that were unlocked with the Elucidated approach. presumably they can’t be combined? but 10 samples is very few; perhaps this would outperform Elucidated?

@article{lu2022dpm,
  title={DPM-Solver: A Fast ODE Solver for Diffusion Probabilistic Model Sampling in Around 10 Steps},
  author={Lu, Cheng and Zhou, Yuhao and Bao, Fan and Chen, Jianfei and Li, Chongxuan and Zhu, Jun},
  journal={arXiv preprint arXiv:2206.00927},
  year={2022}
}

Thanks as always!

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:1
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
bonlimecommented, Nov 13, 2022

@LuChengTHU hi, i didn’t know where to ping you, so decided to do it here. I really like the quality obtained by the new sampler, but got several questions.

  1. automatic111 repo also implements DPM++ (+ Karras scheduling). Do I understand correctly that in order to implement the Karras scheduling with 🤗 diffusers I only need to rewrite set_timesteps function?
  2. Previously I’ve used DDIM sampler which allows inversion of image to original noise. Does your multi-step (DPM++) support inverting images? I guess it should as it’s a deterministic sampler but I’m not sure how would the usage of previous step affect the inversion quality. For the DDIM I’ve used equation from original paper (which is exactly the same as for generation process). What would be the equation for DPM++(2M)? image
1reaction
Birch-sancommented, Aug 9, 2022

if I’m understanding correctly, then yeah @marunine experimented with sampling approaches, including dpm-solver.
hopefully m9 can explain — I don’t wanna misrepresent the conclusions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

DPM-Solver++: Fast Solver for Guided Sampling of Diffusion ...
An essential technique for improving the sample quality of DPMs is guided sampling, which usually needs a large guidance scale to obtain the ......
Read more >
DPM-Solver++: Fast Solver for Guided Sampling of Diffusion ...
We propose a fast ODE solver for guided sampling of diffusion probabilistic models in around 15 to 20 steps.
Read more >
AI Researchers From China Propose (Diffusion Probabilistic ...
The authors proposed a high-order, training-free diffusion ODE solver for faster-guided sampling, which they named DPM-Solver++, ...
Read more >
DPM-Solver - NeurIPS 2022
DPM-Solver : A Fast ODE Solver for Diffusion Probabilistic Model Sampling in Around 10 Steps ... 2020 Poster: Efficient Learning of Generative Models...
Read more >
Efficient Sampling of SAT Solutions for Testing
Multiple random inputs satisfying the constraints are then generated using a constraint solver that can sample random solutions from a constraint. However, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found