Super-resolution high-definition reconstruction method, system and device for images with different damage

Super-resolution technology that combines a multi-stage random degradation model and a generative adversarial neural network solves the problems of poor image enhancement and poor generalization in the existing technology, and generates clearer super-resolution that is consistent with the characteristics of specific human races. Image, suitable for reconstruction of different damage images.

CN114202460BActive Publication Date: 2024-09-06SHANGHAI AIQI INFO TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111435322.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-29
Publication Date
2024-09-06
Estimated Expiration
2041-11-29

AI Technical Summary

Technical Problem

Existing super-resolution technology cannot effectively handle the face and non-face parts in different damage images, resulting in poor image enhancement effects. Moreover, existing models have poor generalization in real scenes and cannot generate facial features consistent with specific ethnic groups. .

Method used

A multi-stage stochastic degradation model is used to generate training data, combined with a generative adversarial neural network and codec model, face enhancement is performed, a super-resolution network model for peak signal-to-noise ratio is used, and the model is adjusted through ethnic classification to generate a consistent Facial features of certain ethnic groups.

Benefits of technology

It improves the effect of image super-resolution reconstruction. The generated images are clearer, with fewer artifacts and less distortion. It broadens the application scenarios of the model and improves the generalization performance in real scenes. The generated images are more consistent with specific people. facial features.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114202460B
    Figure CN114202460B
Patent Text Reader

Abstract

The present invention provides a method and system for super-resolution high-definition reconstruction of images with different damages, as well as an intelligent device and medium, including: a super-resolution enhancement step: removing damage and super-resolution enhancement of the original image; a face enhancement step: performing face enhancement on the image processed by the super-resolution enhancement step to obtain a reconstructed image. The present invention uses a structure based on a deep neural network to achieve super-resolution magnification and reconstruction of the image while removing noise, blurring, and artifacts, and focuses on providing a face enhancement model based on codec repair and generative adversarial networks for the face in the image, so as to further improve the quality of the face in the image.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of digital image processing, and in particular to a super-resolution high-definition reconstruction method and system for images with different damages. Background Art

[0002] Super-resolution technology refers to reconstructing a corresponding high-resolution image from an observed low-resolution image. There are mainly two types of technical solutions in the prior art. The first type of technical solution does not take into account the particularity of face recognition. For example, the document Real-ESRGAN: Training Real-World Blind Super-Resolution with Pure Synthetic Data will introduce obvious distortion in the problems of face enhancement and face super-resolution. It only targets the super-resolution problem and cannot enhance the image at the original resolution. The second type of technical solution cannot be applied to the non-face part of the image. For example, the document Towards Real-World Blind Face Restoration with Generative Facial Prior only targets face enhancement and cannot process the non-face part of the image.

[0003] In addition, the patent document with application number 202011207247.2 discloses a progressive high-magnification face super-resolution system and method with multi-order feature cyclic enhancement: a low-resolution face image (A), a primary feature extraction and upsampling module (10), a multi-order feature cyclic enhancement and upsampling module (20), a residual face generation module (30), an adder module (50) and a high-resolution face image (B) interact in sequence; a low-resolution face image (A), an initial face super-resolution module (40) and an adder module (50) interact in sequence. Patent document with application number 202010204393.3 adopts conditional enhancement generative adversarial network for face sketch synthesis; the conditional enhancement generative adversarial network consists of three interacting sub-networks; the three sub-networks are a cross-modal conversion network for basic face sketch synthesis, a unimodal optimization network for improving face sketch synthesis, and a perceptual loss network for enhancing the style of face sketches; the conditional enhancement generative adversarial network aims to inherit more visual information about the basic face sketch from the first-stage sub-network and the original photo / image, and explore more effective visual content to solve the problem of the correlation between the detailed visual expression and the image sketch lost in the process of high-resolution face sketch generation. However, the final effect after the super-resolution increase and face enhancement still needs to be improved. Summary of the invention

[0004] In view of the defects in the prior art, the object of the present invention is to provide a super-resolution high-definition reconstruction method and system for images with different damages.

[0005] A super-resolution high-definition reconstruction method for images with different damages provided by the present invention comprises:

[0006] Super-resolution enhancement step: damage removal and super-resolution enhancement of the original image;

[0007] Face enhancement step: perform face enhancement on the image processed by the super-resolution enhancement step to obtain a reconstructed image.

[0008] Preferably, in the super-resolution enhancement step:

[0009] Establish a super-resolution network model and train it using a peak signal-to-noise ratio approach. Train the corresponding neural network models for original resolution enhancement and multiple multiple super-resolution requirements.

[0010] Establishing a generative adversarial neural network model based on a super-resolution network model, wherein a generator of the generative adversarial neural network uses the established super-resolution network model and is initialized using model parameters of the trained super-resolution network model;

[0011] The discriminator of the generative adversarial neural network uses an encoder-decoder structure and uses a spectral normalization method;

[0012] The training process of the generative adversarial neural network adopts L1 loss function, perceptual loss function and adversarial loss function to obtain a universal enhanced super-resolution model suitable for a variety of different needs, wherein the universal enhanced super-resolution model includes a trained super-resolution network and a trained generative adversarial neural network;

[0013] The universal enhanced super-resolution model is used to remove damage and perform super-resolution enhancement on the original image.

[0014] Preferably, in the face enhancement step:

[0015] Pre-training a face generator, using a face image dataset to pre-train a face generator that contains prior knowledge of faces; the face generator generates a corresponding high-dimensional face image based on the input low-dimensional high-level semantic features, wherein the low-dimensional high-level semantic features are obtained by a face encoder, and the low-dimensional high-level semantic features only contain information related to face enhancement;

[0016] Establish a codec model to perform preliminary damage removal and restoration on the input low-quality face image, and extract a low-dimensional high-level semantic feature corresponding to the input image through the encoder; extract multi-scale detail features corresponding to the input image through the decoder; the codec has a damage removal function, so the extracted high-level semantic features and multi-scale detail features are based on the features after damage removal;

[0017] The low-dimensional high-level semantic features extracted by the encoder are fed into a pre-trained face generator to generate multi-scale features containing face priors corresponding to the low-dimensional high-level semantic features;

[0018] The multi-scale detail features extracted by the encoder and the multi-scale detail features containing face prior extracted by the encoder are fused and enhanced.

[0019] Preferably, the damage functions used in the face generator training process include: reconstruction loss, adversarial loss, identity feature loss, and face local organ loss;

[0020] The reconstruction loss is calculated once for each decoded resolution and the image with the corresponding resolution of the real high-quality image. The reconstruction loss function formula is as follows:

[0021]

[0022] L rec represents the reconstruction loss;

