A real-time saliency detection image method based on dual-branch network

Through the dual-branch network and feature fusion module, the problem of low efficiency of deep neural networks in salient object detection is solved, and efficient and accurate saliency detection is achieved, which is suitable for a variety of practical scenarios.

CN114140622BActive Publication Date: 2024-09-13周汉林
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111479170.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-06
Publication Date
2024-09-13
Estimated Expiration
2041-12-06

AI Technical Summary

Technical Problem

In the detection of salient objects, the existing deep neural network introduces more parameters due to its complex design, resulting in a bloated and complex model, which limits the operating efficiency and hinders its application in a variety of practical scenarios.

Method used

A real-time saliency detection method based on a dual-branch network is used to reduce the dimensionality of the feature map through the short-range connection module (SRCM), and the detail supervision and feature projection modules are used to fuse low-level features and deep features to build an efficient network structure.

Benefits of technology

It improves the accuracy and real-time performance of saliency detection, reduces computing costs, and realizes end-to-end real-time saliency detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114140622B
    Figure CN114140622B
Patent Text Reader

Abstract

The invention provides a real-time saliency detection image method based on a dual-branch network, comprising the following steps: 1. constructing a dual-branch network: constructing a saliency detection dual-branch network, inputting an image set of a saliency object into the dual-branch network, and optimizing the dual-branch network by iteratively optimizing a loss function; 2. constructing a detail supervision and saliency supervision module: using the dual-branch network to iteratively optimize saliency loss and detail loss; 3. The dual-branch network framework is divided into a model training phase and a test phase; in the model training phase, a saliency training picture set that has undergone data preprocessing is input into the dual-branch network, and the dual-branch network is optimized by using the detail supervision and saliency supervision modules; in the test phase, a saliency image to be detected is input into the trained dual-branch network to obtain a corresponding saliency object cut image; 4. Inputting a single saliency image to obtain a corresponding saliency result map.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a real-time saliency detection image method, in particular to a real-time saliency detection image method based on a double-branch network. Background Art

[0002] In recent years, with the rapid development of deep convolutional networks, salient object detection has made great breakthroughs. Compared with traditional salient object detection algorithms, deep learning-based salient object detection methods have achieved significant improvements in accuracy, and deep learning-based methods can obtain high-level semantic information of images through deep neural networks, and use this information to more accurately detect salient objects in the scene. For example, Qibin Hou, Ming-Ming Cheng, Xiaowei Hu, Ali Borji, and Zhuowen Tu, "Deeply supervised salient object detection with short connections," TPAMI, 2019. and Bo Wang, Quan Chen, MinZhou, Zhiqiang Zhang, XiaogangJin, and Kun Gai, "Progressive feature polishing network for salient object detection," in AAAI, 2020. Deep-based methods mainly refine SOD results by improving network structure and introducing attention mechanisms. The paper Jiaxing Zhao, Jiangjiang Liu, Deng-Ping Fan, and Yang Cao, “Egnet: Edge guidance network for salient object detection,” in ICCV, 2019. and the paper Jinming Su, Jia Li, Yu Zhang, Changqun Xia, and Yonghong Tian, ​​“Selectivity or invariance: Boundaryaware salient object detection,” in ICCV, 2019. improve the network structure by designing an edge enhancement module, add edge information to optimize the salient detection results, and improve the performance of the network algorithm.

[0003] Although the improvements in the network structure by the above methods can further improve the accuracy of salient object detection, complex designs such as dense skip-layer links and recurrent networks will introduce more parameters into the network, making the deep neural network bloated and complex. This undoubtedly increases the model size of the deep neural network, limits the operating efficiency of such salient object detection algorithms, and hinders their application in a variety of practical scenarios. Summary of the invention

[0004] Purpose of the invention: The technical problem to be solved by the present invention is to provide a real-time saliency detection image method based on a dual-branch network in view of the shortcomings of the prior art.

[0005] In order to solve the above technical problems, the present invention discloses a real-time saliency detection image method based on a dual-branch network.

[0006] The method disclosed in the present invention is based on a new and efficient structure, called Short Range Connection Module (SRCM), which can eliminate structural redundancy. Specifically, the present invention gradually reduces the dimension of feature maps and uses their aggregation for image representation, thus forming the basic module of the SRCM network. In addition, the present invention proposes an efficient detail supervision (DBG) to further encode the detailed structural information of the low-level stage, instead of the time-consuming perception branch used in TBRS. Finally, the low-level features and deep features are fused through the Feature Projection Module (FPM).

