Image super-resolution reconstruction model construction method, device, equipment and storage medium
By using the residual feature distillation sub-module of hybrid atrous convolution and the channel attention mechanism in the image super-resolution model, the problems of low model operation efficiency and poor accuracy are solved, and efficient image super-resolution is achieved on mobile terminal devices. rate reconstruction.
Patent Information
- Application Number
- CN202210612479.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-31
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2042-05-31
AI Technical Summary
While the existing image super-resolution reconstruction model increases the depth and complexity of the network, it ignores the capacity and computing efficiency of the model, resulting in difficulty in deploying on mobile terminal devices and slow computing speed. In addition, lightweight super-resolution algorithms use Larger convolution kernels have problems with redundant parameters and poor accuracy.
The residual feature distillation sub-module based on hybrid atrous convolution is used to iteratively extract deep feature information and fine-grained information of the image, combined with the channel attention mechanism, to build an image super-resolution network, reduce model redundant parameters and improve the efficiency of feature information extraction. .
While ensuring the image super-resolution reconstruction results, it reduces model capacity and computing consumption, improves model inference speed, and improves the accuracy of super-resolution reconstruction results.
Smart Images

Figure CN114926342B
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer vision technology, and in particular to a method, device, equipment and storage medium for constructing an image super-resolution reconstruction model. Background Art
[0002] Super-resolution is an important task in the field of computer vision and image processing. It is widely used in target detection, smart mobile devices, large smart screen display devices, medical images, target recognition in security monitoring, and remote sensing images. Among them, image super-resolution reconstruction aims to reconstruct high-resolution images with texture details and good visual effects from low-resolution images that have degraded due to various reasons. However, image super-resolution reconstruction is an ill-posed task, that is, for a certain low-resolution image input, there may be multiple different high-resolution images corresponding to it, which is a one-to-many mapping relationship.
[0003] In recent years, with the rise of deep learning in the field of computer vision, computer vision tasks such as image processing, image understanding, and pattern recognition have developed rapidly and achieved results far exceeding traditional methods. Naturally, deep learning has also had a profound impact in the field of image super-resolution, and more and more complex deep networks have achieved world-class performance in the field of super-resolution. However, most existing methods ignore the capacity and computational efficiency of the model while gradually increasing the depth and complexity of the network. Therefore, these deep models have problems such as difficulty in deploying on mobile terminal devices and slow computing speed, making these methods unsuitable for devices with limited resources.
[0004] In order to solve the above problems, a large number of lightweight convolutional neural network models have been proposed. However, the current lightweight super-resolution algorithm has some redundant parameters due to the use of larger convolution kernels, resulting in low model operation efficiency. In addition, the receptive field of the ordinary convolution mechanism it adopts is small, which makes it impossible to capture long-distance information dependencies, resulting in poor accuracy of super-resolution reconstruction results. Summary of the invention
[0005] The present application provides a method, device, equipment and storage medium for constructing an image super-resolution reconstruction model to solve the problems of low model operation efficiency and poor accuracy of super-resolution reconstruction results existing in the related art.
[0006] In a first aspect, a method for constructing an image super-resolution reconstruction model is provided, comprising the following steps:
[0007] Acquire a training data set, wherein the training data set includes a high-resolution image and a low-resolution image corresponding to the high-resolution image;
[0008] Constructing an image super-resolution network, the super-resolution network comprising a shallow feature extraction module, a deep feature extraction module and an image reconstruction module, the deep feature extraction module comprising four iterative residual feature distillation submodules based on mixed dilated convolutions, the residual feature distillation submodules based on mixed dilated convolutions being used to iteratively extract deep feature information and fine-grained information of the image;
[0009] The image super-resolution network is trained based on the training data set to obtain an image super-resolution reconstruction model.
[0010] In some embodiments, each of the residual feature distillation submodules based on mixed dilated convolution is specifically used for:
[0011] Performing feature distillation separation processing on the shallow feature map output by the shallow feature extraction module to obtain a first shallow feature map and a second shallow feature map, and performing mixed hole convolution processing on the second shallow feature map to extract global feature information to obtain a first deep feature map;
[0012] Performing feature distillation separation processing on the first deep feature map to obtain a second deep feature map and a third deep feature map, and performing mixed hole convolution processing on the third deep feature map to extract global feature information to obtain a fourth deep feature map;
[0013] Performing feature distillation separation processing on the fourth deep feature map to obtain a fifth deep feature map and a sixth deep feature map, and performing mixed dilated convolution processing on the sixth deep feature map to extract global feature information to obtain a seventh deep feature map;
[0014] The first shallow feature map, the second deep feature map, the fifth deep feature map and the seventh deep feature map are spliced to obtain a spliced feature map.
[0015] In some embodiments, each of the residual feature distillation submodules based on mixed dilated convolution is further used for:
[0016] Based on the channel attention mechanism, fine-grained information of the spliced feature map is extracted to obtain a new spliced feature map;
[0017] The new concatenated feature map is added to the shallow feature map output by the shallow feature extraction module to obtain the final deep feature map.
[0018] In some embodiments, the training of the image super-resolution network based on the training data set includes:
[0019] Training is performed based on the first loss function during the first N epochs, where N is a positive integer;
[0020] In the iteration process after the Nth Epoch, the network parameters are adjusted based on the second loss function.
[0021] In some embodiments, before the step of obtaining the training data set, the method further includes:
[0022] Acquire an initial high-resolution image and an initial low-resolution image corresponding to the initial high-resolution image;
[0023] Randomly cropping the initial high-resolution image and the initial low-resolution image respectively to obtain a cropped high-resolution image and a cropped low-resolution image, wherein the cropped high-resolution image and the cropped low-resolution image have the same size;
[0024] The cropped high-resolution image and the cropped low-resolution image are respectively subjected to data enhancement processing of flipping and rotating to obtain a processed high-resolution image and a processed low-resolution image.
[0025] In a second aspect, a device for constructing an image super-resolution reconstruction model is provided, comprising:
[0026] An acquisition unit, configured to acquire a training data set, wherein the training data set includes a high-resolution image and a low-resolution image corresponding to the high-resolution image;
[0027] A construction unit, which is used to construct an image super-resolution network, wherein the super-resolution network includes a shallow feature extraction module, a deep feature extraction module and an image reconstruction module, wherein the deep feature extraction module includes four residual feature distillation submodules based on mixed void convolution with iterative effects, and the residual feature distillation submodule based on mixed void convolution is used to iteratively extract deep feature information and fine-grained information of the image;
[0028] A training unit is used to train the image super-resolution network based on the training data set to obtain an image super-resolution reconstruction model.
[0029] In some embodiments, each of the residual feature distillation submodules based on mixed dilated convolution is specifically used for:
[0030] Performing feature distillation separation processing on the shallow feature map output by the shallow feature extraction module to obtain a first shallow feature map and a second shallow feature map, and performing mixed hole convolution processing on the second shallow feature map to extract global feature information to obtain a first deep feature map;
[0031] Performing feature distillation separation processing on the first deep feature map to obtain a second deep feature map and a third deep feature map, and performing mixed hole convolution processing on the third deep feature map to extract global feature information to obtain a fourth deep feature map;
[0032] Performing feature distillation separation processing on the fourth deep feature map to obtain a fifth deep feature map and a sixth deep feature map, and performing mixed dilated convolution processing on the sixth deep feature map to extract global feature information to obtain a seventh deep feature map;
[0033] The first shallow feature map, the second deep feature map, the fifth deep feature map and the seventh deep feature map are spliced to obtain a spliced feature map.
[0034] In some embodiments, each of the residual feature distillation submodules based on mixed dilated convolution is further used for:
[0035] Based on the channel attention mechanism, fine-grained information of the spliced feature map is extracted to obtain a new spliced feature map;
[0036] The new concatenated feature map is added to the shallow feature map output by the shallow feature extraction module to obtain the final deep feature map.
[0037] In a third aspect, a device for building an image super-resolution reconstruction model is provided, comprising: a memory and a processor, wherein at least one instruction is stored in the memory, and the at least one instruction is loaded and executed by the processor to implement the aforementioned image super-resolution reconstruction model building method.
[0038] In a fourth aspect, a computer-readable storage medium is provided, wherein the computer storage medium stores a computer program, and when the computer program is executed by a processor, the aforementioned image super-resolution reconstruction model construction method is implemented.
[0039] The beneficial effects brought about by the technical solution provided in this application include: being able to reduce the capacity and computing consumption of the model and improve the reasoning speed of the model while ensuring the image super-resolution reconstruction results.
[0040] The present application provides a method, apparatus, device and storage medium for constructing an image super-resolution reconstruction model, including obtaining a training data set, wherein the training data set includes a high-resolution image and a low-resolution image corresponding to the high-resolution image; constructing an image super-resolution network, wherein the super-resolution network includes a shallow feature extraction module, a deep feature extraction module and an image reconstruction module, wherein the deep feature extraction module includes four residual feature distillation submodules based on mixed void convolution with iterative effects, and the residual feature distillation submodule based on mixed void convolution is used to iteratively extract deep feature information and fine-grained information of the image; and training the image super-resolution network based on the training data set to obtain an image super-resolution reconstruction model. The present application can expand the receptive field of feature extraction without increasing network parameters through a residual feature distillation submodule based on hybrid void convolution, which can not only reduce the redundant parameters of the model and improve the efficiency of feature information extraction, but also make the extracted features contain more global information, thereby improving the accuracy of super-resolution reconstruction results; and use the recursive idea to decompose deep feature extraction into 4 iterative residual feature distillation submodules based on hybrid void convolution to effectively reduce the complexity of the model and improve information processing efficiency. Therefore, the present application can reduce the capacity and computational consumption of the model and improve the reasoning speed of the model while ensuring the image super-resolution reconstruction results. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0042] Figure 1 A schematic diagram of a process for constructing an image super-resolution reconstruction model provided in an embodiment of the present application;
[0043] Figure 2 A schematic diagram of the structure of an image super-resolution network provided in an embodiment of the present application;
[0044] Figure 3 A schematic diagram of the structure of the DRFDB provided in the embodiment of the present application;
[0045] Figure 4 A schematic diagram of the structure of CCALayer provided in an embodiment of the present application;
[0046] Figure 5 A schematic diagram of the structure of an image super-resolution reconstruction model building device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0047] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0048] The embodiments of the present application provide a method, apparatus, device and storage medium for constructing an image super-resolution reconstruction model, which can solve the problems of low model operation efficiency and poor accuracy of super-resolution reconstruction results existing in the related art.
[0049] Figure 1 A method for constructing an image super-resolution reconstruction model provided in an embodiment of the present application comprises the following steps:
[0050] Step S10: Acquire a training data set, where the training data set includes a high-resolution image and a low-resolution image corresponding to the high-resolution image;
[0051] Furthermore, before the step of obtaining the training data set, the method further includes:
[0052] Acquire an initial high-resolution image and an initial low-resolution image corresponding to the initial high-resolution image;
[0053] Randomly cropping the initial high-resolution image and the initial low-resolution image respectively to obtain a cropped high-resolution image and a cropped low-resolution image, wherein the cropped high-resolution image and the cropped low-resolution image have the same size;
[0054] The cropped high-resolution image and the cropped low-resolution image are respectively subjected to data enhancement processing of flipping and rotating to obtain a processed high-resolution image and a processed low-resolution image.
[0055] For example, in this embodiment, a large number of high-resolution image and low-resolution image pairs can be collected from the DIV2K dataset provided by the "New Trends in Image Restoration and Enhancement Competition", the most influential global competition in the field of image restoration, and Flickr2K, another commonly used dataset in the field, to form training data. For example, download the DIV2K dataset and the high-resolution image (HR) in the Flickr2K dataset from the Internet. And the corresponding low-resolution images (LR) with different downsampling multiples Among them, high-resolution images and low-resolution images can contain 800 and 2650 training images respectively, and the downsampling multiples of low-resolution images are 2 times, 3 times, and 4 times respectively. Then the collected high-resolution images and low-resolution images are randomly cropped to a fixed pixel size (such as 256×256 pixels), and then the cropped images are randomly horizontally flipped and rotated 90 degrees to achieve data enhancement, and the images after data enhancement form the final training data set.
[0056] Step S20: constructing an image super-resolution network, wherein the super-resolution network includes a shallow feature extraction module, a deep feature extraction module and an image reconstruction module, wherein the deep feature extraction module includes four residual feature distillation submodules based on mixed dilated convolutions with iterative effects, and the residual feature distillation submodules based on mixed dilated convolutions are used to iteratively extract deep feature information and fine-grained information of the image;
[0057] Furthermore, each of the residual feature distillation submodules based on hybrid dilated convolution is specifically used for:
[0058] Performing feature distillation separation processing on the shallow feature map output by the shallow feature extraction module to obtain a first shallow feature map and a second shallow feature map, and performing mixed hole convolution processing on the second shallow feature map to extract global feature information to obtain a first deep feature map;
[0059] Performing feature distillation separation processing on the first deep feature map to obtain a second deep feature map and a third deep feature map, and performing mixed hole convolution processing on the third deep feature map to extract global feature information to obtain a fourth deep feature map;
[0060] Performing feature distillation separation processing on the fourth deep feature map to obtain a fifth deep feature map and a sixth deep feature map, and performing mixed dilated convolution processing on the sixth deep feature map to extract global feature information to obtain a seventh deep feature map;
[0061] The first shallow feature map, the second deep feature map, the fifth deep feature map and the seventh deep feature map are spliced to obtain a spliced feature map.
[0062] Furthermore, each of the residual feature distillation submodules based on mixed dilated convolution is further used for:
[0063] Based on the channel attention mechanism, fine-grained information of the spliced feature map is extracted to obtain a new spliced feature map;
[0064] The new concatenated feature map is added to the shallow feature map output by the shallow feature extraction module to obtain the final deep feature map.
[0065] For example, in this embodiment, a fast image super-resolution network based on feature distillation is constructed, see Figure 2 As shown in the figure, the network mainly consists of three parts: shallow feature extraction, deep feature extraction and image reconstruction. First, in the shallow feature extraction module, a simple convolution layer (i.e., a Conv3 convolution kernel) is used to extract the shallow features of the input image to obtain a shallow feature map; then, four iterative dilated residual feature distillation submodules (DRFDB) based on dilated convolution are used to iteratively extract the deep feature information and fine-grained information of the image to achieve deep feature extraction, and then obtain a deep feature map; finally, the image reconstruction module (i.e., Sub-pixel) performs sub-pixel convolution operations on the deep feature map and the shallow feature map to obtain the image super-resolution reconstruction result (Super-Resolution, SR).
[0066] For details, see Figure 3 As shown in the figure, the residual feature distillation submodule based on dilated convolution consists of three feature distillation operations, in which each feature distillation operation uses 1×1 convolution (Conv-1) to process half of the channels separated from the feature map as local information and directly passes it to the end of the module. Then all the channels of the feature map are used as the input of the next separation operation (i.e., dilated conv) to gradually expand the receptive field and extract global information. In addition, a hybrid dilated convolution extraction scheme is used when extracting global information. By using the pre-calculated dilation rate when extracting global information three times, the information loss (i.e., the problem of chessboard effect) that may be caused by the superposition of general dilated convolutions can be avoided. Finally, at the end of the module, the local feature information separated each time and the final global feature information are spliced together to obtain a spliced feature map. See Figure 4 As shown in the figure, an improved channel attention mechanism and convolution operation (i.e., CCALayer) are used to further extract fine-grained information from the spliced feature map. This mechanism is a channel attention that is more suitable for underlying visual tasks such as super-resolution. It replaces the global average pooling layer in the ordinary channel attention with the sum of the pixel average and standard deviation, so that the network pays more attention to texture edges and structural information, and then obtains the final deep feature map. The extracted final deep feature map will be used as the input of the next module, and the output of each DRFDB module and the shallow feature map input from the shallow feature extraction module will be spliced together and sent to the image reconstruction module at the end of the network.
[0067] Step S30: training the image super-resolution network based on the training data set to obtain an image super-resolution reconstruction model.
[0068] Furthermore, the training of the image super-resolution network based on the training data set includes:
[0069] Training is performed based on the first loss function during the first N epochs, where N is a positive integer;
[0070] In the iteration process after the Nth Epoch, the network parameters are adjusted based on the second loss function.
[0071] For example, in this embodiment, when training the image super-resolution network using the training data set, the Adam (Adaptive Moment Estimation) optimizer is used to calculate the gradient and update the network parameters, and finally form an image super-resolution reconstruction model. The training of the image super-resolution network is divided into two steps. For example, the loss function L1 (for example, L2) is used in the iteration process of the first 1000 epochs (when a complete data set passes through the neural network once and returns once, this process is called an epoch). ) to train the network; then in the training process of the next 1000 epochs, the loss function L2 (such as ) to fine-tune the network parameters.
[0072] It can be seen that the embodiment of the present application can expand the receptive field of feature extraction without increasing network parameters through the residual feature distillation sub-module based on hybrid void convolution, which can not only reduce the redundant parameters of the model and improve the efficiency of feature information extraction, but also make the extracted features contain more global information, thereby improving the accuracy of the super-resolution reconstruction results; and use the recursive idea to decompose the deep feature extraction into 4 residual feature distillation sub-modules based on hybrid void convolution with iterative effect, so as to effectively reduce the complexity of the model and improve the information processing efficiency. Therefore, the present application can reduce the capacity and computational consumption of the model and improve the reasoning speed of the model while ensuring the image super-resolution reconstruction results.
[0073] The following combination Figures 2 to 4 Further explain the working principle of the image super-resolution reconstruction model.
[0074] The high-resolution images and low-resolution images in the training data set are input into the shallow feature extraction module (i.e., Conv3) for shallow feature extraction to obtain a shallow feature map; then the DRFDB module will extract deep feature information and fine-grained image information from the shallow feature map (since the principles of deep feature extraction in each DRFDB module are similar, for the sake of brevity of description, this embodiment only describes the workflow of one of the DRFDB modules from top to bottom): the shallow feature map is subjected to the first feature distillation operation to obtain a first shallow feature map and a second shallow feature map, the first shallow feature map is directly input into the first Conv-1 as local information for further feature extraction, and the second shallow feature map is input into the first dilated conv; the first dilated conv performs a mixed hole convolution process on the second shallow feature map to extract global feature information to obtain a first deep feature map, and performs a feature distillation operation on the first deep feature map to obtain a second deep feature map and a third deep feature map; then the second deep feature map is directly input into the second Conv-1 as local information for further feature extraction, and the third deep feature map is input into the second dilated conv; the second dilated conv will perform mixed hole convolution on the third deep feature map to extract global feature information to obtain the fourth deep feature map, and perform feature distillation on the fourth deep feature map to obtain the fifth and sixth deep feature maps; the fifth deep feature map is then directly input into the third Conv-1 as local information for further feature extraction, and the sixth deep feature map is subjected to mixed hole convolution to extract global feature information to obtain the seventh deep feature map, and the seventh deep feature map is input into Conv-3 for further feature extraction; then the feature maps output by the three Conv-1 after feature extraction are concatenated with the feature maps output by Conv-3 to obtain a concatenated feature map, and the concatenated feature map is further extracted through the fourth Conv-1, and its output concatenated feature map is input into the contrast-aware attention layer (i.e., CCALayer) for image fine-grained information extraction.
[0075] See also Figure 4 As shown in the figure, the specific process of image fine-grained information extraction is as follows: the Contrast layer in the CCA Layer performs contrast learning on the concatenated feature map, and changes the number of channels of the feature map obtained by contrast learning based on the two Conv-1s, and uses sigmoid to assign the importance (i.e., weight) of each channel on the feature map, and then cross-multiplies the feature map output by sigmoid with the original concatenated feature map to obtain a new concatenated feature map; then, the new concatenated feature map output by CCALayer and the shallow feature map output by the shallow feature extraction module are residually added to obtain the final deep feature map; see Figure 2As shown in the figure, the final deep feature map output by the four DRFDB modules is input into Conv1 and Conv3 for convolution operation to obtain the total deep feature map; and the total deep feature map and the shallow feature map output by the shallow feature extraction module are input into a Conv3 for further convolution operation, and finally the convolution result is input into Sub-pixel for sub-pixel convolution and a series of convolution operations to obtain the image super-resolution reconstruction result.
[0076] It can be seen that the embodiment of the present application proposes a residual feature distillation sub-module based on void convolution, which can expand the receptive field of feature extraction without increasing network parameters, so that the extracted features contain more global information, thereby improving the efficiency of the network in extracting feature information; and the super-resolution reconstruction process in the embodiment of the present application is divided into three processes: shallow feature extraction, deep feature extraction, and image super-resolution reconstruction. The deep feature extraction is decomposed into four iterative modules using the recursive idea. This method effectively reduces the complexity of the model and improves the information processing efficiency; compared with the existing lightweight image super-resolution model, the network proposed in the embodiment of the present application can reduce the number of model parameters, reduce the model capacity, floating-point calculation amount and calculation consumption, and improve the inference speed of the model while ensuring the image super-resolution reconstruction results, thereby improving the efficiency of the model in practical applications.
[0077] The present application also provides an image super-resolution reconstruction model construction device, comprising:
[0078] An acquisition unit, configured to acquire a training data set, wherein the training data set includes a high-resolution image and a low-resolution image corresponding to the high-resolution image;
[0079] A construction unit, which is used to construct an image super-resolution network, wherein the super-resolution network includes a shallow feature extraction module, a deep feature extraction module and an image reconstruction module, wherein the deep feature extraction module includes four residual feature distillation submodules based on mixed void convolution with iterative effects, and the residual feature distillation submodule based on mixed void convolution is used to iteratively extract deep feature information and fine-grained information of the image;
[0080] A training unit is used to train the image super-resolution network based on the training data set to obtain an image super-resolution reconstruction model.
[0081] The embodiment of the present application can expand the receptive field of feature extraction without increasing network parameters through the residual feature distillation submodule based on hybrid void convolution, which can not only reduce the redundant parameters of the model and improve the efficiency of feature information extraction, but also make the extracted features contain more global information, thereby improving the accuracy of super-resolution reconstruction results; and use the recursive idea to decompose deep feature extraction into 4 residual feature distillation submodules based on hybrid void convolution with iterative effects, so as to effectively reduce the complexity of the model and improve the efficiency of information processing. Therefore, the present application can reduce the capacity and computational consumption of the model and improve the reasoning speed of the model while ensuring the image super-resolution reconstruction results.
[0082] Furthermore, each of the residual feature distillation submodules based on hybrid dilated convolution is specifically used for:
[0083] Performing feature distillation separation processing on the shallow feature map output by the shallow feature extraction module to obtain a first shallow feature map and a second shallow feature map, and performing mixed hole convolution processing on the second shallow feature map to extract global feature information to obtain a first deep feature map;
[0084] Performing feature distillation separation processing on the first deep feature map to obtain a second deep feature map and a third deep feature map, and performing mixed hole convolution processing on the third deep feature map to extract global feature information to obtain a fourth deep feature map;
[0085] Performing feature distillation separation processing on the fourth deep feature map to obtain a fifth deep feature map and a sixth deep feature map, and performing mixed dilated convolution processing on the sixth deep feature map to extract global feature information to obtain a seventh deep feature map;
[0086] The first shallow feature map, the second deep feature map, the fifth deep feature map and the seventh deep feature map are spliced to obtain a spliced feature map.
[0087] Furthermore, each of the residual feature distillation submodules based on mixed dilated convolution is further used for:
[0088] Based on the channel attention mechanism, fine-grained information of the spliced feature map is extracted to obtain a new spliced feature map;
[0089] The new concatenated feature map is added to the shallow feature map output by the shallow feature extraction module to obtain the final deep feature map.
[0090] Furthermore, the training unit is specifically used for:
[0091] Training is performed based on the first loss function during the first N epochs, where N is a positive integer;
[0092] In the iteration process after the Nth Epoch, the network parameters are adjusted based on the second loss function.
[0093] Furthermore, the acquisition unit is also used for:
[0094] Acquire an initial high-resolution image and an initial low-resolution image corresponding to the initial high-resolution image;
[0095] Randomly cropping the initial high-resolution image and the initial low-resolution image respectively to obtain a cropped high-resolution image and a cropped low-resolution image, wherein the cropped high-resolution image and the cropped low-resolution image have the same size;
[0096] The cropped high-resolution image and the cropped low-resolution image are respectively subjected to data enhancement processing of flipping and rotating to obtain a processed high-resolution image and a processed low-resolution image.
[0097] It should be noted that technical personnel in the relevant field can clearly understand that for the convenience and conciseness of description, the specific working process of the above-described device and each unit can refer to the corresponding process in the aforementioned image super-resolution reconstruction model construction method embodiment, and will not be repeated here.
[0098] The apparatus provided in the above embodiment may be implemented in the form of a computer program. The computer program may be Figure 5 The images shown are run on a super-resolution reconstruction model-built device.
[0099] An embodiment of the present application also provides an image super-resolution reconstruction model construction device, comprising: a memory, a processor and a network interface connected via a system bus, the memory storing at least one instruction, and the at least one instruction being loaded and executed by the processor to implement all or part of the steps of the aforementioned image super-resolution reconstruction model construction method.
[0100] The network interface is used for network communication, such as sending assigned tasks, etc. Those skilled in the art will understand that Figure 5 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0101] The processor may be a CPU, or other general-purpose processors, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor, or the processor may be any conventional processor, etc. The processor is the control center of the computer device, and uses various interfaces and lines to connect various parts of the entire computer device.
[0102] The memory can be used to store computer programs and / or modules. The processor realizes various functions of the computer device by running or executing the computer programs and / or modules stored in the memory and calling the data stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a video playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the mobile phone (such as video data, image data, etc.), etc. In addition, the memory can include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (SmartMedia Card, SMC), a secure digital (Secure digital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device or other volatile solid-state storage device.
[0103] An embodiment of the present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, all or part of the steps of the aforementioned image super-resolution reconstruction model construction method are implemented.
[0104] The embodiment of the present application implements all or part of the aforementioned process, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of each of the above methods when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, the computer-readable medium does not include electric carrier signals and telecommunication signals.
[0105] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, servers or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) that contain computer-usable program code.
[0106] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems) and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0107] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.
[0108] The above description is only a specific implementation of the present application, so that those skilled in the art can understand or implement the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest range consistent with the principles and novel features applied for herein.
Claims
1. A method for constructing an image super-resolution reconstruction model, characterized in that: The following steps are involved: Acquire a training data set, wherein the training data set includes a high-resolution image and a low-resolution image corresponding to the high-resolution image; Constructing an image super-resolution network, the super-resolution network comprising a shallow feature extraction module, a deep feature extraction module and an image reconstruction module, the deep feature extraction module comprising four iterative residual feature distillation submodules based on mixed dilated convolutions, the residual feature distillation submodules based on mixed dilated convolutions being used to iteratively extract deep feature information and fine-grained information of the image; Training an image super-resolution network based on the training data set to obtain an image super-resolution reconstruction model; Wherein, each of the residual feature distillation submodules based on mixed dilated convolution is specifically used for: Performing feature distillation separation processing on the shallow feature map output by the shallow feature extraction module to obtain a first shallow feature map and a second shallow feature map, and performing mixed hole convolution processing on the second shallow feature map to extract global feature information to obtain a first deep feature map; Performing feature distillation separation processing on the first deep feature map to obtain a second deep feature map and a third deep feature map, and performing mixed hole convolution processing on the third deep feature map to extract global feature information to obtain a fourth deep feature map; Performing feature distillation separation processing on the fourth deep feature map to obtain a fifth deep feature map and a sixth deep feature map, and performing mixed dilated convolution processing on the sixth deep feature map to extract global feature information to obtain a seventh deep feature map; The first shallow feature map, the second deep feature map, the fifth deep feature map and the seventh deep feature map are spliced to obtain a spliced feature map; Based on the channel attention mechanism, fine-grained information of the spliced feature map is extracted to obtain a new spliced feature map; The new concatenated feature map is added to the shallow feature map output by the shallow feature extraction module to obtain the final deep feature map.
2. The method for constructing an image super-resolution reconstruction model according to claim 1, wherein: The step of training the image super-resolution network based on the training data set includes: Training is performed based on the first loss function during the first N epochs, where N is a positive integer; In the iteration process after the Nth Epoch, the network parameters are adjusted based on the second loss function.
3. The method for constructing an image super-resolution reconstruction model according to claim 1, wherein: Before the step of obtaining the training data set, the method further includes: Acquire an initial high-resolution image and an initial low-resolution image corresponding to the initial high-resolution image; Randomly cropping the initial high-resolution image and the initial low-resolution image respectively to obtain a cropped high-resolution image and a cropped low-resolution image, wherein the cropped high-resolution image and the cropped low-resolution image have the same size; The cropped high-resolution image and the cropped low-resolution image are respectively subjected to data enhancement processing of flipping and rotating to obtain a processed high-resolution image and a processed low-resolution image.
4. A device for constructing an image super-resolution reconstruction model, characterized in that: include: An acquisition unit, configured to acquire a training data set, wherein the training data set includes a high-resolution image and a low-resolution image corresponding to the high-resolution image; A construction unit, which is used to construct an image super-resolution network, wherein the super-resolution network includes a shallow feature extraction module, a deep feature extraction module and an image reconstruction module, wherein the deep feature extraction module includes four residual feature distillation submodules based on mixed void convolution with iterative effects, and the residual feature distillation submodule based on mixed void convolution is used to iteratively extract deep feature information and fine-grained information of the image; A training unit, which is used to train the image super-resolution network based on the training data set to obtain an image super-resolution reconstruction model; Wherein, each of the residual feature distillation submodules based on mixed dilated convolution is specifically used for: Performing feature distillation separation processing on the shallow feature map output by the shallow feature extraction module to obtain a first shallow feature map and a second shallow feature map, and performing mixed hole convolution processing on the second shallow feature map to extract global feature information to obtain a first deep feature map; Performing feature distillation separation processing on the first deep feature map to obtain a second deep feature map and a third deep feature map, and performing mixed hole convolution processing on the third deep feature map to extract global feature information to obtain a fourth deep feature map; Performing feature distillation separation processing on the fourth deep feature map to obtain a fifth deep feature map and a sixth deep feature map, and performing mixed dilated convolution processing on the sixth deep feature map to extract global feature information to obtain a seventh deep feature map; The first shallow feature map, the second deep feature map, the fifth deep feature map and the seventh deep feature map are spliced to obtain a spliced feature map; Based on the channel attention mechanism, fine-grained information of the spliced feature map is extracted to obtain a new spliced feature map; The new concatenated feature map is added to the shallow feature map output by the shallow feature extraction module to obtain the final deep feature map.
5. An image super-resolution reconstruction model construction device, characterized in that: include: A memory and a processor, wherein the memory stores at least one instruction, and the at least one instruction is loaded and executed by the processor to implement the image super-resolution reconstruction model construction method according to any one of claims 1 to 3.
6. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method for constructing an image super-resolution reconstruction model according to any one of claims 1 to 3 is implemented.
