Image segmentation method, device, computer equipment and storage medium

By extracting intra-object and inter-object feature information in the image, combined with the probabilistic feature map generation model, the problem of insufficient context information in traditional image segmentation methods is solved, and the accuracy of image segmentation is significantly improved.

CN111814898BActive Publication Date: 2024-09-20刘丽
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010697277.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-07-20
Publication Date
2024-09-20
Estimated Expiration
2040-07-20

AI Technical Summary

Technical Problem

In traditional image segmentation methods, image segmentation prediction results are inaccurate, mainly due to insufficient context information provided by networks such as fully convolutional networks (FCN) and Segnet.

Method used

By obtaining the image to be segmented, extracting the initial feature map, further extracting the internal feature information and inter-object feature information from it, and combining the probabilistic feature map generation model to generate the internal feature information and inter-object feature information to improve the accuracy of image segmentation. .

Benefits of technology

By extracting feature information within and between objects, the accuracy of image segmentation is significantly improved, which can effectively distinguish different objects in the image and improve the accuracy of segmentation prediction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111814898B
    Figure CN111814898B
Patent Text Reader

Abstract

The present application relates to the field of computer technology, and in particular to an image segmentation method, apparatus, computer equipment and storage medium. The method comprises: obtaining an image to be segmented, the image to be segmented includes multiple objects of different categories; extracting initial features of the image to be segmented to obtain an initial feature map; extracting internal feature information and inter-object feature information corresponding to each object from the initial feature map; and obtaining segmentation results corresponding to each object based on the internal feature information of the object, the inter-object feature information and the initial feature map. The use of this method can improve the accuracy of image segmentation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to an image segmentation method, apparatus, computer device and storage medium. Background Art

[0002] Image segmentation is now a focus and difficulty in the field of computer vision. It is a key technology from image processing to image analysis and an indispensable step in many intelligent image analysis systems. It has important applications in autonomous driving, medical imaging and other aspects.

[0003] In traditional methods, image recognition and segmentation are usually performed through fully convolutional networks (FCN), Segnet, etc. However, since the context information provided by networks such as FCN and Segnet is not sufficient, the results of image segmentation prediction are not accurate. Summary of the invention

[0004] Based on this, it is necessary to provide an image segmentation method, device, computer equipment and storage medium that can improve the accuracy of image segmentation in response to the above technical problems.

[0005] An image segmentation method, the method comprising:

[0006] Acquire an image to be segmented, where the image to be segmented includes multiple objects of different categories;

[0007] Extract the initial features of the image to be segmented to obtain an initial feature map;

[0008] Extracting internal feature information and inter-object feature information corresponding to each object from the initial feature map;

[0009] According to the internal feature information of the object, the feature information between objects and the initial feature map, the segmentation result corresponding to each object is obtained.

[0010] In one embodiment, extracting the internal feature information and the inter-object feature information corresponding to each object from the initial feature map includes:

[0011] Based on a preset convolution kernel, convolution processing is performed on the initial feature map to obtain a first spatial feature map with a unchanged size and a number of categories increased to a first number;

[0012] Determine, according to the first spatial feature map, probability values ​​of different pixels in the initial feature map being the same object, and generate a probability feature map corresponding to the initial feature map;

[0013] Based on the probability feature map and the first spatial feature map, internal object feature information and inter-object feature information corresponding to different objects are generated.

[0014] In one embodiment, determining, based on the first spatial feature map, probability values ​​of different pixels in the initial feature map being the same object, and generating a probability feature map corresponding to the initial feature map includes:

[0015] Performing a convolution operation on the first spatial feature map through a convolution kernel of a unit size to obtain a second spatial feature map with a constant size and a second number of categories increased to a second number, where the second number is greater than the first number;

[0016] The second spatial feature map is dimensionalized to obtain probability values ​​of different pixels in the corresponding initial feature map being the same object, and a probability feature map corresponding to the initial feature map is generated.

[0017] In one embodiment, generating internal object feature information and inter-object feature information corresponding to different objects based on the probability feature map and the first spatial feature map includes:

[0018] According to the probability feature map, a first classification matrix is ​​generated for different pixels in the initial feature map, indicating that the pixels are the same object, and a second classification matrix is ​​generated for different pixels in the initial feature map;

[0019] According to the first spatial feature map, a corresponding feature matrix is ​​generated;

[0020] Generating object internal feature information corresponding to different objects according to the feature matrix and the first classification matrix;

[0021] According to the feature matrix and the second classification matrix, inter-object feature information corresponding to different objects is generated.

[0022] In one embodiment, based on a preset convolution kernel, the initial feature map is convolved to obtain a first spatial feature map with a unchanged size and a first number of categories, including:

[0023] Using a first convolution kernel of unit size length and a second convolution kernel of unit size width, respectively, the initial feature map is convolved to obtain a first convolution result corresponding to the convolution operation of the first convolution kernel and a second convolution result corresponding to the convolution operation of the second convolution kernel;

[0024] Perform a second convolution on the first convolution result through the second convolution kernel to obtain a third convolution result;

[0025] Performing a second convolution on the second convolution result through the first convolution kernel to obtain a fourth convolution result;

[0026] The third convolution result and the fourth convolution result are combined to generate a first spatial feature map.

[0027] In one of the embodiments, generating a probability feature map corresponding to the initial feature map according to the first spatial feature map is performed by a pre-trained probability feature generation model;

[0028] The generation methods of the probabilistic feature generation model include:

[0029] Get training set images;

[0030] Label each object in the training set image to obtain annotated training set images;

[0031] Based on the annotated training set images, generate the corresponding standard probability feature map;

[0032] According to the training set image, generate a corresponding first spatial feature training image;

[0033] Inputting the first spatial feature training graph into the constructed initial probability feature generation model to generate a probability feature training graph corresponding to the training set image;

[0034] Based on the probability feature training graph and the standard probability feature graph, calculate the loss value of the initial probability feature generation model;

[0035] The training parameters of the initial probability feature generation model are adjusted according to the loss value, and the initial probability feature generation model is iteratively trained based on the adjusted training parameters to obtain a trained probability feature generation model.