[0007] The specific steps of the present invention are as follows:

[0008] Step 1, build a two-branch network: build a two-branch network for saliency detection, input the image set of salient objects into the two-branch network, and optimize the two-branch network by iteratively optimizing the loss function;

[0009] Step 2: Build detail supervision and saliency supervision modules: Use the dual-branch network in step 1 to iteratively optimize saliency loss and detail loss;

[0010] Step 3, the dual-branch network framework is divided into a model training phase and a test phase. In the model training phase, the salient training picture set that has undergone data preprocessing is input into the dual-branch network, and the dual-branch network is optimized using detail supervision and salient supervision modules to obtain a dual-branch network that can quickly and accurately generate salient results. In the test phase, the salient image to be detected is input into the trained dual-branch network to obtain the corresponding salient object cut image.

[0011] Step 4: Input a single salient image and obtain the corresponding salient result map through the trained dual-branch network.

[0012] In the present invention, step 1 comprises the following steps:

[0013] Step 1-1, construct a dual-branch network model skeleton for feature extraction;

[0014] Step 1-2, design the detailed guidance branch DBG to further encode the detailed structural information of the low-level features, and design the target branch OB to obtain sufficient deep information context targets;

[0015] In steps 1-3, a feature projection fusion module FPM is constructed to fuse the detailed structural information of low-level features with the deep information context target.

[0016] In step 1-1 of the present invention, the dual-branch network model skeleton includes five stages, the first two stages are two 3×3 convolutional layers with a stride of 2; each of the last three stages includes two short-range connection modules, namely SRCMs, and the skeleton is used to extract feature maps so that the spatial resolution is reduced in each stage. The specific structure of the short-range cascade module SRCM is that each SRCM is divided into 4 convolutional blocks, and the output of the i-th convolutional block is represented as x i , i∈[1,4] The final output of the module SRCM is represented by the sum of all 4 blocks, that is, x output =ψ(x 1 ,x 2 ,...,x n ), the constructed backbone extracts multi-scale features under limited parameters.

[0017] In step 1-2 of the present invention, the detail guidance branch includes two 3×3 convolution operations, and the detail guidance branch DBG is used to further encode the spatial information of the third stage of the backbone network to obtain the feature F e The target branch OB includes two channel attention modules CA, which use the two channel attention modules to re-encode the features of stage 4 and stage 5 in step 1-1 respectively, and fuse the two re-encoded features to obtain feature F o .

[0018] In steps 1-3 of the present invention, the feature fusion module FPM combines the feature F output by the dual-branch network OB o And the feature F output by DBG e To perform fusion, firstly transform the feature F o Upsample to the same size F e ∈R C×H×W , where C is the number of channels of the feature matrix, H is the height of the feature matrix, and W is the width of the feature matrix. Then the pyramid pooling module PPM is used to reduce the feature map F o and F e The PPM consists of feature boxes of four scales, which are then flattened and concatenated to form a bin of size C.1 ×N、N<<HW、C 1 =C / 2 matrix, F o and F e The self-affinity matrix of is calculated as:

[0019]

[0020]

[0021] Among them, A e and A o represents the similarity matrix, whose size is fixed to N×(HW) by PPM, and represents the learnable parameters, and the two matrices are further combined as follows:

[0022] A=softmax((A o +A e ) T )

[0023] Then, use the row-level normalization matrix A∈R (HW)×N , A projects the two features into the same subspace:

[0024]

[0025]

[0026] F o and F e Concatenate them and use 3×3 convolution to get the final output feature F.

[0027] In the present invention, step 2 comprises the following steps:

[0028] Step 2-1, design the loss function L of the detail supervision module s , the loss L is calculated using the true value image GT of the detail image and the detail prediction map generated by the detail guidance branch s , by continuously iteratively optimizing L s To supervise the detailed guidance branch;

[0029] Step 2-2, design the loss function L of the significant supervision module e , the loss is calculated based on the true value image GT of the saliency detection and the generated saliency detection image By continuously iteratively optimizing L e To update the parameters θ of the dual-branch network model De .

