Diffusion model sampling method and device for image generation
Патент · CN B
Полный текст
The invention provides a diffusion model sampling method and device for image generation, and the method and device comprise the steps of carrying out parameterization on a pre-trained noise prediction model to obtain optimal parameterized representation, wherein the optimal parameterized representation enables a diffusion ordinary differential equation under the optimal parameterized representation to have minimum first-order discretization error when solving through introducing a linear coefficient, a size coefficient and a bias coefficient, constructing a diffusion model sampler based on the optimal parameterized representation, and carrying out image recovery on a target noise image meeting first Gaussian distribution by utilizing the diffusion model sampler, wherein the first Gaussian distribution is the distribution presented by a pure noise image generated in a forward diffusion process. According to the invention, the discretization error in the process of solving the diffusion ordinary differential equation is analyzed, the better noise prediction model parameterization mode in the process of sampling is set, and a more efficient diffusion model sampler is constructed based on the parameterization mode, so that the sampling efficiency of the diffusion model is improved on the premise of ensuring the sampling quality of the diffusion model.