[0036] In one embodiment, the segmentation result corresponding to each object is obtained according to the internal feature information of the object, the feature information between objects and the initial feature map, including:

[0037] Combining the internal feature information of the object and the feature information between the objects to obtain combined feature information;

[0038] Fusing the combined feature information with the initial feature map to obtain an initial fused feature map;

[0039] Feature extraction and regression prediction are performed on the initial fusion feature map to obtain the segmentation results of each object in the image to be segmented.

[0040] An image segmentation device, comprising:

[0041] The image acquisition module to be segmented is used to acquire the image to be segmented, where the image to be segmented includes objects of multiple different categories;

[0042] An initial feature extraction module is used to extract initial features of the image to be segmented and obtain an initial feature map;

[0043] An object feature information extraction module is used to extract internal feature information and inter-object feature information corresponding to each object from the initial feature map;

[0044] The segmentation result generation module is used to obtain the segmentation result corresponding to each object based on the internal feature information of the object, the feature information between objects and the initial feature map.

[0045] A computer device comprises a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of any one of the above methods when executing the computer program.

[0046] A computer-readable storage medium stores a computer program, which implements the steps of any of the above methods when executed by a processor.

[0047] The above-mentioned image segmentation method, device, computer equipment and storage medium obtain an image to be segmented, which includes multiple objects of different categories of vehicles, then extract initial features of the image to be segmented to obtain an initial feature map, further extract internal object feature information and inter-object feature information corresponding to each different object from the initial feature map, and obtain the segmentation result corresponding to each object based on the internal object feature information, inter-object feature information and the initial feature map. Therefore, different objects in the image to be segmented can be effectively distinguished based on the internal object feature information and inter-object feature information corresponding to each different object extracted from the initial feature map, and then the accuracy of segmentation prediction can be improved when segmenting the image to be segmented. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] Figure 1 An application scenario diagram of an image segmentation method in an embodiment;

[0049] Figure 2 is a schematic flow chart of an image segmentation method in one embodiment;

[0050] Figure 3 A schematic diagram of the structure of an image segmentation network in one embodiment;

[0051] Figure 4 is a schematic diagram of the structure of a feature aggregation module in one embodiment;

[0052] Figure 5 is a schematic diagram of a standard probability feature map generation process in one embodiment;

[0053] Figure 6 is a schematic diagram of a standard probability feature matrix in one embodiment;

[0054] Figure 7 is a structural block diagram of an image segmentation device in one embodiment;

[0055] Figure 8 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0056] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0057] The image segmentation method provided in this application can be applied to Figure 1 In the application environment shown. Among them, the terminal 102 communicates with the server 104 through the network. The terminal 102 can collect the image to be segmented, and send the collected image to be segmented to the server 104, and the image to be segmented includes multiple objects of different categories. After the server 104 obtains the image to be segmented, it can extract the initial features of the image to be segmented to obtain an initial feature map, and then the server 104 extracts the object internal feature information and inter-object feature information corresponding to each object from the initial feature map, and obtains the segmentation result corresponding to each object according to the object internal feature information, inter-object feature information and the initial feature map. Among them, the terminal 102 can be but not limited to various image acquisition terminals such as cameras, video cameras and video recorders, and the server 104 can be implemented by an independent server or a server cluster composed of multiple servers.

[0058] In one embodiment, Figure 2 As shown, an image segmentation method is provided, which is applied to Figure 1 The server in the example is used to illustrate the following steps:

[0059] Step S202: obtaining an image to be segmented, where the image to be segmented includes objects of multiple different categories.

[0060] The image to be segmented refers to the image to be segmented. In different application scenarios, the image to be segmented may be different. For example, in the vehicle appearance detection scenario, the image to be segmented refers to the collected vehicle appearance image, and in the indoor environment detection scenario, the image to be segmented may refer to the collected indoor environment image.

[0061] In this embodiment, the image to be segmented may include multiple objects of different categories. For example, for vehicle appearance detection, objects of different categories may refer to different objects such as the vehicle's hood, rearview mirror, window, door, license plate, etc., while for indoor environment detection, different types of objects may refer to indoor tables, chairs, sofas, lamps, televisions, bedding, etc. Those skilled in the art will appreciate that this is only for illustrative purposes.

[0062] In this embodiment, after the user captures the image to be processed through the terminal, the user may send the image to be processed to the server so that the server performs subsequent processing.

[0063] Step S204: extract initial features from the image to be segmented to obtain an initial feature map.

[0064] The initial features refer to the surface features of each pixel of each object in the image to be segmented.

[0065] In this embodiment, reference Figure 3 , the server can perform feature extraction on the image to be segmented through the base network to obtain an initial feature map X based on the extracted initial features.

[0066] In this embodiment, the input image of the base network has a length and width size of W*H. Since the size collected by the acquisition device is not necessarily consistent with the input size requirement of the base network, after the server obtains the original image collected by the acquisition device, it can fill the original image with zero pixels to enlarge or reduce the overall image, so as to obtain an image to be segmented whose size meets the input requirement W*H of the base network.

[0067] In this embodiment, the base network may be a network model consisting of a convolution layer, a pooling layer, and an excitation layer, wherein the convolution kernel size of the convolution layer may be 1*1, thereby obtaining an initial feature map X of a size of W*H*C1, wherein C1 represents the number of classifications.

[0068] Optionally, the base network may consist of one convolutional layer, a pooling layer, and an excitation layer, or may consist of multiple convolutional layers, pooling layers, and excitation layers, and this application does not impose any restrictions on this.

[0069] Step S206: extracting internal object feature information and inter-object feature information corresponding to each object from the initial feature map.

[0070] Among them, the internal feature information of the object refers to the internal feature information of each object to be segmented in the image to be segmented. For example, for the vehicle appearance image, the license plate is an object, and the internal feature information of the object may refer to the feature information between each pixel point in the license plate; the hood is an object, and the internal feature information of the object may refer to the feature information between each pixel point in the hood.

[0071] Inter-object feature information refers to feature information between objects. Continuing with the previous example, the license plate and the hood refer to different objects respectively, and the inter-object feature information may refer to feature information between the license plate and the hood.

[0072] In this embodiment, after the server extracts initial features from the image to be segmented, it may extract features from the initial feature map to extract internal feature information and inter-object feature information of each object in the image to be segmented.

[0073] Step S208, obtaining the segmentation result corresponding to each object according to the internal feature information of the object, the feature information between objects and the initial feature map.

[0074] Specifically, continue to refer to Figure 3 After obtaining the internal feature information of the object, the feature information between objects and the initial feature map, the server obtains the segmentation results of each object by combining the internal feature information of the object, the feature information between objects and the initial feature map, and performing convolution and deconvolution operations. For example, in vehicle appearance detection, the segmentation results of each object such as the hood, license plate, rearview mirror, etc. in the image to be segmented are obtained.

[0075] In the above-mentioned image segmentation method, by obtaining an image to be segmented, the image to be segmented includes multiple objects of different categories of vehicles, and then extracting initial features of the image to be segmented to obtain an initial feature map, further extracting internal object feature information and inter-object feature information corresponding to each different object from the initial feature map, and obtaining the segmentation result corresponding to each object based on the internal object feature information, inter-object feature information and the initial feature map. Therefore, different objects in the image to be segmented can be effectively distinguished based on the internal object feature information and inter-object feature information corresponding to each different object extracted from the initial feature map, and thus the accuracy of segmentation prediction can be improved when segmenting the image to be segmented.

[0076] In one embodiment, extracting internal object feature information and inter-object feature information corresponding to each object from an initial feature map may include: performing convolution processing on the initial feature map based on a preset convolution kernel to obtain a first spatial feature map with an unchanged size and a number of categories increased to a first number; determining, based on the first spatial feature map, probability values ​​of different pixels in the initial feature map being the same object, and generating a probability feature map corresponding to the initial feature map; and generating internal object feature information and inter-object feature information corresponding to different objects based on the probability feature map and the first spatial feature map.

[0077] Among them, the first spatial feature map refers to a feature map generated after feature aggregation by a preset convolution kernel.

[0078] Continue to refer Figure 3 In this embodiment, the server can input the initial feature map output by the base network into the feature aggregation module so that after feature aggregation by the feature aggregation module, the output size remains unchanged and the number of classifications becomes the first spatial feature map Y of C2.

[0079] In this embodiment, the server may continue to perform feature extraction and dimension conversion processing on the first spatial feature map Y to generate a probability feature map M corresponding to the first spatial feature map Y. The probability feature map M reflects the probability values ​​of the same object between the pixels of different dimensions of the initial feature map X, which includes the probability values ​​of the same object between all the pixels of different dimensions in the initial feature map X.

[0080] Furthermore, the server may obtain internal object feature information and inter-object feature information of each object in the image to be processed based on the first spatial feature map Y and the probability feature map M.

[0081] In one embodiment, based on a preset convolution kernel, convolution processing is performed on the initial feature map to obtain a first spatial feature map with unchanged size and the number of classifications increased to a first number, which may include: using a first convolution kernel with a unit size length and a second convolution kernel with a unit size width to perform convolution operations on the initial feature map, respectively, to obtain a first convolution result corresponding to the convolution operation of the first convolution kernel and a second convolution result corresponding to the convolution operation of the second convolution kernel; performing a secondary convolution on the first convolution result through the second convolution kernel to obtain a third convolution result; performing a secondary convolution on the second convolution result through the first convolution kernel to obtain a fourth convolution result; merging the third convolution result and the fourth convolution result to generate a first spatial feature map.

[0082] The unit size refers to the size of the smallest unit. For example, for a convolution kernel, the unit size is 1. A convolution kernel of unit length refers to a convolution kernel of size 1 in the length direction, and a convolution kernel of unit width refers to a convolution kernel of size 1 in the width direction.

[0083] In conventional processing, convolution processing is usually performed using a convolution kernel with a preset length and a preset width, such as a convolution kernel with a size of K*K.

[0084] In this embodiment, reference Figure 4 The server can perform a first convolution kernel convolution operation on the initial feature map through a convolution kernel of unit size length, such as a 1*K convolution kernel, to obtain a first convolution result. At the same time, the server can perform a second convolution kernel convolution operation on the initial feature map through a convolution kernel of unit size width, such as a K*1 convolution kernel, to obtain a second convolution result.

[0085] Further, the server continues to perform the first convolution kernel convolution operation on the second convolution result with a convolution kernel of unit size length, and performs the second convolution kernel convolution operation on the first convolution result with a convolution kernel of unit size width, so as to obtain a third convolution result and a fourth convolution result respectively.

[0086] In this embodiment, after obtaining the third convolution result and the fourth convolution result, the server may multiply the third convolution result and the fourth convolution result to obtain a first spatial feature map with a classification quantity of C2.

[0087] In this embodiment, continue to refer to Figure 4 , the convolution operation process of 1*K and K*1 on the left and the convolution operation process of K*1 and 1*K on the right are performed in parallel and do not interfere with each other.

[0088] In the above embodiment, by performing a convolution operation using a first convolution kernel of unit size length and a second convolution kernel of unit size width, compared to directly performing a convolution operation using a convolution kernel of a preset size length and a preset size width, the amount of data calculation in the convolution process can be reduced, and the convolution processing efficiency can be improved.

[0089] In one embodiment, according to the first spatial feature map, determining the probability values ​​of different pixels in the initial feature map being the same object, and generating a probability feature map corresponding to the initial feature map can include: performing a convolution operation on the first spatial feature map through a convolution kernel of a unit size to obtain a second spatial feature map with an unchanged size and a second number of categories increased to a second number, the second number being greater than the first number; performing a dimension conversion on the second spatial feature map to obtain the probability values ​​of different pixels in the corresponding initial feature map being the same object, and generating a probability feature map corresponding to the initial feature map.

[0090] Among them, the convolution kernel of unit size refers to the convolution kernel of size 1*1.

[0091] Continue to refer Figure 3 In this embodiment, the server can perform a convolution operation on the first spatial feature map Y through a convolution kernel of a unit matrix, and obtain a second spatial feature map Z with unchanged size and increased number of categories after batch normalization (Batch Normalization, BN) and activation processing of a nonlinear mapping function, such as a sigmoid function.

