Image restoration method based on cyclic feature reasoning of self-attention mechanism

A technology of cyclic features and repair methods, which is applied in the field of image repair, can solve problems such as inconsistent blurred textures in surrounding areas, model training prone to overfitting, unreasonable repair structures, etc., to improve overfitting problems, enhance correlation, The effect of good network training

Pending Publication Date: 2022-01-28
CHANGSHA UNIVERSITY OF SCIENCE AND TECHNOLOGY
View PDF0 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, there are many disadvantages in the existing repair methods: First, the existing methods are almost all repairing the missing images in small areas. For images with too large missing areas, that is, the mask size is more than 50%, when repairing, usually Produce distorted structures or fuzzy textures that are inconsistent with surrounding areas; second, most methods for missing images in large irregular areas use generative confrontational network structures, which are computationally intensive and model training is prone to overfitting problems, making it difficult to implement network Training; third, in order to avoid the second problem, the end-to-end cyclic feature inference network structure RFR-NET is generally used to progressively repair missing images with large mask areas and irregular shapes through the shared feature inference module. However, RFR-NET also has some problems. When repairing the face dataset, it will generate unreasonable repair structures. When repairing the street view dataset, it will generate some similar diamond-shaped block textures, which seriously affect the repair effect.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Image restoration method based on cyclic feature reasoning of self-attention mechanism
  • Image restoration method based on cyclic feature reasoning of self-attention mechanism
  • Image restoration method based on cyclic feature reasoning of self-attention mechanism

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0129] The following is a quality comparison of image inpainting for specific embodiments, and verifies the effectiveness of the self-attention mechanism layer and the effectiveness of adaptive ghosting convolution.

[0130] 1. Experimental content

[0131] (1) Experimental configuration: parameter configuration

[0132] In Embodiment 1, λ=0.1, μ=180, η=6, and γ=1 are set for the total loss function formula. Use the Adam optimizer to optimize the training process; the training process is divided into two parts: normal training and fine-tuning training. Among them, for normal training we set the learning rate as 2e-4; for fine-tuning training, we set the learning rate as 5e-5 and the batch size as 2. And use the PyTorch framework to build the model, and use NVIDIA GeForce RTX 3090 (24GB memory) for training.

[0133] (2) Dataset configuration

[0134] Model validation is performed using two public datasets commonly used in image inpainting tasks and an irregular mask datase...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses an image restoration method based on cyclic feature reasoning of a self-attention mechanism. The method comprises the following steps: constructing an SA-RFR network structure, wherein the SA-RFR network structure comprises a preprocessing module, a feature reasoning module and a self-adaptive ghosting fusion module; inputting the damaged image and the corresponding mask into a network structure, processing the damaged image and the corresponding mask through a preprocessing module, extracting a feature map, and judging and updating the mask; inputting the output of the preprocessing module into a feature reasoning module, and synthesizing partial content of the damaged image; alternately iterating the first two modules for six times, and storing the repaired feature map every time; and after the last repair is completed, combining all the feature maps generated in the repair process into a fixed feature map of one channel, and finally completing the repair through an adaptive ghosting fusion module to generate a final result. According to the technical scheme provided by the invention, the large-area missing image can be repaired, so that the repaired content details are clearer, the edges are smoother, and the structure is more reasonable.

Description

technical field [0001] The present application relates to the technical field of image inpainting, and more specifically, to an image inpainting method and system based on self-attention mechanism-based cyclic feature reasoning. Background technique [0002] In recent years, machine learning has developed rapidly, especially deep learning, which has become a popular direction in the computer industry in recent years. With the development of computer vision, many troubles that were difficult to solve in the past have good solutions today. For example, remove some specific objects in the image; people want to remove some unnecessary people or objects in the image after taking pictures; Many fields can play an important role, and with the rapid development of artificial intelligence, the application fields of image restoration will become more and more extensive. Therefore, the research on image inpainting based on deep learning is of great significance, and image inpainting ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06T5/00G06N3/04G06N3/08
CPCG06T5/005G06T5/002G06N3/08G06T2207/10004G06T2207/20081G06T2207/20084G06T2207/30201G06N3/047G06N3/048G06N3/045
Inventor 王进王柳何施茗吴一鸣韩惠
Owner CHANGSHA UNIVERSITY OF SCIENCE AND TECHNOLOGY
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products