Method and apparatus for training a diffusion model to perform super-resolution
Патент · EP A1
Полный текст
Broadly speaking, embodiments of the present techniques provide a method for training a diffusion model to perform super-resolution of low or lower resolution images, which can be deployed on resource-constrained devices such as smartphones. The method comprises obtaining a training dataset comprising at least one HR image; inputting a HR image from the training dataset into a HR encoder to generate a HR embedding vector for the HR image; obtaining a LR image from the HR image; inputting the obtained LR image into the LR encoder to generate the LR embedding vector for the input LR image, wherein the LR embedding vector comprises a mean embedding vector and a variance embedding vector for the input LR image. There is then a sampling process which comprises obtaining, at sequential time steps, a plurality of sample latent variables by combining the HR embedding vector with a noise sample taken from a Gaussian distribution defined by the generated mean and variance embedding vectors, predicting, for each sample latent variable, using the denoising ML model, a HR embedding vector; and then training the denoising ML model by minimising a difference between the predicted HR embedding vectors and the generated HR embedding vector.