CN111986104B - Face image deblurring method based on deep learning - Google Patents

Face image deblurring method based on deep learning Download PDF

Info

Publication number
CN111986104B
CN111986104B CN202010717179.8A CN202010717179A CN111986104B CN 111986104 B CN111986104 B CN 111986104B CN 202010717179 A CN202010717179 A CN 202010717179A CN 111986104 B CN111986104 B CN 111986104B
Authority
CN
China
Prior art keywords
image
fuzzy
face image
blurred
clear
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010717179.8A
Other languages
Chinese (zh)
Other versions
CN111986104A (en
Inventor
王宇
吴水清
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hohai University HHU
Original Assignee
Hohai University HHU
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hohai University HHU filed Critical Hohai University HHU
Priority to CN202010717179.8A priority Critical patent/CN111986104B/en
Publication of CN111986104A publication Critical patent/CN111986104A/en
Application granted granted Critical
Publication of CN111986104B publication Critical patent/CN111986104B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • G06T5/73
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30196Human being; Person
    • G06T2207/30201Face

Abstract

The invention discloses a face image deblurring method based on deep learning, and belongs to the technical field of image processing. The invention realizes the deblurring of the image with high quality by using the content encoder and the blur encoder to distinguish the content of the blurred image from the blur characteristics while keeping the content structure of the original image. Fuzzy branches and cycle consistency loss are added in the framework, further restoration is carried out through cycle consistency to ensure the robustness of the model, and meanwhile the added perception loss is beneficial to removing unrealistic artifacts from the blurred image and finally added countermeasure loss, so that the deblurring effect of the method is better and the speed is higher.

Description

Face image deblurring method based on deep learning
Technical Field
The invention relates to a face image deblurring method based on deep learning, and belongs to the technical field of image processing.
Background
The subject of image deblurring has received much attention and there has been a long history of research not only because digital images have become an important way for people to acquire, exchange and understand information, but also because images contain a large amount of information and other signals are not comparable. The imaging system has inherent defects or is affected by various interferences in the shooting process to cause image blurring, which brings troubles to the application of people. Human faces have been receiving great attention from ancient times as the most discriminative part of the human body. Portrait and self portrait are popular subjects in pictorial work. After the era of mobile internet, various applications based on human faces are more endless, such as self-shooting, cartoon human face images, face recognition, automatic face makeup changing, style migration and the like. The applications bring great pleasure to people and provide great convenience for the life of people. A typical example is face recognition. After the face recognition based on deep learning reaches the recognition accuracy exceeding that of human eyes, the access control system using the face to perform identity authentication is more widely applied in actual life. Considering the natural sensitivity of human face, the blurring effect on the face image is much larger than that on the general image. For face images, generally the higher the sharpness, the better. Experiments show that although the general image deblurring algorithm has great success, the existing face deblurring algorithm has a considerable distance from practical application. The deblurring of the human face image is an important component in the deblurring of the image, and the deblurring of the human face image has wide application in life, such as video monitoring, human face recognition and the like.
The face image deblurring, also commonly called image deconvolution, is based on the mechanism of face image blur, and reconstructs a clear image similar to a real face from one or more degraded face images by means of certain image prior knowledge. Most conventional methods formulate the image deblurring task as a fuzzy kernel estimation problem, and in the past decade various natural images and prior kernels have been developed to normalize the solution space of potentially sharp images, including heavy-tailed gradient prior, sparse kernel prior, gradient prior, normalized sparsity and dark channels. However, these priors are estimated by limited observations and are not accurate enough. As a result, deblurred images are typically under-deblurred (the image is still blurred) or over-deblurred (the image contains many artifacts). Therefore, deblurring of a face image by a deep learning method is a popular research topic in the field of digital images.
Disclosure of Invention
The invention provides a face image deblurring method based on deep learning, which aims to improve the face image deblurring method.
The invention adopts the following technical scheme for solving the technical problems:
a face image deblurring method based on deep learning comprises the following steps:
(1) Selecting a clear face image and a fuzzy face image, extracting content information from the clear face image, and estimating fuzzy information from the fuzzy face image by using a fuzzy image content encoder;
(2) Normalizing fuzzy features Z by adding a KL divergence penalty b =E b (b) Such that the distribution of (A) is close to the normal distribution p (z) to N (0, 1);
(3) Sending the clear image content code and the fuzzy code into a fuzzy image generator to reconstruct to obtain a fuzzy face image;
(4) Sending the fuzzy image content code and the fuzzy code into a clear image generator to reconstruct to obtain a deblurred clear face image;
(5) Application of countermeasure loss in sharp face image and blurred face image
Figure BDA0002598642560000031
And
Figure BDA0002598642560000032
(6) Introducing cycle consistency loss, re-blurring the deblurred clear face image, and converting the blurred clear face image into an original clear image;
(7) Adding perception loss between the deblurred face image and the original blurred face image, and removing artifacts in the deblurred face image;
(8) The fuzzy image content encoder and the fuzzy encoder are used for extracting the content and the fuzzy characteristics of the test image, and the image generator of the clear image obtains output and then generates a deblurred face image.
The KL divergence loss in step (2) is defined as follows:
Figure BDA0002598642560000033
wherein Z is b For fuzzy features, Z is a feature matrix, p (Z) represents the probability distribution of Z, q (Z) b ) Represents Z b Approximate probability distribution, KL (q (Z) b ) P (z)) represents the expected value of the logarithmic difference of the probability of the original distribution and the approximate distribution; the specific KL divergence loss function is further written as:
Figure BDA0002598642560000034
wherein: mu.s i Represents Z b Is the average value of i, σ i Represents Z b Standard deviation at i, N is Z b Dimension of, Z b Sampling is Z b = μ + z ° σ, wherein: mu and sigma are Z b Average and standard deviation, ° represents the element-by-element multiplication.
Applying the clear face image in the step (5) to resist loss L DS Comprises the following steps:
Figure BDA0002598642560000041
wherein:D S A sharp image discriminator; e s~p(s) Is to encode a sharp image, E b~p(b) Is a blur encoding of a blurred image,
Figure BDA0002598642560000042
is the encoding of the content of a blurred image, G S () Is a sharp image generator;
applying the blurred face image domain to combat loss
Figure BDA0002598642560000043
Comprises the following steps:
Figure BDA0002598642560000044
wherein: d B () A blurred image discriminator;
Figure BDA0002598642560000045
is to encode the content of a sharp image, G B() Is a blurred image generator.
The cycle consistency loss in step (6) is defined as:
Figure BDA0002598642560000046
wherein: s denotes a sharp image, b denotes a blurred image,
Figure BDA0002598642560000047
the estimated amount of the signal s is represented,
Figure BDA0002598642560000048
the estimated amount of b is represented by,
Figure BDA0002598642560000049
to represent
Figure BDA00025986425600000410
The norm of the matrix of (a) is,
Figure BDA00025986425600000411
to represent
Figure BDA00025986425600000412
The matrix norm of (c).
The perception loss in the step (7) is as follows:
Figure BDA00025986425600000413
wherein:
Figure BDA00025986425600000414
representing a generated sharp image s b At the l-th layer of the pre-trained CNN,
Figure BDA00025986425600000415
features representing a true blurred image at the ith layer of the pre-trained CNN,
Figure BDA00025986425600000416
Figure BDA00025986425600000417
indicating that the euclidean distance between corresponding layers is calculated.
The invention has the following beneficial effects:
the method is used for deblurring the blurred face image, so that a clear face image which is better than the deblurring effect of other blurred face images can be obtained, and the deblurring efficiency is higher than that of the deblurring invention of other face images. The invention realizes the deblurring of the image with high quality by using the content encoder and the blur encoder to distinguish the content of the blurred image from the blur characteristics while keeping the content structure of the original image. Fuzzy branches and cycle consistency loss are added in a framework, further restoration is carried out through cycle consistency to ensure the robustness of the model, and meanwhile the added perception loss is beneficial to removing unrealistic artifacts from a fuzzy image and finally added countermeasure loss, so that the de-blurring effect of the invention is better and the speed is higher.
Drawings
FIG. 1 is a flow chart of the present invention.
FIG. 2 is a deblurring framework diagram of the present invention.
Fig. 3 (a) shows a blurred face image, and fig. 3 (b) shows the effect of deblurring the face image according to the present invention.
Detailed Description
The invention is described in further detail below with reference to the accompanying drawings.
As shown in fig. 1, it is a flowchart of the present invention, which extracts content information of a clear face image and a blurred face image, and reconstructs the blurred and clear face images according to the obtained image content information. And introducing cycle consistency loss, re-blurring the deblurred clear face image to reconstruct an original blurred image, and converting the blurred clear face image into an original clear image. And finally, generating the deblurred face image through a clear image generator.
As shown in fig. 2, which is the deblurring framework of the present invention, S is a sharp face image, b is a blurred face image,
Figure BDA0002598642560000051
content encoder that is a blurred image and
Figure BDA0002598642560000052
content encoder being a sharp image, E b Is a fuzzy encoder, G B Is an image generator of a blurred image and is G S An image generator for sharp images. Encoding sharp image content
Figure BDA0002598642560000061
And fuzzy coding E b Into the blurred image generator G B Reconstructing to obtain a fuzzy face image b S The sharp image to blurred image is to optimize the effect of the blur coding and the content coding of the blurred image. Finally, testing is carried out, and a fuzzy face image b is given t Blurred image content coding
Figure BDA0002598642560000062
And fuzzy coding E b Image generator G for extracting content and fuzzy characteristic and clear image S Obtaining output and then generating deblurred face image
Figure BDA0002598642560000063
As shown in fig. 3, (a) in fig. 3 is a blurred face image, and (b) in fig. 3 is an effect of deblurring a face image by using the present invention. The method ensures the robustness of the model, removes unrealistic artifacts in blurred images and finally added countermeasure loss, and ensures that the deblurring effect is better and the speed is higher. As can also be seen from fig. 3, the present invention can better deblur the blurred face image to obtain a clear face image.