[0092] In this embodiment, the convolution processing speed and processing efficiency can be improved through batch normalization operations, and nonlinear mapping function activation processing can add nonlinear features to the network and improve the authenticity of network processing.

[0093] In this embodiment, after the server performs a convolution operation on the spatial feature map Y, the number of categories of the obtained second spatial feature map Z may be H*W.

[0094] Further, after obtaining the second number of second spatial feature maps Z, the server may perform dimension conversion on the three-dimensional second spatial feature map, such as converting the three-dimensional second spatial feature map Z into a two-dimensional probability feature map M through a reshape function. In this embodiment, the length and width of the obtained probability feature map M are respectively H*W, and the probability feature map M reflects the probability values ​​of the same object between the pixels of different dimensions in the initial feature map.

[0095] In one embodiment, based on the probability feature map and the first spatial feature map, generating internal object feature information and inter-object feature information corresponding to different objects can include: generating a first classification matrix for different pixels in the initial feature map for the same object and a second classification matrix for different objects based on the probability feature map; generating a corresponding feature matrix based on the first spatial feature map; generating internal object feature information corresponding to different objects based on the feature matrix and the first classification matrix; generating inter-object feature information corresponding to different objects based on the feature matrix and the second classification matrix.

[0096] In this embodiment, after the server obtains the probability feature map corresponding to the initial feature map, it can generate a first classification matrix for different pixels in the initial feature map as the same object. In the first classification matrix, a matrix element of "1" indicates that the two pixels are the same object, and a matrix element of "0" indicates that the two pixels are not the same object.

[0097] Similarly, the server can obtain a second classification matrix in which different pixels in the initial feature map are not the same object. In the second classification matrix, a matrix element of "1" indicates that the two pixels are not the same object, and a matrix element of "0" indicates that the two pixels are the same object.

[0098] In this embodiment, the first classification matrix is ​​represented by P, and the second classification matrix is ​​represented by 1-P, that is, the elements that are "1" in the first classification matrix P are "0" in the second classification matrix, and the elements that are "0" in the first classification matrix P are "1" in the second classification matrix.

[0099] In this embodiment, the server may perform dimensional conversion on the first spatial feature map, such as reshape function conversion, to obtain a feature matrix corresponding to the first spatial feature map.

[0100] Furthermore, the server multiplies the first classification matrix and the second classification matrix with the feature matrix respectively, so as to obtain internal feature information of objects and inter-object feature information corresponding to different objects in the image to be segmented.

[0101] In this embodiment, the server multiplies the first classification matrix and the second classification matrix with the feature matrix respectively to obtain the internal feature information of the object and the feature information between objects in parallel and simultaneously. That is, while the server multiplies the first classification matrix with the feature matrix to generate the internal feature information of the object, it can multiply the second classification matrix with the feature matrix in parallel and simultaneously to generate the feature information between objects.

[0102] In the above embodiment, a first classification matrix in which different pixels in the initial feature map are the same object and a second classification matrix in which different pixels are not the same object are generated according to the probability feature map, and then internal object feature information corresponding to different objects is generated according to the generated feature matrix and the first classification matrix, and inter-object feature information corresponding to different objects is generated according to the generated feature matrix and the second classification matrix. Thus, feature information inside the object and between objects can be extracted from the image to be segmented, so that when the object is subsequently segmented, the feature information inside the object and between objects can be integrated for segmentation, thereby improving the accuracy of image segmentation.

[0103] In one of the embodiments, generating a probability feature map corresponding to the initial feature map based on the first spatial feature map is performed by using a pre-trained probability feature generation model.

[0104] In this embodiment, the generation method of the probability feature generation model may include: obtaining a training set image; annotating each object in the training set image to obtain an annotated training set image; generating a corresponding standard probability feature map based on the annotated training set image; generating a corresponding first spatial feature training map based on the training set image; inputting the first spatial feature training map into the constructed initial probability feature generation model to generate a probability feature training map corresponding to the training set image; calculating the loss value of the initial probability feature generation model based on the probability feature training map and the standard probability feature map; adjusting the training parameters of the initial probability feature generation model according to the loss value, and iteratively training the initial probability feature generation model based on the adjusted training parameters to obtain a trained probability feature generation model.

[0105] Specifically, the server can generate a corresponding standard probability feature map by modeling based on Ground truth, and supervise the probability feature map M to obtain P, and then obtain the internal feature information of the object and the feature information between objects based on P and 1-P.

[0106] In this embodiment, the server annotates each object in the training set image and continues to annotate the training set image to obtain the ground truth, such as Figure 5 As shown in A.

[0107] In the ground truth, 0, 1, 2, and 3 respectively indicate which category the corresponding pixel belongs to. Furthermore, the server encodes the ground truth using one-hot encoding to obtain a binary-coded feature map B. In the feature map B, C represents the number of categories. For example, in the dimension corresponding to C, it is a binary code of [0, 1, 0, 0] and [1, 0, 0, 0]. Among them, 1 indicates which category the corresponding pixel point in the ground truth belongs to. For example, [0, 1, 0, 0] indicates that it is in the first category, and [1, 0, 0, 0] indicates that it is in the 0th category.

[0108] Further reference Figure 5 , the server feature map B is processed by reshape function to perform dimension conversion, so as to obtain a standard probability feature map U with a size of N*C. Where N=H*W.

[0109] Furthermore, the server multiplies U by the transpose of U to obtain the standard feature P`, such as Figure 6 As shown in Figure 1, P` reflects whether the pixels of Groundtruth are of the same type, that is, whether they are pixels of the same object.

[0110] In this embodiment, the server performs supervised training on the probability feature map M based on the standard probability feature map U, so that P obtained based on the probability feature map M tends to P`.

[0111] In this embodiment, during the training process, the server can construct the loss_supervise loss according to P and P`, adjust the model parameters through the loss value of the loss_supervise loss, and continuously iterate and update the model.

[0112] In this embodiment, loss_supervise loss includes binary cross entropy loss L1 and global loss L2. The expression of binary cross entropy loss L1 is shown in formula (1), which fully considers the relationship between similar pixels and ignores the semantic connection with other pixels.

[0113]

[0114] Among them, p n ∈M,p` n ∈P`, n∈[1,N 2 ].

[0115] The global loss L2 consists of the accuracy and pixel difference between similar pixels, which fully considers the relationship between pixels of the same category and the relationship between pixels of different categories. The accuracy between similar pixels is calculated by formula (2), the pixel difference is calculated by formula (3), and the expression of global loss L2 is shown in formula (4).

[0116]

[0117]

[0118]

[0119] In this embodiment, the server can determine the segmentation loss loss_segmentation based on the segmentation result and the annotation result, and generate the total network loss of the network model according to the loss_supervise loss and the segmentation loss loss_segmentation, so as to Figure 3 The network model shown adjusts the overall parameters and iterates to obtain the trained network model.

[0120] In the above embodiment, Ground truth is used for modeling, and the probability feature map is supervised and trained and learned, so that the classification matrix generated based on the probability feature map after supervised learning can tend to the standard features obtained based on Ground truth, which can improve the accuracy of classification and further improve the accuracy of image segmentation.

[0121] In one of the embodiments, obtaining the segmentation results corresponding to each object based on the internal feature information of the object, the feature information between objects and the initial feature map can include: combining the internal feature information of the object and the feature information between objects to obtain combined feature information; fusing the combined feature information with the initial feature map to obtain an initial fused feature map; performing feature extraction and regression prediction on the initial fused feature map to obtain the segmentation results of each object in the image to be segmented.

[0122] Continue to refer Figure 3 After obtaining the internal feature information of the object and the inter-object feature information, the server can combine the internal feature information of the object and the inter-object feature information by means of concat to obtain the combined feature information.

[0123] Furthermore, the server fuses the combined feature information and the initial feature map through the concat in the model to obtain the initial fused feature map. Then the server extracts features and performs regression prediction on the initial fused feature map through convolution and deconvolution to obtain the segmentation results (Result) of each object in the image to be segmented.

[0124] In this embodiment, the convolution and deconvolution of feature extraction and regression prediction may refer to a multi-layer network structure composed of a convolution layer, a pooling layer, a skip connection layer, a deconvolution layer, and a fusion layer. For example, it may be a fully convolutional network (Fully Convolutional Networks for Semantic Segmentation, FCN), or a Seg Net network, etc. This application does not impose any restrictions on this.

[0125] In the above embodiment, the internal feature information of the object and the feature information between objects are combined and then fused with the initial feature map to obtain an initial fused feature map, so that the final fused feature map contains the internal feature information of each object in the image to be segmented and the feature information between objects, so that when the subsequent predictive segmentation is performed based on the initial fused feature map, the segmentation of each object is performed based on the internal feature information and the feature information between objects, thereby improving the accuracy of segmentation.

[0126] It should be understood that although Figure 2 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 2 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.

[0127] In one embodiment, Figure 7 As shown, an image segmentation device is provided, comprising: an image acquisition module 100 to be segmented, an initial feature extraction module 200, an object feature information extraction module 300 and a segmentation result generation module 400, wherein:

[0128] The to-be-segmented image acquisition module 100 is used to acquire the to-be-segmented image, where the to-be-segmented image includes multiple objects of different categories.

[0129] The initial feature extraction module 200 is used to extract initial features from the image to be segmented to obtain an initial feature map.

[0130] The object feature information extraction module 300 is used to extract the internal feature information and inter-object feature information corresponding to each object from the initial feature map.

[0131] The segmentation result generation module 400 is used to obtain the segmentation result corresponding to each object according to the internal feature information of the object, the feature information between objects and the initial feature map.

[0132] In one embodiment, the object feature information extraction module 300 may include:

[0133] The first spatial feature map generation submodule is used to perform convolution processing on the initial feature map based on a preset convolution kernel to obtain a first spatial feature map with unchanged size and increased number of categories to a first number.

[0134] The probability feature map generation submodule is used to determine the probability values ​​of different pixels in the initial feature map being the same object based on the first spatial feature map, and generate a probability feature map corresponding to the initial feature map.

[0135] The object feature information extraction submodule is used to generate internal object feature information and inter-object feature information corresponding to different objects based on the probability feature map and the first spatial feature map.

[0136] In one embodiment, the probability feature map generation submodule may include:

[0137] The second spatial feature map generating unit is used to perform a convolution operation on the first spatial feature map through a convolution kernel of a unit size to obtain a second spatial feature map with an unchanged size and a second number of classifications increased to a second number, where the second number is greater than the first number.

[0138] The conversion unit is used to perform dimensional conversion on the second spatial feature map, obtain probability values ​​of different pixels in the corresponding initial feature map being the same object, and generate a probability feature map corresponding to the initial feature map.

[0139] In one embodiment, the object feature information extraction submodule may include:

[0140] The first classification matrix and the second classification matrix generating unit are used to generate a first classification matrix for different pixels in the initial feature map for the same object and a second classification matrix for different objects according to the probability feature map.

[0141] The feature matrix generating unit is used to generate a corresponding feature matrix according to the first spatial feature map.

[0142] The object internal feature information generating unit is used to generate object internal feature information corresponding to different objects according to the feature matrix and the first classification matrix.

[0143] The inter-object feature information generating unit is used to generate inter-object feature information corresponding to different objects according to the feature matrix and the second classification matrix.

[0144] In one embodiment, the first spatial feature map generating submodule may include:

[0145] The first convolution result and the second convolution result generating unit are used to use the first convolution kernel of unit size length and the second convolution kernel of unit size width to perform convolution operations on the initial feature map, respectively, to obtain the first convolution result corresponding to the convolution operation of the first convolution kernel and the second convolution result corresponding to the convolution operation of the second convolution kernel.

[0146] The third convolution result generating unit is used to perform a second convolution on the first convolution result through the second convolution kernel to obtain a third convolution result.

[0147] The fourth convolution result generating unit is used to perform a second convolution on the second convolution result through the first convolution kernel to obtain a fourth convolution result.

[0148] A merging unit is used to merge the third convolution result and the fourth convolution result to generate a first spatial feature map.

[0149] In one of the embodiments, the probability feature map generation submodule is used to generate a probability feature map corresponding to the initial feature map according to the first spatial feature map through a pre-trained probability feature generation model.

