Method for realizing face super-resolution based on practical degradation model

By simulating multiple degradation processes and using a dual-branch attention mechanism, the problem of insufficient robustness of existing face super-resolution technology in complex scenes is solved, and higher-quality and adaptable face image super-resolution is achieved. resolution reconstruction.

CN118799189AActive Publication Date: 2024-10-18ZHEJIANG UNIV OF SCI & TECH
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
CN202411287556.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-14
Publication Date
2024-10-18
Estimated Expiration
2044-09-14

AI Technical Summary

Technical Problem

When existing face super-resolution technology processes face images in real scenes, it is difficult to fully capture complex image degradation conditions, resulting in insufficient generalization capabilities and robustness, especially when factors such as noise, blur, and compression artifacts are combined. challenges under the influence.

Method used

A method based on practical degradation models is used to simulate the image degradation effects in actual scenes, including Gaussian noise, Rayleigh noise, motion blur, salt-and-pepper noise, and mean blur. The degradation process and adjustment parameters are selected through random strategies, combined with dual-branch attention. mechanism to extract global and local correlation information to improve reconstruction robustness.

Benefits of technology

Significantly improves the quality and robustness of super-resolution reconstruction of face images, can effectively handle a variety of complex degradation situations, and shows good transferability and practical application potential, especially in the quantitative summation of Helen, SCUT_FBP and PFHQ data sets. Qualitative results are excellent.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118799189A_ABST
    Figure CN118799189A_ABST
Patent Text Reader

Abstract

The invention discloses a method for realizing face super-resolution based on a practical degradation model, which relates to the technical field of digital image processing and pattern recognition, and comprises the following steps of: simulating an image degradation effect in an actual scene by using the practical degradation model to obtain a simulated image; feature information of different scales of the analog image is extracted by using convolution blocks of different convolution kernels, and hierarchical features under different scales are obtained; and performing depth feature extraction on the hierarchical features under different scales by using a double-branch network structure, fusing the extracted feature information, and performing convolution operation through an SCConv convolution block to obtain a fused feature map, thereby completing face image reconstruction. The method not only improves the reconstruction quality and visual effect of the image, but also has good robustness and adaptability, and can be widely applied to face image processing and enhancement tasks in actual scenes.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of digital image processing and pattern recognition, and more particularly to a method for realizing human face super-resolution based on a practical degradation model. Background Art

[0002] Face super-resolution (FSR) technology aims to reconstruct low-resolution (LR) face images into high-resolution (HR) images through algorithms, which is crucial for applications such as face recognition and face segmentation. Due to shooting conditions, equipment limitations, and compression during transmission, the acquired face images often face the problem of insufficient resolution, which increases the complexity of subsequent processing tasks.

[0003] Early FSR methods mainly rely on traditional image processing techniques, such as upsampling techniques such as bicubic interpolation and bilinear interpolation. Although these methods improve image resolution to a certain extent, they often fail to effectively restore image detail information, especially in the case of image blur and noise.

[0004] With the development of statistical modeling and learning inference technology, methods such as Bayesian methods, convex optimization and principal component analysis (PCA) have been introduced into FSR to improve the effect of image reconstruction. However, these traditional methods still have limited representation capabilities when processing face images in complex scenes.

[0005] In recent years, the rise of deep learning technology, especially the development of convolutional neural networks (CNNs), has brought new breakthroughs in face super-resolution. Researchers have proposed a variety of CNN-based network models to achieve super-resolution reconstruction of face images. These methods significantly improve the quality of reconstructed images by learning the mapping relationship between low-resolution and high-resolution images. At the same time, face prior information, such as facial landmarks and heat maps, is also integrated into the model to enhance the reconstruction of facial contours.

[0006] Nevertheless, existing technologies still face challenges in processing face images in real scenes. The degradation of face images in the real world is usually the result of multiple factors, including noise, blur, compression artifacts, etc. Existing degradation models often use fixed degradation kernels or simple degradation processes, which cannot fully capture the complexity of image degradation in the real world. In addition, a single degradation method or a model with fixed parameters is difficult to adapt to the changing real scenes, which limits the generalization ability and robustness of super-resolution algorithms. Summary of the invention

[0007] In view of this, the present invention provides a method for realizing face super-resolution based on a practical degradation model, by simulating the image degradation effects in actual scenes, including Gaussian noise, Rayleigh noise, motion blur, salt and pepper noise, and mean blur, etc., and selecting different degradation processes with a random strategy. In addition, random parameters are used to adjust the degree of degradation during the degradation process, which expands the degradation space and improves the upper limit of the model. The present invention also includes a dual-branch attention mechanism, in which the upper branch uses a multi-head self-attention mechanism to capture global and local correlation information, and the lower branch uses a dual-layer routing attention mechanism to refine key features. The combination of the two improves the robustness of super-resolution reconstruction.