Claims (5)

1. A face image deblurring method based on deep learning is characterized by comprising the following steps:
(1) Selecting a clear face image and a fuzzy face image, extracting content information from the clear face image, and estimating fuzzy information from the fuzzy face image by using a fuzzy image content encoder;
(2) Normalizing fuzzy features Z by adding a KL divergence penalty b =E b (b) Such that the distribution of (A) is close to the normal distribution p (z) to N (0, 1);
(3) Sending the clear image content code and the fuzzy code into a fuzzy image generator to reconstruct to obtain a fuzzy face image;
(4) Sending the fuzzy image content code and the fuzzy code into a clear image generator to reconstruct to obtain a deblurred clear face image;
(5) Applying counter-loss in sharp and blurred face images
Figure FDA0002598642550000011
And
Figure FDA0002598642550000012
(6) Introducing cycle consistency loss, re-blurring the deblurred clear face image, and simultaneously converting the blurred clear face image into an original clear image;
(7) Adding perception loss between the deblurred face image and the original blurred face image, and removing artifacts in the deblurred face image;
(8) The fuzzy image content encoder and the fuzzy encoder are used for extracting the content and the fuzzy characteristics of the test image, and the image generator of the clear image obtains output and then generates a deblurred face image.
2. The method according to claim 1, wherein the KL divergence loss in step (2) is defined as follows:
Figure FDA0002598642550000021
wherein, Z b For fuzzy features, Z is a feature matrix, p (Z) represents the probability distribution of Z, q (Z) b ) Represents Z b Approximate probability distribution, KL (q (Z) b ) | p (z)) represents the expected value of the logarithmic difference of the probability of the original distribution and the approximate distribution; the specific KL divergence loss function is further written as:
Figure FDA0002598642550000022
wherein: mu.s i Represents Z b Is the average value of i, σ i Represents Z b Standard deviation at i, N is Z b Dimension of (c), Z b Sampling is Z b = μ + z ° σ, wherein: mu and sigma are Z b Average and standard deviation, ° stands for element-by-element multiplication.
3. The method of claim 1 for deblurring human face images based on deep learningMethod, characterized in that in step (5) said sharp face image is applied against loss
Figure FDA0002598642550000023
Comprises the following steps:
Figure FDA0002598642550000024
wherein: d S A sharp image discriminator; e s~p(s) Is to encode a sharp image, E b~p(b) Is a blur encoding of a blurred image,
Figure FDA0002598642550000025
is the encoding of the content of a blurred image, G S () Is a sharp image generator;
the blurred face image is applied to resist loss
Figure FDA0002598642550000026
Comprises the following steps:
Figure FDA0002598642550000027
wherein: d B () A blurred image discriminator;
Figure FDA0002598642550000028
is to encode the content of a sharp image, G B() Is a blurred image generator.
4. The method for deblurring a human face image based on deep learning of claim 3, wherein the cycle consistency loss in the step (6) is defined as:
Figure FDA0002598642550000031
wherein: s denotes a sharp image, b denotes a blurred image,
Figure FDA0002598642550000032
the estimated amount of the signal s is represented,
Figure FDA0002598642550000033
the estimated amount of b is represented by,
Figure FDA0002598642550000034
to represent
Figure FDA0002598642550000035
The norm of the matrix of (a) is,
Figure FDA0002598642550000036
represent
Figure FDA0002598642550000037
The matrix norm of (d).
5. The method for deblurring a human face image based on deep learning of claim 1, wherein the perceptual loss in the step (7) is:
Figure FDA0002598642550000038
wherein:
Figure FDA0002598642550000039
representing a generated sharp image s b At the l-th layer of the pre-trained CNN,
Figure FDA00025986425500000310
features representing the true blurred image at layer i of the pre-trained CNN,
Figure FDA00025986425500000311
representing the calculation of Euclidean distances between corresponding layersAnd (5) separating.
CN202010717179.8A 2020-07-23 2020-07-23 Face image deblurring method based on deep learning Active CN111986104B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010717179.8A CN111986104B (en) 2020-07-23 2020-07-23 Face image deblurring method based on deep learning

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010717179.8A CN111986104B (en) 2020-07-23 2020-07-23 Face image deblurring method based on deep learning

