Unmanned ship visual image local deblurring method based on adaptive weight

By using adaptive weights and dynamic loss functions in the unmanned ship visual image restoration algorithm, combined with distillation training technology, the problem of slow restoration of unmanned ship visual image is solved, and fast and high-quality image restoration is achieved in the marine environment. It meets the recovery speed and quality requirements of unmanned ship recycling.

CN119273584AActive Publication Date: 2025-01-07HARBIN UNIV OF SCI & TECH
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202411327593.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-23
Publication Date
2025-01-07
Estimated Expiration
2044-09-23

AI Technical Summary

Technical Problem

The existing unmanned ship visual image restoration algorithm in marine environments is difficult to quickly improve image quality to meet the requirements of subsequent tasks due to waste of computing resources and slow recovery speed.

Method used

The local defuzzing method of unmanned ship visual images based on adaptive weights is adopted, and the target area is focused through attention mechanism and dynamic loss function, and the model parameters are reduced in combination with distillation training to improve image restoration speed and quality.

Benefits of technology

While maintaining image quality, the model restoration time is significantly reduced, the model parameters are reduced, the recovery speed of motion blurred pictures in unmanned ship recycling is improved, and the rapid recovery needs of unmanned ship operations is met.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119273584A_ABST
    Figure CN119273584A_ABST
Patent Text Reader

Abstract

The invention provides an unmanned ship visual image local deblurring method based on adaptive weight in order to solve the problems of motion blur and the like caused by sea wave motion interference in an offshore unmanned ship recovery task. Firstly, on the basis of a motion blur restoration algorithm, a color clustering module is added to fuse attention mechanisms for color and edge features of a recovery cabin, and a target area and a background area are distinguished; secondly, using a dynamic adaptive weight in the training process, adjusting the weights of the target area and the global area according to the recovery quality of the target area during training, and using an aggregation loss function in combination with the dynamic weight to improve the model training quality, so that the quality of the target area is remarkably improved while the global quality is considered; finally, the model is lightened using distillation training. The method has the key points that the extraction number of non-target features is reduced, the extraction efficiency of the network on the target features in the picture is improved, and the model is lightened by using the distillation training method, so that the speed of processing the blurred picture by the algorithm is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of unmanned systems and robot intelligent perception and control equipment, in particular to an unmanned ship visual image restoration method, and more particularly to an unmanned ship visual image local deblurring method based on adaptive weights. Background Art

[0002] Motion blurred image restoration is a technology that uses algorithms and technical means to improve the quality of blurred images caused by the relative motion between the camera and the object. This technology is widely used in the field of intelligent perception and control equipment represented by unmanned systems and robots, such as autonomous intelligent unmanned vehicles, surface unmanned ships, underwater salvage equipment, intelligent unmanned aerial vehicles, industrial robots, special operation robots, automatic guided vehicles (AGVs), aisle stackers, and unmanned yard intelligent control systems. Unmanned ships equipped with visual equipment have been widely used in maritime search and rescue, patrol and other tasks. The endurance of unmanned ships is limited, and they need to return to designated locations for replenishment after the operation is completed. However, due to the interference of multiple environments on the sea, the imaging ability of the unmanned ship's vision is seriously affected, and motion blur is prone to occur, resulting in low efficiency in the processing of subsequent machine vision tasks. Therefore, how to quickly restore blurred images to clear pictures that meet subsequent tasks has become a new challenge for the visual operation of unmanned ships at sea.

[0003] To address the above problems, the paper Multi-Stage Progressive Image Restoration proposes a multi-stage progressive image restoration algorithm, which has the following problems:

[0004] (1) The deblurring module of MPRNet restores the entire image. Although the attention mechanism is used to improve the extraction of important features, it does not distinguish between the target area and the background area. It pays more attention to the quality of the blurred restoration of the global image. Therefore, in the task of recovering unmanned ships, it may cause a large amount of computing resources to be wasted, which greatly prolongs the time it takes for the model to restore the image. In the present invention, after obtaining the pre-processed image, the model focuses on the target area based on the known target information, and enhances the target area through color and attention mechanisms. At the same time, the expansion operation is used for the range of the target area to prevent the target from being lost or missing. This method enables the model to pay more attention to the details of the target area in the process of restoring the image, while reducing the amount of calculation of the algorithm.