[0030] In step 2-1 of the present invention, the true value image GT of the detail image can be generated by a 2D convolution kernel called a Laplacian convolution kernel and a trainable 1×1 convolution, and a Laplacian operator is used to generate a soft thin detail feature map with different step sizes, and then the detail feature map is upsampled to the original size and fused with the trainable 1×1 convolution for dynamic reweighting. Finally, the predicted details are converted into the true value image GT of the final binary detail image with boundary and corner information using thresholds 0 and 1. After the true value image GT of the binary detail image is generated, it is used to calculate the pixel-level cross entropy loss with the detail prediction map to supervise the detail guidance branch. The pixel-level cross entropy loss function of the detail supervision module is defined as:

[0031] L e =-(G e log(M e )+(1-G e )log(1-M e )),

[0032] Among them, M e represents the detailed prediction map, G e The cross entropy loss calculates the cross entropy of each pixel separately and then averages it over all pixels, thereby assuming that each type of pixel contributes equally to the loss.

[0033] In the present invention, the saliency supervision module in step 2-2 uses a pixel-level cross entropy loss function to supervise saliency prediction. The pixel-level cross entropy loss function of the saliency supervision module is defined as:

[0034]

[0035] Among them, M s represents the significant prediction map, The ground truth image GT represents the saliency.

[0036] In the present invention, step 3 comprises the following steps:

[0037] Step 3-1, data preprocessing: perform data augmentation in the form of random flipping and random cropping on the saliency training set to be input into the dual-branch network;

[0038] Step 3-2, model framework training: input the data-enhanced image into the dual-branch network, and then use the detail supervision module and the saliency supervision module to continuously optimize the network so that the network gradually generates a complete and accurate saliency map. After training the network for multiple rounds, save the final network model parameters;

[0039] Step 3-3, model framework test: input the image into the trained two-branch network for inference to obtain the corresponding salient object cut image.

[0040] In the present invention, step 3-1 comprises the following steps:

[0041] Step 3-1-1, random flip: flip the image horizontally or vertically;

[0042] Step 3-1-2, random cropping: crop the image in random ratios, keeping the aspect ratio unchanged;

[0043] In step 3-2, for the input salient image, a dual-branch saliency network is used with the help of the saliency supervision loss function L e and detail supervision loss function L s , thus training a robust two-branch saliency detection network; the saliency supervision loss function L e and detail supervision loss function L s The definition is as follows:

[0044] L e =-(G e log(M e )+(1-G e )log(1-M e ))

[0045]

[0046] The detail supervision loss function optimizes the generated detail prediction map, and the two supervision modules optimize the network at the same time, so the overall loss function is written as:

[0047] L=L s +L e .

[0048] Beneficial effects: Firstly, the detail supervision module constructed by the present invention can further encode the detail structure information of the low-level stage and improve the edge accuracy of the result of cutting salient objects; secondly, the present invention realizes an end-to-end real-time salient detection image method, which can effectively improve the accuracy and real-time performance of salient detection objects. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] The present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments, and the above and / or other advantages of the present invention will become more clear.

[0050] Figure 1 It is a schematic diagram of the processing flow of the present invention;

[0051] Figure 2is a schematic diagram of an example of an input saliency image set;

[0052] Figure 3 is a schematic diagram of an example of the corresponding real segmentation image set;

[0053] Figure 4 This is a schematic diagram of an example of the network segmentation result proposed in this patent. DETAILED DESCRIPTION

[0054] The present invention discloses a real-time saliency detection image method based on a dual-branch network, which is specifically implemented according to the following steps: Figure 1 :

[0055] 1. Build a dual-branch network G:

[0056] Input: A set of images of salient objects.

[0057] Output: The corresponding generated salient object cut image.

[0058] 1.1 Construct a dual-branch network model skeleton for feature extraction;

[0059] The dual-branch network model skeleton consists of five stages. The first two stages are two 3×3 convolutional layers with a stride of 2. Each of the remaining stages contains two short-range connection modules, namely SRCMs, which use the skeleton to extract feature maps so that the spatial resolution is reduced in each stage. The specific structure of the short-range cascade module SRCM is that each SRCM is divided into 4 convolutional blocks, and the output of the i-th convolutional block is represented as x i , i∈[1,4] The final output of the module SRCM is represented by the sum of all 4 blocks, that is, x output =ψ(x 1 ,x 2 ,...,x n ), the constructed backbone extracts multi-scale features under limited parameters.