[0008] In order to achieve the above object, the present invention adopts the following technical solution: A method for realizing face super-resolution based on a practical degradation model comprises the following steps: Using a practical degradation model to simulate image degradation effects in actual scenes, a simulated image is obtained; Convolution blocks with different convolution kernels are used to extract feature information of different scales of the simulated image and obtain hierarchical features at different scales; A dual-branch network structure is used to perform deep feature extraction on hierarchical features at different scales. The extracted feature information is fused and convolution operation is performed through the SCConv convolution block to obtain the fused feature map and complete the facial image reconstruction.

[0009] Optionally, the practical degradation model selects different degradation processes with a random strategy, including Gaussian noise, Rayleigh noise, motion blur, salt and pepper noise, and mean blur.

[0010] Optionally, a multi-head attention model is used in the upstream branch of the dual-branch structure.

[0011] Optionally, a two-layer routing attention mechanism is adopted in the downstream branch.

[0012] It can be seen from the above technical solution that, compared with the prior art, the present invention provides a method for realizing face super-resolution based on a practical degradation model, which has the following beneficial effects: 1. The method of the present invention is reasonably designed, convenient to implement, and has good mobility.

[0013] 2. The practical degradation model proposed in the present invention is more in line with the degradation of face images in real scenes and is more suitable for the super-resolution network of face images.

[0014] 3. The face super-resolution of the present invention has achieved good quantitative and qualitative results on the widely used Helen, SCUT_FBP and PFHQ datasets, and has broad practical application potential. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0016] Figure 1 The network structure diagram of the method of the present invention. DETAILED DESCRIPTION

[0017] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0018] The embodiment of the present invention discloses a method for realizing face super-resolution based on a practical degradation model, comprising the following steps: Using a practical degradation model to simulate image degradation effects in actual scenes, a simulated image is obtained; Convolution blocks with different convolution kernels are used to extract feature information of different scales of the simulated image and obtain hierarchical features at different scales; A dual-branch network structure is used to perform deep feature extraction on hierarchical features at different scales. The extracted feature information is fused and convolution operation is performed through spatial channel reconstruction convolution (SCConv) to obtain the fused feature map and complete the reconstruction of the face image.

[0019] A practical degradation model is used to degrade high-resolution facial images to simulate image distortion effects in actual scenes. The degradation process includes: using a random combination of multiple noises and degradation methods to more accurately simulate the degradation effects of facial images in the real world. Specifically, the present invention uses five representative degradation methods, namely Gaussian noise, Rayleigh noise, motion blur, salt and pepper noise, and mean blur.

[0020] Due to the influence of electronic components, transmission media and other factors, Gaussian noise is a common interference noise in images. In the method of the present invention, the present invention selects three types of Gaussian noise, namely, color Gaussian noise, gray Gaussian noise and multi-dimensional Gaussian noise. The present invention determines what type of Gaussian noise to add based on the generated random number N. For color Gaussian noise and gray Gaussian noise, the present invention uses the same mean and standard deviation: (1); Where x represents the noise pixel value, represents the mean, Represents the standard deviation. For multi-dimensional Gaussian noise, the present invention introduces more variable factors. First, a 3×3 random orthogonal matrix and a 3×3 matrix whose diagonal elements are random numbers are randomly generated. Then, a covariance matrix is ​​calculated by combining these matrices to generate multi-dimensional Gaussian noise.

[0021] (2); Where X represents the noise vector, represents the mean vector, represents the covariance matrix, k represents the dimension of the noise vector, represents the determinant of the covariance matrix.

[0022] Rayleigh noise plays an important role in the field of image processing, especially in images collected under special environments. The existence of this noise is usually closely related to long-distance shooting, low-light conditions or wireless sensor networks. Rayleigh noise is characterized by a non-negative amplitude, and when the amplitude is 0, its probability density is also 0. Its probability density function shows an exponential decay trend, in which the probability of values ​​with larger amplitudes is lower. The present invention uses the built-in function of PyTorch to generate Rayleigh distributed noise and add it to the image according to the specified intensity parameter S. This method provides good degradation effects when simulating the noise influence of special image processing scenarios. This process can be expressed by formula (3): (3); in, Represents the input image tensor, S represents the specified Rayleigh noise intensity parameter, and R represents the generated random tensor that obeys the standard normal distribution.