[0023] λ L1 represents weight;

[0024] represents the generated face enhanced image;

[0025] y represents the real high-quality image;

[0026] λ per represents weight;

[0027] VGG-19 features representing the generated face enhanced image;

[0028] φ(y) represents the VGG-19 features of real high-quality images;

[0029] ||·||1 means calculating L1 loss;

[0030] Item 1 Calculate the L1 loss of the generated image and the real high-quality image, the second term Calculate the L1 perceptual loss between the generated image and the real high-quality image in the VGG-19 feature domain;

[0031] The adversarial loss function formula is as follows:

[0032]

[0033] L adv It means fighting against loss;

[0034] λ adv represents the weight of adversarial loss;

[0035] represents the mathematical expectation, where x obeys p data (x) distribution;

[0036] x represents the face image to be restored;

[0037] p data (x) represents the data distribution of the face image to be restored;

[0038] D(·) denotes the discriminator;

[0039] G(·) represents the face enhancement model;

[0040] The identity feature loss formula is as follows:

[0041]

[0042] L id Indicates loss of identity features;

[0043] λ id The weight representing the loss of identity features;

[0044] η(·) represents the pre-trained face recognition feature extractor;

[0045] Calculate the cosine similarity of face recognition features instead of L1 loss;

[0046] The formula for the loss of local organs of the face is as follows:

[0047]

[0048] L comp Indicates partial organ loss on the face;

[0049] ROI stands for region of interest, including left eye, right eye, and mouth;

[0050] λ local Represents the weight of the local organ against the loss

[0051] represents mathematical expectation;

[0052] D ROI Represents the discriminator for the ROI area;

[0053] Represents the ROI area in the generated face enhanced image;

[0054] λ fs represents the weight of style matching loss;

[0055] Gram(·) means calculating the gram matrix;

[0056] ψ(·) represents D ROI Extracted multi-scale features;

[0057] The first term in the formula Calculate the adversarial loss of local facial organs. For each area, train a discriminator D to calculate the adversarial loss.

[0058] The second term in the formula Calculate the style matching loss of local facial organs, extract multi-scale features, and calculate the Gram matrix;

[0059] In the face enhancement step:

[0060] Using more image data of the corresponding race, continuing training on the basis of the original face enhancement model, generating a face enhancement model of the corresponding race, so that the result of the face enhancement model of the corresponding race has more facial features of the corresponding race than the result of the original face enhancement model;

[0061] Among them, the original face enhancement model is adjusted:

[0062] The facial data is classified into three categories: white, yellow, and black through the racial classification algorithm;

[0063] Use more data images of the target ethnic group, continue training on the basis of the original face enhancement model, adjust the face enhancement model, and obtain a face enhancement model suitable for the corresponding ethnic group;

[0064] In application scenarios where the ethnicity is known, a face enhancement model of the corresponding ethnicity is used to make the result have more facial features of the corresponding ethnicity.

[0065] Preferably, it includes:

[0066] Training data generation step: Use a multi-stage random degradation model to generate low-resolution data images with various types of damage as training data for the enhanced super-resolution model;

[0067] In the training data generation step:

[0068] The number of stages in the multi-stage random degradation model is random, which is used to simulate the random number of damage processes in real life scenarios;

[0069] The basic degradation operations in each stage of the multi-stage random degradation model are:

[0070] Add random blur: randomly select a blur kernel according to the set probability, and randomly select the size of the blur kernel to blur the image;

[0071] Random zoom: randomly select a zoom value to zoom the image;

[0072] Add random noise: randomly generate a noise intensity from multiple types of noise and superimpose it on the image;

[0073] Add random JPEG damage: randomly add a certain degree of JPEG damage to the image;

[0074] Through the sinc filter: simulate artifacts;

[0075] Degrade the color of low-quality images with a set probability, randomly select parameters within a range, and adjust the contrast, saturation, hue, and brightness of the image respectively;

[0076] Convert low-quality images to black and white images with a set probability;

[0077] Among them, the basic color degradation operation is eliminated when making the data set without color enhancement; in the subsequent training process, the data set with color enhancement is used to train the model with color enhancement, and the data set without color enhancement is used to train the model without color enhancement.

[0078] According to the present invention, a super-resolution high-definition reconstruction system for images with different damages is provided, comprising:

[0079] Super-resolution enhancement module: removes damage and performs super-resolution enhancement on the original image;

[0080] Face enhancement module: performs face enhancement on the image processed by the super-resolution enhancement module to obtain a reconstructed image.

[0081] Preferably, in the super-resolution enhancement module:

[0082] Establish a super-resolution network model and train it using a peak signal-to-noise ratio approach. Train the corresponding neural network models for original resolution enhancement and multiple multiple super-resolution requirements.

[0083] Establishing a generative adversarial neural network model based on a super-resolution network model, wherein a generator of the generative adversarial neural network uses the established super-resolution network model and is initialized using model parameters of the trained super-resolution network model;

[0084] The discriminator of the generative adversarial neural network uses an encoder-decoder structure and uses a spectral normalization method;

[0085] The training process of the generative adversarial neural network adopts L1 loss function, perceptual loss function and adversarial loss function to obtain a universal enhanced super-resolution model suitable for a variety of different needs, wherein the universal enhanced super-resolution model includes a trained super-resolution network and a trained generative adversarial neural network;

[0086] The universal enhanced super-resolution model is used to remove damage and perform super-resolution enhancement on the original image.

[0087] Preferably, in the face enhancement module:

[0088] Pre-training a face generator, using a face image dataset to pre-train a face generator that contains prior knowledge of faces; the face generator generates a corresponding high-dimensional face image based on the input low-dimensional high-level semantic features, wherein the low-dimensional high-level semantic features are obtained by a face encoder, and the low-dimensional high-level semantic features only contain information related to face enhancement;

[0089] Establish a codec model to perform preliminary damage removal and restoration on the input low-quality face image, and extract a low-dimensional high-level semantic feature corresponding to the input image through the encoder; extract multi-scale detail features corresponding to the input image through the decoder; the codec has a damage removal function, so the extracted high-level semantic features and multi-scale detail features are based on the features after damage removal;

[0090] The low-dimensional high-level semantic features extracted by the encoder are fed into a pre-trained face generator to generate multi-scale features containing face priors corresponding to the low-dimensional high-level semantic features;

[0091] The multi-scale detail features extracted by the encoder and the multi-scale detail features containing face prior extracted by the encoder are fused and enhanced.

[0092] Preferably, the damage functions used in the face generator training process include: reconstruction loss, adversarial loss, identity feature loss, and face local organ loss;

[0093] The reconstruction loss is calculated once for each decoded resolution and the image with the corresponding resolution of the real high-quality image. The reconstruction loss function formula is as follows:

[0094]

[0095] L rec represents the reconstruction loss;

[0096] λ L1 represents weight;

[0097] represents the generated face enhanced image;

[0098] y represents the real high-quality image;

[0099] λ per represents weight;

[0100] VGG-19 features representing the generated face enhanced image;

[0101] φ(y) represents the VGG-19 features of real high-quality images;

[0102] ||·||1 means calculating L1 loss;

[0103] Item 1 Calculate the L1 loss of the generated image and the real high-quality image, the second term Calculate the L1 perceptual loss between the generated image and the real high-quality image in the VGG-19 feature domain;

[0104] The adversarial loss function formula is as follows:

[0105]

[0106] L adv It means fighting against loss;

[0107] λ adv represents the weight of adversarial loss;

[0108] represents the mathematical expectation, where x obeys p data (x) distribution;

[0109] x represents the face image to be restored;

[0110] p data (x) represents the data distribution of the face image to be restored;

[0111] D(·) denotes the discriminator;

[0112] G(·) represents the face enhancement model;

[0113] The identity feature loss formula is as follows:

[0114]

[0115] L id Indicates loss of identity features;

[0116] λ id The weight representing the loss of identity features;

[0117] η(·) represents the pre-trained face recognition feature extractor;

[0118] Calculate the cosine similarity of face recognition features instead of L1 loss;

[0119] The formula for the loss of local organs of the face is as follows:

[0120]

[0121] L comp Indicates partial organ loss on the face;

[0122] ROI stands for region of interest, including left eye, right eye, and mouth;

[0123] λ local Represents the weight of the local organ against the loss

[0124] represents mathematical expectation;

[0125] D ROI Represents the discriminator for the ROI area;

[0126] Represents the ROI area in the generated face enhanced image;

[0127] λ fs represents the weight of style matching loss;

[0128] Gram(·) means calculating the gram matrix;

[0129] ψ(·) represents D ROI Extracted multi-scale features;

[0130] The first term in the formula Calculate the adversarial loss of local facial organs. For each area, train a discriminator D to calculate the adversarial loss.

[0131] The second term in the formula Calculate the style matching loss of local facial organs, extract multi-scale features, and calculate the Gram matrix;

[0132] In the face enhancement module:

[0133] Using more image data of the corresponding race, continuing training on the basis of the original face enhancement model, generating a face enhancement model of the corresponding race, so that the result of the face enhancement model of the corresponding race has more facial features of the corresponding race than the result of the original face enhancement model;

[0134] Among them, the original face enhancement model is adjusted:

[0135] The facial data is classified into three categories: white, yellow, and black through the racial classification algorithm;

[0136] Use more data images of the target ethnic group, continue training on the basis of the original face enhancement model, adjust the face enhancement model, and obtain a face enhancement model suitable for the corresponding ethnic group;

[0137] In application scenarios where the ethnicity is known, a face enhancement model of the corresponding ethnicity is used to make the result have more facial features of the corresponding ethnicity.

[0138] Preferably, it includes:

[0139] Training data generation module: uses a multi-stage random degradation model to generate low-resolution data images with various types of damage as training data for the enhanced super-resolution model;

[0140] In the training data generation step:

[0141] The number of stages in the multi-stage random degradation model is random, which is used to simulate the random number of damage processes in real life scenarios;

[0142] The basic degradation operations in each stage of the multi-stage random degradation model are:

[0143] Add random blur: randomly select a blur kernel according to the set probability, and randomly select the size of the blur kernel to blur the image;

[0144] Random zoom: randomly select a zoom value to zoom the image;

[0145] Add random noise: randomly generate a noise intensity from multiple types of noise and superimpose it on the image;

[0146] Add random JPEG damage: randomly add a certain degree of JPEG damage to the image;

[0147] Through the sinc filter: simulate artifacts;

[0148] Degrade the color of low-quality images with a set probability, randomly select parameters within a range, and adjust the contrast, saturation, hue, and brightness of the image respectively;

[0149] Convert low-quality images to black and white images with a set probability;

[0150] Among them, the basic color degradation operation is eliminated when making the data set without color enhancement; in the subsequent training process, the data set with color enhancement is used to train the model with color enhancement, and the data set without color enhancement is used to train the model without color enhancement.

[0151] According to a computer-readable storage medium storing a computer program provided by the present invention, when the computer program is executed by a processor, the steps of the method for super-resolution high-definition reconstruction of images with different damages are implemented.

[0152] An intelligent device provided according to the present invention includes the super-resolution high-definition reconstruction system for images with different damages, or includes the computer-readable storage medium storing a computer program.

[0153] Compared with the prior art, the present invention has the following beneficial effects:

[0154] 1. The present invention adopts a multi-stage random face degradation model to synthesize a low-quality face image dataset that is more consistent with different damages in real scenes, solves the problem of poor generalization of the model in real scenes, improves the effect of face enhancement, generates clearer, less artifact-free, and less distorted face enhanced images, and broadens the scenarios in which the face enhancement model can be used.

[0155] 2. The present invention solves the problem of other ethnic features appearing in the enhanced face by fine-tuning the face enhancement model using a specific ethnic data set, which is conducive to generating features that are more in line with a specific ethnic group and obtaining better face enhancement effects in application scenarios with known ethnic groups.

[0156] 3. The present invention adopts a super-resolution high-definition image reconstruction architecture based on user interaction to solve the problem that the general enhancement model has poor face enhancement effect while the face enhancement model has poor background enhancement effect. The tasks of face enhancement, background enhancement and image super-resolution reconstruction are completed together, and a user interaction interface is designed. According to user needs, one or two of the tasks can be implemented separately. BRIEF DESCRIPTION OF THE DRAWINGS

[0157] Other features, objects and advantages of the present invention will become more apparent from the detailed description of non-limiting embodiments made with reference to the following drawings:

[0158] Figure 1 The overall flow chart for super-resolution HD image reconstruction.

[0159] Figure 2 Schematic diagram of the principle of the multi-stage random degradation model with color enhancement.

[0160] Figure 3 Schematic diagram of the face enhancement model principle.

[0161] Figure 4 A set of comparison pictures before and after reconstruction.

[0162] Figure 5 This is another set of comparison pictures before and after reconstruction. DETAILED DESCRIPTION

[0163] The present invention is described in detail below in conjunction with specific embodiments. The following embodiments will help those skilled in the art to further understand the present invention, but are not intended to limit the present invention in any form. It should be noted that, for those of ordinary skill in the art, several changes and improvements can also be made without departing from the concept of the present invention. These all belong to the protection scope of the present invention.

