Image processing method, image processing device and storage medium

By adopting a fusion method of progressive training and knowledge distillation technology in image processing, the image reconstruction performance is improved. In particular, the problem of deformation and distortion is solved during facial image reconstruction, and better reconstruction results are achieved.

CN118799178APending Publication Date: 2024-10-18CHINA MOBILE COMM LTD RES INST +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410263143.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-03-07
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

Existing image lightweight and clearing methods improve model inference speed while sacrificing model reconstruction performance. Especially when reconstructing facial images, there are problems with eye deformation, distortion and facial smoothing.

Method used

An image processing method is adopted, by inputting the low-resolution image to be predicted into the first target sharpening model obtained by merging the second target sharpening model and the third target sharpening model, using a progressive training strategy and knowledge distillation technology, combined with the re-parameterization module, improves the model reconstruction performance, and improves the face image reconstruction effect through specialized training strategies and loss functions.

Benefits of technology

Without increasing the complexity of the model, the image reconstruction performance is improved, especially when reconstructing facial images, the effect is improved, eye deformation and distortion are reduced, and the reconstruction quality of facial details is enhanced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118799178A_ABST
    Figure CN118799178A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides an image processing method, an image processing device and a storage medium, and the method comprises the steps: inputting a to-be-predicted LR image to a first target sharpness model through the image processing device, and obtaining an SR image corresponding to the to-be-predicted LR image; wherein the first target sharpness model is obtained by fusing the second target sharpness model and the third target sharpness model; the second target sharpening model is obtained by training the first initial sharpening model through a first loss function and a progressive training strategy; the first initial clearness model comprises an initial teacher network model and an initial student network model; the initial student network model at least comprises a re-parameterization module; the third target sharpening model is used for reconstructing the image information of the first biological feature, so that the reconstruction performance of the model can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of image processing technology, and in particular to an image processing method, an image processing device and a storage medium. Background Art

[0002] Image sharpening refers to restoring and reconstructing a high-definition image from a low-definition image. The technical route to achieve image sharpening is image super-resolution (SR) reconstruction, that is, reconstructing a super-resolution (SR) clear image from a low-resolution (LR) image. With the development of deep learning technology, the lightweight SR direction has emerged. The current mainstream image lightweight sharpening method mainly includes three steps. First, a high-resolution image (HR)-LR image pair is constructed; then a lightweight sharpening model is built to learn the mapping relationship between data pairs; finally, the model is used for restoration and reconstruction, and it can be generalized to any image. The sharpening model usually uses some operations for lightweight processing, such as feature distillation, deep separable convolution, pruning, and building shallower and narrower models.

[0003] However, current image lightweight sharpening methods have the following disadvantages: (1) Currently, a large number of lightweight sharpening solutions sacrifice model complexity in exchange for reconstruction efficiency, that is, by reducing the depth and width of the model to improve the model inference speed, parameter quantity and other indicators, but the model reconstruction performance is reduced; (2) The mainstream lightweight sharpening solution only performs end-to-end training once, and its training strategy is relatively simple, and the model reconstruction performance is limited; (3) The general sharpening model will cause eye deformation and distortion, and face smoothing when reconstructing face images. In summary, the current image lightweight sharpening methods have the problem of reduced model reconstruction performance and poor reconstruction effect for face images. Summary of the invention

[0004] The embodiments of the present application provide an image processing method, an image processing device, and a storage medium, which can improve the reconstruction effect of facial images while improving the model reconstruction performance.

[0005] The technical solution of the embodiment of the present application is implemented as follows:

[0006] In a first aspect, an embodiment of the present application provides an image processing method, the method comprising:

[0007] The LR image to be predicted is input into the first target sharpening model to obtain the SR image corresponding to the LR image to be predicted; wherein,

[0008] The first target clarity model is obtained by fusing the second target clarity model and the third target clarity model;

[0009] The second target clarity model is obtained by training the first initial clarity model through the first loss function and the progressive training strategy; the first initial clarity model includes an initial teacher network model and an initial student network model; the initial student network model includes at least a reparameterization module;

[0010] The third object sharpening model is used to reconstruct image information of the first biological feature.

[0011] In a second aspect, an embodiment of the present application provides an image processing device, the image processing device comprising: an input unit;

[0012] The input unit is used to input the LR image to be predicted into the first target sharpening model to obtain the SR image corresponding to the LR image to be predicted; wherein,

[0013] The first target clarity model is obtained by fusing the second target clarity model and the third target clarity model;

[0014] The second target clarity model is obtained by training the first initial clarity model through the first loss function and the progressive training strategy; the first initial clarity model includes an initial teacher network model and an initial student network model; the initial student network model includes at least a reparameterization module;

[0015] The third object sharpening model is used to reconstruct image information of the first biological feature.

[0016] In a third aspect, an embodiment of the present application provides an image processing device, the image processing device comprising: a processor and a memory; wherein:

[0017] The memory is used to store a computer program that can be run on the processor;

[0018] The processor is used to execute the image processing method as described above when running the computer program.

[0019] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, characterized in that a computer program code is stored on the storage medium, and when the computer program code is executed by a computer, the image processing method as described above is implemented.

[0020] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program, characterized in that when the computer program is executed by a processor, it implements the image processing method as described above.

[0021] An embodiment of the present application provides an image processing method, an image processing device and a storage medium, the method comprising: the image processing device inputs the LR image to be predicted into a first target sharpening model to obtain an SR image corresponding to the LR image to be predicted; wherein the first target sharpening model is obtained by fusion of the second target sharpening model and the third target sharpening model; the second target sharpening model is obtained by training the first initial sharpening model through a first loss function and a progressive training strategy; the first initial sharpening model comprises an initial teacher network model and an initial student network model; the initial student network model comprises at least a reparameterization module; the third target sharpening model is used to reconstruct image information of the first biometric feature. That is to say, the first target clarity model proposed in the present application is obtained by fusion of the second target clarity model and the third target clarity model, and the second target clarity model is obtained by training the first initial clarity model through the first loss function and the progressive training strategy. Different from the current single training strategy, the present application can deeply explore the model performance through the progressive training strategy, so as to gradually improve the model reconstruction performance. Among them, the first initial clarity model includes the initial teacher network model and the initial student network model, which can fully balance the model complexity and efficiency, and improve the performance without increasing the model complexity. The third target clarity model can be used to reconstruct the image information of the first biometric feature, thereby improving the reconstruction effect of the face image. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] Figure 1 The image processing method proposed in this embodiment is shown in FIG. Figure 1 ;

[0023] Figure 2 A schematic diagram of the structure of the first initial clarification model proposed in the embodiment of the present application;

[0024] Figure 3 A schematic diagram of the initial teacher network model proposed in the embodiment of the present application;

[0025] Figure 4 A schematic diagram of the initial student network model proposed in the embodiment of the present application;