[0150] In this embodiment, the above-mentioned device may also include: a model generation module, which is used to train and generate a probability feature generation model.

[0151] In this embodiment, the model generation module may include:

[0152] The training set image acquisition submodule is used to acquire training set images.

[0153] The annotation submodule is used to annotate each object in the training set image to obtain the annotated training set image.

[0154] The standard probability feature map generation submodule is used to generate the corresponding standard probability feature map based on the annotated training set images.

[0155] The first spatial feature training image generation submodule is used to generate a corresponding first spatial feature training image according to the training set image.

[0156] The probability feature training graph generation submodule is used to input the first spatial feature training graph into the constructed initial probability feature generation model to generate a probability feature training graph corresponding to the training set image.

[0157] The loss calculation submodule is used to calculate the loss value of the initial probability feature generation model based on the probability feature training graph and the standard probability feature graph.

[0158] The iterative training submodule is used to adjust the training parameters of the initial probability feature generation model through the loss value, and iteratively train the initial probability feature generation model based on the adjusted training parameters to obtain a trained probability feature generation model.

[0159] In one embodiment, the segmentation result generation module 400 may include:

[0160] The combination submodule is used to combine the internal feature information of the object and the feature information between objects to obtain combined feature information.

[0161] The fusion submodule is used to fuse the combined feature information with the initial feature map to obtain an initial fused feature map.

[0162] The feature extraction and regression prediction submodule is used to perform feature extraction and regression prediction on the initial fusion feature map to obtain the segmentation results of each object in the image to be segmented.

[0163] For the specific definition of the image segmentation device, please refer to the definition of the image segmentation method above, which will not be repeated here. Each module in the above-mentioned image segmentation device can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0164] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 8 As shown. The computer device includes a processor, a memory, a network interface and a database connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data such as the image to be segmented and the segmentation results. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, an image segmentation method is implemented.

[0165] Those skilled in the art will understand that Figure 8 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0166] In one embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the following steps when executing the computer program: obtaining an image to be segmented, wherein the image to be segmented includes objects of multiple different categories; extracting initial features of the image to be segmented to obtain an initial feature map; extracting internal object feature information and inter-object feature information corresponding to each object from the initial feature map; and obtaining a segmentation result corresponding to each object based on the internal object feature information, the inter-object feature information and the initial feature map.

[0167] In one of the embodiments, when the processor executes the computer program, it can extract the internal object feature information and inter-object feature information corresponding to each object from the initial feature map, which can include: based on a preset convolution kernel, convolution processing is performed on the initial feature map to obtain a first spatial feature map with unchanged size and the number of categories increased to a first number; based on the first spatial feature map, the probability values ​​of different pixels in the initial feature map being the same object are determined, and a probability feature map corresponding to the initial feature map is generated; based on the probability feature map and the first spatial feature map, the internal object feature information and inter-object feature information corresponding to different objects are generated.

[0168] In one of the embodiments, when the processor executes the computer program, it determines the probability values ​​of different pixels in the initial feature map being the same object based on the first spatial feature map, and generates a probability feature map corresponding to the initial feature map, which may include: performing a convolution operation on the first spatial feature map through a convolution kernel of a unit size to obtain a second spatial feature map with an unchanged size and a second number of categories increased to a second number, where the second number is greater than the first number; performing a dimensional conversion on the second spatial feature map to obtain the probability values ​​of different pixels in the corresponding initial feature map being the same object, and generating a probability feature map corresponding to the initial feature map.

[0169] In one embodiment, when the processor executes the computer program, it generates internal object feature information and inter-object feature information corresponding to different objects based on the probability feature map and the first spatial feature map, which may include: generating a first classification matrix for different pixels in the initial feature map that are the same object and a second classification matrix for different objects based on the probability feature map; generating a corresponding feature matrix based on the first spatial feature map; generating internal object feature information corresponding to different objects based on the feature matrix and the first classification matrix; generating inter-object feature information corresponding to different objects based on the feature matrix and the second classification matrix.

[0170] In one embodiment, when the processor executes the computer program, it implements convolution processing on the initial feature map based on a preset convolution kernel to obtain a first spatial feature map with unchanged size and the number of classifications increased to a first number, which may include: using a first convolution kernel with a unit size length and a second convolution kernel with a unit size width to perform convolution operations on the initial feature map respectively, and obtain a first convolution result corresponding to the convolution operation of the first convolution kernel and a second convolution result corresponding to the convolution operation of the second convolution kernel respectively; performing a secondary convolution on the first convolution result through the second convolution kernel to obtain a third convolution result; performing a secondary convolution on the second convolution result through the first convolution kernel to obtain a fourth convolution result; merging the third convolution result and the fourth convolution result to generate the first spatial feature map.

[0171] In one embodiment, when the processor executes the computer program, generating a probability feature map corresponding to the initial feature map based on the first spatial feature map is performed by a pre-trained probability feature generation model.

[0172] In this embodiment, the generation method of the probability feature generation model implemented when the processor executes the computer program may include: obtaining a training set image; annotating each object in the training set image to obtain an annotated training set image; generating a corresponding standard probability feature map based on the annotated training set image; generating a corresponding first spatial feature training map based on the training set image; inputting the first spatial feature training map into the constructed initial probability feature generation model to generate a probability feature training map corresponding to the training set image; calculating the loss value of the initial probability feature generation model based on the probability feature training map and the standard probability feature map; adjusting the training parameters of the initial probability feature generation model according to the loss value, and iteratively training the initial probability feature generation model based on the adjusted training parameters to obtain a trained probability feature generation model.

[0173] In one of the embodiments, when the processor executes the computer program, it obtains the segmentation results corresponding to each object based on the internal feature information of the object, the feature information between objects and the initial feature map, which can include: combining the internal feature information of the object and the feature information between objects to obtain combined feature information; fusing the combined feature information with the initial feature map to obtain an initial fused feature map; performing feature extraction and regression prediction on the initial fused feature map to obtain the segmentation results of each object in the image to be segmented.