[0023] Motion blur is a blurring effect caused by the relative motion between an object or device and the scene being photographed during the shooting or image acquisition process. Motion blur is mainly divided into two categories: camera motion blur and object motion blur, both of which have a negative impact on image quality. First, camera motion blur is caused by the movement or shaking of the camera during exposure. This blurring effect makes the entire image appear blurred or stretched. Secondly, object motion blur is caused by the movement of the photographed object during exposure. This causes the details in the image to become blurred. The present invention takes these two types of motion blur into consideration to achieve a more accurate motion blur effect. The present invention generates a motion blur kernel matrix and uses a convolution operation to achieve the motion blur effect. In addition, the processed image is also normalized. The generation of the motion blur kernel can be expressed by formula (4): (4); Where D represents the blur kernel size and M represents the affine transformation matrix.

[0024] In digital image processing, we often see bright or dark spots suddenly appearing on the image. This is a common and significant type of noise, namely, salt and pepper noise, also known as impulse noise. This noise is usually caused by sensor failure, data transmission error, or other problems in image acquisition and processing. Compared with Gaussian noise, salt and pepper noise is more extreme, causing some pixel values ​​to become the brightest or darkest, thereby forming obvious black and white spots in the image. In the task of super-resolution of face images, the preservation and enhancement of color information is crucial. Therefore, by introducing salt and pepper noise of color spots, the present invention simulates the complex noise scenarios that face images may face in real scenes, thereby improving the robustness of the super-resolution model of the present invention. Specifically, the present invention independently adds salt and pepper noise to each channel of the face image, controls the introduction probability of pepper noise and salt noise, and ensures that the generated noise presents a moderate random distribution in the image. The density of the introduced salt and pepper noise is a key factor affecting the noise intensity of the generated image. A higher density will make the noise more obvious in the image.

[0025] Mean blur is a classic technique in the field of image processing, which mainly achieves image smoothing by applying a convolution kernel with uniform weights on the image. Specifically, the present invention first creates a convolution kernel with uniform weights, whose weight matrix elements are all 1, to achieve the purpose of uniform distribution. The size of the convolution kernel is manually specified, which determines the degree of blur. After verification, the present invention selects a convolution kernel of size 5×5. After that, the present invention performs a convolution operation on the input image, and adjusts the padding to keep the spatial size unchanged. As shown in formula (5): (5); Where I is the input image, O is the output image, and W is the weight matrix of the convolution kernel, whose size is (m, n). is the pixel value at position (i,j) in the output image.

[0026] Due to the complexity and diversity of degradation conditions in real environments, the single degradation method adopted in previous work is insufficient in simulating real-world degradation. Therefore, the present invention introduces a random degradation method in the face image super-resolution task based on a random shuffle strategy. This strategy aims to better simulate image quality fluctuations in real environments, including noise, blur and other possible interference factors. Specifically, the degradation process of each LR image is random. In order to improve the generalization ability of the degradation effect, each LR image uses a variety of degradation strategies. At the same time, the hyperparameters of each degradation process are not fixed. For example, in Gaussian noise, the present invention sets a random value N for determining the addition of different Gaussian noises to the image. When this random value N (ranging from 0 to 1) is greater than 0.6, color Gaussian noise is selected. When it is less than 0.4, gray Gaussian noise is added. In other cases, multidimensional Gaussian noise is added. Through this random degradation strategy, the generalization ability of the model can be greatly enhanced, and the robustness of the image super-resolution algorithm in actual scenes can be improved.

[0027] For HR images, the present invention uses a random degradation strategy to generate corresponding LR images. These LR images are all generated by variable hyperparameters and are derived from a variety of degradation methods.