[0005] (2) During the training process, the edge loss and Charbonnier loss used by MPRNet focus on the quality of the overall image and the restoration of edge details. However, in the task of recovering unmanned marine vessels, excessive attention to the blurred restoration quality of the background is more likely to reduce the restoration speed of the model, making it difficult to quickly improve the image quality in order to perform subsequent tasks. In the present invention, restoration loss functions for global and local target areas are used, and dynamically adjusted weights are used to control the proportion of the two during the training process. If the model has poor restoration quality in the local target area during the training process, the focus on the target area is increased, which helps to restore the image quality of specific targets in the scenario of unmanned marine vessel recovery. The effect of focusing on the restoration of the local target area while taking into account the global image quality of the entire image is achieved.

[0006] (3) Although the design and training process of MPRNet does not involve the step of model lightweighting, lightweighting has been taken into consideration when designing this model. However, actual tests still show that when using the official weights provided by the author of MPRNet to restore images in the GoPro dataset, the time required is still relatively long, which cannot meet the requirements of the image restoration speed of the unmanned ship during operation. In the present invention, the influence of processing time is considered while restoring the local target image. Therefore, the present invention uses distillation training to reduce model parameters and improve the model restoration speed. The student model is obtained by modifying the model parameters, and the weights with the best effect in the original model training process are used as the teacher model for distillation training, so that the student model retains most of the image restoration capabilities of the teacher model while also having a higher image restoration speed and reducing the pressure on hardware processing capabilities.

[0007] The invention "A local blur restoration method using image detection and region extraction" proposes a local blur restoration method, which has the following problems:

[0008] (1) This invention uses a method of blur detection on the entire image to mark the approximate blur area, and uses the method of cutting out to extract the blur area, and finally integrates the blur area to obtain a local restored image. When the target area is blurred, blur detection can indeed be performed on the target area when it is blurred. However, if the clarity of the target area is high and the clarity of the background area is low, the algorithm will waste computing resources when restoring the background area. The present invention directly focuses on blur restoration of the target area and does not perform detailed quality improvement on the background area, saving resources and increasing speed.

[0009] (2) In this invention, the blurred area in the image is restored by iterative estimation combined with fast Fourier transform. In the present invention, deep learning is used for image restoration. During the training process, the attention mechanism is used to focus on the target area, and the details of this area are restored more effectively. During the training process, a dynamic comprehensive loss function is used, which has a better restoration effect on the target area and a certain restoration effect on the background area. Summary of the invention

[0010] The present invention provides a local deblurring method for unmanned ship visual images based on adaptive weights. For the situation where the relative motion caused by sea surface fluctuations causes blurred imaging, the sea surface environment as the background will extract unnecessary information when extracting features, which increases the amount of calculation and reduces the disadvantage of real-time performance. In view of this phenomenon, the attention mechanism is combined to improve the processing speed and accuracy of the motion blur restoration algorithm for local targets in the sea surface fluctuation environment. At the same time, the aggregation loss function is used for training, so that the model pays certain attention to the target area under the initial conditions. If the local blur restoration effect is not good during the training process, the weight of the target area will be increased, so that the entire image focuses on the restoration of the local target area image while taking into account the global image quality. Finally, the student network is trained using distillation training to reduce the model parameters and improve the speed of the model restoring the image.

[0011] To achieve the above object, the present invention provides a method for local deblurring of unmanned ship visual images based on adaptive weights, comprising the following steps:

[0012] S1. Use two-dimensional simple harmonic waves to simulate the effect of sea surface motion on images to create a data set. The images in the data set are divided into training samples and test samples in proportion. The training samples contain blurred images and clear target images:

[0013] S11. Use a high-definition camera to take a set of 1,000 clear images with markers.

[0014] S12. Use two-dimensional simple harmonic wave to simulate the effect of sea surface motion on the unmanned ship and estimate the fuzzy kernel. The two-dimensional simple harmonic wave is represented by the following formula:

[0015] z(x,y,t)=A·cos(k x x+k y y-ωt+φ) (1)

[0016] Where: A is the amplitude, k x and k y is the wave number, which determines the frequency of the wave in the x and y directions, ω is the angular frequency, and φ is the initial phase. In the process of making this dataset, the motion under the second-level sea state was simulated, so A was taken as 0.15, the wave number k was taken as 0.21, and ω was taken as 1 rad / s.

[0017] The speed of the camera in the x and y directions:

[0018] v x (t) = -A·k x ·sin(k x x+k y y-ωt+φ) (2)

[0019] v y (t) = -A·k y ·sin(k x x+k y y-ωt+φ) (3)

[0020] The motion trajectory of the camera in time t can be obtained by integration:

[0021]

[0022]

[0023] The estimation formula of blur kernel H(i,j) is:

[0024]

[0025] Where: T is the camera shutter time, δ is the Dirac function.

[0026] S13. Degrade the clear image into a blurred image through the blur kernel:

[0027]

[0028] Where: B is the generated blurred image, I is the collected clear image, H is the blur kernel, and N is Gaussian noise.

[0029] S14. Divide the prepared data set into a training set and a test set in a ratio of 7:3.

[0030] S2. Use the model to extract multi-layer features to obtain a clear image after restoration:

[0031] S21, obtaining pictures taken by the camera, and preprocessing the pictures to adjust them to a uniform size.

[0032] S22. Use the preprocessed image to perform shallow feature extraction. At the same time, cluster and distinguish the target area and background area in the image according to the color information of the prior target.

[0033] S23. Dilate the target area to expand the influence range of the area and make the edge information more obvious. Extract the shallow features of the target area image, and generate a feature mask through the color and edge attention mechanism. Generate an enhanced feature map with the preprocessed shallow features through the spatial attention mechanism, and fuse the enhanced feature map with the shallow features of the target area, and enhance the features by combining the color and edge attention mechanism. Encode the enhanced features to generate a new multi-scale feature map. Put the encoder encoding result and the color and edge attention mask into the decoder to obtain the decoding result. Fuse the preprocessed shallow features with the enhanced features to obtain a comprehensive feature map.

[0034] S24. Put the comprehensive feature map, the multi-scale feature map obtained by the encoder, and the high-resolution image obtained by the decoder into ORSNet, process and enhance the feature map while maintaining the original resolution to obtain a high-dimensional feature map.

[0035] S25. Use a convolutional layer to reduce the number of channels of the high-dimensional feature map generated by ORSNet to 3 and output an RGB image.

[0036] S3. Use the aggregated loss function for local targets and global images to train the model and optimize the deblurring effect of the model for local targets and the quality of the overall image:

[0037] S31. The formula of local blur loss is as follows:

[0038]

[0039] Where: L local is the local blur loss, N target is the number of pixels in the target area, I i ′ is the value of the i-th pixel in the image restored by the model, I i is the value of the i-th pixel in the clear image.

[0040] S32, the global fuzzy loss function is as follows:

[0041]

[0042] Where: L glocal is the global blur loss, N image The number of pixels in the entire image.

[0043] S33, local loss and global loss weights are distributed as follows:

[0044]

[0045] λ global =1-λlocal (11)

[0046] Where: local is the weight of the local loss, ranging from 0.6 to 1, λ global is the global loss function.

[0047] S34, the comprehensive loss function is as follows:

[0048] L=λ local L local +λ global L blobal (12)

[0049] Where: L is the comprehensive loss.

[0050] S4. Use knowledge distillation to lightweight the model, so that the lightweight model can not only have most of the image restoration quality of the original model, but also greatly speed up the image restoration speed.

[0051] The present invention has the following beneficial effects:

[0052] 1. Through the residual structure, the feature maps of multiple stages are fused and enhanced. While maintaining the original resolution of the image, the features of multiple stages and the attention mechanism are used to improve the restoration quality of the image. Finally, the fused and enhanced features are converted into the output image, so that the image is not only refined and enhanced but also retains the basic details.

[0053] 2. Through the color and edge attention mechanism of prior information, the target area and background area are divided and assigned different weights. Applying this weight, a more focused blur restoration is performed in the target area, and using an aggregated loss function, when the restoration quality of the target area is low, the loss weight of the target area is increased, the impact of the background restoration loss is reduced, and the restoration quality of the target area is improved. In terms of restoration quality, the average PSNR obtained by MPRNet is 32.8, and the blur restoration model in the present invention is 29.1. Because the restored image of the present invention pays more attention to the target part, the restoration of the non-target part is not good, so the average result of PSNR measurement after the target area is extracted separately is 31.7.