[0026] Figure 5 Schematic diagram of the knowledge distillation framework proposed in the embodiment of the present application;

[0027] Figure 6 A schematic diagram of the RPRB structure proposed in the embodiment of the present application;

[0028] Figure 7 This is a schematic diagram of the ECB module structure proposed in the embodiment of the present application;

[0029] Figure 8A schematic diagram of the structure of the attention module (ESA) proposed in the embodiment of the present application;

[0030] Fig. 9 A schematic diagram of the clarity effect proposed in the embodiment of the present application;

[0031] Fig.10 The structure of the image processing device proposed in the embodiment of the present application is shown in FIG. Figure 1 ;

[0032] Fig.11 The structure of the image processing device proposed in the embodiment of the present application is shown in FIG. Figure 2 . DETAILED DESCRIPTION

[0033] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. It is understood that the specific embodiments described herein are only used to explain the related applications, rather than to limit the applications. It should also be noted that, for ease of description, only the parts related to the related applications are shown in the drawings.

[0034] Image sharpening refers to the process of restoring and reconstructing a high-definition image from a low-definition image. The reconstructed high-resolution image has clear textures, prominent edges, rich details, and good visual quality. The technical route to achieve image sharpening is image super-resolution (SR) reconstruction, that is, reconstructing a super-resolution (SR) clear image from a low-resolution (LR) image. With the development of deep learning technology, the size and computational complexity of SR models have doubled. However, for scenarios with limited hardware resources such as mobile devices, SR models cannot achieve real-time effects. Therefore, a lightweight SR direction has been derived to improve the effectiveness of SR models. Its effectiveness is specifically reflected in model inference time, number of parameters, activation amount, model complexity, and activation amount. Lightweight SR models can achieve real-time restoration effects while maintaining good reconstruction performance. Typical application scenarios include mobile phone photo sharpening and home TV video sharpening.

[0035] The current mainstream image lightweight sharpening method mainly includes three steps. First, construct HR-LR image pairs; then build a lightweight sharpening model to learn the mapping relationship between data pairs; finally, use the model to restore and reconstruct, and it can be generalized to any image. The sharpening model usually uses some operations for lightweight processing, such as feature distillation, deep separable convolution, pruning, building shallower and narrower models, etc.

[0036] However, current image lightweight sharpening methods have the following disadvantages: (1) Currently, a large number of lightweight sharpening solutions sacrifice model complexity in exchange for reconstruction efficiency, that is, by reducing the depth and width of the model to improve the model inference speed, parameter quantity and other indicators, but the model reconstruction performance is reduced; (2) The mainstream lightweight sharpening solution only performs end-to-end training once, and its training strategy is relatively simple, and the model reconstruction performance is limited; (3) The general sharpening model will cause eye deformation and distortion, and face smoothing when reconstructing face images. In summary, the current image lightweight sharpening methods have the problem of reduced model reconstruction performance and poor reconstruction effect for face images.

[0037] In order to solve the problem that the reconstruction performance of the model is reduced and the reconstruction effect of face images is poor in the current image lightweight sharpening method, the embodiment of the present application provides an image processing method, an image processing device and a storage medium, the method comprising: the image processing device inputs the LR image to be predicted into a first target sharpening model to obtain an SR image corresponding to the LR image to be predicted; wherein the first target sharpening model is obtained by fusion of the second target sharpening model and the third target sharpening model; the second target sharpening model is obtained by training the first initial sharpening model through a first loss function and a progressive training strategy; the first initial sharpening model includes an initial teacher network model and an initial student network model; the initial student network model includes at least a reparameterization module; the third target sharpening model is used to reconstruct the image information of the first biometric feature. That is to say, the first target clarity model proposed in the present application is obtained by fusion of the second target clarity model and the third target clarity model, and the second target clarity model is obtained by training the first initial clarity model through the first loss function and the progressive training strategy. Different from the current single training strategy, the present application can deeply explore the model performance through the progressive training strategy, so as to gradually improve the model reconstruction performance. Among them, the first initial clarity model includes the initial teacher network model and the initial student network model, which can fully balance the model complexity and efficiency, and improve the performance without increasing the complexity of the lightweight model. The third target clarity model can be used to reconstruct the image information of the first biometric feature, thereby improving the reconstruction effect of the face image.

[0038] The technical solutions 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.

[0039] Embodiment 1

[0040] The present application embodiment provides an image processing method, Figure 1 The image processing method proposed in this embodiment is shown in FIG. Figure 1 ,like Figure 1 As shown, the image processing method may include the following steps:

[0041] Step 101: input the LR image to be predicted into a first target sharpening model to obtain a SR image corresponding to the LR image to be predicted.

[0042] In an embodiment of the present application, the image processing device may input the LR image to be predicted into the first target sharpening model to obtain the SR image corresponding to the LR image to be predicted.

[0043] It should be noted that, in the embodiment of the present application, the first target clarity model is obtained by fusing the second target clarity model and the third target clarity model.

[0044] It should be noted that in an embodiment of the present application, the second target clarification model is obtained by training the first initial clarification model through a first loss function and a progressive training strategy; the first initial clarification model includes an initial teacher network model and an initial student network model; the initial student network model includes at least a reparameterization module.

[0045] It should be noted that, in the embodiment of the present application, the third object sharpening model is used to reconstruct the image information of the first biometric feature.

[0046] It should be noted that, in the embodiments of the present application, the first biometric feature may be an eye feature or other features, and the present application does not specifically limit the type of the first biometric feature.

[0047] It should be noted that, in the embodiments of the present application, Figure 2 This is a schematic diagram of the first initial clarification model structure proposed in the embodiment of the present application, such as Figure 2 As shown, the first initial refinement model may include an initial teacher network model and an initial student network model.

[0048] It should be noted that, in the embodiments of the present application, Figure 3 The schematic diagram of the initial teacher network model proposed in the embodiment of the present application is as follows: Figure 3 As shown, the initial teacher network model may include an encoding (Encoder) module and a decoding (Decoder) module to realize the HR image self-reconstruction function, the input is an HR image, and the output is also an HR image; wherein, the encoding module may be composed of a convolutional layer (conv), and the decoding (Decoder) module may be composed of multiple convolutional layers (conv), multiple residual Swin Transformer blocks (RSTB) and an upsampling module (PixelShuffle). This application does not specifically limit the number and type of modules included in the initial teacher network model.

[0049] It should be noted that, in the embodiments of the present application, Figure 4The schematic diagram of the initial student network model proposed in the embodiment of the present application is as follows: Figure 4 As shown, the initial student network model may include multiple convolutional layers (conv), multiple re-parameterized residual blocks (RPRB) and a reconstruction module. The reconstruction module may include a convolutional layer and an upsampling module (PixelShuffle). This application does not specifically limit the number and type of modules included in the initial student network model.

[0050] That is to say, in an embodiment of the present application, the first initial sharpening model may include an initial teacher network model and an initial student network model, and the image processing device may train the first initial sharpening model through a first loss function and a progressive training strategy to obtain a second target sharpening model.

[0051] It should be noted that, in the embodiment of the present application, the first loss function may include a second loss function and a third loss function, and the second loss function is shown in the following formula (1).

[0052] l teacher = l recon_hr +0.01*l imitation =‖Y SR -Y‖+0.01*‖X E -X‖ (1)

[0053] Among them, l recon_hr represents the reconstruction loss, l imitation is the imitation loss, X represents the real LR image, X E Represents the image output by the encoding module, Y SR is the reconstructed HR image, and Y is the HR image.

[0054] It should be noted that, in the embodiment of the present application, the third loss function is shown in the following formula (2).

[0055]

[0056] Among them, I HR is the HR image, I SR is the reconstructed SR image, and They represent the feature maps output by the i-th RSTB and RPRB respectively, and ‖.‖ represents the L1 norm.

[0057] It should be noted that, in the embodiments of the present application, the progressive training strategy may include a first training strategy and a second training strategy.

[0058] It should be noted that, in the embodiments of the present application, the first training strategy includes at least the first image data (Batchsize), the first initial learning rate, and the first number of iterations, and the first image data includes an HR image of a first preset size. The present application does not specifically limit the number and size of parameters included in the first training strategy.

[0059] It should be noted that, in the embodiment of the present application, the batch size of the first image data can be set to 64, or other numbers. The present application does not specifically limit the size of the batch size of the first image data.

[0060] It should be noted that, in the embodiment of the present application, the first initial learning rate may be 5×10 -4 , this application does not specifically limit the size of the first initial learning rate.

[0061] It should be noted that, in the embodiment of the present application, the first number of iterations may be 400 rounds, and the present application does not specifically limit the size of the first number of iterations.

[0062] It should be noted that, in the embodiment of the present application, the first image data includes an HR image of a first preset size, and the first preset size may be 256×256. The present application does not specifically limit the size of the first preset size.

[0063] It should be noted that, in an embodiment of the present application, the second training strategy includes at least the Batchsize of the second image data, the second initial learning rate, and the second number of iterations, and the second image data includes an HR image of a second preset size. The present application does not specifically limit the number and size of parameters included in the second training strategy.

[0064] It should be noted that, in the embodiment of the present application, the second initial learning rate may be 2.5×10 -4 , this application does not specifically limit the size of the second initial learning rate.

[0065] It should be noted that, in the embodiment of the present application, the second number of iterations may be 500 rounds, and the present application does not specifically limit the size of the second number of iterations.

[0066] It should be noted that, in the embodiment of the present application, the second image data includes an HR image of a second preset size, and the second preset size may be 640×640. The present application does not specifically limit the size of the second preset size.

[0067] It should be noted that, in the embodiments of the present application, the second target clarification model is obtained based on the first target teacher network model and the first target student network model. The first target teacher network model is obtained by training the initial teacher network model through the second loss function and the first training strategy; the first target student network model is obtained by training the initial student network model through the first target teacher network model, the third loss function, the first training strategy and the second training strategy.

[0068] That is to say, in an embodiment of the present application, the image processing device can train the initial teacher network model through the second loss function and the first training strategy to obtain the first target teacher network model, and can also train the initial student network model through the first target teacher network model, the third loss function, the first training strategy and the second training strategy to obtain the first target student network model, and then can obtain the second target clarity model based on the first target teacher network model and the first target student network model.

[0069] It should be noted that in an embodiment of the present application, the image processing device can train the initial student network model through the first target teacher network model, the third loss function, the first training strategy and the second training strategy to obtain the first target student network model. Since the initial student network model has low complexity and limited reconstruction performance, while the initial teacher network model has high complexity, large number of parameters and better performance, knowledge distillation can be used to provide supervision information for the initial student network, thereby improving the performance of the student network and improving the model reconstruction performance without increasing the complexity of the model.

[0070] It should be noted that, in an embodiment of the present application, the first target teacher network model may include a target encoder and a target decoder, the target encoder includes N first convolutional layers, the target decoder includes M second convolutional layers, L residual Swin Transformer blocks (RSTB) and an upsampling module (PixelShuffle), N, M, and L are all positive integers, and this application does not specifically limit the size of N, M, and L.

[0071] It should be noted that, in an embodiment of the present application, the image processing device may input a first high-resolution (HighResolution HR, HR) image into N first convolutional layers to obtain a first low-resolution (LowResolution, LR) image corresponding to the first HR image; then the first LR image may be input into a target decoder to obtain a reconstructed second HR image.

[0072] It should be noted that, in an embodiment of the present application, as shown in the above formula (1), the second loss function can be determined based on the first HR image, the second HR image, the first LR image and the second LR image; wherein the second LR image is a real LR image.

[0073] It should be noted that in an embodiment of the present application, when the image processing device trains the initial teacher network model through the second loss function and the first training strategy to obtain the first target teacher network model, it can train the initial teacher network model based on the first training strategy to obtain the second target teacher network model, and then can correct the second target teacher network model based on the second loss function to obtain the first target teacher network model.

[0074] It should be noted that, in an embodiment of the present application, the first target student network model may include S third convolutional layers, M re-parameterized residual blocks (RPRBs) and a reconstruction module, each RPRB block includes E re-parameterized modules, S and E are both positive integers, and the present application does not specifically limit the size of S and E.

[0075] It should be noted that, in an embodiment of the present application, the image processing device can input the second HR image into the target encoder to obtain a second LR image corresponding to the second HR image; then, the first feature image corresponding to the second LR image can be determined based on the second convolutional layer, and the second feature image corresponding to each RSTB block can be determined based on the first feature image and L RSTB blocks; then, the third feature image corresponding to the third LR image can be determined based on the third convolutional layer, and the fourth feature image corresponding to each RPRB block can be determined based on the third feature image and M RPRB blocks; finally, the first SR image corresponding to the third LR image can be determined based on the fourth image feature, the third convolutional layer and the reconstruction module.

[0076] It should be noted that, in the embodiment of the present application, as shown in the above formula (2), the third loss function can be obtained based on the second HR image, the first SR image, the second feature image and the fourth feature image.

[0077] It should be noted that, in an embodiment of the present application, the first target student network model is obtained by training the second target student network model through the first training strategy and the second training strategy; wherein, the second target student network model is obtained by training the initial student network model through the first target teacher network model and the third loss function.

[0078] It should be noted that in the embodiments of the present application, when the image processing device trains the initial student network model through the first target teacher network model, the third loss function, the first training strategy and the second training strategy to obtain the first target student network model, it can train the initial student network model through the first target teacher network model and the third loss function to obtain the second target student network model, and then can train the second target student network model through the first training strategy and the second training strategy to obtain the first target student network model.