[0060] 1.2 Design the detailed guidance branch DBG to further encode the detailed structural information of the low-level features, and design the target branch OB to obtain sufficient deep information context targets;

[0061] The detail guidance branch of the context target contains two 3×3 convolution operations, through which the detail guidance branch (DBG) is used to further encode the spatial information of the third stage of the backbone network to obtain the feature F e The target branch (OB) includes two channel attention modules CA, which use the two channel attention modules to re-encode the features of stage 4 and stage 5 respectively, and fuse the two re-encoded features to obtain feature F o .

[0062] 1.3 Construct a feature projection fusion module FPM to fuse the detailed structural information of low-level features with the deep information context target;

[0063] The feature fusion module FPM combines the features F output by OB o And the feature F output by DBG e The present invention first combines the feature F o Upsample to the same size F e ∈R C×H×W (C is the number of channels of the feature matrix, H is the height of the feature matrix, and W is the width of the feature matrix). Then, a pyramid pooling module (PPM) is used to reduce the feature map F o and F e The PPM consists of feature boxes of four scales, which are then flattened and connected to form a G 1 ×N、N<<HW、C 1 =C / 2 matrix, F o and F e The self-affinity matrix of is calculated as:

[0064]

[0065]

[0066] Among them, A e and A o represents the similarity matrix, whose size is fixed to N×(HW) by PPM, and represents the learnable parameters, and the two matrices are further combined as follows:

[0067] A=softmax((A o +A e ) T )

[0068] Then, use the row-level normalization matrix A∈R (HW)×N Project two features into the same subspace:

[0069]

[0070]

[0071] F o and F e Concatenate them and use 3×3 convolution to get the final output feature F.

[0072] 2. Constructing detail supervision and salient supervision modules

[0073] Input: detail prediction image and salient prediction image;

[0074] Output: detail loss and saliency loss;

[0075] 2.1 Design of the loss function L of the detail supervision module s , the loss L is calculated using the true value image GT of the detail image and the detail prediction map generated by the detail guidance branch s , by continuously iteratively optimizing L s To supervise the detailed guidance branch;

[0076] The true value image (GT) of the detail image can be generated by a 2D convolution kernel called Laplacian convolution kernel and a trainable 1×1 convolution. The present invention uses the Laplacian operator to generate soft thin detail feature maps with different step sizes to obtain multi-scale detail information. The detail feature map is then upsampled to the original size and fused with a trainable 1×1 convolution for dynamic reweighting. Finally, a threshold of 0.1 is used to convert the predicted details into the true value image (GT) of the final binary detail image with boundary and corner information. After the true value image (GT) of the binary detail image is generated, it is used to calculate the pixel-level cross entropy loss with the detail prediction map to supervise the detail guidance branch. The pixel-level cross entropy loss function of the detail supervision module can be defined as:

[0077] L e =-(G e log(M e )+(1-G e )log(1-M e )),

[0078] Among them, M e represents the detailed prediction map, G e The ground truth image (GT) represents the binary detail image. The cross entropy loss calculates the cross entropy for each pixel separately and then averages it over all pixels, which means that by default each class of pixels contributes equally to the loss. This can be a problem if the number of pixels of different classes in the image is unbalanced, as the most populous class will have the greatest impact on the loss function and thus dominate the training process.

[0079] 2.2 Design of loss function L for salient supervision module e , the loss is calculated based on the true value image GT of the saliency detection and the generated saliency detection image By continuously iteratively optimizing L e To update the parameters θ of the dual-branch network model De ;

[0080] The saliency supervision module also uses the pixel-level cross entropy loss function to supervise the saliency prediction. The pixel-level cross entropy loss function of the saliency supervision module can be defined as:

[0081]

[0082] Among them, M s represents the significant prediction map, The ground truth image GT represents the saliency.

[0083] 3. Overall framework training;

[0084] The training parameters of the deep learning convolutional neural network based on dual branches include data preprocessing, model framework training and testing stages.

[0085] 3.1 Data preprocessing;

[0086] The input image set of salient objects is adjusted by upscaling, inversion, etc. and then input into the dual-branch network.