[0174] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented: obtaining an image to be segmented, the image to be segmented includes multiple objects of different categories; extracting initial features of the image to be segmented to obtain an initial feature map; extracting internal object feature information and inter-object feature information corresponding to each object from the initial feature map; and obtaining a segmentation result corresponding to each object based on the internal object feature information, the inter-object feature information and the initial feature map.

[0175] In one embodiment, when the computer program is executed by the processor, it is implemented to extract internal object feature information and inter-object feature information corresponding to each object from the initial feature map, which may include: based on a preset convolution kernel, performing convolution processing on the initial feature map to obtain a first spatial feature map with an unchanged size and a number of categories increased to a first number; based on the first spatial feature map, determining the probability values ​​of different pixels in the initial feature map being the same object, and generating a probability feature map corresponding to the initial feature map; based on the probability feature map and the first spatial feature map, generating internal object feature information and inter-object feature information corresponding to different objects.

[0176] In one embodiment, when the computer program is executed by the processor, it is implemented to determine the probability values ​​of different pixels in the initial feature map being the same object based on the first spatial feature map, and generate a probability feature map corresponding to the initial feature map, which may include: performing a convolution operation on the first spatial feature map through a convolution kernel of a unit size to obtain a second spatial feature map with an unchanged size and a second number of categories increased to a second number, where the second number is greater than the first number; performing a dimension conversion on the second spatial feature map to obtain the probability values ​​of different pixels in the corresponding initial feature map being the same object, and generating a probability feature map corresponding to the initial feature map.

[0177] In one embodiment, when the computer program is executed by the processor, it is implemented to generate internal object feature information and inter-object feature information corresponding to different objects based on the probability feature map and the first spatial feature map, which may include: generating a first classification matrix for different pixels in the initial feature map that are the same object and a second classification matrix for different objects based on the probability feature map; generating a corresponding feature matrix based on the first spatial feature map; generating internal object feature information corresponding to different objects based on the feature matrix and the first classification matrix; generating inter-object feature information corresponding to different objects based on the feature matrix and the second classification matrix.

[0178] In one embodiment, when the computer program is executed by the processor, it is implemented to perform convolution processing on the initial feature map based on a preset convolution kernel to obtain a first spatial feature map with unchanged size and the number of classifications increased to a first number, which may include: using a first convolution kernel with a unit size length and a second convolution kernel with a unit size width to perform convolution operations on the initial feature map respectively, and obtain a first convolution result corresponding to the convolution operation of the first convolution kernel and a second convolution result corresponding to the convolution operation of the second convolution kernel respectively; performing a secondary convolution on the first convolution result through the second convolution kernel to obtain a third convolution result; performing a secondary convolution on the second convolution result through the first convolution kernel to obtain a fourth convolution result; merging the third convolution result and the fourth convolution result to generate a first spatial feature map.

[0179] In one embodiment, when the computer program is executed by a processor, generating a probability feature map corresponding to the initial feature map based on the first spatial feature map is performed by a pre-trained probability feature generation model.

[0180] In this embodiment, the method for generating a probability feature generation model when the computer program is executed by the processor may include: obtaining a training set image; annotating each object in the training set image to obtain an annotated training set image; generating a corresponding standard probability feature map based on the annotated training set image; generating a corresponding first spatial feature training map based on the training set image; inputting the first spatial feature training map into the constructed initial probability feature generation model to generate a probability feature training map corresponding to the training set image; calculating the loss value of the initial probability feature generation model based on the probability feature training map and the standard probability feature map; adjusting the training parameters of the initial probability feature generation model according to the loss value, and iteratively training the initial probability feature generation model based on the adjusted training parameters to obtain a trained probability feature generation model.

[0181] In one of the embodiments, when the computer program is executed by the processor, segmentation results corresponding to each object are obtained based on the internal feature information of the object, the feature information between objects and the initial feature map, which may include: combining the internal feature information of the object and the feature information between objects to obtain combined feature information; fusing the combined feature information with the initial feature map to obtain an initial fused feature map; performing feature extraction and regression prediction on the initial fused feature map to obtain segmentation results corresponding to each object in the image to be segmented.

[0182] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0183] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0184] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. An image segmentation method, characterized in that: The method comprises: Acquire an image to be segmented, wherein the image to be segmented includes objects of multiple different categories; Extracting initial features of the image to be segmented to obtain an initial feature map; Extracting internal feature information and inter-object feature information corresponding to each object from the initial feature map; the internal feature information of the object is feature information between pixels of the object; the inter-object feature information is feature information between objects; According to the object internal feature information, the inter-object feature information and the initial feature map, a segmentation result corresponding to each object is obtained; the obtaining of the segmentation result corresponding to each object according to the object internal feature information, the inter-object feature information and the initial feature map includes: combining the object internal feature information and the inter-object feature information to obtain combined feature information; fusing the combined feature information with the initial feature map to obtain an initial fused feature map; performing feature extraction and regression prediction on the initial fused feature map to obtain a segmentation result corresponding to each object in the image to be segmented; extracting the object internal feature information and the inter-object feature information corresponding to each object from the initial feature map includes: Based on a preset convolution kernel, convolution processing is performed on the initial feature map to obtain a first spatial feature map with a unchanged size and a number of categories increased to a first number; Determine, according to the first spatial feature map, probability values ​​of different pixels in the initial feature map being the same object, and generate a probability feature map corresponding to the initial feature map; Based on the probability feature map and the first spatial feature map, generating internal object feature information and inter-object feature information corresponding to different objects; The generating, based on the probability feature map and the first spatial feature map, the internal feature information of the object and the inter-object feature information corresponding to different objects includes: Generate, according to the probability feature map, a first classification matrix for different pixels in the initial feature map for the same object and a second classification matrix for different pixels for different objects; According to the first spatial feature map, generating a corresponding feature matrix; generating object internal feature information corresponding to different objects according to the feature matrix and the first classification matrix; According to the feature matrix and the second classification matrix, inter-object feature information corresponding to different objects is generated.