Publications (2)

Publication Number Publication Date
CN111986104A CN111986104A (en) 2020-11-24
CN111986104B true CN111986104B (en) 2023-02-28

Family

ID=73438983

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010717179.8A Active CN111986104B (en) 2020-07-23 2020-07-23 Face image deblurring method based on deep learning

Country Status (1)

Country Link
CN (1) CN111986104B (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140307950A1 (en) * 2013-04-13 2014-10-16 Microsoft Corporation Image deblurring
CN107730458A (en) * 2017-09-05 2018-02-23 北京飞搜科技有限公司 A kind of fuzzy facial reconstruction method and system based on production confrontation network
CN108573479A (en) * 2018-04-16 2018-09-25 西安电子科技大学 The facial image deblurring and restoration methods of confrontation type network are generated based on antithesis
CN110223245B (en) * 2019-05-16 2021-07-16 华南理工大学 Method and system for processing blurred picture in sharpening mode based on deep neural network

Also Published As

Publication number Publication date
CN111986104A (en) 2020-11-24

Similar Documents

Publication Publication Date Title
Xu et al. Learning to restore low-light images via decomposition-and-enhancement
CN112233038B (en) True image denoising method based on multi-scale fusion and edge enhancement
CN111028177B (en) Edge-based deep learning image motion blur removing method
CN111028163B (en) Combined image denoising and dim light enhancement method based on convolutional neural network
CN110969589A (en) Dynamic scene fuzzy image blind restoration method based on multi-stream attention countermeasure network
CN110796622B (en) Image bit enhancement method based on multi-layer characteristics of series neural network
Anvari et al. Dehaze-GLCGAN: unpaired single image de-hazing via adversarial training
Li Deep learning for image denoising
Deora et al. Structure preserving compressive sensing MRI reconstruction using generative adversarial networks
CN111861894A (en) Image motion blur removing method based on generating type countermeasure network
CN113066034A (en) Face image restoration method and device, restoration model, medium and equipment
CN112614061A (en) Low-illumination image brightness enhancement and super-resolution method based on double-channel coder-decoder
CN114331886A (en) Image deblurring method based on depth features
CN114723630A (en) Image deblurring method and system based on cavity double-residual multi-scale depth network
Zhou et al. Sparse representation with enhanced nonlocal self-similarity for image denoising
Wu et al. Multiple-operation image anti-forensics with WGAN-GP framework
CN114202473A (en) Image restoration method and device based on multi-scale features and attention mechanism
CN116452469B (en) Image defogging processing method and device based on deep learning
CN117274059A (en) Low-resolution image reconstruction method and system based on image coding-decoding
CN111986104B (en) Face image deblurring method based on deep learning
Krishnan et al. A novel underwater image enhancement technique using ResNet
CN114565528A (en) Remote sensing image noise reduction method and system based on multi-scale and attention mechanism
EP3913572A1 (en) Loss function for image reconstruction
CN113902647A (en) Image deblurring method based on double closed-loop network
Jeyaprakash et al. Linearly uncorrelated principal component and deep convolutional image deblurring for natural images

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant