Segmenting objects by refining shape priors

By estimating object shapes and generating instance embeddings, we achieve accurate segmentation and generalization capabilities for objects in images, solve the problems of inaccurate segmentation and low training efficiency in the existing technology, and improve the applicability and performance of the system.

CN113168510BActive Publication Date: 2024-10-15GOOGLE LLC
View PDF 12 Cites 0 Cited by

Patent Information

Application Number
CN201980075656.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2018-11-16
Filing Date
2019-08-14
Publication Date
2024-10-15
Estimated Expiration
2039-08-14

AI Technical Summary

Technical Problem

Existing instance segmentation technology is difficult to accurately segment objects in images, especially when the object shape is unclear or new types of objects appear. Moreover, conventional system training efficiency is low and it is difficult to generalize to new types of objects.

Method used

Estimate object shape by using a predefined set of example object segmentations, generate shape descriptors, and combine prior neural networks and convolutional neural networks to process image features, generate instance embeddings to localize objects, achieve class-agnostic segmentation, and leverage dedicated Hardware accelerated training.

Benefits of technology

It improves the accuracy and generalization ability of object segmentation, reduces the occurrence of unreasonable shapes, improves training efficiency, can be more widely applied to new types of objects, and can use dedicated hardware to accelerate training, improving the performance of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113168510B_ABST
    Figure CN113168510B_ABST
Patent Text Reader

Abstract

Methods, systems, and apparatus, including computer programs encoded on computer storage media, for performing instance segmentation by detecting and segmenting individual objects in an image. In one aspect, a method includes: processing an image to generate data identifying a region of the image depicting a particular object; obtaining data defining a plurality of example object segmentations; generating a corresponding weight value for each of the example object segmentations; for each of a plurality of pixels in the region of the image, determining a score characterizing the likelihood that the pixel is included in a particular object depicted in the region of the image using (i) the example object segmentations and (ii) the weight values ​​of the example object segmentations; and generating a segmentation of the particular object depicted in the region of the image using the scores for the pixels in the region of the image.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This specification relates to image processing, and in particular, to instance segmentation. Background Art

[0002] Instance segmentation refers to processing an image to detect and segment individual objects in the image. Instance segmentation can be performed using a machine learning model. A machine learning model receives an input and generates an output, such as a predicted output, based on the received input. Some machine learning models are parameterized models and generate an output based on the received input and based on the values ​​of the model's parameters.

[0003] Some machine learning models are deep models that use multiple layers of models to generate outputs for received inputs. For example, a deep neural network is a deep machine learning model that includes an output layer and one or more hidden layers, each of which applies a nonlinear transformation to the received input to generate an output. Summary of the invention

[0004] This specification generally describes a system implemented as a computer program on one or more computers at one or more locations that performs instance segmentation by detecting and segmenting individual objects in an image.

[0005] According to a first aspect, a method performed by one or more data processing devices is provided. The method includes processing an image to generate data identifying an area of ​​the image depicting a specific object. Data defining a set of example object segmentations is obtained from a set of training object segmentations, wherein each example object segmentation defines an example segmentation of a corresponding object. A corresponding weight value is generated for each of the example object segmentations, wherein the weight value of the example object segmentation characterizes the estimated similarity between: (i) a segmentation of a specific object depicted in the area of ​​the image, and (ii) the example object segmentation. For each of a plurality of pixels in the area of ​​the image, a score characterizing the likelihood that the pixel is included in the specific object depicted in the area of ​​the image is determined using the weight values ​​of (i) the example object segmentation and (ii) the example object segmentation. A segmentation of the specific object depicted in the area of ​​the image is generated using the scores of the pixels in the area of ​​the image, wherein the segmentation of the specific object defines, for each pixel in the area of ​​the image, whether the pixel is included in the specific object depicted in the area.

[0006] In some implementations, processing the image to generate data identifying a region of the image that depicts a particular object includes processing the image using an object detection neural network.

[0007] In some implementations, the data identifying a region of the image that depicts a particular object includes data defining a bounding box around the particular object in the image.

[0008] In some implementations, the example object segmentations are cluster centroids obtained by clustering a set of training object segmentations.

[0009] In some implementations, each of the example object segmentations defines an example segmentation of a corresponding object of the same object class.

[0010] In some embodiments, the method further includes processing the image to generate data identifying an object class of a particular object depicted in a region of the image.

[0011] In some implementations, each of the example object segmentations defines an example segmentation of a corresponding object of the same object class as the particular object depicted in the region of the image.

[0012] In some implementations, generating a respective weight value for each of the example object segmentations includes processing inputs including (i) feature representations of the regions of the image and (ii) the example object segmentations using a priori neural network.

[0013] In some implementations, example object segmentations are aligned with feature representations of regions of an image before being processed by the prior neural network.

[0014] In some implementations, generating a respective weight value for each of the example object segmentations includes: pooling feature representations of the region of the image; and processing an input including the pooled feature representations of the region of the image using a priori neural network.

[0015] In some embodiments, the input to the prior neural network also includes feature representations of portions of the image outside of the area depicting the particular object.

[0016] In some embodiments, a feature representation of a region of an image is obtained from an intermediate output of an object detection neural network that is used to generate data identifying: (i) a region of an image that depicts a particular object and (ii) an object class of the particular object.

[0017] In some embodiments, determining for each pixel in the set of pixels in the region of the image a score characterizing the likelihood that the pixel is included in the segmentation of a particular object includes scaling each example object segmentation by a weight value for the example object segmentation, summing the scaled example object segmentations, and determining a score for the pixel in the region of the image based on a corresponding pixel in the image defined by the sum of the scaled example object segmentations.

[0018] In some embodiments, generating a segmentation of a particular object depicted in the region of the image using a fraction of pixels in the region of the image includes generating a detection feature using (i) a feature representation of the region of the image and (ii) a fraction of pixels in the region of the image. Generating a coarse segmentation of the particular object depicted in the region of the image using the detection feature. Generating an instance embedding of the particular object depicted in the region of the image using (i) the detection feature and (ii) the coarse segmentation of the particular object. Generating a segmentation of the particular object using the instance embedding of the particular object.

[0019] In some embodiments, generating the detection feature includes processing a representation of a fraction of pixels in a region of the image using one or more convolutional neural network layers; and summing an output of the convolutional neural network layer with the feature representation of the region of the image.

[0020] In some implementations, generating a coarse segmentation of a particular object includes processing the detected features using one or more convolutional neural network layers.

[0021] In some implementations, generating an instance embedding for a specific object depicted in a region of an image using (i) the detection features and (ii) the coarse segmentation of the specific object includes generating an instance-conditioned feature by combining the detection features included in the coarse segmentation of the specific object. The instance embedding for the specific object depicted in the region of the image is generated based at least in part on the instance-conditioned feature.

[0022] In some embodiments, generating an instance embedding includes processing the detected features and a rough segmentation of a particular object using a function G(·,·) defined by:

[0023]

[0024] Among them, X det represents the detection feature, M represents the coarse segmentation, ★ represents the element-wise product, and ∑ represents the summation over the spatial dimension.

[0025] In some implementations, generating the segmentation of the specific object includes processing an instance embedding of the specific object using one or more convolutional neural network layers.

[0026] According to a second aspect, one or more non-transitory computer storage media storing instructions are provided, which instructions, when executed by one or more computers, cause the one or more computers to perform the operations of the method of the first aspect.

[0027] According to a third aspect, there is provided a system comprising one or more computers and one or more storage devices storing instructions which, when executed by the one or more computers, cause the one or more computers to perform the operations of the method of the first aspect.

[0028] Particular embodiments of the subject matter described in this specification can be implemented to realize one or more of the following advantages.

[0029] The instance segmentation system described in this specification can use a set of predefined example object segmentations to estimate the shape of an object depicted in an image, and then use the estimated shape of the object when segmenting the object. Performing an intermediate step of estimating the shape of the object can enable the instance segmentation system to segment the object more accurately than it would otherwise, for example by reducing the likelihood of generating object segmentations with unreasonable shapes (e.g., broken (incoherent) pieces). This is an improvement in the field of image processing.

[0030] An instance segmentation system can segment objects in a class-agnostic manner, i.e., such that the system does not rely on knowing or identifying the class label (e.g., person, car, ship, etc.) of the object being segmented during training or inference. Thus, an instance segmentation system can segment a given object even if it has not been trained on segmenting objects having the same class label as the given object. Performing an intermediate step of estimating the shape of the object can enable the instance segmentation system to more effectively generalize to segmenting objects from new classes, for example, because objects from new classes may have similar shapes to objects from known classes. If the instance segmentation system has been trained on segmenting objects from an object class, the object class is called "known" and otherwise "new". As a result of effectively generalizing to segmenting objects from new classes, the system described in this specification is therefore more widely applicable than certain conventional systems. This is another improvement in the field of image processing.

[0031] The system described in this specification can use "instance embeddings" that characterize the visual appearance of the object to generate a segmentation of a given object depicted in an image. By using instance embeddings, the system can more effectively locate the given object, thereby generating a segmentation of the given object that excludes other nearby objects (including nearby objects of the same object class as the given object). This is another technical improvement in the field of image processing.

[0032] In particular embodiments, the architecture of the systems described in this specification is such that the shape (i.e., dimensionality) of each intermediate output (e.g., tensor) processed by the system is known at compile time. This can enable the system to be trained using specialized hardware (e.g., artificial intelligence (AI) accelerator hardware, such as a tensor processing unit (TPU)), which can allow the system to be trained 2-3 times faster than certain conventional systems that cannot be trained using specialized hardware. Portions of the system other than the object detection neural network can be trained using ground truth detection data (which may be jittered) rather than detection data generated by the object detection neural network, which avoids the need for many operations that are not difficult to implement efficiently using specialized hardware (e.g., TPUs). The system can be trained using crops from a feature pyramid, which reduces the need for discretization and resampling and enables training to be performed efficiently using specialized hardware (e.g., TPUs).

[0033] The details of one or more embodiments of the subject matter of this specification are set forth in the accompanying drawings and the description below. Other features, aspects, and advantages of the subject matter will become apparent from the description, drawings, and claims. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] Figure 1 is a block diagram of an example instance segmentation system.

[0035] Figure 2 Examples of images, detection data, shape descriptors, and coarse segmentation are shown.

[0036] Figure 3 Example object segmentations generated by clustering training segmentations corresponding to certain object classes are shown.

[0037] Figure 4 Example operations that may be performed by an instance segmentation system to generate a shape descriptor for a segmented object are shown.

[0038] Figure 5 Example operations that may be performed by an instance segmentation system to generate a coarse segmentation of an object using a shape descriptor are shown.

[0039] Figure 6 Example operations that may be performed by an instance segmentation system to refine a coarse segmentation to generate a final segmentation are shown.

[0040] Figure 7 A graph is shown illustrating an example of the performance gain that can be achieved by using an instance segmentation system.

[0041] Figure 8 is a flow chart of an example process for generating a shape descriptor that estimates the shape of an object.

[0042] Fig. 9 is a flow chart of an example process for generating object segmentations using shape descriptors.

[0043] Like reference numerals and designations in the various drawings indicate like elements. DETAILED DESCRIPTION

[0044] This specification describes an instance segmentation system that processes an image to detect and segment individual objects in the image. The instance segmentation system can be used in any of a variety of applications, for example, to facilitate planning and decision making in autonomous driving or robotic manipulation applications. To segment an object depicted in an image, the instance segmentation system first detects the object, for example, by identifying a bounding box that is predicted to surround the object in the image. The instance segmentation system uses a set of predefined example object segmentations to estimate the shape of the detected object, and then uses the estimated shape of the object when performing the segmentation. These features and other features are described in more detail below. In addition, in the description below, various dimensions are provided for context, but the system and process are not limited to these specific examples, and dimensions different from those described below may also be used.

[0045] Figure 1 is a block diagram of an example instance segmentation system 100. Instance segmentation system 100 is an example of a system implemented as a computer program on one or more computers in one or more locations in which the systems, components, and techniques described below are implemented.

[0046] Instance segmentation system 100 is configured to process image 102 to: (i) detect objects depicted in the image, and (ii) generate segmentations of the detected objects. More specifically, system 100 processes image 102 to generate detection data 104 that defines regions in image 102 that depict corresponding objects (e.g., by bounding boxes). For each of the image regions defined by detection data 104, system 100 generates a corresponding object segmentation 106 that defines whether each pixel in the region is included in an object depicted in the region.

[0047] Image 102 may be represented as a two-dimensional (2D) array of pixels, where each pixel is represented as a vector of one or more values. For example, if image 102 is a black and white image, each pixel may be represented as an integer or floating point number (i.e., a vector with one component) representing the brightness of the pixel. As another example, if image 102 is a red, green, and blue (RGB) image, each pixel may be represented as a vector with three integer or floating point components, which represent the intensity of the red, green, and blue colors of the pixel, respectively.

[0048] The system 100 generates detection data 104 by processing the image 102 using the object detection neural network 108. The detection data 104 defines regions in the image 102 that depict corresponding objects, and optionally defines the object class of the object depicted in each region (e.g., from a predetermined number of object classes). The object class may include any suitable object class, such as a person, a vehicle, a cat, a boat, etc. Figure 2 An example of detection data 104 specifying a bounding box surrounding an object depicted in an image is shown. The object detection neural network 108 may be implemented using any suitable object detection neural network architecture, for example, as described in S. Ren et al., “Faster R-CNN: Towards Real-Time Object Detection with Region Proposal Networks,” arXiv:1506.01497v3, 2016.

[0049] In general, system 100 may generate a corresponding object segmentation 106 for each object detected in image 102. For convenience, the following discussion will describe generating object segmentation 106 for a particular detected object.

[0050] As an intermediate step in generating object segmentation 106 for a detected object, the system 100 generates a shape descriptor 116 that characterizes the estimated shape of the object. More specifically, the shape descriptor 116 specifies a corresponding score for each pixel in the image region surrounding the object, which characterizes the likelihood that the pixel is included in the object. The shape descriptor can be represented as a "soft" mask image of the estimated object's location, scale, and approximate shape, wherein the value of each pixel of the soft mask image indicates a corresponding score that characterizes the likelihood that the pixel is included in the object. As will be described in more detail below, the system 100 uses the shape descriptor to guide the generation of the object segmentation 106. Figure 2 An example of a shape descriptor (“detection prior”) that characterizes the shape of an object depicted in an image is shown.

[0051] In general, the system 100 generates a shape descriptor 116 by combining predefined object segmentations from a set of training segmentations 112. Each training segmentation 112 defines a segmentation of a corresponding object depicted in a training image and can be represented in any suitable format. For example, each training segmentation 112 can be represented as a mask image representing a segmentation of an object in the training image, wherein pixels included in the object have one value (e.g., a value of 1), while the remaining pixels have a different value (e.g., a value of 0).

[0052] To generate the shape descriptor 116, the system 100 generates a corresponding weight value 118 for each of the plurality of example segmentations 110 from the set of training segmentations 112 (this will be described in more detail later). The weight value 118 for the example segmentation 110 is a numerical value (e.g., a value between 0 and 1) that characterizes the estimated similarity between (i) the example segmentation 110 and (ii) the object segmentation 106 of the object depicted in the image region. In one example, the system 100 can use the weight value 118 to determine the shape descriptor S as:

[0053]

[0054] where k indexes the example segmentation 110, K is the total number of example segmentations 110, and w k is the same as the example segmentation S k The corresponding weight value. In this example, it represents the example segmentation The mask images may each have the same size, eg, 32×32, or any other suitable size.