2. The method according to claim 1, characterized in that The step of determining, based on the first spatial feature map, probability values ​​of different pixels in the initial feature map being the same object, and generating a probability feature map corresponding to the initial feature map comprises: Performing a convolution operation on the first spatial feature map through a convolution kernel of a unit size to obtain a second spatial feature map with an unchanged size and a second number of categories increased to a second number, where the second number is greater than the first number; The second spatial feature map is dimensionalized to obtain probability values ​​corresponding to different pixels in the initial feature map that are the same object, and a probability feature map corresponding to the initial feature map is generated.

3. The method according to claim 1, characterized in that The convolution process is performed on the initial feature map based on a preset convolution kernel to obtain a first spatial feature map with a unchanged size and a number of categories increased to the number of first channels, including: Using a first convolution kernel of unit size length and a second convolution kernel of unit size width, respectively performing convolution operations on the initial feature map, and obtaining a first convolution result corresponding to the convolution operation of the first convolution kernel and a second convolution result corresponding to the convolution operation of the second convolution kernel; Performing a second convolution on the first convolution result by using the second convolution kernel to obtain a third convolution result; Performing a second convolution on the second convolution result by using the first convolution kernel to obtain a fourth convolution result; The third convolution result and the fourth convolution result are combined to generate a first spatial feature map.

4. The method according to claim 1, characterized in that: The generating of the probability feature map corresponding to the initial feature map according to the first spatial feature map is performed by a pre-trained probability feature generation model; The generation method of the probability feature generation model includes: Get training set images; Annotating each object in the training set image to obtain an annotated training set image; Based on the annotated training set images, generating corresponding standard probability feature maps; According to the training set image, generating a corresponding first spatial feature training image; Inputting the first spatial feature training graph into the constructed initial probability feature generation model to generate a probability feature training graph corresponding to the training set image; Based on the probability feature training graph and the standard probability feature graph, calculating the loss value of the initial probability feature generation model; The training parameters of the initial probability feature generation model are adjusted according to the loss value, and the initial probability feature generation model is iteratively trained based on the adjusted training parameters to obtain a trained probability feature generation model.

5. An image segmentation device, characterized in that: The device comprises: The image to be segmented acquisition module is used to acquire the image to be segmented, wherein the image to be segmented includes objects of multiple different categories; An initial feature extraction module is used to extract initial features of the image to be segmented to obtain an initial feature map; An object feature information extraction module is used to extract internal object feature information and inter-object feature information corresponding to each object from the initial feature map; the internal object feature information is feature information between pixels of the object; the inter-object feature information is feature information between objects; A segmentation result generation module is used to obtain the segmentation result corresponding to each object according to the internal feature information of the object, the feature information between objects and the initial feature map; the segmentation result generation module includes: a combination submodule, used to combine the internal feature information of the object and the feature information between objects to obtain combined feature information; a fusion submodule, used to fuse the combined feature information with the initial feature map to obtain an initial fused feature map; a feature extraction and regression prediction submodule, used to perform feature extraction and regression prediction on the initial fused feature map to obtain the segmentation result corresponding to each object in the image to be segmented; The object feature information extraction module includes: a first spatial feature map generation submodule, which is used to perform convolution processing on the initial feature map based on a preset convolution kernel to obtain a first spatial feature map with unchanged size and a first number of categories; a probability feature map generation submodule, which is used to determine, based on the first spatial feature map, the probability values ​​of different pixels in the initial feature map being the same object, and generate a probability feature map corresponding to the initial feature map; an object feature information extraction submodule, which is used to generate object internal feature information and inter-object feature information corresponding to different objects based on the probability feature map and the first spatial feature map; The object feature information extraction submodule includes: a first classification matrix and a second classification matrix generating unit, which are used to generate a first classification matrix for different pixels in the initial feature map that are the same object and a second classification matrix for different objects based on the probability feature map; a feature matrix generating unit, which is used to generate a corresponding feature matrix based on the first spatial feature map; an object internal feature information generating unit, which is used to generate object internal feature information corresponding to different objects based on the feature matrix and the first classification matrix; and an inter-object feature information generating unit, which is used to generate inter-object feature information corresponding to different objects based on the feature matrix and the second classification matrix.

6. The device according to claim 5, characterized in that The probability feature map generation submodule includes: A second spatial feature map generating unit, configured to perform a convolution operation on the first spatial feature map through a convolution kernel of a unit size, to obtain a second spatial feature map with an unchanged size and a second number of categories increased to a second number, where the second number is greater than the first number; A conversion unit is used to perform dimensional conversion on the second spatial feature map to obtain probability values ​​corresponding to different pixel points in the initial feature map being the same object, and generate a probability feature map corresponding to the initial feature map.

7. The device according to claim 5, characterized in that The first spatial feature map generation submodule includes: A first convolution result and a second convolution result generating unit, configured to use a first convolution kernel of a unit size length and a second convolution kernel of a unit size width to perform convolution operations on the initial feature map, respectively, to obtain a first convolution result corresponding to the convolution operation of the first convolution kernel and a second convolution result corresponding to the convolution operation of the second convolution kernel; a third convolution result generating unit, configured to perform a second convolution on the first convolution result through the second convolution kernel to obtain a third convolution result; a fourth convolution result generating unit, configured to perform a second convolution on the second convolution result through the first convolution kernel to obtain a fourth convolution result; A merging unit is used to merge the third convolution result and the fourth convolution result to generate a first spatial feature map.

8. The device according to claim 5, characterized in that The device also includes a model generation module; the model generation module is used to train and generate a probability feature generation model; The model generation module comprises: A training set image acquisition submodule is used to acquire training set images; A labeling submodule, used for labeling each object in the training set image to obtain an annotated training set image; A standard probability feature map generation submodule, used to generate a corresponding standard probability feature map based on the annotated training set image; A first spatial feature training graph generating submodule, used to generate a corresponding first spatial feature training graph according to the training set image; A probability feature training graph generation submodule, used for inputting the first spatial feature training graph into the constructed initial probability feature generation model to generate a probability feature training graph corresponding to the training set image; A loss calculation submodule, used to calculate the loss value of the initial probability feature generation model based on the probability feature training graph and the standard probability feature graph; The iterative training submodule is used to adjust the training parameters of the initial probability feature generation model according to the loss value, and iteratively train the initial probability feature generation model based on the adjusted training parameters to obtain a trained probability feature generation model.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 4 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 4 are implemented.