[0079] That is to say, in an embodiment of the present application, the image processing device can train the initial student network model through the first target teacher network model and the third loss function to obtain the second target student network model, that is, the initial student network model can be supervised trained based on the first target teacher network model to obtain the second target student network model, and then the second target student network model can be trained based on the progressive training strategy to obtain the first target student network model, so that the model performance can be deeply mined through progressive training and the reconstruction performance can be gradually improved.

[0080] Exemplarily, in an embodiment of the present application, the first target student network model can be obtained by training the second initialized student network model through the second training strategy, and the second initialized student network model can be obtained by initializing the initial student network model based on the second weight parameter corresponding to the fifth target student network model; the fifth target student network model can be determined based on the third target student network model; the third target student network model can be obtained by training the first initialized student network model based on the first training strategy and the fourth loss function; the first initialized student network model is obtained by initializing the initial student network model based on the first weight parameter corresponding to the second target student network model.

[0081] That is to say, in an embodiment of the present application, the image processing device can initialize the initial student network model based on the first weight parameter corresponding to the second target student network model to obtain a first initialized student network model, and then can train the first initialized student network model based on the first training strategy and the fourth loss function to obtain a third target student network model, and then can determine the fifth target student network model based on the third target student network, and initialize the initial student network model based on the second weight parameter corresponding to the fifth target student network model to obtain a second initialized student network model, and then can train the second initialized student network model through the second training strategy to obtain the first target student network model.

[0082] It should be noted that, in the embodiments of the present application, the fourth loss function may be an L1 loss function, and the present application does not specifically limit the type of the fourth loss function.

[0083] It should be noted that, in the embodiments of the present application, the fifth target student network model can be obtained by training the fourth initialized student network model based on the third training strategy and the fifth loss function; the fourth initialized student network model is obtained by initializing the initial student network model based on the fourth weight parameter corresponding to the fourth target student network model; the fourth target student network model is obtained by training the third initialized student network model based on the first training strategy and the fifth loss function; the third initialized student network model is obtained by initializing the initial student network model with the third weight parameter corresponding to the third target student network model.

[0084] That is to say, when the image processing device determines the fifth target student network model based on the third target student network, the initial student network model can be initialized by the third weight parameter corresponding to the third target student network model to obtain the third initialized student network model, and then the third initialized student network model can be trained based on the first training strategy and the fifth loss function to obtain the fourth target student network model, and then the initial student network model can be initialized based on the fourth weight parameter corresponding to the fourth target student network model to obtain the fourth initialized student network model, and the fourth initialized student network model can be trained based on the third training strategy and the fifth loss function to obtain the fifth target student network model.

[0085] It should be noted that, in an embodiment of the present application, the third training strategy includes at least the Batchsize of the third image data, the first initial learning rate, and the first number of iterations, and the third image data includes an HR image of a third preset size. The present application does not specifically limit the number and size of parameters included in the third training strategy.

[0086] It should be noted that, in the embodiment of the present application, the third preset size may be 512×512, and the present application does not specifically limit the size of the third preset size.

[0087] It should be noted that, in an embodiment of the present application, the fifth loss function may be a mean square error loss (MSE) function, and the present application does not specifically limit the type of the fifth loss function.

[0088] It should be noted that, in an embodiment of the present application, the image processing device can determine a third target sharpening model based on the first target teacher network model and the sixth target student network model; wherein the sixth target student network model is obtained by training the initial student network model through the first target teacher network model, the third loss function, the sixth loss function and the fourth training strategy; the sixth loss function is based on the pixel distance and structural similarity between the third HR image and the second SR image.

[0089] It should be noted that, in the embodiment of the present application, the sixth loss function is shown in the following formula (3).

[0090]

[0091] Among them, MSE(.) represents the MSE distance, SSIM(.) represents the SSIM distance, and denote the eye regions of HR and SR images, respectively.

[0092] Exemplarily, in an embodiment of the present application, when the image processing device trains the initial student network model through the first target teacher network model, the third loss function, the sixth loss function and the fourth training strategy to obtain the sixth target student network model, the third loss function and the sixth loss function can be combined to obtain a combined loss function, and then the initial student network model can be trained based on the first target teacher network model, the combined loss function and the fourth training strategy to obtain the sixth target student network model.

[0093] That is to say, in an embodiment of the present application, the image processing device can also determine a third target sharpening model based on the first target teacher network model and the sixth target student network model. The third target sharpening model can be used to reconstruct the image information of the first biometric feature and has better performance in reconstructing facial images.

[0094] Further, in an embodiment of the present application, the first object clarity model may be obtained by fusing a first model parameter corresponding to the second object clarity model and a second model parameter corresponding to the third object clarity model.

[0095] It should be noted that in the embodiments of the present application, the third target sharpening model has better performance in reconstructing facial images, while the general second target sharpening model has better performance in reconstructing general natural scenes. Therefore, by weighted averaging the parameters of the two models, a first target sharpening model that can process both facial images and natural scenes can be obtained.

[0096] To summarize, the image processing device can train the initial student network model through the first target teacher network model and the third loss function to obtain the second target student network model, that is, the initial student network model can be supervised and trained based on the first target teacher network model to obtain the second target student network model, and then the second target student network model can be trained based on the progressive training strategy to obtain the first target student network model, so that the performance of the deep mining model can be progressively trained to gradually improve the reconstruction performance. The image processing device can also determine the third target sharpening model based on the first target teacher network model and the sixth target student network model. The third target sharpening model can be used to reconstruct the image information of the first biometric feature and has good performance in reconstructing facial images, while the second target sharpening model has good performance in reconstructing general natural scenes. Therefore, by fusion processing based on the first model parameters corresponding to the second target sharpening model and the second model parameters corresponding to the third target sharpening model, a first target sharpening model that can process both facial images and natural scenes can be obtained.

[0097] An embodiment of the present application provides an image processing method, which includes: an image processing device inputs an LR image to be predicted into a first target sharpening model to obtain an SR image corresponding to the LR image to be predicted; wherein the first target sharpening model is obtained by fusion of a second target sharpening model and a third target sharpening model; the second target sharpening model is obtained by training a first initial sharpening model through a first loss function and a progressive training strategy; the first initial sharpening model includes an initial teacher network model and an initial student network model; the initial student network model includes at least a reparameterization module; the third target sharpening model is used to reconstruct image information of the first biometric feature. That is to say, the first target clarity model proposed in the present application is obtained by fusion of the second target clarity model and the third target clarity model, and the second target clarity model is obtained by training the first initial clarity model through the first loss function and the progressive training strategy. Different from the current single training strategy, the present application can deeply explore the model performance through the progressive training strategy, so as to gradually improve the model reconstruction performance. Among them, the first initial clarity model includes the initial teacher network model and the initial student network model, which can fully balance the model complexity and efficiency, and improve the performance without increasing the complexity of the lightweight model. The third target clarity model can be used to reconstruct the image information of the first biometric feature, thereby improving the reconstruction effect of the face image.

[0098] Embodiment 2

[0099] Based on the above embodiments, another embodiment of the present application provides an image processing method and a lightweight image sharpening model (second target sharpening model) based on knowledge distillation and re-parameterization, which can fully balance the model complexity and efficiency. The knowledge distillation architecture can transfer the information of the complex model to the lightweight model, improving the performance without increasing the complexity of the lightweight model; and the re-parameterization module uses different structures in the training and reasoning stages, and merges the convolutional layers through mathematical operations in the reasoning stage to effectively improve the model reasoning speed; secondly, a training strategy is proposed to gradually fine-tune the model through multi-stage training to further improve the reconstruction performance. Finally, a model fusion method and an eye reconstruction loss function (the sixth loss function) are designed to solve the face sharpening problem.

[0100] It should be noted that in the embodiments of the present application, a knowledge distillation framework (second target clarity model) is designed to improve image clarity. Figure 5 A schematic diagram of the knowledge distillation framework proposed in this embodiment of the application is shown in FIG. Figure 5 As shown in the figure, the architecture constructs a teacher network (initial teacher network) and a student network (initial student network). The student network model has low complexity and limited reconstruction performance; while the teacher network model has high complexity, large number of parameters and better performance. Therefore, knowledge distillation can be used to provide supervision information for the student network to improve the performance of the student network without increasing the complexity of the model. In addition, this application uses the re-parameterization idea to design a re-parameterization module to compress the model and improve the inference speed. Figure 5 As shown in , the framework consists of a student network and a teacher network. The student network is an end-to-end sharpening network used to restore and reconstruct the SR image from the LR image. Figure 5 As shown in the figure, the teacher network (initial teacher network) can be composed of an Encoder and a Decoder to realize the self-reconstruction function of HR images. The input is an HR image and the output is also an HR image. The feature map learned by the teacher network contains more high-frequency information, which provides additional useful information for the training of the student network and supervises the training of the student network. The Encoder can be composed of 4 convolutional layers to realize the image 4x downsampling function, which learns the degradation process of HR images; the Decoder realizes the image restoration and reconstruction function, and reconstructs the LR image obtained by the Encoder into an HR image. The Decoder is composed of shallow feature extraction, deep feature extraction and upsampling module (PixelShuffle module). The shallow feature can be the first convolutional layer in the Decoder, and the deep feature extraction module is composed of 4 residual connected RSTB blocks. The reconstruction process of the teacher network is shown in the following formula (4).

[0101] Y SR =N teacher (Y) (4)

[0102] Among them, Y SR is the HR image reconstructed by the teacher network, Y is the HR image, N teacher represents the teacher network.

[0103] It should be noted that, in the embodiments of the present application, since the Encoder simulates the mapping relationship between the HR-LR image pairs, the downsampled LR image should be highly similar to the real LR image, so the imitation loss is used to constrain the training of the Encoder; in order to ensure that the teacher network can accurately reconstruct the HR image, a reconstruction loss is also required to constrain the teacher network. The loss function for training the teacher network (the second loss function) is shown in the above formula (1).

[0104] It should be noted that, in the embodiments of the present application, Figure 5 As shown in the figure, the student network is a lightweight SR model that realizes the image sharpening function. The input is the LR image and the output is the sharpened SR image. It consists of three modules: shallow feature extraction, deep feature extraction and reconstruction. Among them, the shallow feature extraction is implemented by a convolutional layer (conv3), the deep feature extraction is composed of 4 re-parameterized residual blocks (RPRB), and the reconstruction module can be composed of a convolutional layer (conv3) and PixelShuffle. Figure 6 This is a schematic diagram of the RPRB structure proposed in the embodiment of the present application, such as Figure 6 As shown in the figure, it is mainly composed of three residual connected reparameterization (ECB) modules and an attention module (ESA), and GeLU represents the activation function.

[0105] It should be noted that, in the embodiments of the present application, Figure 7 This is a schematic diagram of the ECB module structure proposed in the embodiment of the present application, such as Figure 7 As shown in the figure, the ECB module is designed with 5 parallel branches to extract features. The first two branches are conventional convolutions, the third branch uses the sobel-Dx operator to extract the horizontal gradient, the fourth branch uses the sobel-Dy operator to extract the vertical gradient, and the fifth branch uses the Laplacian operator to extract the second-order gradient. Since clear edges can effectively improve image quality, the guidance of edge gradient information can effectively improve reconstruction performance. The ECB module maintains a complex structure with 5 branches during model training to enhance the model's feature representation capabilities, and can be merged into a convolution layer in the inference stage to effectively improve the inference speed.

[0106] It should be noted that, in the embodiments of the present application, Figure 8 This is a schematic diagram of the structure of the attention module (ESA) proposed in the embodiment of the present application, as shown in Figure 8As shown, ESA can be composed of a convolution layer, a convolution step (strided conv), a pooling layer (Pooling), an upsampling module (UpSample) and an activation function (sigmoid).

[0107] It should be noted that in an embodiment of the present application, the image processing device can first complete the training of the teacher network (initial teacher network), and then fix the teacher network (first target teacher network model) when training the student network (initial student network). The student network and the teacher network construct knowledge loss to realize knowledge transfer. The distance between the output feature of each RSTB module of the teacher network and the output feature of the corresponding student network RPRB module is calculated to constrain the student network training. The definition of knowledge loss is shown in the following formula (5). Therefore, the loss function (third loss function) for training the student network is shown in the above formula (2).

[0108]

[0109] in, and They represent the feature maps output by the i-th RSTB and RPRB respectively, and ‖.‖ represents the L1 norm.

[0110] It should be noted that, in the embodiments of the present application, the image processing device may gradually refine the model through a progressive training strategy.

[0111] It should be noted that, in the embodiments of the present application, the progressive training strategy may include a first training strategy and a second training strategy.

[0112] It should be noted that, in the embodiments of the present application, the first training strategy includes at least the first image data (Batchsize), the first initial learning rate, and the first number of iterations, and the first image data includes an HR image of a first preset size. The present application does not specifically limit the number and size of parameters included in the first training strategy.

[0113] It should be noted that, in the embodiment of the present application, the batch size of the first image data can be set to 64, or other numbers. The present application does not specifically limit the size of the batch size of the first image data.

[0114] It should be noted that, in the embodiment of the present application, the first initial learning rate may be 5×10 -4 , this application does not specifically limit the size of the first initial learning rate.

[0115] It should be noted that, in the embodiment of the present application, the first number of iterations may be 400 rounds, and the present application does not specifically limit the size of the first number of iterations.

[0116] It should be noted that, in the embodiment of the present application, the first image data includes an HR image of a first preset size, for example, it may be a 256×256 HR image, and the present application does not specifically limit the size of the first preset size.

[0117] It should be noted that, in an embodiment of the present application, the second training strategy includes at least the Batchsize of the second image data, the second initial learning rate, and the second number of iterations, and the second image data includes an HR image of a second preset size. The present application does not specifically limit the number and size of parameters included in the second training strategy.

[0118] It should be noted that, in the embodiment of the present application, the second initial learning rate may be 2.5×10 -4 , this application does not specifically limit the size of the second initial learning rate.

[0119] It should be noted that, in the embodiment of the present application, the second number of iterations may be 500 rounds, and the present application does not specifically limit the size of the second number of iterations.

[0120] It should be noted that, in the embodiment of the present application, the second image data includes an HR image of a second preset size, for example, it may be a 640×640 HR image, and the present application does not specifically limit the size of the second preset size.

[0121] It should be noted that, in the embodiment of the present application, the image processing device can gradually refine the model through a progressive training strategy, which mainly includes three steps: Stage 1. Training the teacher network, the image processing device can randomly crop an image block of 256×256 (first preset size) from the HR image, downsample it by 4 times using bicubic interpolation to obtain an LR image, construct an HR-LR image pair, set the batch size to 64 (the number of batches of the first image data (Batch size)), and set the initial learning rate to 5×10 -4(first initial learning rate), the learning rate decays by half every 60 rounds, a total of 400 rounds (first number of iterations), the training loss function is the above formula (1), and the first target teacher network model is obtained through training; Stage 2. Training the student network, the image processing device can first train a 2-fold enlarged student network (initial student network model), and then use its model weights to initialize a 4-fold enlarged student network, and fix the teacher network (first target teacher network model) weights, and then use the loss function shown in formula (2) to train the student network (initial student network model) to obtain the second target student network model; Stage 3. Fine-tune the student network (second target student network model), fine-tuning the student network can include the following 4 steps, step (1): the image processing device can initialize the student network with the model weights (first weight parameters) obtained in Stage 2 (second target student network model), and obtain the first initialized student network model, and the HR image block size can be set to 256×256, and the initial learning rate can be set to 5×10 -4 , the learning rate decays by half every 60 rounds, and a total of 400 rounds are iterated. The loss function is the L1 loss function (the fourth loss function), that is, the first initialized student network model can be trained based on the first training strategy and the fourth loss function to obtain the third target student network model; step (2): the image processing device can use the model (the third target student network model) weight (the third weight parameter) obtained in step (1) to initialize the student network to obtain the third initialized student network model, and the loss function is the MSE loss function (the fifth loss function). The remaining parameter settings are consistent with step (1), that is, the third initialized student network model can be trained based on the first training strategy and the fifth loss function to obtain the fourth target student network model; step (3): the image processing device can The student network is initialized with the weights (fourth weight parameters) of the model (the fourth target student network model) obtained in step (2) to obtain the fourth initialized student network model. The HR image block size is set to 512×512, and the loss function is the MSE loss function (fifth loss function). The remaining parameter settings are consistent with step (1), that is, the fourth initialized student network model can be trained based on the third training strategy and the fifth loss function to obtain the fifth target student network model. Step (4): The image processing device can initialize the student network with the weights (second weight parameters) of the (fifth target student network model) obtained in step (3) to obtain the second initialized student network model. The HR image block size is set to 640×640, and the initial learning rate is set to 2.5×10 -4 , the learning rate decays by half every 100 rounds, and the total number of iterations is 500. That is, the second initialized student network model can be trained by the second training strategy to obtain the first target student network model.

[0122] That is to say, in an embodiment of the present application, the image processing device can train the initial student network model through the first target teacher network model and the third loss function to obtain the second target student network model, that is, the initial student network model can be supervised trained based on the first target teacher network model to obtain the second target student network model, and then the second target student network model can be trained based on the progressive training strategy to obtain the first target student network model, so that the model performance can be deeply mined through progressive training and the reconstruction performance can be gradually improved.

[0123] Further, in an embodiment of the present application, the image processing device may use the general data to train the general sharpening model (second target sharpening model) proposed in the present application. Fig. 9 This is a schematic diagram of the clarity effect proposed in the embodiment of the present application, such as Fig. 9 As shown, the first row is a low-definition picture, and the second row is a cleared picture. It can be seen that the eye area is distorted and deformed, and the eyeballs are unnatural. In response to the above problems, this application has trained a face sharpening model (the third target sharpening model), and the implementation steps are as follows: Step (1): Face data set construction: collect data, use the face detection model to locate the face area, retain face images with a size greater than 512×512 and eye coordinates; Step (2): Construct an eye reconstruction loss function (sixth loss function), calculate the pixel distance (MSE) and structural similarity distance (SSIM) of the eye area between the reconstructed image and the HR image, respectively, and the reconstruction loss definition function is shown in the above formula (3); Step (3): Model training, the image processing device can use the constructed knowledge-based A poster face sharpening model is trained by distilling and re-parameterizing a lightweight image sharpening model (the second target sharpening model). The eye reconstruction loss (the sixth loss function) is added to the Stage 2 training phase of the training strategy to obtain the sixth target student network model. Step (4): Model fusion. The face sharpening model (the third target sharpening model) has better performance in reconstructing face images, while the general sharpening model (the second target sharpening model) has better performance in reconstructing general natural scenes. Therefore, the parameters of the two models are weighted averaged to obtain a sharpening model (the first target sharpening model) that can process both face images and natural scenes.

[0124] It should be noted that, in an embodiment of the present application, the image processing device can determine a third target sharpening model based on the first target teacher network model and the sixth target student network model; wherein the sixth target student network model is obtained by training the initial student network model through the first target teacher network model, the third loss function, the sixth loss function and the fourth training strategy; the sixth loss function is based on the pixel distance and structural similarity between the third HR image and the second SR image.

[0125] Exemplarily, in an embodiment of the present application, when the image processing device trains the initial student network model through the first target teacher network model, the third loss function, the sixth loss function and the fourth training strategy to obtain the sixth target student network model, the third loss function and the sixth loss function can be combined to obtain a combined loss function, and then the initial student network model can be trained based on the first target teacher network model, the combined loss function and the fourth training strategy to obtain the sixth target student network model.

[0126] That is to say, in an embodiment of the present application, the image processing device can also determine a third target sharpening model based on the first target teacher network model and the sixth target student network model. The third target sharpening model can be used to reconstruct the image information of the first biometric feature and has better performance in reconstructing facial images.

[0127] Further, in an embodiment of the present application, the first object clarity model may be obtained by fusing a first model parameter corresponding to the second object clarity model and a second model parameter corresponding to the third object clarity model.

[0128] To summarize, the image processing device can train the initial student network model through the first target teacher network model and the third loss function to obtain the second target student network model, that is, the initial student network model can be supervised and trained based on the first target teacher network model to obtain the second target student network model, and then the second target student network model can be trained based on the progressive training strategy to obtain the first target student network model, so that the performance of the deep mining model can be progressively trained to gradually improve the reconstruction performance. The image processing device can also determine the third target sharpening model based on the first target teacher network model and the sixth target student network model. The third target sharpening model can be used to reconstruct the image information of the first biometric feature and has good performance in reconstructing facial images, while the second target sharpening model has good performance in reconstructing general natural scenes. Therefore, by fusion processing based on the first model parameters corresponding to the second target sharpening model and the second model parameters corresponding to the third target sharpening model, a first target sharpening model that can process both facial images and natural scenes can be obtained.

[0129] An embodiment of the present application provides an image processing method, which includes: an image processing device inputs an LR image to be predicted into a first target sharpening model to obtain an SR image corresponding to the LR image to be predicted; wherein the first target sharpening model is obtained by fusion of a second target sharpening model and a third target sharpening model; the second target sharpening model is obtained by training a first initial sharpening model through a first loss function and a progressive training strategy; the first initial sharpening model includes an initial teacher network model and an initial student network model; the initial student network model includes at least a reparameterization module; the third target sharpening model is used to reconstruct image information of the first biometric feature. That is to say, the first target clarity model proposed in the present application is obtained by fusion of the second target clarity model and the third target clarity model, and the second target clarity model is obtained by training the first initial clarity model through the first loss function and the progressive training strategy. Different from the current single training strategy, the present application can deeply explore the model performance through the progressive training strategy, so as to gradually improve the model reconstruction performance. Among them, the first initial clarity model includes the initial teacher network model and the initial student network model, which can fully balance the model complexity and efficiency, and improve the performance without increasing the complexity of the lightweight model. The third target clarity model can be used to reconstruct the image information of the first biometric feature, thereby improving the reconstruction effect of the face image.

[0130] Embodiment 3

[0131] Based on the above embodiments, the present application provides an image processing device. Fig.10 Schematic diagram of the composition structure of the image processing device Figure 1 ,like Fig.10 As shown, the image processing device 10 includes: an input unit 11;

[0132] The input unit 11 is used to input the LR image to be predicted into the first target sharpening model to obtain the SR image corresponding to the LR image to be predicted; wherein,

[0133] The first target clarity model is obtained by fusing the second target clarity model and the third target clarity model;

[0134] The second target clarity model is obtained by training the first initial clarity model through the first loss function and the progressive training strategy; the first initial clarity model includes an initial teacher network model and an initial student network model; the initial student network model includes at least a reparameterization module;

[0135] The third object sharpening model is used to reconstruct image information of the first biological feature.

[0136] In the embodiments of the present application, further, Fig.11 Schematic diagram of the composition structure of the image processing device Figure 2 ,like Fig.11 As shown, the image processing device 10 proposed in the embodiment of the present application may also include a processor 12 and a memory 13 storing executable instructions of the processor 12. Furthermore, the image processing device 10 may also include a communication interface 14 and a bus 15 for connecting the processor 12, the memory 13 and the communication interface 14.

[0137] In the embodiment of the present application, the processor 12 may be at least one of an Application Specific Integrated Circuit (ASIC), a Digital Signal Processor (DSP), a Digital Signal Processing Device (DSPD), a Programmable Logic Device (PLD), a Field Programmable Gate Array (FPGA), a Central Processing Unit (CPU), a controller, a microcontroller, and a microprocessor. It is understandable that for different devices, the electronic device used to implement the function of the processor may also be other, and the embodiment of the present application does not specifically limit it. The image processing device 10 may also include a memory 13, which may be connected to the processor 12, wherein the memory 13 is used to store executable program code, the program code includes computer operation instructions, and the memory 13 may include a high-speed RAM memory, and may also include a non-volatile memory, for example, at least two disk memories.

[0138] In the embodiment of the present application, the bus 15 is used to connect the communication interface 14, the processor 12 and the memory 13, and the mutual communication between these devices.

[0139] In the embodiment of the present application, the memory 13 is used to store instructions and data.

[0140] Furthermore, in an embodiment of the present application, the above-mentioned processor 12 is used to input the LR image to be predicted into the first target sharpening model to obtain the SR image corresponding to the LR image to be predicted; wherein, the first target sharpening model is obtained by fusion of the second target sharpening model and the third target sharpening model; the second target sharpening model is obtained by training the first initial sharpening model through a first loss function and a progressive training strategy; the first initial sharpening model includes an initial teacher network model and an initial student network model; the initial student network model includes at least a reparameterization module; the third target sharpening model is used to reconstruct the image information of the first biometric feature.

[0141] In practical applications, the memory 13 may be a volatile memory, such as a random access memory (RAM); or a non-volatile memory, such as a read-only memory (ROM), a flash memory, a hard disk (HDD) or a solid-state drive (SSD); or a combination of the above types of memory, and provide instructions and data to the processor 12.

[0142] An embodiment of the present application provides an image processing device, which inputs a LR image to be predicted into a first target sharpening model to obtain a SR image corresponding to the LR image to be predicted; wherein the first target sharpening model is obtained by fusion of a second target sharpening model and a third target sharpening model; the second target sharpening model is obtained by training a first initial sharpening model through a first loss function and a progressive training strategy; the first initial sharpening model includes an initial teacher network model and an initial student network model; the initial student network model includes at least a reparameterization module; the third target sharpening model is used to reconstruct image information of the first biometric feature. That is to say, the first target clarity model proposed in the present application is obtained by fusion of the second target clarity model and the third target clarity model, and the second target clarity model is obtained by training the first initial clarity model through the first loss function and the progressive training strategy. Different from the current single training strategy, the present application can deeply explore the model performance through the progressive training strategy, so as to gradually improve the model reconstruction performance. Among them, the first initial clarity model includes the initial teacher network model and the initial student network model, which can fully balance the model complexity and efficiency, and improve the performance without increasing the model complexity. The third target clarity model can be used to reconstruct the image information of the first biometric feature, thereby improving the reconstruction effect of the face image.

[0143] An embodiment of the present application provides a computer-readable storage medium on which a program is stored. When the program is executed by a processor, the image processing method described above is implemented.

[0144] Specifically, the program instructions corresponding to an image processing method in this embodiment may be stored in a storage medium such as a CD, a hard disk, or a USB flash drive. When the program instructions corresponding to an image processing method in the storage medium are read or executed by an electronic device, the following steps are included:

[0145] The LR image to be predicted is input into the first target sharpening model to obtain the SR image corresponding to the LR image to be predicted; wherein,

