The invention discloses a face super-resolution method and
system based on a dual guide
diffusion model, and the method comprises the steps: collecting low-resolution non-front face images and high-resolution front face images, and constructing a training data pair; after the low-resolution non-front face image is preliminarily restored, a rough front face image is obtained; mapping a face image of a pixel space to an implicit space, enabling a
diffusion model to calculate in the implicit space, pre-training an unconditional
diffusion model, taking a training result as an initialization parameter of the diffusion model, and freezing an
encoder of a denoising network; extracting face priori features from the rough front face image, and capturing spatial and semantic correlation between the face priori features and de-noising features through a
hybrid cross attention mechanism;
face identity coding information is extracted, and a denoising network is embedded; and initializing a
Gaussian noise map, carrying out continuous iterative denoising by using the trained diffusion model, mapping a denoising result in an implicit space to a pixel space, and finally reconstructing a high-resolution front face image.