[0164] The present invention provides a method for super-resolution high-definition reconstruction of images with different damages. It uses a structure based on a deep neural network to achieve super-resolution magnification and reconstruction of images while removing noise, blur and artifacts. It also provides a face enhancement model based on codec repair and generative adversarial networks for faces in images to further improve the quality of faces in images. Among them, the present invention uses a multi-stage random degradation model to synthesize training data to simulate damaged images that are closer to real-life scenes, thereby improving the effect of the model and its generalization performance in real scenes, and is conducive to dealing with images with various damages to generate clearer, less distorted and higher quality super-resolution high-definition images. Figure 4 , Figure 5 shown.

[0165] like Figure 1 , Figure 2 , Figure 3 As shown, a super-resolution high-definition reconstruction method for images with different damages provided by the present invention comprises:

[0166] Step 1: Training data generation step. Generate paired low-quality training data from a high-quality data set consisting of high-resolution data from multiple scenes. The low-resolution data in the low-quality training data consists of two parts: one is the classic low-resolution data generated by various downsampling convolution kernels, and the other is low-resolution data with various types of damage generated by a multi-stage random degradation model. These two parts of data are distributed in a certain proportion, simulating higher-quality images in real life and lower-quality images with various types of damage.

[0167] In step 1, a multi-stage random degradation model is designed to generate low-resolution data images with various types of damage:

[0168] 1.1: Considering that the damage in low-quality damaged images in real scenes is usually complex, it is likely to come from a complex combination of different degradation processes, such as sensor limitations, image editing, image compression, image fading, etc.

[0169] 1.2: Therefore, a multi-stage random degradation model is used to simulate and generate images containing various types of damage in real scenes, which is conducive to training an enhanced super-resolution model with better effects in real scenes.

[0170] 1.3: The number of stages in the multi-stage random degradation model is random, which is used to simulate the random number of damage processes in real life scenarios.

[0171] 1.4: The basic degradation operations in each stage of the multi-stage random degradation model are: blurring, scaling, adding noise, JPEG damage, passing through sinc filter and basic color degradation operations. Basic color degradation operations include saturation adjustment, contrast adjustment, chroma adjustment, brightness adjustment, and conversion to black and white images:

[0172] 1.4.1: Add random blur: randomly select a blur kernel with a certain probability, and randomly select the size of the blur kernel to blur the image.

[0173] 1.4.2: Random scaling: Randomly select a scaling value and scale the image.

[0174] 1.4.3: Add random noise: Randomly generate a noise intensity from multiple types of noise and superimpose it on the image.

[0175] 1.4.4: Add random JPEG damage: Add a random degree of JPEG damage to the image.

[0176] 1.4.5: Through sinc filter: simulation artifacts.

[0177] 1.4.6: Perform color degradation on low-quality images with a certain probability, randomly select parameters within a range, and adjust the contrast, saturation, hue, and brightness of the image respectively.

[0178] 1.4.7: Convert low-quality images to black and white with a certain probability.

[0179] Among them, 1.4.6 and 1.4.7 are basic color degradation operations.

[0180] 1.5: In each stage, the probability of each basic degradation operation occurring is random and the order of occurrence is random.

[0181] 1.6: In particular, in order to meet the personalized needs of users for color enhancement, the data set with color enhancement includes the complete basic degradation operations. The basic color degradation operations are removed when the data set without color enhancement is produced. In the subsequent training process, the data set with color enhancement is used to train the model with color enhancement, and the data set without color enhancement is used to train the model without color enhancement.

[0182] Step 2: Super-resolution enhancement step: remove damage and perform super-resolution enhancement on the original image. Train a general enhanced super-resolution model to remove damage and perform super-resolution enhancement on the entire image. In step 2:

[0183] 2.1: Establish a super-resolution network model and use a residual network and a densely connected structure to improve the quality of the super-resolution result image.

[0184] 2.2: Use the peak signal-to-noise ratio approach to train the super-resolution network model. For the four different requirements of original resolution enhancement, 2x super-resolution, 3x super-resolution, and 4x super-resolution, train the corresponding neural network models respectively.

[0185] 2.3: Furthermore, a generative adversarial neural network model based on the super-resolution network model is established to improve the visual effect of the results of the general enhanced super-resolution model and make the generated results more realistic.

[0186] 2.4: The generator of the generative adversarial neural network uses the super-resolution network model established in step 2.1 and is initialized using the model parameters of the super-resolution network model trained in 2.2.

[0187] 2.5: The discriminator of the generative adversarial neural network uses an encoder-decoder structure and uses spectral normalization to make the training process more stable.

[0188] 2.6: The training process of the generative adversarial neural network adopts L1 loss function, perceptual loss function and adversarial loss function, and finally obtains 4 general enhanced super-resolution models suitable for 4 different needs, where the general enhanced super-resolution model includes the trained super-resolution network and the trained generative adversarial neural network.

[0189] Step 3: Face enhancement step: Perform face enhancement on the image processed by the super-resolution enhancement step to obtain a reconstructed image. Train the face enhancement model, and further enhance the face part in the image by combining the face prior features. In step 3:

[0190] 3.1: Pre-training face generator, using face image dataset to pre-train a face generator containing a lot of face prior knowledge. The face generator can generate corresponding high-dimensional face images according to the input low-dimensional high-level semantic features, where the low-dimensional high-level semantic features are obtained by the face encoder, and the low-dimensional high-level semantic features only contain information related to face enhancement.

[0191] 3.2: Establish an encoder-decoder model to perform preliminary damage removal and restoration on the input low-quality face image. The encoder extracts a low-dimensional high-level semantic feature corresponding to the input image; the decoder extracts multi-scale detail features corresponding to the input image. Among them, the high-level semantic feature is also called high-level semantic feature.

[0192] 3.3: In particular, the codec in step 3.2 has a damage removal function, so the extracted high-level semantic features and multi-scale detail features are based on the features after damage removal.

[0193] 3.4: The low-dimensional high-level semantic features extracted in step 3.3 are fed into the pre-trained face generator in step 3.1 to generate multi-scale features containing face priors corresponding to the low-dimensional high-level semantic features.

[0194] 3.5: The multi-scale detail features extracted in step 3.2 and the multi-scale features containing face prior extracted in step 3.3 are fused and enhanced to maintain a balance between face prior and input image details. While fully preserving the face details of the original image, the effect of face restoration and enhancement is achieved.

[0195] 3.6: The damage functions used in the training process include: reconstruction loss, adversarial loss, identity feature loss, and local facial organ loss.

[0196] 3.6.1: In order to improve the restoration effect of the codec model on low-quality images, the reconstruction loss is calculated once for each decoded resolution and the image with the corresponding resolution of the real high-quality image. The reconstruction loss function formula is as follows:

[0197]

[0198] L rec represents the reconstruction loss;

[0199] λ L1 represents weight;

[0200] represents the generated face enhanced image;

[0201] y represents the real high-quality image;

[0202] λ per represents weight;

[0203] VGG-19 features representing the generated face enhanced image;

[0204] φ(y) represents the VGG-19 features of real high-quality images;

[0205] ||·||1 means calculating L1 loss;

[0206] Item 1 Calculate the L1 loss of the generated image and the real high-quality image, the second term Calculate the L1 perceptual loss between generated images and real high-quality images on the VGG-19 feature domain.

[0207] 3.6.2: In order to generate natural pictures and more realistic details, adversarial loss is used. The adversarial loss function formula is as follows:

[0208]

[0209] L adv It means fighting against loss;

[0210] λ adv represents the weight of adversarial loss;

[0211] represents the mathematical expectation, where x obeys p data (x) distribution;

[0212] x represents the face image to be restored;

[0213] p data (x) represents the data distribution of the face image to be restored;

[0214] D(·) denotes the discriminator;

[0215] G(·) represents the face enhancement model;

[0216] 3.6.3: In order to ensure that the identity of the person remains unchanged after face enhancement, identity feature loss is used. The identity feature loss formula is as follows:

[0217]

[0218] L id Indicates loss of identity features;

[0219] λ id The weight representing the loss of identity features;

[0220] η(·) represents the pre-trained face recognition feature extractor;

[0221] In particular, the cosine similarity of face recognition features is calculated instead of L1 loss to avoid the influence of feature amplitude on similarity calculation.

[0222] 3.6.4: In order to generate more realistic local facial organs, the local facial organ loss is used. The formula for the local facial organ loss is as follows:

[0223]

[0224] L comp Indicates partial organ loss on the face;

[0225] ROI stands for region of interest, including left eye, right eye, and mouth;

[0226] λ local Represents the weight of the local organ against the loss

[0227] represents mathematical expectation;

[0228] D ROI Represents the discriminator for the ROI area;

[0229] Represents the ROI area in the generated face enhanced image;

[0230] λ fs represents the weight of style matching loss;

[0231] Gram(·) means calculating the gram matrix;

[0232] ψ(·) represents D ROI Extracted multi-scale features;

[0233] The first term in the formula Calculate the adversarial loss of local facial organs. For each area, train a discriminator D to calculate the adversarial loss.

[0234] The second term in the formula Calculate the style matching loss of local facial organs, extract multi-scale features, and calculate the Gram matrix.

[0235] 3.7: Fine-tune the face enhancement model according to the ethnic needs of the actual application scenario. Use more image data of the corresponding ethnic group, continue training on the basis of the original face enhancement model, and generate a face enhancement model of the corresponding ethnic group, so that the face enhancement model has more facial features of the corresponding ethnic group.

[0236] Among them, the face enhancement model is fine-tuned according to the ethnic needs of the actual application scenario:

[0237] 3.7.1: Classify the facial data through the race classification algorithm and divide the facial data into three categories: white, yellow and black.

[0238] 3.7.2: Use more data images of the target race, continue training based on the original face enhancement model, fine-tune the face enhancement model, and obtain a face enhancement model suitable for the corresponding race.

[0239] 3.7.3: In particular, in application scenarios where the ethnicity is known, using a face enhancement model of the corresponding ethnicity can achieve better generation effects and make the result have more facial features of the corresponding ethnicity.

[0240] 4. Interaction. In order to meet different restoration and application requirements, a user interaction interface is set up, allowing users to choose whether to perform general enhancement, whether to perform super-resolution and the super-resolution multiple, whether to perform face enhancement, and whether face enhancement requires color enhancement. Then, super-resolution high-definition reconstruction of the input image is completed according to user needs.

[0241] Among them, super-resolution high-definition image reconstruction based on user interaction is specifically as follows:

[0242] 4.1 Design interactive parameters, including: whether to use the general enhanced super-resolution model, the super-resolution multiple, whether to use the face enhancement model, and whether to use color enhancement.

[0243] 4.2 Determine whether to use the general enhanced super-resolution model. If the general enhanced super-resolution model is used, select the corresponding general enhanced super-resolution model in step 2 according to the super-resolution multiple to improve the overall quality of the input image to achieve the purpose of denoising, deblurring, removing artifacts, clarifying, and super-resolution.

[0244] 4.3 Determine whether to use the face enhancement model. If the face enhancement model is used, then in this step, the faces in the input image are repaired and enhanced to achieve the purpose of denoising, deblurring, removing artifacts, and clarifying the faces in the input image. This process can usually achieve better face enhancement effects than general background enhancement.

[0245] 4.3.1: Face detection: Perform face detection on the input image, capture the face part in the input image, and record the position of the face in the input image.

[0246] 4.3.2: Face correction: Perform face correction on the captured face according to the five landmarks of the face.

[0247] 4.3.3: Use the face enhancement model to enhance the corrected face.

[0248] 4.4: Image fusion. If a face enhancement model is used, in this step, the enhanced face is fused with the input image or the input image after enhanced super-resolution, depending on whether the general enhanced super-resolution model is used.

[0249] 4.4.1: Restore the enhanced face in step 3.3.3 to its pre-correction state

[0250] 4.4.2: Determine whether the general enhanced super-resolution model has been used. If the general enhanced super-resolution model has not been used, paste the face restored in step 4.4.1 back to the original input image according to the face position recorded in step 4.3.1. If the general enhanced super-resolution model has been used, enlarge the face according to the corresponding super-resolution multiple, recalculate the super-resolution face position according to the face position recorded in step 4.3.1, and then paste the enlarged face back to the enhanced super-resolution image.

[0251] 4.4.3 Perform Gaussian blur on the fused edge to make the face fusion more natural.

[0252] The present invention also provides a super-resolution high-definition reconstruction system for images with different damage, which can be implemented by executing the step flow of a super-resolution high-definition reconstruction method for images with different damage. Those skilled in the art may understand the super-resolution high-definition reconstruction method for images with different damage as a preferred implementation method of the super-resolution high-definition reconstruction system for images with different damage.

[0253] According to the present invention, a super-resolution high-definition reconstruction system for images with different damages is provided, comprising:

[0254] Super-resolution enhancement module: removes damage and performs super-resolution enhancement on the original image;

[0255] Face enhancement module: performs face enhancement on the image processed by the super-resolution enhancement module to obtain a reconstructed image.

[0256] Preferably, in the super-resolution enhancement module:

[0257] Establish a super-resolution network model and train it using a peak signal-to-noise ratio approach. Train the corresponding neural network models for original resolution enhancement and multiple multiple super-resolution requirements.

[0258] Establishing a generative adversarial neural network model based on a super-resolution network model, wherein a generator of the generative adversarial neural network uses the established super-resolution network model and is initialized using model parameters of the trained super-resolution network model;

[0259] The discriminator of the generative adversarial neural network uses an encoder-decoder structure and uses a spectral normalization method;

[0260] The training process of the generative adversarial neural network adopts L1 loss function, perceptual loss function and adversarial loss function to obtain a universal enhanced super-resolution model suitable for a variety of different needs, wherein the universal enhanced super-resolution model includes a trained super-resolution network and a trained generative adversarial neural network;

[0261] The universal enhanced super-resolution model is used to remove damage and perform super-resolution enhancement on the original image.

[0262] Preferably, in the face enhancement module:

[0263] Pre-training a face generator, using a face image dataset to pre-train a face generator that contains prior knowledge of faces; the face generator generates a corresponding high-dimensional face image based on the input low-dimensional high-level semantic features, wherein the low-dimensional high-level semantic features are obtained by a face encoder, and the low-dimensional high-level semantic features only contain information related to face enhancement;

[0264] Establish a codec model to perform preliminary damage removal and restoration on the input low-quality face image, and extract a low-dimensional high-level semantic feature corresponding to the input image through the encoder; extract multi-scale detail features corresponding to the input image through the decoder; the codec has a damage removal function, so the extracted high-level semantic features and multi-scale detail features are based on the features after damage removal;

[0265] The low-dimensional high-level semantic features extracted by the encoder are fed into a pre-trained face generator to generate multi-scale features containing face priors corresponding to the low-dimensional high-level semantic features;

[0266] The multi-scale detail features extracted by the encoder and the multi-scale detail features containing face prior extracted by the encoder are fused and enhanced.

[0267] Preferably, the damage functions used in the face generator training process include: reconstruction loss, adversarial loss, identity feature loss, and face local organ loss;

[0268] The reconstruction loss is calculated once for each decoded resolution and the image with the corresponding resolution of the real high-quality image. The reconstruction loss function formula is as follows:

[0269]

[0270] L rec represents the reconstruction loss;

[0271] λ L1 represents weight;

[0272] represents the generated face enhanced image;

[0273] y represents the real high-quality image;

[0274] λ per represents weight;

[0275] VGG-19 features representing the generated face enhanced image;

[0276] φ(y) represents the VGG-19 features of real high-quality images;

[0277] ||·||1 means calculating L1 loss;

[0278] Item 1 Calculate the L1 loss of the generated image and the real high-quality image, the second term Calculate the L1 perceptual loss between the generated image and the real high-quality image in the VGG-19 feature domain;

[0279] The adversarial loss function formula is as follows:

[0280]

[0281] L adv It means fighting against loss;

[0282] λ adv represents the weight of adversarial loss;

[0283] represents the mathematical expectation, where x obeys p data (x) distribution;

[0284] x represents the face image to be restored;

[0285] p data (x) represents the data distribution of the face image to be restored;

[0286] D(·) denotes the discriminator;

[0287] G(·) represents the face enhancement model;

[0288] The identity feature loss formula is as follows:

[0289]

[0290] L id Indicates loss of identity features;

[0291] λ id The weight representing the loss of identity features;

[0292] η(·) represents the pre-trained face recognition feature extractor;

[0293] Calculate the cosine similarity of face recognition features instead of L1 loss;

[0294] The formula for the loss of local organs of the face is as follows:

[0295]

[0296] L comp Indicates partial organ loss on the face;

[0297] ROI stands for region of interest, including left eye, right eye, and mouth;

[0298] λ local Represents the weight of the local organ against the loss

[0299] represents mathematical expectation;

[0300] D ROI Represents the discriminator for the ROI area;

[0301] Represents the ROI area in the generated face enhanced image;

[0302] λ fs represents the weight of style matching loss;

[0303] Gram(·) means calculating the gram matrix;

[0304] ψ(·) represents D ROI Extracted multi-scale features;

[0305] The first term in the formula Calculate the adversarial loss of local facial organs. For each area, train a discriminator D to calculate the adversarial loss.

[0306] The second term in the formula Calculate the style matching loss of local facial organs, extract multi-scale features, and calculate the Gram matrix;

[0307] In the face enhancement module:

[0308] Using more image data of the corresponding race, continuing training on the basis of the original face enhancement model, generating a face enhancement model of the corresponding race, so that the result of the face enhancement model of the corresponding race has more facial features of the corresponding race than the result of the original face enhancement model;

[0309] Among them, the original face enhancement model is adjusted:

[0310] The facial data is classified into three categories: white, yellow, and black through the racial classification algorithm;

[0311] Use more data images of the target ethnic group, continue training on the basis of the original face enhancement model, adjust the face enhancement model, and obtain a face enhancement model suitable for the corresponding ethnic group;

[0312] In application scenarios where the ethnicity is known, a face enhancement model of the corresponding ethnicity is used to make the result have more facial features of the corresponding ethnicity.

[0313] Preferably, it also includes:

[0314] Training data generation module: uses a multi-stage random degradation model to generate low-resolution data images with various types of damage as training data for the enhanced super-resolution model;

[0315] In the training data generation step:

[0316] The number of stages in the multi-stage random degradation model is random, which is used to simulate the random number of damage processes in real life scenarios;

[0317] The basic degradation operations in each stage of the multi-stage random degradation model are:

[0318] Add random blur: randomly select a blur kernel according to the set probability, and randomly select the size of the blur kernel to blur the image;

[0319] Random zoom: randomly select a zoom value to zoom the image;

[0320] Add random noise: randomly generate a noise intensity from multiple types of noise and superimpose it on the image;

[0321] Add random JPEG damage: randomly add a certain degree of JPEG damage to the image;

[0322] Through the sinc filter: simulate artifacts;

[0323] Degrade the color of low-quality images with a set probability, randomly select parameters within a range, and adjust the contrast, saturation, hue, and brightness of the image respectively;

[0324] Convert low-quality images to black and white images with a set probability;

[0325] Among them, the basic color degradation operation is eliminated when making the data set without color enhancement; in the subsequent training process, the data set with color enhancement is used to train the model with color enhancement, and the data set without color enhancement is used to train the model without color enhancement.

[0326] Those skilled in the art know that, in addition to implementing the system, device and its various modules provided by the present invention in a purely computer-readable program code, it is entirely possible to implement the same program in the form of logic gates, switches, application-specific integrated circuits, programmable logic controllers and embedded microcontrollers by logically programming the method steps. Therefore, the system, device and its various modules provided by the present invention can be considered as a hardware component, and the modules included therein for implementing various programs can also be considered as structures within the hardware component; the modules for implementing various functions can also be considered as both software programs for implementing the method and structures within the hardware component.

