zju-pi/diff-sampler
An open-source toolbox for fast sampling of diffusion models. Official implementations of our works published in ICML'24, NeurIPS'24, CVPR'24, J. Stat. Mech'25.
What it solves
diff-sampler addresses the need for faster and more efficient sampling in diffusion-based generative models. It provides a centralized toolbox that allows researchers to compare different sampling algorithms fairly and implement advanced techniques to reduce the number of steps required to generate high-quality images.
How it works
The project serves as a comprehensive library of numerical solvers, time schedules, and model implementations. It allows users to experiment with various sampling strategies—ranging from standard methods like Euler and DPM-Solver to specialized research-backed approaches like GITS and AMED-Solver. The toolbox includes utilities for analyzing sampling trajectories, calibrating model performance, and performing fast distillation to speed up fine-tuning by up to 1,000 times.
Who it’s for
This project is primarily for AI researchers and developers working on diffusion models who need a standardized environment to test, compare, and implement new sampling algorithms or optimization techniques.
Highlights
- Includes official implementations for multiple peer-reviewed research papers on diffusion model sampling.
- Supports a wide array of solvers, including Euler, Heun, DPM-Solver++, UniPC, and DEIS.
- Features advanced analysis tools for calculating trajectory curvature and automatic calibration.
- Provides high-speed distillation methods that maintain image quality in few-step generation.
- Offers integration with popular platforms like ComfyUI for practical, real-world workflows.
Related
- Project
- Project
- Project
- Project