[0087] Input: A set of images of salient objects.

[0088] Output: A set of images of salient objects after data augmentation.

[0089] Geometric enhancement: Methods of changing the image geometry, such as translation, rotation, and shearing, can enhance the generalization ability of the model;

[0090] 3.2 Model Framework Training

[0091] Input: Image set of salient objects after data augmentation

[0092] Output: Segmentation results of image sets of salient objects

[0093] For the input salient image, a dual-branch saliency network is used with the help of the saliency supervision loss function L e and detail supervision loss function L s , thus training a robust two-branch saliency detection network; the saliency supervision loss function L e and detail supervision loss function L s The definition is as follows:

[0094] L e =-(G e log(M e )+(1-G e )log(1-M e ))

[0095]

[0096] The detail supervision loss function optimizes the generated detail prediction map, and the two supervision modules optimize the network at the same time, so the overall loss function is written as:

[0097] L=L s +L e .

[0098] During the training process, a mini-batch stochastic gradient descent (SGD) optimization algorithm with a batchsize of 32, a momentum of 0.9, and a weight decay of 1e-5 is used. The learning rate is set to 1e-4 and the maximum epoch is set to 100. The training images are resized to 352×352 as the input of the entire network.

[0099] 3.3 Model framework testing;

[0100] Input: image set of salient objects;

[0101] Output: corresponding salient object cut image;

[0102] Step 1: Input the image set of the salient object into the convolutional neural network, and use the trained generative network model to obtain the initial salient cut image result;

[0103] Step 2 fills the features obtained in step 1 with details, and finally obtains the final saliency cut image result with rich details.

[0104] In the present invention, Figure 2 Shown is the input salient image set, Figure 3 is the standard segmentation image, Figure 4 is the network segmentation result.

[0105] The present invention provides a method and idea for a real-time saliency detection image method based on a dual-branch network. There are many methods and approaches to implement the technical solution. The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the protection scope of the present invention. All components not specified in this embodiment can be implemented using existing technologies.

Claims

1. A real-time saliency detection image method based on a dual-branch network, characterized in that: The steps include: Step 1, build a two-branch network: build a two-branch network for saliency detection, input the image set of salient objects into the two-branch network, and optimize the two-branch network by iteratively optimizing the loss function; Step 2: Build detail supervision and saliency supervision modules: Use the dual-branch network in step 1 to iteratively optimize saliency loss and detail loss; Step 3, the dual-branch network framework is divided into a model training phase and a testing phase. In the model training phase, the saliency training image set that has undergone data preprocessing is input into the dual-branch network, and the dual-branch network is optimized using the detail supervision and saliency supervision modules to obtain a dual-branch network that can quickly and accurately generate saliency results. In the testing phase, the salient image to be detected is input into the trained dual-branch network to obtain the corresponding salient object cut image; Step 4: Input a single salient image and obtain the corresponding salient result map through the trained dual-branch network; Wherein, step 1 comprises the following steps: Step 1-1, construct a dual-branch network model skeleton for feature extraction; Step 1-2, design the detailed guidance branch DBG to further encode the detailed structural information of the low-level features, and design the target branch OB to obtain sufficient deep information context targets; Step 1-3, construct a feature projection fusion module FPM to fuse the detailed structural information of low-level features with the deep information context target; In step 1-1, the dual-branch network model skeleton includes five stages. The first two stages are two 3×3 convolutional layers with a stride of 2. Each of the last three stages contains two short-range connection modules SRCM. The skeleton is used to extract feature maps, so that the spatial resolution is reduced in each stage. The specific structure of the short-range connection module SRCM is that each SRCM is divided into 4 convolutional blocks, and the output of the i-th convolutional block is represented as x i , i∈[1,4] The final output of the module SRCM is represented by the sum of all 4 blocks, that is, x output =ψ(x1, x2, ..., x n ), the constructed backbone extracts multi-scale features under limited parameters; In step 1-2, the detail guidance branch includes two 3×3 convolution operations, through which the detail guidance branch DBG is used to further encode the spatial information of the third stage of the backbone network to obtain the feature F e The target branch OB includes two channel attention modules CA, which use the two channel attention modules to re-encode the features of stage 4 and stage 5 in step 1-1 respectively, and fuse the two re-encoded features to obtain feature F o ; In step 1-3, the feature projection fusion module FPM combines the feature F output by the dual-branch network OB o And the feature F output by DBG e To perform fusion, firstly transform the feature F o Upsample to the same size F e ∈R C×H×W , where C is the number of channels of the feature matrix, H is the height of the feature matrix, and W is the width of the feature matrix. Then the pyramid pooling module PPM is used to reduce the feature map F o and F e The PPM consists of feature boxes of four scales, which are then flattened and concatenated to form a matrix of size C1×N, N<<HW, C1=C / 2, F o and F e The self-affinity matrix of is calculated as: Among them, A e and A o represents the similarity matrix, whose size is fixed to N×(HW) by PPM, and represents the learnable parameters, and further combine these two matrices as follows: Then, use the row-level normalization matrix A∈R (HW)×N , A projects the two features into the same subspace: F o and F e Concatenate them and use 3×3 convolution to get the final output feature F.