[0054] 3. The model is lightweighted by using the knowledge distillation method, and the method of reducing parameters and reducing feature enhancement modules is used to reduce the model calculation amount, so that the parameters of the reduced model are reduced by 77% compared with the original model. While retaining most of the image restoration capabilities of the original model, the restoration speed of motion blurred images in unmanned ship recovery is improved. Compared with the original model, the lightweight model is about 30 times faster. After multiple image restoration experiments, the time consumed by MPRNet in this device to restore an image is about 75s, and the time consumed by the lightweight model of the present invention to restore an image is 1.3s; this proves that the lightweight method mentioned in the present invention not only significantly improves the speed, but also has a certain guarantee on the restoration quality of the target area. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0056] Figure 1 Flowchart of the comprehensive loss function used during model training;

[0057] Figure 2 A flowchart of a method for local deblurring of unmanned ship visual images based on adaptive weights;

[0058] Figure 3 The main components of the experimental site:

[0059] Figure 4 Blurred image of the lab's simulated unmanned ship recovery scenario;

[0060] Figure 5 The clear image restored by MPRNet;

[0061] Figure 6 A clear image restored by the fuzzy restoration model of the present invention. DETAILED DESCRIPTION

[0062] In order to explain the operation mode and advantages of the present invention more clearly, the present invention provides a method for local deblurring of visual images of an unmanned ship based on adaptive weights, which specifically includes the following steps:

[0063] S1. Create a suitable data set and divide the images in the data set into training samples and test samples. The training samples contain the blurred images to be processed and the clear images of the target. The specific steps include the following:

[0064] S11. Use a high-definition camera to take a set of 1,000 clear images with markers.

[0065] S12. Unmanned ships usually experience six different motion changes during navigation on the sea, which are defined as: sway, sway, heave, roll, pitch, and bow. When the image is taken by a camera fixed on the unmanned ship, the impact is mainly on the x and y axes. Therefore, a two-dimensional simple harmonic wave is used to simulate the impact of sea surface motion on the unmanned ship to estimate the blur kernel. The two-dimensional simple harmonic wave is expressed by the following formula:

[0066] z(x,y,t)=A·cos(k x x+k y y-ωt+φ) (1)

[0067] Where: A is the amplitude, k x and k y is the wave number, which determines the frequency of the wave in the x and y directions, ω is the angular frequency, and φ is the initial phase. In the process of making this dataset, the motion under the second-level sea state was simulated, so A was taken as 0.15, the wave number k was taken as 0.21, and ω was taken as 1 rad / s.

[0068] According to the two-dimensional simple harmonic wave function, the speed of the camera in the x and y directions can be calculated:

[0069] v x (t) = -A·k x ·sin(k x x+k y y-ωt+φ) (2)

[0070] v y (t) = -A·k y ·sin(k x x+k y y-ωt+φ) (3)

[0071] Therefore, the motion trajectory of the camera in time t can be obtained by integration:

[0072]

[0073] The estimation formula of blur kernel H(i,j) is:

[0074]

[0075] Where: T is the camera shutter time, δ is the Dirac function.

[0076] S13. Degrade the clear image into a blurred image through the blur kernel:

[0077]

[0078] Where: B is the generated blurred image, I is the collected clear image, H is the blur kernel, and N is Gaussian noise.

[0079] S14. Divide the prepared data set into a training set and a test set in a ratio of 7:3.

[0080] S2, use the motion blur restoration network to output clear images, such as Figure 2 As shown, the motion blur restoration network includes the following sub-steps:

[0081] S21, obtaining pictures taken by the camera, and preprocessing the pictures to adjust them to a uniform size.

[0082] S22. Use the preprocessed image to perform shallow feature extraction. At the same time, cluster and distinguish the target area and background area in the image according to the color information of the prior target, so that the network pays more attention to the target area and reduces the attention to the background.

[0083] S23. Dilate the target area to expand the influence range of the area and make the edge information more obvious. Extract the shallow features of the target area image, and generate a feature mask through the color and edge attention mechanism. Generate an enhanced feature map with the preprocessed shallow features through the spatial attention mechanism, and fuse the enhanced feature map with the shallow features of the target area, and enhance the features by combining the color and edge attention mechanism. Encode the enhanced features to generate a new multi-scale feature map. Put the encoder encoding result and the color and edge attention mask into the decoder to obtain the decoding result. Fuse the preprocessed shallow features with the enhanced features to obtain a comprehensive feature map.

[0084] S24. Put the comprehensive feature map, the multi-scale feature map obtained by the encoder, and the high-resolution image obtained by the decoder into ORSNet. While maintaining the original resolution, the feature map is processed and enhanced to obtain a high-dimensional feature map to improve the clarity of the image.

[0085] S25. Use a convolutional layer to reduce the number of channels of the high-dimensional feature map generated by ORSNet to 3 and output an RGB image.

[0086] S3. Use the aggregated loss function for local targets and global images to train the model and optimize the deblurring effect of the model for local targets and the quality of the overall image, such as Figure 1 As shown, the comprehensive loss function includes the following specific steps:

[0087] S31. Define the local blur restoration loss. This loss is specifically used to judge the degree of restoration of the target area, so that the model can better handle the target area during the training process. The formula of this loss is as follows:

[0088]

[0089] Where: L local is the local blur loss, N target is the number of pixels in the target area, I i ′ is the value of the i-th pixel in the image restored by the model, I i is the value of the i-th pixel in the clear image.

[0090] S32. Define the global blur restoration loss. This loss function is used to ensure that the quality of the non-target area is not too low. The global blur loss function is as follows:

[0091]

[0092] Where: L glocal is the global blur loss, N image The number of pixels in the entire image.

[0093] S33. Set the weights of local loss and global loss so that the target area has a certain degree of attention under the initial conditions. At the same time, if the local loss value is too high, the dynamic weight can be used to make the network pay more attention to the target area where the restoration effect is not good, thereby improving the restoration quality of the target area. The weights of local loss and global loss are distributed as follows:

[0094]

[0095] λ global =1-λ local (11)

[0096] Where: local is the weight of the local loss, ranging from 0.6 to 1, λ global is the global loss function.

[0097] S34. The comprehensive loss function makes the weight ratio of the target area and the global area the same at the beginning of training. As the training progresses, if the loss of the target area gradually increases, the weight of the target area will also increase, so that the model pays more attention to the image restoration of the target area. The total loss function is as follows:

[0098] L=λ local L local +λ global L blobal (12)

[0099] Where: L is the comprehensive loss.

[0100] S4. Perform lightweight processing on the trained model, use the best model in the training as the teacher network, reduce the number of channels, reduce the number of feature enhancement modules, increase the attention mechanism reduction factor, etc. to reduce the complexity of the model to generate the student network and perform knowledge distillation. This allows the student network to have most of the teacher network's image restoration capabilities while also significantly speeding up the image restoration process.

[0101] During training, the learning rate is set to 10 -4 And use the warm-up method to increase the learning rate from 10 -6 Gradually increase to 10 -4 , to prevent gradient explosion during training. Set epoch to 300, batch_size to 1, and distillation temperature to 7. After modifying the model parameters and reducing some feature processing modules, the student network has a 77.33% decrease in parameters compared to the teacher network. Although the fuzzy restoration quality of the trained lightweight model is lower than that of the teacher model, the degree of restoration of markers in the recovery of unmanned boats on the water surface meets the requirements of subsequent processes. At the same time, the lightweight model has a significant improvement in the speed of restoring blurred images; after multiple image restoration experiments, the time consumed by MPRNet to restore an image in the same device is about 75s, and the time consumed by the lightweight model of the present invention to restore an image is 1.2s; at the same time, Figure 5 and Figure 6 Comparing the restoration of the model of MPRNet and the present invention, compared with the global quality improvement of MPRNet, the present invention focuses on enhancing the quality of the target area, and moderately ignores the improvement of background quality to increase the image restoration speed. In terms of restoration quality, the average PSNR obtained by MPRNet is 32.8, and the fuzzy restoration model of the present invention is 29.1. Because the image restored by the present invention pays more attention to the target part, the restoration of the non-target part is not good, so the target area is extracted separately and the average result of PSNR measurement is 31.7; although there is a certain gap in the restoration quality of the target area compared with MPRNet, the speed is greatly improved.

[0102] The unmanned boat recovery scene built in the laboratory is as follows Figure 3 As shown, a camera is placed on the unmanned boat to take pictures, and a wave machine is used to simulate the movement of the sea surface. In the above scenario, the unmanned boat is simulated to operate on the sea surface, and a blurred picture is taken and restored. Figure 4-Figure 6 It can be seen from the comparison that MPRNet has a significant recovery effect on the global image quality. However, it can be seen that in the pictures restored by the model of the present invention, Figure 4-6The color of the red frame area is set as the target color. The image quality in the target area is significantly improved, but the green frame area is the background area for this algorithm and has a small weight during the training process, so the restoration effect is not ideal. However, this algorithm has a very obvious improvement in restoration speed. The restoration time for each image is about 1.2s. At the same time, the restoration quality of the target area has met the requirements of subsequent tasks. In summary, this algorithm has a high restoration speed and a significant quality improvement, laying the foundation for subsequent tasks.