[0146] The first target clarity model is obtained by fusing the second target clarity model and the third target clarity model;

[0147] The second target clarity model is obtained by training the first initial clarity model through the first loss function and the progressive training strategy; the first initial clarity model includes an initial teacher network model and an initial student network model; the initial student network model includes at least a reparameterization module;

[0148] The third object sharpening model is used to reconstruct image information of the first biological feature.

[0149] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of hardware embodiments, software embodiments, or embodiments 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.

[0150] The present application is described with reference to implementation 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 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 process in the flowchart. 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.

[0151] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which is implemented in the implementation flow diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0152] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operation steps are executed on the computer or other programmable device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable device provide for implementing the process described in the flowchart. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0153] The above description is only a preferred embodiment of the present application and is not intended to limit the protection scope of the present application.

Claims

1. An image processing method, characterized in that: The method comprises: The low-resolution LR image to be predicted is input into the first target sharpening model to obtain a super-resolution SR image corresponding to the LR image to be predicted; wherein, The first target clarity model is obtained by fusing the second target clarity model and the third target clarity model; The second target clarity model is obtained by training the first initial clarity model through the first loss function and the progressive training strategy; the first initial clarity model includes an initial teacher network model and an initial student network model; the initial student network model includes at least a reparameterization module; The third object sharpening model is used to reconstruct image information of the first biological feature.

2. The method according to claim 1, characterized in that The first loss function includes a second loss function and a third loss function, the progressive training strategy includes a first training strategy and a second training strategy, the second target clarification model is obtained based on the first target teacher network model and the first target student network model, the first target teacher network model is obtained by training the initial teacher network model through the second loss function and the first training strategy; the first target student network model is obtained by training the initial student network model through the first target teacher network model, the third loss function, the first training strategy and the second training strategy.

3. The method according to claim 2, characterized in that The first target teacher network model includes a target encoder and a target decoder, the target encoder includes N first convolutional layers, the target decoder includes M second convolutional layers, L residual Swin Transformer blocks RSTB blocks and an upsampling module, N, M, and L are all positive integers, and the method further includes: Inputting the first high-resolution HR image into the N first convolutional layers to obtain a first LR image corresponding to the first HR image; The first LR image is input into the target decoder to obtain a reconstructed second HR image.

4. The method according to claim 3, characterized in that The second loss function is determined based on the first HR image, the second HR image, the first LR image and the second LR image; wherein the second LR image is a true LR image.

5. The method according to claim 2, characterized in that: The first target teacher network model is obtained by correcting the second target teacher network model based on the second loss function; wherein, the second target teacher network model is obtained by training the initial teacher network model based on the first training strategy, and the first training strategy at least includes the batch size Batchsize of the first image data, the first initial learning rate, and the first number of iterations, and the first image data includes an HR image of a first preset size.

6. The method according to claim 3, characterized in that The first target student network model includes S third convolutional layers, M re-parameterized residual blocks RPRB blocks and a reconstruction module, each of the RPRB blocks includes E re-parameterized modules, and both S and E are positive integers. The method also includes: Inputting the second HR image into the target encoder to obtain a second LR image corresponding to the second HR image; Determine a first feature image corresponding to the second LR image based on the second convolutional layer, and determine a second feature image corresponding to each of the RSTB blocks based on the first feature image and the L RSTB blocks; Determine a third feature image corresponding to the third LR image based on the third convolutional layer, and determine a fourth feature image corresponding to each of the RPRB blocks based on the third feature image and the M RPRB blocks; A first SR image corresponding to the third LR image is determined based on the fourth image feature, the third convolutional layer and the reconstruction module.

7. The method according to claim 6, characterized in that The third loss function is obtained based on the second HR image, the first SR image, the second feature image, and the fourth feature image.

8. The method according to claim 2, characterized in that: The first target student network model is obtained by training the second target student network model through the first training strategy and the second training strategy; wherein, the second target student network model is obtained by training the initial student network model through the first target teacher network model and the third loss function.

9. The method according to claim 8, characterized in that The first target student network model is obtained by training the second initialized student network model through the second training strategy; wherein the second training strategy at least includes a batch size of second image data, a second initial learning rate, and a second number of iterations, and the second image data includes an HR image of a second preset size; The second initialized student network model is obtained by initializing the initial student network model based on the second weight parameter corresponding to the fifth target student network model; the fifth target student network model is determined based on the third target student network model; The third target student network model is obtained by training the first initialized student network model based on the first training strategy and the fourth loss function; The first initialized student network model is obtained by initializing the initial student network model based on the first weight parameter corresponding to the second target student network model.

10. The method according to claim 9, characterized in that The fifth target student network model is obtained by training the fourth initialized student network model based on the third training strategy and the fifth loss function; wherein the third training strategy at least includes the Batchsize of the third image data, the first initial learning rate, and the first number of iterations, and the third image data includes an HR image of a third preset size; The fourth initialized student network model is obtained by initializing the initial student network model based on a fourth weight parameter corresponding to the fourth target student network model; The fourth target student network model is obtained by training the third initialized student network model based on the first training strategy and the fifth loss function; The third initialized student network model is obtained by initializing the initial student network model through the third weight parameter corresponding to the third target student network model.

11. The method according to claim 2, characterized in that The method further comprises: The third target clarity model is determined based on the first target teacher network model and the sixth target student network model; wherein the sixth target student network model is obtained by training the initial student network model through the first target teacher network model, the third loss function, the sixth loss function and the fourth training strategy; the sixth loss function is based on the pixel distance and structural similarity between the third HR image and the second SR image.

12. The method according to claim 1, characterized in that The first object clarity model is obtained by fusing first model parameters corresponding to the second object clarity model and second model parameters corresponding to the third object clarity model.

13. An image processing device, characterized in that: The image processing device comprises: an input unit; The input unit is used to input the LR image to be predicted into the first target sharpening model to obtain the SR image corresponding to the LR image to be predicted; wherein, The first target clarity model is obtained by fusing the second target clarity model and the third target clarity model; The second target clarity model is obtained by training the first initial clarity model through the first loss function and the progressive training strategy; the first initial clarity model includes an initial teacher network model and an initial student network model; the initial student network model includes at least a reparameterization module; The third object sharpening model is used to reconstruct image information of the first biological feature.

14. An image processing device, characterized in that: The image processing device comprises: a processor and a memory; wherein, The memory is used to store a computer program that can be run on the processor; The processor is configured to execute the method according to any one of claims 1 to 12 when running the computer program.

15. A computer-readable storage medium, characterized in that: The storage medium stores computer program codes, and when the computer program codes are executed by a computer, the method according to any one of claims 1 to 12 is executed.

16. A computer program product comprising a computer program, characterized in that The computer program implements the method according to any one of claims 1 to 12 when executed by a processor.