[0327] According to a computer-readable storage medium storing a computer program provided by the present invention, when the computer program is executed by a processor, the steps of the method for super-resolution high-definition reconstruction of images with different damages are implemented.

[0328] According to the present invention, a smart device includes the super-resolution high-definition reconstruction system for different damaged images, or includes the computer-readable storage medium storing the computer program. The smart device can be a smart phone, a tablet computer, a smart watch, VR glasses, or AR glasses.

[0329] The above describes the specific embodiments of the present invention. It should be understood that the present invention is not limited to the above specific embodiments, and those skilled in the art can make various changes or modifications within the scope of the claims, which does not affect the essence of the present invention. In the absence of conflict, the embodiments of the present application and the features in the embodiments can be combined with each other arbitrarily.

Claims

1. A super-resolution high-definition reconstruction method for images with different damages, characterized in that: include: Super-resolution enhancement step: damage removal and super-resolution enhancement of the original image; Face enhancement step: perform face enhancement on the image processed by the super-resolution enhancement step to obtain a reconstructed image; In the face enhancement step: Pre-training a face generator, using a face image dataset to pre-train a face generator that contains prior knowledge of faces; the face generator generates a corresponding high-dimensional face image based on the input low-dimensional high-level semantic features, wherein the low-dimensional high-level semantic features are obtained by a face encoder, and the low-dimensional high-level semantic features only contain information related to face enhancement; Establish a codec model to perform preliminary damage removal and restoration on the input low-quality face image, and extract a low-dimensional high-level semantic feature corresponding to the input image through the encoder; extract multi-scale detail features corresponding to the input image through the decoder; the codec has a damage removal function, so the extracted high-level semantic features and multi-scale detail features are based on the features after damage removal; The low-dimensional high-level semantic features extracted by the encoder are fed into a pre-trained face generator to generate multi-scale features containing face priors corresponding to the low-dimensional high-level semantic features; The multi-scale detail features extracted by the encoder and the multi-scale detail features containing face prior extracted by the encoder are fused and enhanced; The damage functions used in the face generator training process include: reconstruction loss, adversarial loss, identity feature loss, and face local organ loss; The reconstruction loss is calculated once for each decoded resolution and the image with the corresponding resolution of the real high-quality image. The reconstruction loss function formula is as follows: L rec represents the reconstruction loss; λ L1 represents weight; represents the generated face enhanced image; y represents the real high-quality image; λ per represents weight; VGG-19 features representing the generated face enhanced image; φ(y) represents the VGG-19 features of real high-quality images; ||·||1 means calculating L1 loss; Item 1 Calculate the L1 loss of the generated image and the real high-quality image, the second term Calculate the L1 perceptual loss between the generated image and the real high-quality image in the VGG-19 feature domain; the adversarial loss function formula is as follows: L adv It means fighting against loss; λ adv represents the weight of adversarial loss; represents the mathematical expectation, where x obeys p data (x) distribution; x represents the face image to be restored; p data (x) represents the data distribution of the face image to be restored; D(·) denotes the discriminator; G(·) represents the face enhancement model; The identity feature loss formula is as follows: L id Indicates loss of identity features; λ id The weight representing the loss of identity features; η(·) represents the pre-trained face recognition feature extractor; Calculate the cosine similarity of face recognition features instead of L1 loss; The formula for the loss of local organs of the face is as follows: L comp Indicates partial organ loss on the face; ROI stands for region of interest, including left eye, right eye, and mouth; λ local Represents the weight of the local organ against the loss represents mathematical expectation; D ROI Represents the discriminator for the ROI area; Represents the ROI area in the generated face enhanced image; λ fs represents the weight of style matching loss; Gram(·) means calculating the gram matrix; ψ(·) represents D ROI Extracted multi-scale features; The first term in the formula Calculate the adversarial loss of local facial organs. For each area, train a discriminator D to calculate the adversarial loss. The second term in the formula Calculate the style matching loss of local facial organs, extract multi-scale features, and calculate the Gram matrix; In the face enhancement step: Using more image data of the corresponding race, continuing training on the basis of the original face enhancement model, generating a face enhancement model of the corresponding race, so that the result of the face enhancement model of the corresponding race has more facial features of the corresponding race than the result of the original face enhancement model; Among them, the original face enhancement model is adjusted: The facial data is classified into three categories: white, yellow, and black through the racial classification algorithm; Use more data images of the target ethnic group, continue training on the basis of the original face enhancement model, adjust the face enhancement model, and obtain a face enhancement model suitable for the corresponding ethnic group; In application scenarios where the ethnicity is known, a face enhancement model of the corresponding ethnicity is used to make the result have more facial features of the corresponding ethnicity.

2. The super-resolution high-definition reconstruction method for images with different damages according to claim 1 is characterized in that: In the super-resolution enhancement step: Establish a super-resolution network model and train it using a peak signal-to-noise ratio approach. Train the corresponding neural network models for original resolution enhancement and multiple multiple super-resolution requirements. Establishing a generative adversarial neural network model based on a super-resolution network model, wherein a generator of the generative adversarial neural network uses the established super-resolution network model and is initialized using model parameters of the trained super-resolution network model; The discriminator of the generative adversarial neural network uses an encoder-decoder structure and uses a spectral normalization method; The training process of the generative adversarial neural network adopts L1 loss function, perceptual loss function and adversarial loss function to obtain enhanced super-resolution models suitable for various different needs, wherein the enhanced super-resolution model includes the trained super-resolution network and the trained generative adversarial neural network; The enhanced super-resolution model is used to remove damage and perform super-resolution enhancement on the original image.

3. The super-resolution high-definition reconstruction method for images with different damages according to claim 1, characterized in that: include: Training data generation step: Use a multi-stage random degradation model to generate low-resolution data images with various types of damage as training data for the enhanced super-resolution model; In the training data generation step: The number of stages in the multi-stage random degradation model is random, which is used to simulate the random number of damage processes in real life scenarios; The basic degradation operations in each stage of the multi-stage random degradation model are: Add random blur: randomly select a blur kernel according to the set probability, and randomly select the size of the blur kernel to blur the image; Random zoom: randomly select a zoom value to zoom the image; Add random noise: randomly generate a noise intensity from multiple types of noise and superimpose it on the image; Add random JPEG damage: randomly add a certain degree of JPEG damage to the image; Through the sinc filter: simulate artifacts; Degrade the color of low-quality images with a set probability, randomly select parameters within a range, and adjust the contrast, saturation, hue, and brightness of the image respectively; Convert low-quality images to black and white images with a set probability; Among them, the basic color degradation operation is eliminated when making the data set without color enhancement; in the subsequent training process, the data set with color enhancement is used to train the model with color enhancement, and the data set without color enhancement is used to train the model without color enhancement.

4. A super-resolution high-definition reconstruction system for images with different damages, characterized in that: include: Super-resolution enhancement module: removes damage and performs super-resolution enhancement on the original image; Face enhancement module: performs face enhancement on the image processed by the super-resolution enhancement module to obtain a reconstructed image; In the face enhancement module: Pre-training a face generator, using a face image dataset to pre-train a face generator that contains prior knowledge of faces; the face generator generates a corresponding high-dimensional face image based on the input low-dimensional high-level semantic features, wherein the low-dimensional high-level semantic features are obtained by a face encoder, and the low-dimensional high-level semantic features only contain information related to face enhancement; Establish a codec model to perform preliminary damage removal and restoration on the input low-quality face image, and extract a low-dimensional high-level semantic feature corresponding to the input image through the encoder; extract multi-scale detail features corresponding to the input image through the decoder; the codec has a damage removal function, so the extracted high-level semantic features and multi-scale detail features are based on the features after damage removal; The low-dimensional high-level semantic features extracted by the encoder are fed into a pre-trained face generator to generate multi-scale features containing face priors corresponding to the low-dimensional high-level semantic features; The multi-scale detail features extracted by the encoder and the multi-scale detail features containing face prior extracted by the encoder are fused and enhanced; The damage functions used in the face generator training process include: reconstruction loss, adversarial loss, identity feature loss, and face local organ loss; The reconstruction loss is calculated once for each decoded resolution and the image with the corresponding resolution of the real high-quality image. The reconstruction loss function formula is as follows: L rec represents the reconstruction loss; λ L1 represents weight; represents the generated face enhanced image; y represents the real high-quality image; λ per represents weight; VGG-19 features representing the generated face enhanced image; φ(y) represents the VGG-19 features of real high-quality images; 1 means calculating L1 loss; Item 1 Calculate the L1 loss of the generated image and the real high-quality image, the second term Calculate the L1 perceptual loss between the generated image and the real high-quality image in the VGG-19 feature domain; The adversarial loss function formula is as follows: L adv It means fighting against loss; λ adv represents the weight of adversarial loss; represents the mathematical expectation, where x obeys p data (x) distribution; x represents the face image to be restored; p data (x) represents the data distribution of the face image to be restored; D(·) denotes the discriminator; G(·) represents the face enhancement model; The identity feature loss formula is as follows: L id Indicates loss of identity features; λ id The weight representing the loss of identity features; η(v) represents the pre-trained face recognition feature extractor; Calculate the cosine similarity of face recognition features instead of L1 loss; The formula for the loss of local organs of the face is as follows: L comp Indicates partial organ loss on the face; ROI stands for region of interest, including left eye, right eye, and mouth; λ local Represents the weight of the local organ against the loss represents mathematical expectation; D ROI Represents the discriminator for the ROI area; Represents the ROI area in the generated face enhanced image; λ fs represents the weight of style matching loss; Gram(·) means calculating the gram matrix; ψ(·) represents D ROI Extracted multi-scale features; The first term in the formula Calculate the adversarial loss of local facial organs. For each area, train a discriminator D to calculate the adversarial loss. The second term in the formula Calculate the style matching loss of local facial organs, extract multi-scale features, and calculate the Gram matrix; In the face enhancement module: Using more image data of the corresponding race, continuing training on the basis of the original face enhancement model, generating a face enhancement model of the corresponding race, so that the result of the face enhancement model of the corresponding race has more facial features of the corresponding race than the result of the original face enhancement model; Among them, the original face enhancement model is adjusted: The facial data is classified into three categories: white, yellow, and black through the racial classification algorithm; Use more data images of the target ethnic group, continue training on the basis of the original face enhancement model, adjust the face enhancement model, and obtain a face enhancement model suitable for the corresponding ethnic group; In application scenarios where the ethnicity is known, a face enhancement model of the corresponding ethnicity is used to make the result have more facial features of the corresponding ethnicity.

5. The super-resolution high-definition reconstruction system for images with different damages according to claim 4, characterized in that: In the super-resolution enhancement module: Establish a super-resolution network model and train it using a peak signal-to-noise ratio approach. Train the corresponding neural network models for original resolution enhancement and multiple multiple super-resolution requirements. Establishing a generative adversarial neural network model based on a super-resolution network model, wherein a generator of the generative adversarial neural network uses the established super-resolution network model and is initialized using model parameters of the trained super-resolution network model; The discriminator of the generative adversarial neural network uses an encoder-decoder structure and uses a spectral normalization method; The training process of the generative adversarial neural network adopts L1 loss function, perceptual loss function and adversarial loss function to obtain a universal enhanced super-resolution model suitable for a variety of different needs, wherein the universal enhanced super-resolution model includes a trained super-resolution network and a trained generative adversarial neural network; The universal enhanced super-resolution model is used to remove damage and perform super-resolution enhancement on the original image.

6. The super-resolution high-definition reconstruction system for images with different damages according to claim 4, characterized in that: include: Training data generation module: uses a multi-stage random degradation model to generate low-resolution data images with various types of damage as training data for the enhanced super-resolution model; In the training data generation step: The number of stages in the multi-stage random degradation model is random, which is used to simulate the random number of damage processes in real life scenarios; The basic degradation operations in each stage of the multi-stage random degradation model are: Add random blur: randomly select a blur kernel according to the set probability, and randomly select the size of the blur kernel to blur the image; Random zoom: randomly select a zoom value to zoom the image; Add random noise: randomly generate a noise intensity from multiple types of noise and superimpose it on the image; Add random JPEG damage: randomly add a certain degree of JPEG damage to the image; Through the sinc filter: simulate artifacts; Degrade the color of low-quality images with a set probability, randomly select parameters within a range, and adjust the contrast, saturation, hue, and brightness of the image respectively; Convert low-quality images to black and white images with a set probability; Among them, the basic color degradation operation is eliminated when making the data set without color enhancement; in the subsequent training process, the data set with color enhancement is used to train the model with color enhancement, and the data set without color enhancement is used to train the model without color enhancement.

7. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method for super-resolution high-definition reconstruction of images with different damages described in any one of claims 1 to 3 are implemented.

8. A smart device, characterized in that: A super-resolution high-definition reconstruction system for images with different damages as described in any one of claims 4 to 6.

9. A smart device, characterized in that: A computer-readable storage medium storing a computer program as claimed in claim 7 is included.