[0103] The above description is only a preferred embodiment of the present invention and does not limit the present invention in any form. Any technician familiar with the profession can make some changes or modify the technical contents disclosed above into equivalent embodiments without departing from the scope of the technical solution of the present invention. However, any simple modification, equivalent change and modification made to the above embodiments according to the technical essence of the present invention without departing from the content of the technical solution of the present invention still fall within the scope of the technical solution of the present invention.

Claims

1. A local deblurring method for unmanned ship visual images based on adaptive weights, characterized in that: The following steps are involved: S1. Create a suitable data set and divide the images in the data set into training samples and test samples. The training samples contain the blurred images to be processed and the clear images as the target. S2. Use the motion blur restoration network to improve the quality of the input blurred image and output a clear image. The motion blur restoration network includes the following sub-steps: S21, obtaining pictures taken by the camera, and preprocessing the pictures to adjust them to a uniform size; S22, using the preprocessed image to extract shallow features, and at the same time, clustering and distinguishing the target area and background area in the image according to the color information of the prior target, so that the network pays more attention to the target area and less attention to the background; S23, dilate the target area to expand the influence range of the area and make the edge information more obvious; extract the shallow features of the target area image, and generate a feature mask through the color and edge attention mechanism; The preprocessed shallow features are used to generate enhanced feature maps through the spatial attention mechanism, and the enhanced feature maps are fused with the shallow features of the target area, and the color and edge attention mechanisms are combined to enhance the features; the enhanced features are encoded to generate new multi-scale feature maps; the encoder encoding results and the color and edge attention masks are put into the decoder to obtain the decoding results; the preprocessed shallow features are fused with the enhanced features to obtain a comprehensive feature map; S24, putting the comprehensive feature map, the multi-scale feature map obtained by the encoder, and the high-resolution image obtained by the decoder into ORSNet (Original Resolution Subnetwork), processing and enhancing the feature map while maintaining the original resolution, obtaining a high-dimensional feature map, and improving the clarity of the image; S25. Use a convolutional layer to reduce the number of channels of the high-dimensional feature map generated by ORSNet to 3 and output an RGB image. S3. Use the aggregated loss function for local targets and global images to train the model, optimize the deblurring effect of the model for local targets and the quality of the overall image, and the comprehensive loss function includes the following specific steps: S31. Define the local blur restoration loss. This loss is specifically used to judge the degree of restoration of the target area, so that the model can better handle the target area during the training process. The formula of this loss is as follows: Where: L local is the local blur loss, N target is the number of pixels in the target area, I i ′ is the value of the i-th pixel in the image restored by the model, I i is the value of the i-th pixel in the clear image; S32. Define the global blur restoration loss. This loss function is used to ensure that the quality of the non-target area is not too low. The global blur loss function is as follows: Where: L glocal is the global blur loss, N image is the number of pixels of the entire image; S33. Set the weights of local loss and global loss so that the target area has a certain degree of attention under the initial conditions. At the same time, if the local loss value is too high, the dynamic weight can be used to make the network pay more attention to the target area with poor restoration effect, thereby improving the restoration quality of the target area. The weights of local loss and global loss are distributed as follows: l global =1-λ local (4) Where: local is the weight of the local loss, ranging from 0.6 to 1, λ global is the global loss function; S34. The comprehensive loss function makes the weight ratio of the target area and the global area the same at the beginning of training. As the training progresses, if the loss of the target area gradually increases, the weight of the target area will also increase, so that the model pays more attention to the image restoration of the target area; the total loss function is as follows: L=λ local L local +λ global L blobal (5) Where: L is the comprehensive loss; S4. Perform lightweight processing on the trained model.

Citation Information

Patent Citations

  • Multi-scale efficient convolution self-attention single image rain removal method

    CN113947538A

  • Transform-based moving image deblurring method

    CN115496676A

  • Lightweight adaptive image deblurring method based on dynamic convolutional neural network

    CN118229577A

  • Image processing method and apparatus for medical image, device and storage medium

    US20230245426A1