[0028] In order to achieve a balance between network operation efficiency and performance, the present invention selects three common convolution blocks as shallow feature extraction modules. Specifically, the input original LR image passes through three convolution blocks with different convolution kernel sizes to extract feature information of different scales. The three convolution blocks are K5N64S2P2, K3N32S2P1 and K3N16S2P1, where K represents the convolution kernel size, N represents the output channel, S represents the step size, and P represents padding. The whole process is shown in the following formula: (6); in, F represents the input original LR image, H, W, C represent the height, width and channel of the image respectively. h 、F m 、F l Represent the features of three different scales respectively. Afterwards, each shallow feature map is activated by a GELU function. The process can be expressed by the following formula (7): (7); Through the shallow feature extraction stage, the present invention obtains three hierarchical features at different scales {F h ,F m ,F l After that, they are sent to the next stage, which is the deep feature extraction stage with a dual-branch structure.

[0029] Different from the networks used in the past for image restoration and super-resolution, the present invention uses a unique dual-branch network structure for deep feature extraction. Specifically, the three levels of feature information extracted from the shallow feature extraction stage are fused twice to be transmitted to the deep feature extraction stage. h Downsample, and F m Perform point-by-point addition fusion; F m Downsample, and F l The fused feature maps are then convolved through the SCConv convolution blocks. Finally, the fused feature maps are obtained. and This process can be expressed as formula (8): (8); In the upstream branch, the present invention uses a multi-head self-attention module (MHSA) to improve the model's ability to understand the correlation between channels. At the same time, it captures the long-range dependencies between different positions, allowing the model to better understand the global structure. This process can be expressed by the following formula (9): (9); A bi-level routing attention mechanism (BRA) is used in the downstream branch.

[0030] F low After the BRA module, the model extracts valuable information. This helps improve the efficiency of global attention and allows the model to focus more on the features of important areas. This process can be expressed by the following formula (10): (10); After the upper and lower branches have extracted the deep feature information respectively, the extracted feature information and The same point-by-point addition and fusion operation as before is performed. The present invention chooses to add the feature information of the two branches element by element, and then fuses them through a 3×3 ordinary convolution. At the same time, the residual connection method is adopted to improve the representation ability and reusability of the features, so that the network can better utilize low-level information, thereby improving the model's perception of multi-scale and multi-level features.

[0031] The whole process can be expressed by the following formula (11): (11); In addition, if Figure 1As shown in Figure 1, the reconstruction module consists of three convolutional layers and two sub-pixel convolutional layers alternating to reconstruct HR face images.

[0032] Experimental verification is carried out on the Helen, SCUT_FBP and PFHQ datasets.

[0033] Peak signal-to-noise ratio (PSNR), structural similarity index (SSIM) and learnable perceptual image patch similarity (LPIPS) are used as evaluation indicators to evaluate the reconstruction effect of the model.

[0034] Through the above specific implementations, the technical solution of the present invention can significantly improve the super-resolution reconstruction effect of face images and has the robustness to handle real complex scenes. Specifically, the present invention has achieved significant technical progress in the following aspects: First, a practical degradation model is used to simulate common image distortion effects in real scenes, including Gaussian noise, Rayleigh noise, motion blur, salt and pepper noise, and mean blur. This makes the training data more diverse and representative, ensuring that the model can show good adaptability and robustness when dealing with low-quality images in the real world.

[0035] Secondly, the dual-branch attention super-resolution network structure designed by the present invention fully exploits the global and local features in the image through the multi-head self-attention mechanism and the dual-layer routing attention mechanism. The multi-head self-attention mechanism can capture the long-distance dependencies of the image, while the dual-layer routing attention mechanism focuses on the extraction and enhancement of key features. The collaborative work of this dual-branch structure significantly improves the details and overall perception of the reconstructed image.

[0036] Furthermore, experimental results show that the present invention performs well on multiple public datasets such as Helen, SCUT_FBP and PFHQ. Under different degradation modes, the model of the present invention can effectively cope with it, showing a high peak signal-to-noise ratio (PSNR), structural similarity index (SSIM) and learnable perceptual image block similarity (LPIPS). This shows that the technical solution of the present invention can not only handle a single type of image degradation, but also has the ability to cope with a variety of complex degradation situations.

[0037] In summary, this paper proposes an effective super-resolution reconstruction method for face images by innovatively combining a practical degradation model and a dual-branch attention super-resolution network. This method not only improves the reconstruction quality and visual effect of the image, but also has good robustness and adaptability, and can be widely used in face image processing and enhancement tasks in actual scenarios.

[0038] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.

[0039] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A method for achieving face super-resolution based on a practical degradation model, It is characterized in that The following steps are involved: Using a practical degradation model to simulate image degradation effects in actual scenes, a simulated image is obtained; Convolution blocks with different convolution kernels are used to extract feature information of different scales of the simulated image and obtain hierarchical features at different scales; A dual-branch network structure is used to perform deep feature extraction on hierarchical features at different scales. The extracted feature information is fused and convolution operation is performed through the SCConv convolution block to obtain the fused feature map and complete the facial image reconstruction.

2. The method for realizing face super-resolution based on a practical degradation model according to claim 1, It is characterized in that The practical degradation model selects different degradation processes with a random strategy, including Gaussian noise, Rayleigh noise, motion blur, salt and pepper noise, and mean blur.

3. The method for realizing face super-resolution based on a practical degradation model according to claim 1, It is characterized in that In the upstream branch of the dual-branch structure, a multi-head attention model is adopted.

4. The method for realizing face super-resolution based on a practical degradation model according to claim 1, It is characterized in that A two-layer routing attention mechanism is adopted in the downstream branch.

Citation Information

Patent Citations

  • Face image super-resolution reconstruction method, system, equipment and medium

    CN115393186A

  • Face image super-resolution reconstruction method and system, electronic equipment and storage medium

    CN116128729A

  • Super-resolution recovery system and method for extremely degraded face image

    CN116258627A

  • Image blind super-resolution reconstruction method for complex degraded scene

    CN116433483A

  • Fabric defect detection method and device based on improved YOLOv5

    CN116740050A