[0055] In some cases, each example segmentation 110 is a corresponding training segmentation 112, while in other cases, the system 100 generates the example segmentations 110 by clustering the training segmentations 112 using the clustering engine 114. Clustering the training segmentations 112 refers to grouping the training segmentations into a set of clusters such that training segmentations in the same cluster tend to be more similar than training segmentations in different clusters. The similarity between two training segmentations can be determined in any of a variety of ways, for example, by representing the norm of the difference between the corresponding mask images of the training segmentations (e.g., L 2 In one example, the system 100 can generate the example segmentation 110 by clustering the set of training segmentations 112 into a predetermined number of clusters and then identifying each cluster centroid as a corresponding example segmentation 110. The "centroid" of a cluster can be specified by a measure of central tendency (e.g., mean) of the training segmentations 112 assigned to the cluster.

[0056] Generating example segmentation 110 by clustering training segmentation 112 enables system 100 to generate a compact representation of the “mode” of the distribution of possible object shapes. Clustering engine 114 may cluster training segmentation 112 using any suitable clustering algorithm (e.g., k-means or expectation maximization (EM) clustering algorithm). Figure 3 An example of cluster centroids obtained by clustering the training splits is shown.

[0057] The system 100 may generate weight values ​​118 for the example segmentation 110 by processing a set of image features 120 that characterize a region of the image 102 that depicts an object using the prior neural network 122 and, optionally, the example segmentation 110. The system 100 may obtain the image features 120 in any of a number of ways (e.g., by cropping a portion of an intermediate output of the object detection neural network that corresponds to the region of the image that depicts an object). The intermediate output of the object detection neural network 108 refers to a feature map generated by an intermediate layer of the object detection neural network (i.e., a layer after an input layer but before an output layer of the object detection neural network). The image features 120 may be represented as an ordered set of numerical values, for example, as a three-dimensional (3D) array of numerical values.

[0058] In some cases, the system 100 may generate an image feature 120 that characterizes a larger area of ​​the image 102 than the area specified by the detection data 104 as depicting an object. In one example, if the detection data 104 specifies that an object is surrounded by a bounding box of size 9×12 in the image 102, the system 100 may generate the image feature 120 by cropping the area of ​​the intermediate feature map corresponding to the bounding box of size 15×15 in the image 102. Thereafter, the system 100 may generate an object segmentation 106 that specifies whether each pixel in a larger area of ​​the image (i.e., an area beyond the boundaries of the bounding box predicted by the object detection neural network 108) is included in the object. In this way, the system 100 may generate an object segmentation that is robust to inaccuracies in the image area predicted by the object detection neural network 108 as depicting an object. For example, even if the bounding box generated by the object detection neural network 108 for the object actually excludes a portion of the object, such as a person's arm, the system 100 may accurately segment the entirety of the object.

[0059] The a priori neural network may process the image features 120 (and optionally the example segmentations 110) to generate the weight values ​​118 in any of a variety of ways. In one example, the a priori neural network 122 may generate the weight values ​​118 by pooling (i.e., combining) the image features 120, and processing the pooled image features to generate the weight values ​​118 for a predefined set of example segmentations 110 using one or more neural network layers. In a specific example, the a priori neural network 122 may average the pooled image features 120 to generate an average pooled image feature x as follows:

[0060]

[0061] Wherein, B represents a bounding box surrounding an object, {(i, j)∈B} represents a set of spatial positions (i, j) surrounded by B, |B| represents the number of spatial positions (i, j) surrounded by B, and X(i, j) represents an image feature at (i, j). In this example, the prior neural network 122 may set the weight value w=[w 1 , w 2 , ..., w K ] is generated as:

[0062] w=softmax(φ(x)) (3)

[0063] Wherein, K is the number of example segmentations, φ(x) represents the K-dimensional output generated by processing the pooled image features x according to the values ​​of the prior neural network parameters, and softmax(·) represents a soft-max normalization function (i.e., a normalization function that makes the weight values ​​sum to 1). In another example, the prior neural network 122 can generate corresponding weight values ​​118 for each example segmentation 110 by processing the channel-wise concatenation (alignment) of the image features 120 and the example segmentations 110 using the prior neural network 122. Figure 4 An example of operations that may be performed by a priori neural network 122 is shown.

[0064] Optionally, the object detection neural network 108 can be configured to generate detection data 104 that predicts the class of an object depicted in the image 102, and the system 100 can condition the shape descriptor 116 on the predicted class of the segmented object. For example, the system 100 can generate the shape descriptor 116 by combining only example segmentations 110 that correspond to the same object class as the segmented object. In a specific example, the system 100 can generate the shape descriptor 116 by combining example segmentations 110 generated by clustering training segmentations 112 that correspond to the same object class as the segmented object. Conditioning the shape descriptor 116 on the predicted class of the segmented object can enable the system 100 to generate a more informative (accurate) shape descriptor.

[0065] The system 100 uses the shape descriptors 116 to guide the segmentation of the object. For example, the system 100 can segment the object by first refining the shape descriptors 116 to generate a "coarse" (approximate) segmentation 130 of the object, and then refining the coarse segmentation 130 to generate the output object segmentation 106, which will be described in more detail below.

[0066] To generate the rough segmentation 130, the system 100 first fuses (combines) the shape descriptor 116 and the image features 120 to generate a detection feature 128, which jointly characterizes: (i) the estimated shape of the object, and (ii) the visual appearance of the image region depicting the object. In one example, the system 100 generates the detection feature 128 by embedding the shape descriptor 116 into the same feature dimension as the image features 120 using one or more convolutional layers, and then summing the embedded shape descriptor and image features 120. More specifically, the system 100 may fuse the detection feature X prior Generates as:

[0067] X prior =X+g(S prior ) (4)

[0068] Where X represents the image features 120 (eg, as a three-dimensional (3D) matrix of features), S prior is a representation of shape descriptor 116, and g(·) represents the operations performed by one or more convolutional neural network layers. Detection features 128 may be represented as an ordered set of values, such as a 3D array of values.

[0069] The system 100 can generate a rough segmentation 130 of the object based on the detected features 128, for example, by processing the detected features using one or more convolutional neural network layers. For example, the system 100 can generate the rough segmentation S coarse Generates as:

[0070] S coarse =f(X prior ) (5)

[0071] where f(·) represents the operation performed by one or more convolutional layers, and X prior Represents detected features 128. The coarse segmentation 130 can be represented as an ordered set of values, for example, a 2D array of values, representing a soft mask image that approximates the object segmentation, where each pixel value represents the likelihood that the pixel is included in the segmented object. Although both the shape descriptors 116 and the coarse segmentation 130 can be represented as soft mask images, the coarse segmentation can more closely approximate the actual (ground truth) segmentation of the object than the shape descriptors. In particular, the soft mask image representing the coarse segmentation can be understood as a soft mask image that refines the shape descriptors. Optionally, the system 100 can binarize the coarse segmentation 130, i.e., by rounding each pixel value to 0 or 1. Figure 5 Examples of operations that may be performed to generate a coarse segmentation are shown.

[0072] The system 100 can generate the object segmentation 106 by refining the coarse segmentation 130 using the instance embedding 124, which conditions the detection features 128 on the visual appearance of the object being segmented. In one example, to generate the instance embedding 124, the system generates a 1D instance conditional feature x by pooling (combining) the detection features 128 included in the coarse segmentation. mask ,For example:

[0073]

[0074] Among them, S coarse Represents a rough segmentation of the object, {(i, j)∈S coarse} indicates a rough segmentation S coarse The set of spatial positions (i, j) in |S coarse | indicates that S coarse The number of spatial positions (i, j) enclosed, and X prior (i, j) represents the detected feature at (i, j). In this example, the system 100 can detect the feature X by prior Conditional feature x mask Generate instance embedding X as a condition inst , for example, according to the formula:

[0075] X inst(i,j) =X prior(i,j) -x mask (7)

[0076] Among them, X inst(i,j) represents the instance embedding at spatial position (i, j), and X prior(i,j ) represents the detected feature at the spatial position (i, j). The instance embedding 124 can be represented as an ordered set of values, for example, a 3D matrix of values.

[0077] The system 100 may generate the object segmentation 106 by processing the instance embedding using the segmentation neural network 126. For example, the system 100 may generate the object segmentation S as:

[0078] S=h(X inst ) (8)

[0079] where h(·) represents the operation performed by one or more convolutional layers, and X inst Representing instance embedding 124. Object segmentation 106 can be represented as a mask image that defines whether each pixel in a bounding box surrounding an object is included in the object. As previously described, object segmentation 106 can extend the bounding box predicted by object detection neural network 108 to surround the object. Figure 6Examples of operations that may be performed to generate a final segmentation of an object are shown.

[0080] Figure 2 An example of an image 202, detection data 204, shape descriptor 206, and rough segmentation 208 is shown, referring to Figure 1 Each of these is described in more detail. Each of the images 202 depicts one or more objects, such as a giraffe, a person, a toilet, a horse, and a spoon. The detection data 204 for each image 202 defines a bounding box surrounding the objects depicted in the image. The shape descriptor 206 for each image estimates the shape of the object surrounded by the bounding box. The rough segmentation 208 for each image is an approximate segmentation of the object surrounded by the bounding box.

[0081] Figure 3 An example object segmentation 300 is shown that is generated by clustering training segmentations corresponding to certain object classes. For example, four object segmentations 302 represent cluster centroids resulting from clustering training segmentations of cows. It will be appreciated that the clustered segmentations 302 approximately represent the "mode" of the distribution of possible shapes of cows. The instance segmentation system can generate a shape descriptor that approximates the shape of the segmented object by combining multiple clustered training segmentations, as shown in FIG. Figure 1 described.

[0082] Figure 4 406. Example operations that may be performed by an instance segmentation system to generate a shape descriptor for a segmented object are shown. To generate a shape descriptor 116 for a giraffe depicted in image 402, the system may spatially average pool image features 120 enclosed by a bounding box 404 around the giraffe using a priori neural network 122, as described with reference to equation (2). Bounding box 404 is shown at 406. Priori neural network 122 may process the average pooled features using a linear layer followed by a soft max layer to segment the giraffe for multiple examples {S 1 , ..., S K} generates a corresponding weight value, as described with reference to equation (3). An example segmentation is shown by 418, and the weight values ​​of the example segmentation are shown by shape distribution map 408. As described with reference to equation (1), the system generates a shape descriptor 116 as a weighted sum 410 of the example segmentations using the weight values. The shape descriptor 116 is shown by 412. During training, the system can use a pixel-wise mean squared error (MSE) loss 414 on the shape descriptor 116 against a ground truth segmentation 416 (i.e., from the training data) to learn the parameters of the prior neural network 122.

[0083] Figure 5Example operations that may be performed by an instance segmentation system to generate a coarse segmentation 130 of an object using a shape descriptor 116 are shown. The system may embed the shape descriptor 116 into the same feature dimension as the image feature 120 by processing the representation of the shape descriptor 116 using a convolutional layer 502 with a 1×1 convolutional filter. The system may generate a representation of the shape descriptor 116 by resizing the shape descriptor to fit within a bounding box surrounding the object and pasting the resized shape descriptor into an image having: (i) default pixel values, and (ii) the same spatial dimensions as the image feature 120. Image 504 shows a representation of the shape descriptor processed by the convolutional layer 502. The system generates a detection feature 128 by summing the image feature 120 and the output of the convolutional layer 502, as described with reference to equation (4). The system then generates a coarse segmentation 130 (shown by 506) by processing the detected features 128 using a sequence of 4 convolutional layers 508 with 3×3 convolutional filters, followed by a convolutional layer 510 with a 1×1 convolutional filter, followed by a sigmoid layer 512, as described with reference to equation (5). During training, the system can learn the parameters of the convolutional layers 508, 510, and 512 using a pixel-wise cross entropy loss 514 on the coarse segmentation 130 against a ground truth segmentation 516 (i.e., from the training data).

[0084] Figure 6 6 shows example operations that may be performed by the instance segmentation system to refine the coarse segmentation 130 to generate a final segmentation 602. The system generates a 1D instance conditional feature x by spatially averaging 606 the detected features 128 included in the coarse segmentation 130. mask 604, for example, as described with reference to equation (6). The system performs the above operation by subtracting the instance condition feature x from each spatial position of the detected feature 128. mask 604 generates an instance embedding that conditions the detected features 128 on the visual appearance of the object being segmented, e.g., as described with reference to Equation (7). The system then processes the instance embedding to generate an output segmentation 602 by using a sequence of 4 convolutional layers 608 with 3×3 convolutional filters, a sequence of up to 4 deconvolutional layers 610 with 4×4 convolutional filters, a convolutional layer 612 with 1×1 convolutional filters, and a sigmoid output layer 614, e.g., as described with reference to Equation (8). During training, the system can use a pixel-wise cross entropy loss 616 on the output segmentation 602 against a ground truth segmentation 618 (i.e., from the training data) to learn the parameters of the convolutional layers 608, 610, and 612.

[0085] In general, the instance segmentation system can be jointly trained end-to-end based on a set of training data using any suitable machine learning technique (e.g., stochastic gradient descent). Each training example can include: (i) a training image, and (ii) a target output that should be generated by the instance segmentation system by processing the training image. The target output can include, for example, a bounding box indicating an area of ​​the training image depicting an object, and for each bounding box, a pixel-level segmentation of the object enclosed by the bounding box.

[0086] Figure 7 A graph 700 is shown illustrating an example of performance gains that can be achieved by using an instance segmentation system described in this specification. In particular, line 702 shows the average precision (y-axis) of the instance segmentation system described in this specification relative to the fraction (x-axis) of the set of training sets used to train the instance segmentation system. Line 704 shows the average precision of a Mask R-CNN instance segmentation system, for example, as described in reference to the following document: K. He, G. Gkioxari, P. Dollar, R. Girshick: “Mask R-CNN”, IEEE International Conference on Computer Vision (ICCV), 2017, pp. 2961-2969. It can be understood that in this example, the instance segmentation system described in this specification generally outperforms the Mask R-CNN instance segmentation system. In addition, in this example, the instance segmentation system described in this specification outperforms the Mask R-CNN instance segmentation system even if the instance segmentation system described in this specification is trained using only 1% of the training data used to train the Mask R-CNN system.

[0087] Figure 8 is a flow chart of an example process 800 for generating a shape descriptor for estimating the shape of an object. For convenience, process 800 will be described as being performed by a system of one or more computers located in one or more locations. For example, an instance segmentation system, such as Figure 1 The instance segmentation system 100 may perform process 800 .

[0088] The system processes the image to generate data identifying a region of the image that depicts an object (802). For example, the system can process the image using an object detection neural network to generate data defining a bounding box around an object in the image and optionally defining an object class of the object (e.g., a person, a car, a boat, etc.).

[0089] The system obtains data defining a set of example object segmentations from a set of training object segmentations, wherein each example object segmentation defines an example segmentation of a corresponding object (804). The system may generate the example object segmentations by clustering the training object segmentations and identifying each cluster centroid as a corresponding example object segmentation. In some cases, the system obtains example object segmentations, each of which corresponds to the same class as the segmented object. In one example, the system obtains example object segmentations, each of which is generated by clustering training object segmentations of objects belonging to the same object class as the segmented object. In another example, the system obtains example object segmentations that match training object segmentations of objects belonging to the same object class as the segmented object. Typically, the training object segmentations can be represented by a mask image.

[0090] The system generates a corresponding weight value for each of the example object segmentations (806). The weight values ​​for the example object segmentations characterize the estimated similarity between: (i) the segmentation of the object in the image, and (ii) the example object segmentation. Typically, the system generates the weight values ​​for the example object segmentations by processing an input including a feature representation of a region of the image depicting the object using a priori neural network. The feature representation of the region of the image depicting the object can be obtained, for example, by cropping a portion of an intermediate output of an object detection neural network corresponding to the region of the image depicting the object. Optionally, the feature representation can characterize a portion of the image that is larger than, for example, a region of the image corresponding to a predicted bounding box around the object generated by the object detection neural network.

[0091] In one example, the system generates a corresponding weight value for each example object segmentation by processing (i) a feature representation of a region of an image depicting an object, and (ii) an example object segmentation using a priori neural network. In this example, the feature representation of the region of an image depicting an object and the example object segmentation can be aligned (e.g., channel-wise cascaded) before being processed by the priori neural network. In another example, the system generates a weight value for each example object segmentation by processing a pooled feature representation of a region of an image depicting an object using a priori neural network.

[0092] The system generates a shape descriptor using (i) the example object segmentations and (ii) the weight values ​​of the example object segmentations (808). For a pixel in a region of the image depicting an object, the shape descriptor specifies a score that characterizes the likelihood that the pixel is included in the object. The system can generate the shape descriptor, for example, by scaling each example object segmentation by the weight value of the example object segmentation and summing the scaled example object segmentations, for example, as described with reference to equation (1).

[0093] The system generates a segmentation of the object using the shape descriptor (810). The segmentation of the object defines whether each pixel in a region of the image depicting the object is included in the object. Fig. 9 An example process for generating segmentations of objects using shape descriptors is described.

[0094] Fig. 9 is a flow chart of an example process 900 for generating object segmentations using shape descriptors. For convenience, process 900 will be described as being performed by a system of one or more computers located in one or more locations. For example, an instance segmentation system appropriately programmed according to the present specification, such as Figure 1 The instance segmentation system 100 may perform process 900 .

[0095] The system generates a detected feature (902) using (i) a feature representation of a region of the image that depicts an object and (ii) a shape descriptor that characterizes an estimated shape of the object. Figure 8 An example process for generating a shape descriptor is described in more detail. In one example, the system can generate a detection feature by processing a representation of the shape descriptor using one or more convolutional neural network layers and then summing (i) the output of the convolutional layer and (ii) the feature representation of the region of the image.

[0096] The system generates a rough segmentation of the object using the detected features (904). For example, the system can generate a rough segmentation of the object by processing the detected features using one or more convolutional neural network layers.

[0097] The system generates an instance embedding of an object depicted in a region of the image using (i) the detection features and (ii) the coarse segmentation of the object (906). For example, to generate the instance embedding, the system can generate instance-conditional features by combining (e.g., pooling) the detection features included in the coarse segmentation of the particular object, e.g., as described with reference to equation (6). The system can then generate an instance embedding for the object based at least in part on the instance-conditional features, e.g., as described with reference to equation (7).

[0098] The system generates a segmentation of the object using the instance embedding of the object (908). For example, the system can generate the segmentation of the object by processing the instance embedding of the object using one or more convolutional neural network layers.

[0099] This specification uses the term "configured" in relation to systems and computer program components. A system of one or more computers is configured to perform a particular operation or action in the sense that the system has software, firmware, hardware, or a combination thereof installed thereon that, when in operation, causes the system to perform the operation or action. One or more computer programs are configured to perform a particular operation or action in the sense that the one or more programs include instructions that, when executed by a data processing device, cause the device to perform the operation or action.

[0100] The embodiments of the subject matter and functional operations described in this specification can be implemented in digital electronic circuits, tangibly implemented computer software or firmware, computer hardware (including the structures disclosed in this specification and their structural equivalents) or a combination of one or more of them. The embodiments of the subject matter described in this specification can be implemented as one or more computer programs, i.e., one or more modules of computer program instructions encoded on a tangible non-transitory storage medium for a data processing device to execute or control the operation of the data processing device. The computer storage medium can be a machine-readable storage device, a machine-readable storage substrate, a random or serial access memory device, or a combination of one or more of them. Alternatively or additionally, the program instructions can be encoded on an artificially generated propagated signal (e.g., a machine-generated electrical, optical or electromagnetic signal), which is generated as coded information to be transmitted to a suitable receiver device for execution by the data processing device.

[0101] The term "data processing apparatus" refers to data processing hardware and covers all kinds of apparatus, devices and machines for processing data, including, for example, a programmable processor, a computer or multiple processors or computers. The apparatus may also be or further include special-purpose logic circuits, such as an FPGA (field programmable gate array) or an ASIC (application-specific integrated circuit). In addition to hardware, the apparatus may optionally include code that creates an execution environment for a computer program, for example, code constituting processor firmware, a protocol stack, a database management system, an operating system, or a combination of one or more of them.

[0102] A computer program (which may also be referred to or described as a program, software, software application, app, module, software module, script or code) may be written in any form of programming language, including compiled or interpreted languages, or declarative or procedural languages, and may be deployed in any form, including as a stand-alone program or as a module, component, subroutine or other unit suitable for use in a computing environment. A program may, but need not, correspond to a file in a file system. A program may be stored in a portion of a file that holds other programs or data (e.g., one or more scripts stored in a markup language document), in a single file dedicated to the program in question, or in multiple collaborative files (e.g., files storing some portions of one or more modules, subroutines or code). A computer program may be deployed to execute on one or more computers that are located at one site or distributed across multiple sites and interconnected by a data communications network.

[0103] In this specification, the term "engine" is used to broadly refer to a software-based system, subsystem, or process that is programmed to perform one or more specific functions. Typically, an engine will be implemented as one or more software modules or components installed on one or more computers in one or more locations. In some cases, one or more computers will be dedicated to a specific engine; in other cases, multiple engines can be installed and run on the same one or more computers.

[0104] The processes and logic flows described in this specification can be performed by one or more programmable computers executing one or more computer programs to perform functions by operating on input data and generating output. The processes and logic flows can also be performed by a dedicated logic circuit (such as an FPGA or ASIC), or by a combination of a dedicated logic circuit and one or more programmed computers.

[0105] The computer suitable for executing a computer program can be based on a general or special microprocessor or both, or any other kind of central processing unit. Generally, the central processing unit will receive instructions and data from a read-only memory or a random access memory or both. The basic element of a computer is a central processing unit for executing or running instructions and one or more memory devices for storing instructions and data. The central processing unit and the memory can be supplemented by a dedicated logic circuit or can be incorporated therein. In general, the computer will also include one or more large-capacity storage devices (for example, disks, magneto-optical disks or optical disks) for storing data or operatively connect one or more large-capacity storage devices to receive data from it or transmit data to it or receive and transmit both. However, the computer does not have to have such a device. In addition, the computer can be embedded in another device (for example, to name a few, a mobile phone, a personal digital assistant (PDA), a mobile audio or video player, a game console, a global positioning system (GPS) receiver or a portable storage device (for example, a universal serial bus (USB) flash drive)).

[0106] Computer-readable media suitable for storing computer program instructions and data include all forms of non-volatile memory, media, and memory devices, including, by way of example, semiconductor memory devices, such as EPROM, EEPROM, and flash memory devices; magnetic disks, such as internal hard disks or removable disks; magneto-optical disks; and CD-ROM and DVD-ROM disks.

[0107] To provide interaction with a user, embodiments of the subject matter described in this specification may be implemented on a computer having a display device for displaying information to the user, such as a CRT (cathode ray tube) or LCD (liquid crystal display) monitor, and a keyboard and pointing device, through which the user can provide input to the computer via a keyboard and a pointing device, such as a mouse or trackball. Other kinds of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback, such as visual feedback, auditory feedback, or tactile feedback; and input from the user may be received in any form, including acoustic, voice, or tactile input. In addition, a computer may interact with a user by sending documents to and receiving documents from a device used by the user; for example, by sending a web page to a web browser on the user's device in response to a request received from the web browser. In addition, a computer may interact with a user by sending a text message or other form of message to a personal device (e.g., a smart phone running a messaging application) and receiving a response message from the user in response.

[0108] The data processing apparatus for implementing the machine learning model may also include, for example, dedicated hardware accelerator units for processing the general and computationally intensive parts (i.e., inference, workloads) of machine learning training or generation.

[0109] The machine learning model can be implemented and deployed using a machine learning framework (e.g., the TensorFlow framework, the Microsoft Cognitive Toolkit framework, the Apache Singa framework, or the Apache MXNet framework).

[0110] Embodiments of the subject matter described in this specification may be implemented in a computing system that includes a back-end component (e.g., as a data server) or includes a middleware component (e.g., an application server) or includes a front-end component (e.g., a client computer with a graphical user interface, a web browser, or an app through which a user can interact with an implementation of the subject matter described in this specification), or any combination of one or more such back-end, middleware, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include local area networks (LANs) and wide area networks (WANs), such as the Internet.

[0111] A computing system may include a client and a server. In general, the client and the server are remote from each other and usually interact through a communication network. The relationship between the client and the server is formed by computer programs running on respective computers and having a client-server relationship with each other. In some embodiments, the server transmits data (e.g., an HTML page) to a user device acting as a client (e.g., for the purpose of displaying data to a user interacting with the device and receiving user input therefrom). Data generated at the user device (e.g., the result of the user interaction) can be received from the device at the server.

[0112] Although this specification includes many specific implementation details, these details should not be interpreted as limiting the scope of any invention or the scope of possible protection, but should be interpreted as a description of the features of a particular embodiment that may be specific to a particular invention. Certain features described in the context of a separate embodiment in this specification may also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment may also be implemented in multiple embodiments individually or in any suitable sub-combination. In addition, although the features may be described as working in certain combinations as above and even initially requested for protection, in some cases, one or more features from the combination requested for protection may be excluded from the combination, and the combination requested for protection may involve a variant of a sub-combination or a sub-combination.

[0113] Similarly, although operations are depicted in a particular order in the drawings and recorded in a particular order in the claims, this should not be understood as requiring such operations to be performed in the particular order shown or in a sequential order or requiring all of the operations shown to be performed to achieve the desired result. In some cases, multitasking and parallel processing may be advantageous. In addition, the separation of various system modules and components in the above-described embodiments should not be understood as requiring such separation in all embodiments, but it should be understood that the described program components and systems can generally be integrated together in a single software product or packaged into multiple software products.

[0114] Specific embodiments of the subject matter have been described. Other embodiments are within the scope of the appended claims. For example, the actions recited in the claims can be performed in a different order and still achieve the desired results. As an example, the processes depicted in the accompanying drawings do not necessarily require the particular order shown or sequential order to achieve the desired results. In some cases, multitasking and parallel processing may be advantageous.

Claims

1. A method for instance segmentation performed by one or more data processing devices, the method comprising: processing an image to generate data identifying a region of the image depicting a particular object; obtaining data defining a plurality of example object segmentations from the set of training object segmentations, wherein each example object segmentation defines an example segmentation of a corresponding object; generating a respective weight value for each of the example object segmentations, wherein generating the respective weight value for each of the example object segmentations comprises processing an input comprising (i) a feature representation of the region of the image and (ii) the example object segmentations using an a priori neural network, wherein the weight values ​​for the example object segmentations characterize an estimated similarity between: (i) a segmentation of a particular object depicted in the region of the image, and (ii) the example object segmentations; generating a shape descriptor characterizing an estimated shape of the particular object depicted in the region of the image by combining the example object segmentations according to weight values ​​of the example object segmentations; and The shape descriptors characterizing the estimated shape of the specific object depicted in the region of the image are processed to generate a segmentation of the specific object depicted in the region of the image, wherein the segmentation of the specific object defines, for each pixel in the region of the image, whether the pixel is included in the specific object depicted in the region.

2. The method according to claim 1, wherein: Processing the image to generate data identifying a region of the image depicting a particular object includes processing the image using an object detection neural network.

3. The method according to any one of claims 1 to 2, wherein: The data identifying the area of ​​the image depicting the particular object includes data defining a bounding box surrounding the particular object in the image.

4. The method according to claim 1, wherein: The example object segmentation is a cluster centroid obtained by clustering a plurality of training object segmentations.

5. The method according to claim 1, wherein: Each of the example object segmentations defines an example segmentation of a corresponding object of the same object class.

6. The method according to claim 1, further comprising: The image is processed to generate data identifying an object class of the particular object depicted in the region of the image.

7. The method according to claim 6, wherein: Each of the example object segmentations defines an example segmentation of a corresponding object of the same object class as the particular object depicted in the region of the image.

8. The method according to claim 1, wherein: The example object segmentations are aligned with feature representations of the regions of the image prior to being processed by the prior neural network.

9. The method according to claim 1, wherein: Generating a corresponding weight value for each of the example object segmentations includes: pooling feature representations of the region of the image; and An input comprising a pooled feature representation of the region of the image is processed using a priori neural network.

10. The method according to claim 1, wherein: The input to the a priori neural network also includes feature representations of portions of the image outside of the region depicting the specific object.

11. The method according to claim 1, wherein: The feature representation of the region of the image is obtained from an intermediate output of an object detection neural network, which is used to generate data identifying: (i) the region of the image depicting the specific object and (ii) the object class of the specific object.

12. The method according to claim 1, wherein: Determining, for each pixel of a plurality of pixels in the region of the image, a score characterizing a likelihood that the pixel is included in the segmentation of the particular object comprises: scaling each example object segmentation by its weight value; summing the scaled example object segmentations; and The fraction of pixels in the region of the image is determined based on corresponding pixels in the image segmented and defined by the scaled example object.

13. The method according to claim 1, wherein: Generating a segmentation of the particular object depicted in the region of the image using a fraction of pixels in the region of the image comprises: generating a detection feature using (i) a feature representation of the region of the image and (ii) a fraction of pixels in the region of the image; generating a coarse segmentation of the particular object depicted in the region of the image using the detected features; generating an instance embedding of the specific object depicted in the region of the image using (i) the detected features and (ii) the coarse segmentation of the specific object; and The segmentation of the particular object is generated using the instance embedding of the particular object.

14. The method according to claim 13, wherein: Generating detection features includes: processing a representation of the fraction of pixels in the region of the image using one or more convolutional neural network layers; and Summing an output of the convolutional neural network layer with the feature representation of the region of the image.

15. The method according to claim 13, wherein: Generating a coarse segmentation of the particular object includes processing the detected features using one or more convolutional neural network layers.

16. The method according to claim 13, wherein: Generating an instance embedding of the specific object depicted in the region of the image using (i) the detected features and (ii) the coarse segmentation of the specific object includes: generating instance conditional features by combining detection features included in the rough segmentation of the specific object; and An instance embedding of the particular object depicted in the region of the image is generated based at least in part on the instance-conditional feature.

17. The method according to claim 16, wherein: Generating an instance embedding includes processing the detected features and the rough segmentation of the specific object using a function G(·,·) defined by: Among them, X det represents the detection feature, M represents the coarse segmentation, ★ represents the element-wise product, and Σ represents the summation over the spatial dimension.

18. The method according to claim 13, wherein: Generating the segmentation of the particular object includes processing the instance embedding of the particular object using one or more convolutional neural network layers.

19. One or more computer storage media storing instructions that, when executed by one or more computers, cause the one or more computers to perform the operations of the method of any one of claims 1 to 18.

20. A system for instance segmentation, comprising one or more computers and one or more storage devices storing instructions that, when executed by the one or more computers, cause the one or more computers to perform the operations of the method of claims 1-18.

Citation Information

Patent Citations

  • Multi-scale image segmenting method

    CN102915541A

  • Image segmentation algorithm

    CN103578096A

  • Instance-level semantic segmentation system

    CN107958460A

  • Instance segmentation

    CN110622177A

  • Sparse Coding Based Superpixel Representation Using Hierarchical Codebook Constructing And Indexing

    US20140161355A1