2. According to claim 1, a real-time saliency detection image method based on a dual-branch network is characterized in that: Step 2 includes the following steps: Step 2-1, design the loss function L of the detail supervision module, and calculate the loss L using the true value image GT of the detail image and the detail prediction map generated by the detail guidance branch s , by continuously iteratively optimizing L s To supervise the detailed guidance branch; Step 2-2, design the loss function L of the significant supervision module e , the loss is calculated based on the true value image GT of saliency detection and the generated saliency detection image By continuously iteratively optimizing L e To update the parameters θ of the dual-branch network model De .

3. The real-time saliency detection image method based on a dual-branch network according to claim 2, characterized in that: In step 2-1, the true value image GT of the detail image can be generated by a 2D convolution kernel called a Laplacian convolution kernel and a trainable 1×1 convolution. The Laplacian operator is used to generate a soft thin detail feature map with different step sizes, and then the detail feature map is upsampled to the original size and fused with a trainable 1×1 convolution for dynamic reweighting. Finally, the predicted details are converted into the true value image GT of the final binary detail image with boundary and corner information using thresholds 0 and 1. After the true value image GT of the binary detail image is generated, it is used to calculate the pixel-level cross entropy loss with the detail prediction map to supervise the detail guidance branch. The pixel-level cross entropy loss function of the detail supervision module is defined as: L e =-(G e log(M e )+(1-G e )log(1-M e )), Among them, M e represents the detailed prediction map, G e The cross entropy loss calculates the cross entropy of each pixel separately and then averages it over all pixels, thereby assuming that each type of pixel contributes equally to the loss.

4. The real-time saliency detection image method based on a dual-branch network according to claim 3 is characterized in that: The saliency supervision module described in step 2-2 uses a pixel-level cross entropy loss function to supervise saliency prediction. The pixel-level cross entropy loss function of the saliency supervision module is defined as: Among them, M s represents the significant prediction map, The ground truth image GT represents the saliency.

5. The real-time saliency detection image method based on a dual-branch network according to claim 4, characterized in that: Step 3 includes the following steps: Step 3-1, data preprocessing: perform data augmentation in the form of random flipping and random cropping on the saliency training set to be input into the dual-branch network; Step 3-2, model framework training: input the data-enhanced image into the dual-branch network, and then use the detail supervision module and the saliency supervision module to continuously optimize the network so that the network gradually generates a complete and accurate saliency map. After training the network for multiple rounds, save the final network model parameters; Step 3-3, model framework test: input the image into the trained two-branch network for inference to obtain the corresponding salient object cut image.

6. The real-time saliency detection image method based on a dual-branch network according to claim 5, characterized in that: Step 3-1 includes the following steps: Step 3-1-1, random flip: flip the image horizontally or vertically; Step 3-1-2, random cropping: crop the image in random ratios, keeping the aspect ratio unchanged; In step 3-2, for the input salient image, a dual-branch saliency network is used with the help of the saliency supervision loss function L e and the detail supervision loss function L s , thus training a robust two-branch saliency detection network; the saliency supervision loss function L e and the detail supervision loss function L s The definition is as follows: L e =-(G e log(M e )+(1-G e )log(1-M e )) The detail supervision loss function optimizes the generated detail prediction map, and the two supervision modules optimize the network at the same time, so the overall loss function is written as: L=L s +L e .