Instance segmentation inferred from the output of a machine learning model

By employing non-maximum suppression replacement and multi-scale inference techniques, machine learning models achieve accurate and efficient object detection in real-time, addressing the challenges of distinguishing close objects and computational resource demands in autonomous vehicles.

JP7560692B2Active Publication Date: 2024-10-02ZOOX INC
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
JP2024060823
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2018-06-20
Filing Date
2024-04-04
Publication Date
2024-10-02
Estimated Expiration
2039-06-19

AI Technical Summary

Technical Problem

Existing machine learning models for computer vision, particularly in autonomous vehicles, struggle with accurately distinguishing between objects that are close to each other and require excessive computational resources, making them unsuitable for real-time applications.

Method used

The techniques involve training machine learning models using non-maximum suppression replacement, hard example mining, and multi-scale inference to improve object detection accuracy and reduce computation time, employing neural networks and loss functions like Focal Loss to enhance ROI generation and confidence scoring.

Benefits of technology

This approach enhances object detection accuracy in real-time applications by improving the alignment of ROIs with ground truth, reducing computational overhead, and enabling efficient instance segmentation in autonomous vehicles.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007560692000005
    Figure 0007560692000005
  • Figure 0007560692000006
    Figure 0007560692000006
  • Figure 0007560692000007
    Figure 0007560692000007
Patent Text Reader

Abstract

To provide a technique improved for training an ML model.SOLUTION: Training an ML model is based on a subset of examples. Specifically, the training includes identifying a reference region associated with a region of an image representing an object, and identifying a first hard example for inclusion in the subset of the examples based at least in part on a first trust score associated with a first bounding box. In some cases, the first trust score and the first bounding box are associated with a first portion of a feature map. Next, the training includes determining that a first alignment degree of the first bounding box to the reference region is higher then an alignment degree of a threshold value, and in response, replacing the first hard example with a second hard example.SELECTED DRAWING: Figure 6A
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] This application relates to instance segmentation, and more particularly to instance segmentation inferred from the output of machine learning models. [Background technology]

[0002] This patent application claims priority to U.S. utility patent application Ser. No. 16 / 013,729, filed Jun. 20, 2018, entitled "Machine Learning Techniques," which claims priority to U.S. utility patent application Ser. No. 16 / 013,748, filed Jun. 20, 2018, entitled "Restricted Multi-Scale Inference for Machine Learning," which claims priority to U.S. utility patent application Ser. No. 16 / 013,764, filed Jun. 20, 2018, entitled "Instance Segmentation Inferred from Machine-Learning Model Output," which are all incorporated by reference herein in their entireties.

[0003] Computer vision is mission-critical for several applications, such as driving autonomous vehicles. Equipping a computer with functionality that mimics human vision may involve constructing software components that obtain images, identify salient portions of the images, and represent the salient portions of the images to the computer in a form that the computer can use to perform further actions. One form of software that can be constructed to equip a computer with the above capabilities is a ML (machine learning) model.

[0004] Previous attempts to train ML models to identify salient portions of an image have resulted in flawed ML models. For example, some forms of ML model training result in ML models that are unable to accurately distinguish between objects that are close to each other (e.g., a pedestrian passing in front of another pedestrian in the camera's view), resulting in irrelevant and / or inaccurate identification of one or both objects.

[0005] Furthermore, some ML models provide more accurate object identification than the flawed ML models described above, but may require too much computation to be useful for real-time applications and / or may require expensive, specialized computing equipment that may not be convenient for certain uses. For example, an autonomous vehicle using an ML model for computer vision may receive a video stream and may be required to make a decision to operate the autonomous vehicle every 50 milliseconds or less. Due to the computation time required for some of the ML models described above to identify objects, the detected object may have moved significantly enough by the time the object is detected, and thus object detection is no longer reliable for decision making. For example, some of the ML models described above may require computation time of more than 100 milliseconds.

[0006] The detailed description will be set forth with reference to the accompanying drawings, in which the left-most digit(s) of a reference number identifies the drawing in which the reference number first appears. The same reference numbers in different drawings indicate similar or identical items. [Brief description of the drawings]

[0007] [Figure 1] 1 illustrates an example image of an example scenario, including an example aerial view of the example scenario. [Figure 2A]1 illustrates an example image and how it is discretized as a grid. [Figure 2B] 1 illustrates an exemplary region of interest (ROI) and the portion of the image from which the ROI was generated. [Diagram 3] 1 illustrates an example ground truth showing two regions and an example shrunken ground truth showing a second, smaller region. [Figure 4A] 1 illustrates an exemplary ROI, an exemplary confidence score associated with the ROI, and the portion of the image from which the ROI was generated. [Figure 4B] 1 illustrates an exemplary ROI, an exemplary confidence score associated with the ROI, and the portion of the image from which the ROI was generated. [Figure 4C] 1 illustrates an exemplary ROI, an exemplary confidence score associated with the ROI, and the portion of the image from which the ROI was generated. [Figure 4D] 1 illustrates an exemplary ROI, an exemplary confidence score associated with the ROI, and the portion of the image from which the ROI was generated. [Diagram 5] 4A-4D in relation to the region indicated by the ground truth, and associated with the degree of alignment of the example ROI to the region indicated by the ground truth; [Figure 6A] 1 illustrates a flow diagram of an example process for training an ML model in accordance with the non-maximum suppression replacement technique described herein. [Figure 6B] 1 illustrates a flow diagram of an example process for training an ML model in accordance with the non-maximum suppression replacement technique described herein. [Figure 7A] 1 illustrates an exemplary first response curve of a first ML model to objects having various sizes in an image(s). [Figure 7B]14 illustrates an exemplary second response curve of a second ML model to objects having various sizes in an image(s). [Figure 8A] 1 illustrates an example image provided as input to a first ML model and ROI(s) generated by the first ML model in response to receiving the first scaled image, in accordance with the techniques described herein. [Figure 8B] Illustrates the example image of FIG. 8A being rescaled as a second scaled image and provided as an input to a first ML model, in accordance with the techniques described herein, and the ROI(s) generated by the first ML model in response to receiving the second scaled image. [Figure 8C] 8B illustrates the example image of FIG. 8A provided as an input to a second ML model and the ROI(s) generated by the second ML model in response to receiving the example image, in accordance with the techniques described herein. [Figure 9A] 1 illustrates an exemplary ROI generated for a portion of an exemplary image. [Figure 9B] 1 illustrates exemplary multiple ROIs associated with the same object in an exemplary image. [Figure 9C] 1 illustrates an exemplary object segmentation according to the techniques described herein. [Figure 10] 1 illustrates an example system that implements the techniques described herein. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0008] The techniques described herein improve computer vision by increasing the accuracy of object detection and reducing the computation time to obtain an accurate object identification so that objects may be detected in real time for use in applications such as, for example, autonomous vehicle control. Other applications of the techniques described herein are anticipated, for example, in video games, augmented reality, etc.

[0009] Techniques described herein may include providing an image to an ML model and receiving multiple regions of interest (ROIs) from the ML model for different portions of the image. The ROIs described above may be in any form that identifies what the ML model believes to be the presence of an object in the image. For example, the ROI may include a box indicating pixels identified as associated with a detected object (a "bounding box"), a mask that includes pixels corresponding to the detected object, etc.

[0010] In some cases, additionally or alternatively, the ML model may output a confidence score (or confidence information) associated with each of the multiple ROIs. For example, the ML model may detect that an object is present in a portion of an image and generate an ROI that indicates where the object is located in the image. Additionally or alternatively, the ML model may generate a confidence score that essentially indicates how confident the ML model is that it has indeed identified a salient object in the image and / or how well the ROI fits the object. For example, the confidence score may be a value between 0 and 1, where 0 represents an indication by the ML model that it is not at all confident that the object appears in the ROI and 1 indicates that the ML model is highly confident that the object appears in the ROI, although other permutations are contemplated. In other words, the ML model outputs an indication of where it thinks the object may be and a score that indicates how confident the ML model is that it correctly identified the object and / or how well the ROI points to where the object is in the image.

[0011] Some of the techniques described herein are directed to training ML models to generate better ROIs (ROIs that more accurately identify where an object is in an image) and / or more accurate confidence scores (e.g., generating scores closer to 0 for ROIs that do not contain objects and / or scores closer to 1 for ROIs that show salient objects) and to reduce the computational time to achieve the above-mentioned ROI accuracy.

[0012] The ML model may include neural networks, e.g., random forests and / or ensembles of improved decision trees, directed acyclic graphs (DAGs) (e.g., where the nodes are organized as a Bayesian network), deep learning algorithm(s), etc., e.g., artificial neural networks (ANNs) (e.g., recurrent neural networks (RNNs), residual neural networks (ResNets)), deep belief networks (DBNs), deep stacking networks (DSNs), etc. A loss function for training the ML model may include, for example, determining the degree of alignment of the ROI to a region of the image indicated by the ground truth as representing the object. In some cases, determining the degree of alignment of the ROI to a region indicated by the ground truth may include determining the intersection over union (IoU) of the ROI, which is one metric for determining how well the ROI "fits" the ground truth. Other indications of the fit of the ROI to the region indicated by the ground truth may be used. In some cases, the ground truth can be referred to as a reference region.

[0013] Since training an ML model may involve providing the ML model with tens or even hundreds of thousands of images and making the above corrections to the weights, identifying the ROIs where the ML model is most wrong is advantageous. What has just been described may greatly reduce the time spent training the ML model and increase the accuracy of the ML model since corrections made to the ML model to take into account the "very wrong" ROIs and / or confidence scores are not washed away by reinforcing the learning of the "right" ROIs and / or confidence scores.

[0014] In some cases, the techniques described herein may include selecting particular examples for training the ML model. Selecting the examples just described may include hard example mining (HEM), which may include, for example, sorting a plurality of ROIs by confidence score (e.g., confidence score from highest to lowest) and / or error in confidence score (e.g., error in confidence score associated with the ROI for ROIs suppressed according to NMS) and selecting the top n ROIs. In some cases, selecting examples by hard example mining may exclude ROIs associated with the highest confidence score(s). Additionally or alternatively, the techniques may include selecting n random ROIs. In some cases, the number n may be chosen to be the number of positive examples in the image (e.g., positively identified ROIs corresponding to objects depicted in the image).

[0015] However, in some training schemes (e.g., training on a portion of the region that represents the object, e.g., 30%, rather than the entire region, as described in more detail herein), simply selecting the top n ROIs (by confidence score) may skew the ML model training, since at least some of the top n ROIs will frequently tend to correctly identify the object. Since the examples just mentioned adequately predict the expected ROIs, the selected examples should not be penalized. As described in more detail below, techniques may include suppressing some of the top n ROIs from being selected to train the ML model, and selecting new ROIs to replace the suppressed ROIs. Additionally or alternatively, examples that fit the region of interest but were selected as hard negative examples may instead be reassigned as positive examples. In other words, a network (e.g., as described herein) may account for the difference between actual hard examples and examples that should not be penalized for training. Nonetheless, in at least some instances, the examples chosen above may include backpropagation (either to penalize as actual hard negative examples or to refine as good examples).

[0016] In some cases, the techniques described above may exclude portions of image data for training based at least in part on determining that (1) the alignment of the ROI associated with the portion to the ground truth for the object represented by the ROI meets or exceeds a threshold alignment (e.g., the ROI fits "nicely" to the area represented by the ground truth) and (2) the ROI was generated for a portion of the image that is within the area represented by the ground truth. On the other hand, ROIs generated from portions of the image that are outside the ground truth, regardless of how well the ROI fits the ground truth, may be included in a subset for training (the "training subset") and penalized in the loss function. Similarly, ROIs generated for portions of the image that are within the ground truth but generate a "bad" ROI (e.g., the alignment of the ROI to the ground truth is less than a threshold alignment) may be included in the training subset and penalized in the loss function. In some cases, the top n examples may be selected for inclusion in the training subset, excluding examples according to the techniques described above. The just described techniques using the exclusion / inclusion rules described herein are referred to herein as improved hard example mining techniques.

[0017] The training subset (determined by the exclusion / inclusion rules) may be provided to a loss function, which may include, for example, a cross-entropy loss function, a Huber loss function (e.g., for confidence scores in examples whose associated ROIs are included in the training / loss determination), a mean squared error, a focal loss function, etc.

[0018] In some cases, the technique may include training an ML model using multiple stages. The stages may include providing a first batch of images (scaled or not) to the ML model and training the ML model using hard examples from the images of the first batch according to the above procedure. In some cases, the first batch may include tens or hundreds of thousands of images.

[0019] In some cases, training the ML model may include a second stage following the first stage. During the second stage, training the ML model may include using a training subset that includes hard examples. In some cases, additionally, the second stage may include training the ML model using a Focal Loss function. In some cases, the Focal Loss function may modify the loss calculated by the cross-entropy loss function (or any other loss function) such that losses (errors) calculated for well-classified ROIs are deweighted and losses calculated for poorly-classified ROIs are weighted less.

[0020] In some cases, the receptive field of an ML model may cause the model to generate ROIs for objects that are too wide for the receptive field associated with poor confidence scores and / or error values. For example, if a human were to stand with their nose touching a painting, it would be very hard to identify the painting, let alone a particular object in the painting, because salient parts of the painting are outside the human's receptive field.

[0021] Similarly, an ML model may be poor at detecting objects that are outside the ML model's receptive field (e.g., objects that are too large for enough of the object to fall into the receptive field for the ML model to "see" the object and understand what the ML model "sees").

[0022] Some techniques for remedying the problem just described have included providing an image as input to an ML model, using the ML model to obtain objects within a size range, then downscaling the image, and re-running through the ML model such that objects that were previously outside the size range now fall within the size range (after being scaled). What has just been described may be repeated iteratively. Note that scaling an image smaller makes large objects appear smaller in the scaled-down image, allowing them to fall within the receptive field of the ML model. While it may be possible to train an ML model with a receptive field that is substantially similar to the size of the input image, such an ML model may be slow or not responsive enough for use in, for example, autonomous driving.

[0023] In additional or alternative cases, the techniques described herein may include determining a response curve associated with the first ML model indicating the accuracy of the first ML model to classify objects via apparent object size in an image (e.g., generate an ROI and / or confidence score). In some cases, generating the just-mentioned response curve may include providing a plurality of objects in an image(s) to the first ML model and tracking how well the first ML model classifies objects of different sizes. The techniques may include determining the accuracy of the ROI and relating the accuracy and size (e.g., height, width, area) of the ROI. In at least some cases, the output size of the ML model may be constrained based on an optimal region based on the input scale size. As a non-limiting example, an ML model that has a 640x480 image as input may be constrained to output an ROI having a pixel size of approximately 100x100 to 200x200, while an ML model that has a 940x940 image as input may be constrained to output an ROI having pixel dimensions of approximately 250x250 to 300x300 pixels.

[0024] These accuracy / ROI size pairs may be combined for each ROI determined for the first ML model. The technique may include identifying a range of ROIs associated with an accuracy that meets or exceeds a threshold accuracy. The size ranges just mentioned may indicate that the first ML model determines a "good" ROI for objects of a range of sizes. In some cases, the first ML model may output ROIs having sizes within the size range and may suppress other ROIs determined by the ML model.

[0025] In some cases, the first batch of images may be scaled down using a scale factor (e.g., 0.75, 0.5), and the scaled batch of images may be provided as an input to the second ML model. Similarly, a second response curve and a second range of sizes may be determined for the second ML model based at least in part on the scaled batch of images.

[0026] In some cases, at run time, an image may be provided as input to a first ML model, the image may be scaled and provided as input to a second ML model, and the ROI output by the first ML model may be restricted to an ROI within a first range, and the output of the second ML model may be restricted to an ROI within a second range. The ML models may be trained such that different ranges of ROIs associated with different ML models overlap and / or abut each other, and a larger range of object sizes may be detected by multiple ML models.

[0027] Briefly, the technique may include training at least two ML models and determining a range of sizes of ROIs for which each ML model produces a "good" ROI. Then, instead of repeatedly providing the image to the ML model, receiving the output, scaling the image, re-providing it to the ML model, receiving a second output, etc., the process may be shortened and accuracy increased by providing scaled versions of the same image to the multiple ML models (e.g., providing the first scaled image to the first ML model, the second image to the second ML model, etc., where the scaled images are scaled versions of the same unscaled image) when forced to output an ROI within that small range, instead of repeatedly providing the image to the ML model, receiving the output, scaling the image, re-providing it to the ML model, receiving a second output, etc. In general, the above techniques may improve the speed and performance of detecting objects in images while reducing memory requirements (e.g., reduced memory requirements for GPUs).

[0028] Additionally, techniques described herein may include techniques for providing an image as an input to an ML model and receiving as output from the ML model both an ROI associated with an object detected in the image and an object segmentation (e.g., a mask, a set of contours) that identifies particular pixels (or other portions of the image). Instead of requiring a second ML model and / or a second operation to segment the image (e.g., by outputting a mask or a set of lines and / or curves to identify which pixels correspond to the detected object), techniques described herein detect objects (e.g., determine ROIs) and segment the image substantially simultaneously (e.g., within technical tolerances).

[0029] In some cases, techniques for instance segmentation (e.g., partitioning an image on a pixel-by-pixel basis) may include receiving an image at an ML model and determining ROIs and associated confidence scores for portions of the image (e.g., pixels, clusters of pixels) until the ML model determines multiple ROIs and associated confidence scores for portions of the image. In some cases, the ML model may detect the image by selecting an ROI associated with a maximum confidence score for output (an "output ROI"). To partition a region of the image representing an object that the output ROI identifies, the technique may include determining that a subset of the multiple ROIs associated with confidence scores meets or exceeds a confidence score threshold, substantially overlaps the ROI associated with the maximum confidence score, and / or is within a threshold confidence range for the maximum confidence score, and stitching the ROI from the determined portion to the segmentation of the image (e.g., by adding the pixel to a mask, modifying a curve to include the pixel).

[0030] In another explanation, to determine whether to include data (e.g., a pixel) of an image in an instance segmentation (which may be a mask), the technique may include determining whether the ROI associated with that particular pixel (or portion of a feature map) is substantially similar to a representative ROI and its corresponding confidence value. In at least one example, an instance may include all pixels corresponding to a single ROI that would be suppressed under non-maximal suppression (also called non-maximal suppression).

[0031] In some cases, training an ML model to generate an instance segmentation for an object may include training based on a ground truth mask and the object's associated ROI. In the above example, a loss function may be configured to penalize portions of an image that are outside the mask to generate an ROI with a confidence score that exceeds a predefined value. In other words, the ML model for a pixel (or region) of an image should not output an ROI if the pixel falls outside the mask of the object associated with the pixel (or region), even if the ROI is appropriate. Although this specification primarily describes instance segmentation that results in outputting a mask of pixels, it is envisioned that any suitable method for identifying a subset of an image (e.g., outputting a set of points, lines, curves, and / or other edge indicators) may be used.

[0032] Example scenario 1A illustrates an example image 100 and an example bird's-eye view of an example scenario 102 from which the example image 100 may be generated. The example scenario 102 may include an autonomous vehicle 104 and three other vehicles 106, 108, and 110 moving in the same environment as the autonomous vehicle 104 (e.g., a city block depicted in the example image 100, which may include a driving ground depicted in the bird's-eye view of the example scenario 102). The autonomous vehicle 104 may receive sensor data from one or more sensors of the autonomous vehicle 104. The autonomous vehicle 104 may use the sensor data to determine a trajectory to control the movement of the autonomous vehicle. The sensor data may include an image, such as the example image 100, for example.

[0033] In some cases, the autonomous vehicle 104 may be an autonomous vehicle configured to operate in accordance with a Level 5 classification issued by the U.S. National Highway Traffic Safety Administration, which describes a vehicle capable of performing all safety-critical functions throughout its journey, where a driver (or passenger) is not expected to control the vehicle at any time. However, in other examples, the autonomous vehicle 104 may be a fully or partially autonomous vehicle having any other level or classification currently existing or developed in the future. Furthermore, in some cases, the computer vision techniques described may be usable by vehicles that are not autonomous as well.

[0034] In accordance with the techniques described herein, the autonomous vehicle 104 may receive images from a sensor 112 of the autonomous vehicle 104, may detect object(s) detected from the image, such as, for example, other vehicles 106, 108, and 110, and / or may segment objects detected in the image. For example, the autonomous vehicle 104 may identify and segment other vehicles 106, 108, 110, drivable surfaces, traffic signals, etc. In some cases, the detecting and / or segmenting just described may be accomplished by providing the images as input to an ML model 114 of a recognition engine 116 executing on a computing device(s) 118 of the autonomous vehicle 104.

[0035] In some cases, the recognition engine 116 may include one or more ML models and / or other computer-executable instructions for detecting, identifying, segmenting, classifying, and / or tracking objects from sensor data collected from an environment of the autonomous vehicle 104, such as, for example, ML model 114. In some cases, the recognition engine 116 of the autonomous vehicle 104 may include a recognition engine that receives sensor data from one or more sensors 112 of the vehicle 104, determines perception data from the sensor data, and transmits the perception data to the planner 120 for use by the planner 120 to localize a position of the autonomous vehicle 104 on a global map, determine one or more trajectories, and / or control movement of the autonomous vehicle 104 across a path or route, although any of the above operations may be performed in various other components (e.g., localization may be performed by a localization engine, not shown).

[0036] For example, the recognition engine 116 may detect objects in the environment and classify the objects (e.g., car, semi-truck, pickup truck, person, child, dog, ball). Additionally, the recognition engine 116 may determine the track of the object (e.g., historical, current, and / or predicted path, position, velocity, and / or acceleration for the object). In some cases, additionally or alternatively, the recognition engine 116 may determine the location of the autonomous vehicle 104 as determined by a localization engine (not shown, which may use any sensor data to localize the vehicle 104), data related to objects in the vicinity of the autonomous vehicle 104, route data specifying the vehicle's destination, global map data identifying roadway characteristics (e.g., features detectable in various sensor modalities useful for localizing the autonomous vehicle), local map data identifying features detected in the vicinity of the vehicle (e.g., locations and / or dimensions of buildings, trees, walls, fire hydrants, stop signs, and other features detectable in various sensor modalities), and the like. The data generated by the recognition engine 116 may be collectively referred to as "recognition data." Once the recognition engine 116 has identified and / or segmented objects from the image and / or determined other recognition data, the recognition may provide the recognition data, including object detection and / or segmentation, to the planner 120.

[0037] In some cases, planner 120 may use the perception data, including the identified and / or segmented objects, to generate a trajectory for controlling the movement of autonomous vehicle 104. For example, planner 120 may determine a route for autonomous vehicle 104 from a first location to a second location, generate multiple possible trajectories for controlling the movement of autonomous vehicle 104 according to a receding horizon technique that controls the vehicle to traverse the route substantially simultaneously (e.g., 1 microsecond, ½ second), and select one of the possible trajectories as a trajectory for autonomous vehicle 104 that may be used to generate drive control signals that may be transmitted to drive components of autonomous vehicle 104.

[0038] Example ROI (REGION OF INTEREST) ​​generation by ML model FIG. 2A illustrates an example image 100 and an example output grid 200, where each cell of the output grid 200 identifies a portion of the image 100. An example portion of the image 202 is highlighted (bolded) near the center of the image 100. It is contemplated that a "portion of an image," as described herein, may include a single pixel of an image and / or a collection of pixels of an image. In some cases, the output of the machine learning model is a feature map, and each cell may represent a portion of the feature map. Such a feature map may have multiple channels, each channel associated with a different factor(s) determined by the model (e.g., confidence score, region of interest, etc.). FIG. 2A illustrates an example where a "portion of an image," e.g., an example portion 202, includes a collection of pixels of the image 100. A portion (e.g., a cell) of the feature map may be associated with a portion of the image. Thus, the example portion 202 may be referred to as an example cell 202 of the example output grid 200.

[0039] In some cases, the example output grid 200 may be a manner of discretizing the example image 100 as output by the ML model. For example, the ML model may be configured to receive an image and output one or more ROIs and associated confidence levels for each cell of the output grid 200. At least in some cases, the output grid 200 may be discretized into m / 4×n / 4 cells according to an image of m×n pixels. In some cases, the cells may be 4 pixels×4 pixels, although any other discretization is contemplated. In some cases, as mentioned above, the example image 100 may be discretized into multiple portions of feature maps. That is, the examples are not limited to a grid of cells, and various implementations are contemplated herein.

[0040] In some cases, the ML model may generate an ROI and / or confidence score for each portion of the image (e.g., for each cell in FIG. 2A ). For example, the ML model may determine an ROI and / or confidence score for example portion 202. In some cases, the ML model may generate an ROI with a boundary of the ROI that extends beyond the boundary of the portion of the image. In at least some cases, each output cell may include a center location (e.g.,<u,v> The cell may correspond to an ROI that is indicated by a center, an extent (e.g., a location in image coordinates), an extent (e.g., a width and / or height), and / or a confidence level. As a non-limiting example, each cell may be associated with a center, an extent, and a confidence for each of the following classifications: car, pedestrian, bicyclist, truck / bus, traffic light, and / or stop sign.

[0041] FIG. 2B illustrates exemplary portions of an image (i.e., cells in the image) and associated regions of interest (ROIs) for classification of “car.” While FIG. 2B illustrates the ROIs as bounding boxes, it is understood that the region of the image representing the object may be otherwise indicated (e.g., by a mask). As described herein, the ML model may determine an ROI 204′ for portion 204 (e.g., cell 204), an ROI 206′ for portion 206, and an ROI 208′ for portion 208. In some cases, the ML model may determine a first confidence score associated with ROI 204′, a second confidence score associated with ROI 206′, and a third confidence score associated with ROI 208′. The confidence scores may indicate the probability that the associated ROI accurately represents the region of the image representing the object (here, a car). Each of the ROIs 204', 206', and 208' identifies a separate region of the image that represents a separate object, i.e., vehicles 106, 108, and 110, respectively. In some cases, the ROI 204' may be considered by the ML model as a "detection" of the vehicle 106 in the image 100.

[0042] Exemplary ML (machine learning) model training techniques 3 illustrates a portion 300 of an example image 100, a ground truth 302 identifying a first region of the image representing a first object (i.e., vehicle 108), an example ground truth 304 identifying a second region of the image representing a second object (i.e., vehicle 110), and two scaled ground truths 302' and 304'. The example scaled ground truth 302' is a region defining the central 30% of the ground truth 302 (the "central 30% box 302"), and the example scaled ground truth 304' is a region defining the central 30% of the ground truth 304. Of course, although the example scaled ground truth 302' is described as corresponding to the central 30% of the ground truth 302, any percentage is contemplated herein.

[0043] The following discussion relates to techniques for training ML models and how they can be trained to generate ROIs and / or confidence scores that are more accurate. In some cases, and generally, Figures 3-6 illustrate techniques for determining how to penalize various outputs of an ML model during training.

[0044] 3, an ML model may be trained using only the scaled 30% region just described that allows it to reveal differences between objects that appear when overlapping (i.e., occlusion) in image 100, e.g., between vehicles 110 and 112. Note that, in part, because ground truth 302 occludes the overlap of ground truth 304, training an ML model according to the techniques described above may avoid ambiguity when determining which object should be associated with a portion of the image (i.e., the ROI to output).

[0045] 4A-4D illustrate an example ROI, an example confidence score associated with the ROI, and the portion of the image from which the ROI was generated.

[0046] 4A illustrates an exemplary ROI 400' determined by an ML model for a portion 400 for a particular classification, such as "car," and a confidence score 402 determined by the ML model for the ROI 400'. In some cases, the confidence score indicates the probability that the ROI, determined by the ML model, with which the confidence score is associated, accurately identifies an object in the image. For example, the confidence score may indicate the probability that the ROI fits into a region that contains pixels that completely represent the object (e.g., there are no pixels identified by the ROI that represent anything other than the detected object, the edges of the ROI surround the edges of the object without intersecting with the object's boundaries, and there is a minimal amount of space between the object's boundaries and the ROI's boundaries).

[0047] 4A, the confidence score 402 is "0.97." In some cases, the ML model may determine a confidence score between 0.00 and 1.00, although other values ​​are contemplated. In the example just described, 0.00 may indicate that the ML model does not believe that the ROI it generated for a portion of the image identifies the object, and / or 1.00 may indicate that the ML model is completely confident that the ROI identifies the object, with perfect alignment.

[0048] FIG. 4B illustrates an exemplary ROI 404' that the ML model determined for portion 404 and a confidence score 406 that the ML model determined for ROI 404'. Note that ROI 404' does not fit the region representing the object (i.e., vehicle 110) as well as ROI 400', as it is slightly too small. In the example just described, confidence score 406 is correctly lower than at least the maximum confidence score, confidence score 402, because ROI 404' does not fit the region representing the object (i.e., vehicle 108) perfectly or as well as ROI 400'. Note further that portion 400 continues to be shown as a reference point for FIGS. 4B-4D, and the ROIs in these figures are not intended to be related in any way to portion 400.

[0049] 4C illustrates an exemplary ROI 408' that the ML model determined for portion 408 and a confidence score 410 that the ML model determined for ROI 408'. Note that ROI 408' does not fit the region representing vehicle 108 well as it is too large and encloses more objects than just vehicle 108. Unlike confidence score 406, which would have been appropriately lower for a mediocre fit, confidence score 410 reflects a value of 0.94 that may be considered too high for the poor fit of ROI 408' compared to the region of the image representing vehicle 108.

[0050] 4D illustrates an exemplary ROI 412' that the ML model determined for portion 412 and a confidence score 414 that the ML model determined for ROI 412'. Note that ROI 412' does not fit the region representing the object (i.e., vehicle 108) well as it is too small. Confidence score 414 reflects a value of 0.13, which appropriately considers the poor fit of ROI 412' compared to the region of the image representing vehicle 108.

[0051] FIG. 5 illustrates an example of selecting regions for non-maximum suppression (NMS) reassignment. In general, due to the sparseness of positive examples in an image, an ML model may be trained using a balance of positive and negative examples to output a better estimate. Additionally, the training may incorporate "hard" examples (i.e., examples that are not correct but provide high confidence of being correct). In some cases, an equal number of positive, negative, and hard examples are provided to the network for training. In at least some cases, the confidence levels of all cells (portions of an image) may be sorted, and the highest confidence that produces an incorrect ROI may be selected as a hard example. When using the technique illustrated with respect to FIG. 3, portions of the image (e.g., cells) that fell within the ROI associated with the highest confidence but were not part of the central 30% may generally be penalized, for example, by naively indicating the cells as "hard examples" (i.e., the network may be explicitly trained not to output ROIs with the cells just mentioned because they have a high confidence level but do not fall within the central 30%). While the technique described with respect to FIG. 3 may help to reveal the difference (provide better ROIs), training the model by naively penalizing these portions may lead to poor performance (e.g., poor estimation). As described in more detail below, intelligently training the model may avoid the above naive assumptions.

[0052] In some cases, the ML model may determine that a portion of an image (e.g., a cell) designated as a hard example is associated with a ROI that is constrained under NMS. In other words, the model may determine that the cell selected as a hard example should not be selected, but that another hard example should be chosen to backpropagate the loss to penalize the true hard example. At least in some cases, a cell that output a good box but was selected as a hard example may instead be reassigned as a good (i.e., such that the loss is backpropagated to improve the output corresponding to the cell) example. In general, the above process may be referred to as NMS reassignment. Various examples of portions of an image that should and should not be under the control of NMS reassignment are illustrated in FIG. 5.

[0053] Throughout FIG. 5, reference ROIs (ground truth ROIs and / or ROIs determined by non-maximum suppression (NMS)) (e.g., reference 500) represented by dotted lines and alignment degrees of example ROIs are given with respect to reference 500. The portions of the image from which the example ROIs were generated continue to be regenerated in FIG. 5 for the context, with portions 400 each reappearing for the visible context. In some cases, to select an output ROI from among the multiple generated ROIs that may correspond to an object in the image, the ML model may NMS the multiple ROIs, i.e., the ML model may determine the ROI associated with the largest confidence score and identify that ROI as the output ROI associated with the object. In some cases, while multiple objects of an object class are represented in an image, the ML model may determine clusters of overlapping ROIs (e.g., having a degree of alignment with respect to each other that meets or exceeds a threshold degree of alignment), thereby indicating the likelihood that the object is represented somewhere in the image around the cluster of ROIs, and may NMS the cluster of ROIs to determine the output ROI for the object. In other words, outputting an ROI related to a single object may be based on determining the ROI associated with the largest confidence score among the overlapping ROIs. The ML model may repeat identifying clusters and performing NMS on the clusters until all objects are identified and subject to NMS. This may be done for each object class for which an ROI is detected. In some cases, identifying clusters may include identifying ROIs associated with confidence scores that exceed a confidence score threshold in addition to identifying overlapping ROIs. This may be referred to as thresholding the ROI.

[0054] In some cases, to train the ML model, the ML model may determine a degree of alignment between the ROI and the reference ROI 500. In some cases. Determining the degree of alignment may include determining a metric that reflects the amount of overlap and / or fit of the ROI to the ground truth region 500. In some cases, what has just been described may include determining an intersection over a union, although other techniques for determining the amount of overlap / error of ROIs generated by the ML model may be used.

[0055] In the example just mentioned, the ML model may be signified by a degree of alignment 502 indicating that the example ROI 400' fits well to the region 500 of the ground truth, e.g., a degree of alignment / fit of 98% for the example ROI 400'. The example confidence score 402 is appropriately high in terms of the high degree of alignment. In some cases, a "good" fit may be defined to be a degree of alignment of 0.70 or greater. The value just mentioned (0.70) may be considered a threshold degree of alignment, but it is contemplated that other values ​​may be used, e.g., 0.80, 0.50, and / or 0.60. Here, the example 400' will be subject to NMS reallocation. In other words, even if 400 is not part of the central 30%, it will produce a "good" ROI and should not be penalized, e.g., if selected as a hard example.

[0056] Similarly, the ML model may determine that the example ROI 404' fits the reference ROI 500 somehow worse than the example ROI 400' by determining that the ROI 404' is associated with an alignment degree 504 of 0.90. Nevertheless, the example 404 will also be subject to NMS reallocation (if selected as a hard example).

[0057] Additionally, the ML model may determine that the example ROI 408' is a poor fit to the reference ROI 500 by determining that the example ROI 408' is associated with a degree of alignment 506 (i.e., in this example, 0.62) that does not meet or exceed a threshold degree of alignment (e.g., 0.70). As noted above, even if the example partial portion 408 falls within the reference 500, it constitutes a valid hard example.

[0058] Similarly, the ML model may further determine that the example ROI 412' is a poor fit to the reference ROI 500 by determining that the example ROI 412' is associated with a degree of alignment 508 (i.e., in this example, 0.47) that does not meet or exceed a threshold degree of alignment (e.g., 0.70). Because the confidence score is low (i.e., in the example just described, 0.13), the ML model may determine the example 408 / 408' as a valid hard example.

[0059] 6A and 6B illustrate a pictorial flow diagram of an example process 600 for training an ML model based at least in part on a subset of ROIs selected via NMS reallocation. At operation 602, the example process 600 may include receiving an image according to any of the techniques described herein.

[0060] At operation 604, the exemplary process 600 may include determining a plurality of ROIs (e.g., ROIs 400', 404', 408', 412' as illustrated in example 612) and associated confidence scores according to any of the techniques described herein. For example, the ML model may generate an output grid (or, more specifically, output a feature map) for an image that includes output cells (or, more specifically, includes a plurality of features) and may determine an ROI (and associated confidence score) for each classification for the output cells (e.g., each output cell). As a non-limiting example, for example, each cell of the output grid may have an ROI and confidence for each of a vehicle classification, a bicycle classification, a pedestrian classification, etc., although any combination of classifications is contemplated. What has just been described may include generating a plurality of ROIs (400', 404', 408', 412') as depicted in FIG. 6A determined for the exemplary classification "car".

[0061] At operation 606, the exemplary process 600 may include receiving a reference ROI (e.g., reference ROI 500 as illustrated in example 614) according to any of the techniques described herein. The reference ROI 500 (e.g., a reference region) may be a ground truth received via human labeling, or any other suitable method of establishing ground truth, for a region of an image that represents an object in the image. In some cases, the reference ROI may indicate a region of the image associated with a classification for which the ROI was generated. For example, the ROI 500 may indicate a region of the image that represents the classification "car" as described above. At operation 608, the exemplary process 600 may include selecting a subset of examples for training the ML model according to any of the techniques described herein. What has just been described may include determining a portion of an image (e.g., an output cell) from among one or more of the entire portions of the image to include in the subset of examples for training the ML model. For example, the exemplary process 600 may include using NMS reallocation to determine positive examples for inclusion in the subset (608(a)), determine negative examples for inclusion in the subset (608(b)), and / or determine hard examples for inclusion in the subset (608(c)). This is described in more detail below. In some cases, additionally or alternatively, operation 608 may include randomly selecting examples for inclusion in the subset of examples for training the ML model.

[0062] Operation 608(a) may include determining that the confidence score for the ROI is a maximum confidence score and / or meets or exceeds a confidence score threshold and that the alignment of the ROI to the reference ROI exceeds a threshold alignment (e.g., may indicate that the ROI correctly identifies an object depicted in the image). Operation 608(a) may include selecting, based on the determination just made as a positive example, any of the data generated by the associated ML model for inclusion in an output cell and / or a subset for training the ML model.

[0063] Operation 608(b) may include determining that the confidence score for the ROI is a minimum confidence score and / or does not meet a confidence score threshold and that the alignment of the ROI to the reference ROI does not meet a threshold alignment. Operation 608(a) may include selecting, based on the determination just described as a negative example, any of the data generated by the associated ML model for inclusion in an output cell and / or a subset for training the ML model.

[0064] Turning to FIG. 6B, operation 608(c) may generally include selecting hard examples (608(c)(1)). Hard examples may be referred to as examples where the machine learning model is most wrong. For example, the above hard examples correspond to cells with very high confidence of the corresponding ROI, but may erroneously identify the above ROI, which should otherwise be penalized based on the corresponding output. In general, hard examples may be negative examples. Selecting hard examples may include identifying the just-mentioned portions (e.g., one or more cells) of the image that generated the erroneous ROI (which should otherwise be penalized), but are associated with a high confidence score, sorting the portions by confidence score, and selecting the top n associated portions from the remaining sorted ROIs as hard examples. However, it is understood that any suitable hard example selection method is contemplated.

[0065] Once a hard example is selected, operation 608(c) may include determining whether to suppress the selected hard example (608(c)(2)) according to any of the techniques described herein. In some cases, such a hard example (when naively selected) may actually represent a good example for training (e.g., a cell has a correctly identified ROI associated with an object, but is penalized for not belonging to, e.g., the central 30% of the object) if, for example, only a portion of cells associated with an object are trained to output associated data (e.g., and ROI). In the above case, operation 608(c)(2) may determine to suppress the selected hard example if it corresponds to a portion of the image that is within the boundaries of the region of the ROI (associated with an otherwise valid output, e.g., a ROI corresponding to an object associated with that portion of the image). Based on the decision to suppress the selected hard example, operation 608(c)(2) may include discarding the selected hard example and returning to operation 608(c)(1) to select a new hard example (e.g., the next most incorrect example according to the sorting described above). For example, discarding the selected hard example may include excluding the selected hard example from the subset for training the ML model and excluding the selected hard example from the sorted ROIs such that it cannot be selected in a subsequent selection. In some cases, the decision to suppress the selected hard example may additionally or alternatively include determining that the alignment degree of the ROI associated with the hard example relative to the reference ROI meets or exceeds an alignment degree threshold. In some cases, the above decision may be made by determining whether the ROI may be suppressed under NMS.That is, operations of the NMS may be used to determine examples that are associated with ROIs that have a high degree of confidence and that correspond to the reference ROI, and to exclude those from what would otherwise be hard examples.

[0066] In some cases, act 608(c)(2) may suppress the selection of hard examples that generate ROIs that are generated from portions of an image within the reference ROI and that have a "good" degree of alignment. For example, ROIs 400' and 404' are examples that, if selected as hard examples, may be suppressed in act 608(c)(2) because they are generated from portions of an image within reference ROI 500 and they are each associated with a degree of alignment that exceeds a threshold degree of alignment that indicates a "good" fit of the ROI to reference ROI 500.

[0067] In at least some cases, as opposed to suppressing (e.g., discarding) the example, the example may be reassigned as a positive example. In some cases, deciding to suppress a hard example may include changing a target confidence score associated with the hard example. For example, a ROI generated for a portion of an image within the central 30% of a reference ROI may be associated with a maximum target confidence score (e.g., 1.0) based on a determination that it is representative of the ground truth. However, when a hard example is suppressed, the target confidence score associated with the hard example and used for training using the hard example may be modified. For example, if a hard example that is determined to be suppressed is selected, the target confidence score for the hard example may be changed to 1.0. Training may then be performed using the suppressed hard example and the new target confidence score, 1.0. In other words, a selected hard negative example may instead be reassigned as a positive example, thereby backpropagating the loss. If a selected hard example is not suppressed (i.e., the example is a true hard negative), the confidence loss may be set to 0, such that the example is trained to output any box, but with a corresponding low confidence value.

[0068] In at least some instances where the central 30% region is implemented as ground truth, the techniques described thus far improve the accuracy of ML models over techniques that simply discard examples generated from the remaining 70% of the reference ROI (e.g., parts of the object that are not part of the central 30%) that are naively selected based solely on ranking. Additionally, the techniques described thus far also improve the accuracy of ML models over techniques that train ML models by penalizing examples generated outside the central 30%, since parts of the image that are outside the central 30% and inside the reference ROI may generate ROIs with the proper degree of alignment; in other words, penalizing these parts for generating proper ROIs may teach the ML model to learn partitions that do not actually exist (e.g., parts where proper ROIs are generated may actually correlate with the representation of the object in the image, and penalizing this may teach the ML model to make partitions that do not actually exist).

[0069] At operation 610, the example process 600 may include training an ML model using the selected subset of examples according to any of the techniques described herein.

[0070] In at least some cases, training the ML model may include at least two stages, where a first stage may omit the NMS reassignment described above, and a second stage following the first stage may include NMS reassignment. In the above example, during the second stage, ROIs of various parts (cells) of the image may be suppressed under NMS, such that the unsuppressed ROIs may be used as reference ROIs 500 to train the ML model in the same or a subsequent stage.

[0071] In some cases, the first stage may include providing a first batch of images to the ML model for training, and the second stage may include providing a second batch of images to the ML model for training, i.e., different batches of data may be used to train the model in succession.

[0072] In some cases, training the ML model in the second stage may incorporate a Focal Loss function. In some cases, the Focal Loss function may be a function of a factor, (1-p t ) γ , where γ>0 (e.g., γ=1, γ=2, γ=5) is added to the cross-entropy loss function to improve the accuracy of the well-classified examples (e.g., p t >0.5 or p t For example, the Focal Loss function may be evaluated for the ROI using the following formula:

[0073]

number

[0074] however,

[0075]

number

[0076] and

[0077]

number

[0078] denotes the ground truth classification,

[0079]

number

[0080] is the confidence score of the ML model for the classification with label y = 1. As a functionality, what we just said is to reduce the weight of the error calculated by the cross entropy loss function for ROIs associated with low error (e.g., p t >0.5, the confidence score is close to the optimal score and the ROI fits the ground truth well), gradually penalizing larger errors. Simply put, the more confident the ML model is about the actually incorrect ROI it generated, the more the cross-entropy loss remains unchanged by the Focal Loss function. On the other hand, the Focal Loss function reduces the weight of errors calculated for well-classified examples, so that even if there are many well-classified examples, the effect of the extremely small errors each generates will be less with respect to effective training. In some cases, the loss function of operation 608 may include a cross-entropy loss function, a Huber function, a calculation of mean squared error, etc.

[0081] In some cases, three stages are envisioned, with the first stage omitting any Focal Loss and NMS reassignment, while the second and third stages incorporate Focal Loss and / or NMS reassignment. In at least some cases, images may be scaled separately in one or more stages. As a non-limiting example, cropped images of size 240×240 may be used in a first batch when training in the first stage, while an image crop having size 960×600 may be used in a third batch used to train the model in the third stage. In general, the size of the image crop, the number of iterations, the learning rate, the batch size, and / or balancing may vary from stage to stage.

[0082] In some cases, the first batch of images and / or the second batch of images may be data balanced to ensure that the ML model is trained to accurately detect different types of objects. An ML model that is continuously exposed to one object classification may slowly "forget" (e.g., become less accurate in detection) as it is less frequently exposed to different types of objects. Furthermore, if there are few examples in the dataset for a particular classification (e.g., if automobiles heavily dominate the dataset with respect to bicycles), the ML model may optimize the loss by simply stating that there are no bicycles in the image. Thus, in some cases, the first batch of images and / or the second batch of images may include a first predefined number of images associated with a first object classification (e.g., each of the first predefined number of images includes at least one pedestrian) and a second predefined number of images associated with a second object classification (e.g., each of the second predefined number of images includes at least one bicyclist), although any number of classifications and relative weights are envisioned. For example, an input batch may include 32 images, which may include four of each type of object that the ML model is trained to detect, e.g., four bicycles, four cars, four pedestrians, four night images, four day images, etc. In some cases, training the ML model may include receiving images, determining an object classification associated with the image, and associating the image with a training queue associated with the object classification. At training time, a batch may consist of the output of multiple cues, where each queue is associated with a distinct object classification and / or image context (e.g., night / day, obstacles). By ensuring that the ML model is trained successively on different object classifications, the ML model is unlikely to "forget" an object classification.

[0083] Exemplary response curves and restricted multi-scale inference 7A and 7B illustrate an example of constraining the output size of an ROI based on scale. In general, a neural network may be associated with a receptive field. The receptive field may indicate how much data of the input signal is used when making inferences. For example, if the receptive field of the model is not large enough, objects of larger size may not be properly determined using the model. As above, a larger model may be used to detect all objects, but the model would require significant resources and processing, which limits the application (e.g., the model could not be used in autonomous vehicle applications due to processing time and memory requirements). To overcome the limitations just mentioned, one or more smaller networks (i.e., networks with smaller memory footprints and / or processing requirements) may be used. Each of the above networks may be associated with a particular accuracy for various ROI sizes and limited to only outputting ROIs within the ranges mentioned above. Although mentioned in terms of size, any data stratification (or other metric) is contemplated herein. As a non-limiting example, the techniques illustrated above in any of FIGS. 7-8 may further select an optimal network for any one or more region of interest sizes, local contrast, etc.

[0084] As illustrated in FIG. 7A, a first graph 700 includes an example response curve 702 of a first ML model to objects having various sizes in an image(s) for a first scale. FIG. 7B illustrates a second graph 704 including a second example response curve 706 for a second ML model to objects having various sizes in an image(s) for a second scale. The y-axis of the first graph 700 and the second graph 704 may indicate the accuracy of the model in terms of the ROI and / or confidence score for identifying the object in the image, and the x-axis of the first graph 700 and the second graph 704 may indicate the size of the object in the image, the size of the ROI, and / or the size of the image. In one example, the x-axis may indicate the size of the ROI.

[0085] In some cases, the technique may include determining a response curve associated with the first ML model that indicates the accuracy of the first ML model to classify objects via apparent object size in an image (e.g., to produce an ROI and / or a confidence score). To generate the just-mentioned response curve, the technique may include providing a plurality of objects (represented in one or more images) as input to the first ML model, receiving a plurality of ROIs and / or confidence scores associated with the plurality of objects as output from the first ML model, and determining an accuracy for each of the ROIs and / or confidence scores (e.g., by calculating an alignment degree for each ROI to a region of the respective ground truth by comparison with the ground truth). To generate the response curve, the technique may include correlating the size of the ROI (e.g., height and / or width, area) with the accuracy of the ROI (e.g., an alignment degree associated with the ROI, a disparity between the alignment degree and the confidence score). These accuracy / ROI size pairs may be combined for the ROIs determined for the first ML model from the batch of images.

[0086] In some cases, a batch of thousands of images, or even hundreds of thousands of images, may be provided as input to the first ML model so that the response curve just described may be determined. Once the first ML model processes the batch, the technique may include identifying a range of ROI sizes associated with an accuracy that meets or exceeds a threshold accuracy, and associating the size range with the first ML model. The just-mentioned size range may indicate that the first ML model determines a "good" ROI for objects of a size range. In some cases, the first ML model may output an ROI having a size within the size range, and may suppress other ROIs determined by the first ML model. In some cases, in addition or as an alternative to plotting accuracy over size of the ROI, accuracy of the ROI may be plotted over the size of the ground truth, the size of a portion of the image, and / or the size of the image.

[0087] For example, a threshold accuracy may be indicated by 708, where the first ML model may be associated with response curve 702, and the second ML model may be associated with response curve 706, similarly generated according to the techniques described above. At least in some cases, the first and second ML models may be the same model, differing only in input scale. Following the illustrated example, a first range associated with the first ML model may output only ROIs having pixel heights between 100 and 200 pixels based on an input image of size 900x900, while a second range associated with the second ML model may output only ROIs having pixel heights between 50 and 100 pixels based on an input image of size 300x300. In some cases, the first response curve 702 and the second response curve may be associated with different threshold accuracy levels.

[0088] Of course, any number of models and / or scales may be determined for different ranges of input and output sizes. Images of different scales (larger, equal, or smaller than the original image size) may be input (either sequentially or substantially simultaneously) to different output models to detect, classify, and / or segment objects in the images.

[0089] In at least one example, the model, range, or stratification designation selected may be determined based at least in part on a third model. As a non-limiting example, a model may be trained to distinguish between what scales and / or what models to use to determine the desired output.

[0090] 8A illustrates a first scaled image 800 provided as an input to a first ML model 802, and a first scaled image and two ROIs (804, 806) generated by the first ML model in response to receiving the first scaled image, according to the techniques described herein. In some cases, the first ML model 802 may be associated with a first size range and may have generated an ROI for the vehicle 108, but the ROI falls outside the first size range and is suppressed by the first ML model. Meanwhile, the ROI 804 corresponding to the vehicle 106 and the ROI 806 corresponding to the vehicle 110 may fall within the first size range and therefore may be output by the first ML model. In some cases, the first scaled image may be scaled by a factor of one (e.g., the first scaled image is unscaled).

[0091] FIG. 8B illustrates an exemplary second scaled image 808 provided as an input to the first ML model, and an ROI 810 generated by the first ML model in response to receiving the second scaled image, according to the techniques described herein. In some cases, the second scaled image is scaled by a scale factor smaller than one, resulting in an image at a smaller scale than that of the exemplary image 800. In the depicted example, since the image has been scaled down, the ROI corresponding to vehicle 108 now falls within a first size range associated with the first ML model, and the ROIs associated with vehicles 106 and 110 fall outside the first size range and are therefore suppressed by the first ML model 802 in FIG. 8B. In some cases, the second scale factor (and / or any additional scale factors) may be selected such that ROIs are not generated redundantly for the same object when the same image is provided to the first ML model at two different scales.

[0092] In some cases, the first size range may be based at least in part on a receptive field of the first ML model. For example, the representation of the vehicle 108 in the example image 800 may be too large to fit into the receptive field, but the representation of the vehicle 108 in the example image 808 may fit into the receptive field of the first ML model once it is scaled down.

[0093] In some cases, the first size range and / or the second size range may be based in part on regression models (or other machine-learned models) that optimize precision, recall, and / or accuracy of various ML models used to accurately distinguish between various sizes (or various metrics and / or data stratifications described below).

[0094] 8C illustrates an additional or alternative example for detecting all objects in an image. Instead of iteratively (as depicted in FIG. 8B ) providing an image to an ML model, determining an ROI and outputting an ROI(s) having a size(s) within a first size range, scaling the image, providing the scaled image to the ML model, etc., the example image 800 may be provided to a second ML model 812 associated with a second size range, such that the second ML model 812 may determine an ROI 814 for an object not detected by the first ML model (e.g., vehicle 108 in the example just described). In some cases, the image may be provided to multiple detectors where each detector is associated with a distinct size range and outputs an ROI within the size range, and / or the techniques just described may be combined by providing a first scaled image to a first detector, receiving the first output from the first detector, scaling the first scaled image as a second scaled image, providing the second scaled image to the first detector, and receiving the second output from the second detector.

[0095] 8A, 8B, and 8C are described in the context of varying the size of an input image and / or selecting an ML model based on an expected output size, any metric and / or data stratification can be used to select an appropriate ML model and / or input scale. For example, various metrics can include, but are not limited to, one or more of contrast (e.g., local contrast of a region and / or pixel of an image), brightness, number of channels, color (e.g., RGB, black and white, grayscale, etc.), size (e.g., width and height), area, size of a grid, number of objects identified in an image, time of day (e.g., day / night), weather (e.g., rain, sunny, snow, fog, etc.), classification, etc.

[0096] In the manner just described, the same ML model and / or different ML models may generate ROIs for objects of different sizes at a high degree of accuracy without training large neural networks that would be too computationally intensive to be utilized for real-time applications, such as controlling an autonomous vehicle.

[0097] Example Instance Segmentation FIG. 9A illustrates an example ROI 900 determined by an ML model for a portion 902 of an example image 904. As with the example illustrated above (e.g., with respect to FIG. 5), the ML model may be trained to output an ROI. However, unlike the model trained in the example above, the ML model illustrated in FIG. 9A may be trained using those ROIs associated with pixels in a mask of an object instead of the ROI associated with the central 30%. In particular, the image mask and corresponding ROI for an object in the image may be used as ground truth when training the ML model. For example, training the region of interest may be determined based on an ROI associated with the mask (e.g., a bounding box based at least in part on the pixels of the mask). As illustrated in FIG. 9A, a portion 902 (which may be a pixel) of an image 904 forms part of a mask of an object and may have an associated ROI 900.

[0098] 9B illustrates example ROIs 906 associated with the same object (i.e., vehicle 110 in the just-described example) in the example image 904. In some cases, the ML model may receive the example image 904 and may generate multiple ROIs including the example ROIs 906 and / or confidence scores associated with portions and / or pixels of the image 904.

[0099] In some cases, as above, the ML model may determine a single ROI associated with an object (e.g., object 110) outside of the multiple determined ROIs. In at least one example, the above detection may be accomplished using the NMS. As with the examples described herein, every pixel or portion may output an ROI, and the multiple ROIs may be suppressed by the NMS (e.g., ROIs not associated with a maximum confidence level may be suppressed). Substantially simultaneously, the ML model may determine an ROI associated with the vehicle 110 and a mask that identifies certain portions of the image associated with the object (e.g., pixels representing the object) based at least in part on the determination of the ROI for output.

[0100] At least in some cases, the ML model may retain an indication of pixels and / or regions that were suppressed during NMS. All such pixels and / or portions of the image may be associated with a mask (instance segmentation) of the object. In some cases, further, portions of the image that produced maximal ROIs that were not suppressed by NMS may be associated with the mask.

[0101] FIG. 9C illustrates two representations (910, 912) of an example instance segmentation (i.e., masks in the depicted example) that identify an object according to the techniques described herein. Representation 910 includes dark portions of an image that the example mask identifies as representing an object (i.e., vehicle 110). For clarity, representation 912 is included in FIG. 9C to show that the portions of the image included in the mask as positively identifying the object correspond to vehicle 110. In some cases, each of the dark portions of the image in representation 910 may correspond to portions of the image for which the ML model generated a ROI that was suppressed during NMS or was otherwise associated with the ROI of the object (e.g., the ROI associated with the largest confidence score). In some cases, the autonomous vehicle may use the ROI and / or mask to generate a trajectory for controlling the movement of the autonomous vehicle.

[0102] The techniques just described are an improvement over previous techniques that required separate operations to perform instance segmentation. Instead, the techniques described herein perform both object detection and image segmentation in the same computational time it would take to perform object detection using conventional techniques. In some cases, the ML models described herein run in 20 milliseconds.

[0103] Example Architecture 10 is a block diagram of an example architecture 1000 including an example vehicle system 1002 for controlling operation of at least one vehicle, such as an autonomous vehicle, in accordance with any of the techniques described herein. In some cases, the vehicle system 1002 may represent at least a portion of an autonomous vehicle 104. In some cases, the architecture just described may be used to control an autonomous vehicle based at least in part on the ROIs, image segments, and / or confidence scores described herein.

[0104] In some cases, vehicle system 1002 may include processor(s) 1004 and / or memory 1006 (which together may represent computing device(s) 118). Although the elements described thus far are illustrated in combination in FIG. 10, it will be understood that these may be separate elements of vehicle system 1002 and that in some cases, components of the system may be implemented as hardware and / or software.

[0105] The processor(s) 1004 may include a uniprocessor system including one processor, or a multiprocessor system including several (e.g., two, four, eight, or another suitable number) processors. The processor(s) 1004 may be any suitable processor capable of executing instructions. For example, in various implementations, the processor(s) may be general-purpose or embedded processors implementing any of a variety of instruction set architectures (ISAs), such as the x86, PowerPC, SPARC, or MIPS ISAs, or any other suitable ISA. In a multiprocessor system, each processor 1004 may typically, but not necessarily, implement the same ISA. In some cases, the processor(s) 1004 may include a CPU (Central Processing Unit), a GPU (Graphics Processor), an FPGA (Field Programmable Gate Array), an ASIC (Application Specific Integrated Circuit), or a combination thereof.

[0106] The exemplary vehicle system 1002 may include a memory 1006. In some cases, the memory 1006 may include a non-transitory computer-readable medium configured to store executable instructions / modules, data, and / or data items accessible by the processor(s) 1004. In various implementations, the non-transitory computer-readable medium may be implemented using any suitable memory technology, such as, for example, SRAM (Static RAM), SDRAM (Synchronous DRAM), non-volatile / flash type memory, or any other type of memory. In the illustrated example, program instructions and data implementing desired operations, such as, for example, those described above, are shown stored in a non-transitory computer-readable memory. In other implementations, the program instructions and / or data may be received, sent, or stored in various types of computer-accessible media, such as, for example, a non-transitory computer-readable medium, or a similar medium separate from the non-transitory computer-readable medium. Generally speaking, non-transitory, computer readable memory may include storage media or memory media, such as flash memory (e.g., solid state memory), magnetic or optical media (e.g., disks), etc., coupled to the example vehicle system 1002 via an “I / O” (input / output) interface 1008. Program instructions and data stored via a non-transitory computer readable medium may be transmitted via a transmission medium or signal, such as an electrical, electromagnetic, or digital signal, that may be carried over a communication medium, such as a network and / or wireless link, such as may be implemented via a network interface 1010.

[0107] Furthermore, although illustrated as a single unit in FIG. 10, the processor(s) 1004 and memory 1006 may be distributed across multiple computing devices in the vehicle and / or across multiple vehicles, a data center, a remote operation center, etc.

[0108] In some cases, the “I / O” (input / output) interface 1008 may be configured to coordinate I / O traffic between the processor(s) 1004, memory 1006, network interface 1010, sensor(s) 1012, I / O devices 1014, drive system 1016, and / or any other hardware of the vehicle systems 1002. In some cases, the I / O devices 1014 may include external and / or internal speaker(s), display(s), passenger input device(s), and / or the like. In some cases, the I / O interface 1008 may perform protocol, timing, or other data conversions to convert data signals from one component (e.g., a non-transitory computer-readable medium) into a format suitable for use by another component (e.g., the processor(s)). In some cases, the I / O interface 1008 may include support for devices attached through various types of peripheral buses, such as, for example, the Peripheral Component Interconnect (PCI) bus standard, the Universal Serial Bus (USB) standard, or variants thereof. In some implementations, the functionality of the I / O interface 1008 may be split into two or more separate components, such as, for example, a northbridge and a southbridge. Further, in some cases, some or all of the functionality of the I / O interface 1008, such as, for example, an interface to memory 1006, may be incorporated directly into the processor(s) 1004 and / or one or more other components of the vehicle system 1002.

[0109] The example vehicle system 1002 may include a network interface 1010 configured to establish a communications link (i.e., a “network”) between the vehicle system 1002 and one or more other devices. For example, the network interface 1010 may be configured to allow data to be exchanged between the vehicle system 1002 and another vehicle 1018 via a first network 1020 and / or between the vehicle system 1002 and a remote computing system 1022 via a second network 1024. For example, the network interface 1010 may enable wireless communications between the other vehicle 1018 and / or the remote computing device 1022. In various implementations, the network interface 1010 may support communications over a wireless general data network, such as, for example, a Wi-Fi network, and / or a telecommunications network, such as, for example, a cellular communications network, a satellite network, or the like.

[0110] The example vehicle system 1002 may include sensor(s) 1012 configured to, for example, localize the vehicle system 1002 in an environment, detect one or more objects in the environment, sense movement of the example vehicle system 1002 through the environment, sense environmental data (e.g., ambient temperature, air pressure, and humidity), and / or sense interior conditions (e.g., passenger count, interior temperature, noise level) of the example vehicle system 1002. For example, the sensor(s) 1012 may include one or more LIDAR sensors, one or more cameras (e.g., RGB cameras, intensity (grayscale) cameras, infrared cameras, depth cameras, stereo cameras), one or more magnetic sensors, one or more radar sensors, one or more sonar sensors, one or more microphones for detecting sound, one or more IMU sensors (e.g., including accelerometers and gyroscopes), one or more GPS sensors, one or more Geiger counter sensors, one or more wheel encoders, one or more drive system sensors, speed sensors, and / or other sensors related to the operation of the example vehicle system 1002. In some cases, sensor data as described herein may be received by a first vehicle and transmitted to a second vehicle. In some cases, images as described herein may be received at a sensor of sensor(s) 1012 and provided to recognition engine 1026.

[0111] The example vehicle system 1002 may include a recognition engine 1026 (e.g., recognition engine 116), an ML model 1028 (e.g., ML model 114), and a planner 1030 (e.g., planner 120).

[0112] The recognition engine 1026 may include instructions stored in the memory 1006 that, when executed by the processor(s) 1004, configure the processor(s) 1004 to receive sensor data as input from the sensor(s) 1012 and output, for example, one or more poses (e.g., position and orientation) for objects in an environment surrounding the exemplary vehicle system 1002, an object track (e.g., position history, speed history, acceleration history, and / or path history for the object over a time period (e.g., 5 seconds)) associated with the object, and / or data representative of an object classification associated with the object (e.g., pedestrian, vehicle, bicyclist, etc.). In some cases, the recognition engine 1026 may be configured to predict more object trajectories for one or more objects. For example, the recognition engine 1026 may be configured to predict trajectories of multiple objects based, for example, on a probabilistic determination or multi-modal distribution of predicted positions, trajectories, and / or velocities associated with the objects.

[0113] The recognition engine 1026 may include instructions stored in the memory 1006 that, when executed by the processor(s) 1004, configure the processor(s) 1004 to receive sensor data from the sensor(s) 1012 as inputs, e.g., images, provide the sensor data to the ML model 1028, receive ROIs, image segments, and / or confidence scores from the ML model 1028, and output an indication that the recognition engine has detected an object from the sensor data and may output one or more ROIs, instance segmentation(s), confidence score(s), classification(s), and / or other related data. Additionally, the ROI(s), instance segmentation(s), confidence score(s), classification(s), and / or other related data may also be stored in the memory 1006.

[0114] The ML model 1028 may include instructions stored in the memory 1006 that, when executed by the processor(s) 1004, configure the processor(s) 1004 to determine to receive an image and output, based at least in part on the image, ROI(s) that identify a representation of an object in the image and / or instance segmentation(s). The ML model 1028 may include a decision tree, such as a random forest and / or an ensemble of improved decision trees, or any arrangement thereof, a directed acyclic graph (DAG) (e.g., where the nodes are organized as a Bayesian network), a deep learning algorithm(s) such as an artificial neural network (ANN), a deep belief network (DBN), a deep stacking network (DSN), or a recurrent neural network (RNN), and the like. In some cases, the ML model 1028 may include an RNN having nodes to which feature values ​​can be pushed to determine an output. For example, the ML model 1028 may include an input layer of nodes, one or more hidden layers of nodes, and an output layer of nodes. In some cases, the input layer of the nodes may be configured to receive an image and / or a portion thereof and activate one or more hidden layer nodes. The output layer may be configured to receive stimuli from one or more hidden layer nodes and output an ROI, image segment, and / or confidence score based on the most activated output layer nodes and / or based on the output of the output nodes, which may correspond to the amount of activation of the output nodes. In some cases, individual output nodes may correspond to portions of an image.

[0115] The recognition engine 1026 may transmit the ROI, image segments, confidence score, and / or other relevant data to the planner 1030 along with other additional information (e.g., object classification, object tracking, vehicle pose) that the planner 1030 may use to generate a trajectory. In some cases, additionally or alternatively, the recognition engine 1026 and / or the planner 1030 may transmit the ROI(s), instance segmentation(s), confidence score(s), classification(s), and / or other relevant data via the network interface 1010 to a remote computing device 1022 via the network 1024 and / or to another vehicle 1018 via the network 1020 based at least in part on the confidence score(s) determined by the recognition engine 1026.

[0116] In some cases, the recognition engine 1026 and / or the ML model 1028 may be located in another vehicle 1018 and / or a remote computing device 1022. In some cases, the recognition engine located in the other vehicle 1018 and / or the remote computing device 1022 may coordinate decisions with the recognition engine 1026. In cases where the ML model 1028 is located in the other vehicle 1018 and / or the remote computing device 1022, the other vehicle 1018 and / or the remote computing device 1022 may receive images from the vehicle system 1002 via the network 1020 and / or 1024, respectively, and may determine the ROI(s), instance segmentation(s), confidence score(s), classification(s), and / or other data of interest. The other vehicles 1018 and / or remote computing devices 1022 may then transmit the ROI(s), instance segmentation(s), confidence score(s), classification(s), and / or other relevant data back to the planner 1030 of the vehicle system 1002.

[0117] The planner 1030 may include instructions stored in the memory 1006 that, when executed by the processor(s) 1004, configure the processor(s) 1004 to generate data representative of a trajectory of the example vehicle system 1002 using, for example, data representative of the location of the example vehicle system 1002 in the environment and other data, such as local pose data, and ROI(s), instance segmentation(s), confidence score(s), classification(s), and / or other data of interest. In some cases, the planner 1030 may generate multiple possible trajectories for controlling the example vehicle system 1002 substantially continuously (e.g., every 1 or 2 milliseconds, although a receding horizon time is assumed) and select one of the trajectories for controlling the vehicle. The selection may be based at least in part on the current route, the probability that a stationary vehicle is a blocking vehicle, the current vehicle trajectory, and / or trajectory data of detected objects. Upon selecting a trajectory, the planner 1030 may transmit the trajectory to the drive system 1016 to control the example vehicle system 1002 according to the selected trajectory.

[0118] In some cases, the recognition engine 1026, the ML model 1028, and / or the planner 1030 may further include specialized hardware, such as, for example, a processor (e.g., a graphics processor, FPGA) suitable for executing the recognition engine.

[0119] Example clauses A. A system includes one or more processors and one or more computer-readable media storing instructions executable by the one or more processors that, when executed, cause the system to perform operations including providing an image as an input to an ML (machine learning) model; receiving a feature map as an output from the ML model, a portion of the feature map being associated with a bounding box and a confidence score; training the ML model based at least in part on the subset of examples, the training including identifying a reference region associated with a region of the image representing an object; selecting a first hard example for inclusion in the subset of examples based at least in part on a first confidence score associated with the first bounding box, the first confidence score and the first bounding box being associated with a first portion of the feature map; determining that a first degree of alignment of the first bounding box to the reference region meets or exceeds a threshold degree of alignment, and replacing the first hard example with a second hard example based at least in part on meeting or exceeding the threshold degree of alignment.

[0120] B. The system as paragraph A further details that the operation includes including a second hard example in the subset of examples based at least in part on determining that a second alignment degree of a second bounding box associated with the second hard example to the reference region is less than a threshold alignment degree.

[0121] C. The system as in paragraph A or B recites that a first portion of the reference region is indicated as being associated with a positive example, and a first portion of the feature map is associated with a second portion of the reference region outside the first portion of the reference region.

[0122] D. The system as paragraph C further details that the confidence score of a first target associated with a first portion of the reference region is a maximum confidence score and the confidence score of a second target associated with a second portion is a minimum confidence score, and training the ML model further includes associating a first hard example with the confidence score of the first target instead of the confidence score of the second target based at least in part on the first alignment degree meeting or exceeding a threshold alignment degree.

[0123] E. The system as any of paragraphs A-D, reciting that the first alignment degree is an intersection of the reference region and the first bounding box divided by the union of the first bounding box and the region.

[0124] F. A computer-implemented method includes receiving an image representing an object, identifying a reference region indicative of an area in the image representing the object, selecting a subset of a portion of the image, and training a machine learning (ML) model based at least in part on the subset to output a feature map, a portion of the feature map associated with classification information, region of interest (ROI) information, and confidence information, where selecting the subset of the portion of the image includes identifying a first portion of the feature map based at least in part on a first portion having first confidence information that meets or exceeds a threshold confidence, comparing ROI information associated with the first portion to the reference region as a comparison, and determining a second portion of the feature map as the subset of the portion of the image and based at least in part on the comparison.

[0125] G. The computer-implemented method as paragraph F details that comparing the ROI includes performing non-maximal suppression (NMS) of the first portion of the ROI information with respect to the reference region, and a second portion of the feature map is associated with the suppressed ROI under non-maximal suppression.

[0126] H. The computer-implemented method as paragraph G recites, further comprising associating a highest confidence score with the first portion.

[0127] I. The computer-implemented method as any of paragraphs F-H further includes training an ML model to substantially simultaneously output a plurality of output ROIs corresponding to a classification based at least in part on the image, the classification including one or more of a vehicle, a pedestrian, or a bicyclist.

[0128] J. The computer-implemented method as any of paragraphs F-I further recites that the reference region includes a first region and a second region, and further that a second portion of the feature map includes features outside the first region.

[0129] K. The computer-implemented method as paragraph J recites that the first region is associated with a central portion of the reference region and a positive identification of the classification information.

[0130] L. The computer-implemented method of any of paragraphs F-K recites that the comparing includes determining an alignment amount as the intersection of the area indicated by the reference region and the ROI information divided by the union of the ROI information and the reference region.

[0131] M. The computer-implemented method as paragraph L recites that the comparing further includes determining an amount of alignment that meets or exceeds a threshold degree of alignment.

[0132] N. The computer-implemented method as any of paragraphs F-M details that training the ML model includes at least two stages, a first stage of the at least two stages includes providing a first batch of images as an output to the ML model, receiving intermediate ROIs associated with the first images for the first batch of images from the ML model and based at least in part on the first batch of images, and identifying the intermediate ROIs as reference regions, and a second stage of the at least two stages includes providing the first batch of images as a second input to the ML model, receiving a second plurality of ROIs and associated second plurality of confidence scores from the ML model and based at least in part on the first batch of images, selecting hard examples for training the ML model from among a portion of the images associated with the second plurality of ROIs for inclusion in a second subset of examples for training the ML model and based at least in part on a technique of non-maximal suppression (NMS), and training the ML model based at least in part on the second subset.

[0133] O. The computer-implemented method as paragraph N details that the second stage further includes training the ML model using Focal Loss.

[0134] P. The computer-implemented method as any of paragraphs F-M recites that the ROI information includes a bounding box.

[0135] Q. The computer-implemented method as any of paragraphs F-P further includes receiving a batch of images including a first predefined number of images associated with a first object classification and a second predefined number of images associated with a second object classification, and training an ML model based at least in part on providing the batch of images as input to the ML model, wherein the first predefined number of images and the second predefined number of images are based at least in part on confidence information associated with one or more features of the feature map.

[0136] R. A non-transitory computer readable medium having a set of instructions that, when executed, cause one or more processors to perform operations including providing an image as an input to an ML (machine learning) model; receiving as output from the ML model a feature map, a first portion of the feature map including a first ROI (region of interest) indicative of an object in the image, and a first confidence score; and training the ML model based at least in part on the subset of positive examples and the subset of negative examples associated with a plurality of portions of the test image, wherein training the ML model includes providing a test image to the ML model, the test image representing an object corresponding to the ground truth reference region; determining as a hard negative example a second portion of the feature map having a second confidence score that meets or exceeds the threshold confidence score; determining that the hard negative example is associated with a second ROI that is suppressed under a non-maximal suppression technique; and excluding the hard negative example from the subset of negative examples.

[0137] S. The non-transitory computer-readable medium as paragraph R recites that the first ROI of the first portion includes a bounding box, and the first confidence score of the first portion indicates a probability that the first ROI accurately represents a region of the image that represents the object.

[0138] T. The non-transitory computer-readable medium as paragraph R or S recites that a first portion of the feature map is associated with a plurality of ROIs, the ROIs of the plurality of ROIs corresponding to a plurality of classifications, the classifications including a vehicle, a bicyclist, or a pedestrian.

[0139] U. The system includes one or more processors and one or more computer-readable media storing instructions executable by the one or more processors that, when executed, cause the system to perform operations including receiving an image having a first scale; providing the image to a first ML (machine learning) model; receiving from the first ML model a first bounding box indicative of a first region of the image representing at least a portion of a first object, the first bounding box having a first size within a first range of sizes; scaling the image as a scaled image based at least in part on a second scale; providing the scaled image to a second ML model; and receiving from the second ML model a second bounding box indicative of a second region of the image representing at least a portion of a second object, the second bounding box having a second size within a second range of sizes.

[0140] V. The system as in paragraph U details that the image is provided to a first ML model and the scaled image is provided to a second ML model substantially simultaneously.

[0141] W. The system as in paragraph U or V recites that the first ML model and the second ML model are the same ML model.

[0142] X. The system as any of paragraphs U-W further details that the operations include determining a first range of sizes for the ML model based at least in part on providing a first batch of training images including objects of different sizes as an input to the ML model, determining an accuracy of the ML model as a function of ROI size based at least in part on ground truth associated with the objects, and determining the first range of sizes based at least in part on identifying a range of ROI sizes that corresponds to an accuracy that meets or exceeds a threshold accuracy.

[0143] Y. A computer-implemented method includes receiving a first scaled image and a second scaled image, the first scaled image and the second scaled image corresponding to an image, providing the first scaled image as a first input to a first ML (machine learning) model, receiving one or more first ROIs (regions of interest) having a size within a first range of sizes as a first output from the first ML model, providing the second scaled image as a second input to a second ML model, and receiving one or more second ROIs having a size within a second range of sizes as a second output from the second ML model.

[0144] Z. The computer-implemented method as paragraph Y details that the image includes representations of a first object and a second object, and the computer-implemented method further includes determining a first ROI representing the first object and a second ROI representing the second object based at least in part by the first ML model and on the first scaled image, and determining a third ROI representing the first object and a fourth ROI representing the second object based at least in part by the second ML model and on the second scaled image.

[0145] AA. The computer-implemented method as paragraph Z details that the first ROI has a first size outside the first range of sizes, the second ROI has a second size within the first range of sizes, the third ROI has a third size outside the second range of sizes, and the fourth ROI has a fourth size within the second range of sizes, the first ML model discards the first ROI and outputs the second ROI, and the second ML model discards the fourth ROI and outputs the third ROI.

[0146] AB. The computer-implemented method as any of paragraphs Y-AA further details, including scaling the image to generate a first scaled image based at least in part on the first scale, and scaling the image to generate a second scaled image based at least in part on the second scale.

[0147] AC. The computer-implemented method as any of paragraphs Y-AB details that the first scaled image is provided to a first ML model and the second scaled image is provided to a second ML model substantially simultaneously.

[0148] AD. The computer-implemented method as any of paragraphs Y-AC further includes determining a first range of sizes based at least in part on an accuracy associated with a first ROI of the one or more first ROIs, where determining includes determining an accuracy of the first ROI relative to a region defined by the ground truth based at least in part on a ground truth associated with a region of the image representing the object, and determining the first range of sizes based at least in part on identifying a range of ROI sizes corresponding to the determined alignment degrees for the one or more first ROIs that meet or exceed a threshold alignment degree.

[0149] AE. The computer-implemented method as any of paragraphs Y-AD further details as including receiving a batch of images, wherein the batch of images includes a first predefined number of images associated with a first object classification and a second predefined number of images associated with a second object classification; training a first ML model based at least in part on providing the batch of images as an input to the first ML model, and the first predefined number of images and the second predefined number of images are associated with the first ML model or the second ML model based at least in part on the confidence score.

[0150] AF. A non-transitory computer readable medium having a set of instructions that, when executed, cause one or more processors to perform operations including providing an image as an input to a first ML (machine learning) model associated with a first size range; determining a first plurality of ROIs (regions of interest) by the first ML model and based at least in part on the image; suppressing a first output for a subset of the first ROIs of the first plurality of ROIs, where suppressing the first output for the subset of the first ROIs includes determining that the subset of the first ROIs is associated with a first size that is outside the first size range; and receiving as a second output from the first ML model a first indication that one or more first ROIs associated with an object, or a dimension of the object, are outside the first size range.

[0151] AG. The non-transitory computer-readable medium as paragraph AF recites that receiving a first indication that a dimension of the object is outside a first size range is based at least in part on determining that the subset of the first ROI includes all of the first plurality of ROIs.

[0152] AH. The non-transitory computer-readable medium as paragraph AF or AG recites that the instructions further include providing the image as an input to a second ML model associated with a second size range, where providing the image to the second ML model occurs substantially simultaneously with providing the image to the first ML model, determining a second plurality of ROIs by the second ML model, and suppressing a third output for a subset of the second ROIs of the second plurality of ROIs, where suppressing the subset of the second ROIs includes determining that at least a portion of the ROIs of the subset of the second ROIs are associated with a second size that is outside the second size range, and receiving a second indication from the second ML model that one or more second ROIs associated with the object or a dimension of the object are outside the second size range.

[0153] The non-transitory computer-readable medium as AI. paragraph AH details that an ROI corresponding to the object is received from the first ML model or the second ML model based at least in part on dimensions of the object in the image, a first size range, and a second size range.

[0154] AJ. The non-transitory computer-readable medium as paragraph AH or AI recites that the first ML model outputs one or more first ROIs having a size within a first size range based at least in part on a first accuracy for the first ML model associated with the first size range, and the second ML model outputs one or more second ROIs having a size within a second size range based at least in part on a second accuracy for the second ML model associated with the second size range.

[0155] AK. The non-transitory computer-readable medium as any of paragraphs AH-AJ further details that the operation further includes generating a trajectory for controlling movement of the autonomous vehicle based at least in part on the one or more first ROIs or the one or more second ROIs.

[0156] AL. The non-transitory computer-readable medium as any of paragraphs AH-AK further details selecting the first size range and the second size range based at least in part on the machine learning model.

[0157] AM. The non-transitory computer-readable medium as any of paragraphs AF-AL further details that the operations include training a first ML model, the training including providing a test image including a test object associated with an area defined by a reference region as an input to the first ML model, and determining a plurality of ROIs by the first ML model and based at least in part on the test image, determining a degree of alignment of the plurality of ROIs with respect to an area of ​​the area defined by the reference region, and determining a first size range for the first ML model based at least in part on identifying a total length of the object size corresponding to a portion of the degree of alignment that meets or exceeds a threshold degree of alignment.

[0158] AN. The non-transitory computer-readable medium as any of paragraphs AF-AM further details that the operations include receiving a batch of images, wherein the batch of images includes a first predefined number of images associated with a first object classification and a second predefined number of images associated with a second object classification, and training a first ML model based at least in part on providing the batch of images as an input to the first ML model, wherein the first predefined number and the second predefined number are based at least in part on a confidence score associated with the first ML model or the second ML model.

[0159] AO. A computer-implemented method includes providing an image as an input to a ML (machine learning) model, receiving as output from the ML model a feature map including a plurality of features, features among the plurality of features including confidence scores, classification information, and a ROI (region of interest) determined according to a technique of NMS (non-maximal suppression), and associating subsets of features having similar ROIs using instance segmentation.

[0160] The computer-implemented method as AP. paragraph AO details that a subset of features having similar ROIs includes the features that are designated as suppressed via the NMS technique.

[0161] AQ. The computer-implemented method as paragraph AP details that determining to output a first ROI associated with a first feature includes determining that the first ROI is associated with a maximum confidence score among a subset of confidence scores associated with the subset of features, and outputting the first ROI that associates a region of the image as representing the object.

[0162] AR. The computer-implemented method as any of paragraphs AO-AQ further details that includes outputting a mask corresponding to the instance segmentation that identifies pixels of the image as representing the object.

[0163] AS. Paragraph AR details that the computer-implemented method further includes generating a trajectory for controlling movement of the autonomous vehicle based at least in part on one of the ROI or instance segmentation output by the ML model.

[0164] AT. The computer-implemented method as any of paragraphs AO-AS further includes training an ML model based at least in part on the test images and associated ground truth, the ground truth identifying the mask.

[0165] AU. The computer-implemented method as any of paragraphs AO-AT further includes training an ML model to output multiple ROIs substantially simultaneously for each feature corresponding to a plurality of classifications, the plurality of classifications including one or more of a vehicle, a pedestrian, or a bicycle.

[0166] The computer-implemented method as any of paragraphs AV. AO-AU details that the ROI is a bounding box.

[0167] The AW. system includes one or more processors and one or more computer-readable media storing instructions executable by the one or more processors that, when executed, cause the system to perform operations including providing an image as an input to an ML (machine learning) model; determining, by the ML model, a feature map including a plurality of features, features among the plurality of features including an ROI (region of interest), an identification, and a confidence score; and outputting an output image as an instance segmentation based at least in part on the identification associated with the plurality of features.

[0168] AX. The system as paragraph AW details that the ROI of a feature is determined according to a NMS (Non-Maximal Suppression) technique, the NMS technique including determining that a confidence score associated with the feature meets or exceeds a threshold confidence score, determining that the ROI is associated with an alignment degree to the corresponding ROI of a corresponding feature that meets or exceeds the threshold alignment degree, determining the corresponding ROI as the ROI, and determining a corresponding identification of the corresponding feature as the identification.

[0169] AY. The system as in paragraph AW or AX details that the operation further includes outputting the instance segmentation as a mask that identifies pixels of the image as representing objects associated with the object classification.

[0170] AZ. The system as in paragraph AY details that the operations further include determining a trajectory configured to cause the autonomous vehicle to traverse a portion of an environment based at least in part on the mask, and providing the trajectory to the autonomous vehicle.

[0171] BA. The system as any of paragraphs AW-AZ details that the operations further include training the ML model based at least in part on providing as input to the ML model and substantially simultaneously, a batch of images including a first predefined number of images associated with the first object classification and a second predefined number of images associated with the second object classification, wherein the first predefined number and the second predefined number are determined based at least in part on one or more confidence scores associated with the plurality of features.

[0172] BB. The system as any of paragraphs AW-BA details that the operations further include training the ML model based at least in part on the test images and associated ground truth, the ground truth identifying the reference region and mask.

[0173] BC. A non-transitory computer readable medium having a set of instructions that, when executed, cause one or more processors to perform operations including receiving an image at an ML (machine learning) model; determining, by the ML model, a feature map including a plurality of features, a feature among the plurality of features including an ROI (region of interest) and an identification, the ROI indicative of one or more objects in the image; and outputting the identification associated with the plurality of features as an instance segmentation, wherein one of the identifications is determined at least in part based on the ROI of the feature, and a technique of NMS (non-maximal suppression).

[0174] BD. The non-transitory computer-readable medium as paragraph BC further details that the identification is determined based on whether the ROI of the feature is suppressed under the NMS technique based on the corresponding ROI of the corresponding feature, the feature, and the corresponding feature having the same identification.

[0175] BE. The non-transitory computer-readable medium as paragraph BC or BD details that the ROI is a bounding box having an extent, and a center location.

[0176] BF. The non-transitory computer-readable medium as any of paragraphs BC-BE details that the feature map has dimensions that are a fraction of the dimensions of the image.

[0177] BG. The non-transitory computer-readable medium as any of paragraphs BC-BF details that the operations further include training the ML model based at least in part on the test images and associated ground truth, the ground truth identifying the reference region and mask.

[0178] BH. The non-transitory computer-readable medium as paragraph BG details that training the ML model includes providing as input to the ML model a batch of images including a first predefined number of images associated with a first object classification and a second predefined number of images associated with a second object classification, the first predefined number and the second predefined number being based at least in part on one or more confidence levels for the plurality of features.

[0179] Although the example clauses described above are described with respect to certain implementations, it should be further understood in the context of this document that the contents of the example clauses can be implemented via a method, device, system, computer readable medium, and / or other implementations.

[0180] Although the subject matter has been described in language specific to structural features and / or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described. Rather, the specific features and acts are disclosed as example forms of implementing the claims.

[0181] The modules described herein represent instructions that can be stored on any type of computer-readable medium and can be implemented in software and / or hardware. All of the methods and processes described above can be embodied and fully automated in software code modules and / or computer-executable instructions executed by one or more computers or processors, hardware, or a combination. Alternatively, some or all of the methods can be embodied in specialized computer hardware.

[0182] Unless specifically stated otherwise, conditional words such as "can," "could," "could," or "might," among others, are understood within the context that one example may include a certain feature, element, and / or step while another example does not. Thus, in general, the above conditional words are not intended to imply that a certain feature, element, and / or step is required in any respect in one or more examples, or that one or more examples necessarily include logic for determining whether a certain feature, element, and / or step is included or should be performed in any particular example, with or without user input or prompting.

[0183] Unless specifically stated otherwise, conjunctive terms, such as, for example, the phrase "at least one of X, Y, or Z," should be understood to indicate that an item, term, etc. can be any of X, Y, or Z, or in any combination, including a plurality of each element. Unless expressly described as singular, "a" means singular and plural.

[0184] Any routine description, element, or block in the flow diagrams described herein and / or depicted in the accompanying drawings should be understood as potentially representing a module, segment, or portion of code that includes one or more computer-executable instructions for implementing a particular logical function or element in the routine. Alternative implementations are included within the scope of the examples described herein in which elements or functions can be performed substantially simultaneously, in reverse order, with additional operations, or deleted from those shown or described, or out of order, including omitting operations, depending on the functionality involved as understood by one of ordinary skill in the art.

[0185] It should be emphasized that many variations and modifications can be made to the above-described examples, and that the elements thereof should be understood to be among the other acceptable examples. All such modifications and variations are intended to be included herein within the scope of this disclosure and protected by the following claims. [Explanation of symbols]

[0186] 600 Processing 602 operation 604 operation 606 operation 608 operation 610 operation 614 Example

Claims

1. 1. A system comprising: one or more processors; one or more computer-readable media storing instructions executable by said one or more processors; the instructions, when executed, cause the system to: Receiving an image having a first scale; providing the image to a first machine learning (ML) model trained to output a region of interest (ROI) having a size within a first range of sizes; The first ML model is training the first ML model, the training comprising: providing a test image including a test object associated with an area defined by a reference region as an input to the first ML model; determining a plurality of ROIs based at least in part on the test image by the first ML model; including, determining a degree of alignment of the plurality of ROIs with respect to a region of the region defined by the reference region; and determining the first range of sizes based at least in part on identifying a span of object sizes that corresponds to a portion of the degree of alignment that is equal to or greater than a threshold degree of alignment; to output the ROI having the size within the first range of sizes based at least in part on receiving from the first ML model a first ROI indicating a first region of the image representing at least a portion of a first object, the first ROI having a first size within the first range of sizes; Scaling the image as a scaled image based at least in part on a second scale, the scaled image and the image being different sizes; and providing the scaled image to a second ML model trained to output an ROI having a size within a second range of sizes, the first range of sizes and the second range of sizes being different from one another; receiving from the second ML model a second ROI indicating a second region of the image representing at least a portion of a second object, the second ROI having a second size within the second range of sizes; A system for causing a computer to perform an operation including the steps of:

2. 2. The system of claim 1, wherein the image is provided to the first ML model and the scaled image is provided to the second ML model substantially simultaneously.

3. The operation includes: providing a first batch of training images containing objects of different sizes as input to the first ML model; determining an accuracy of the first ML model as a function of ROI size based at least in part on a ground truth associated with the object; determining the first range of sizes based at least in part on identifying a range of ROI sizes corresponding to an accuracy equal to or greater than a threshold accuracy; determining the first range of sizes for the first ML model based at least in part on The system of claim 1 further comprising:

4. receiving a first scaled image and a second scaled image, the first scaled image and the second scaled image being two different sized versions of a same image; providing the first scaled image as a first input to a first machine learning (ML) model trained to output a region of interest (ROI) having a size within a first range of sizes; The first ML model is training the first ML model, the training comprising: providing a test image as an input to the first ML model, the test image including a test object associated with an area defined by a reference region; determining a plurality of ROIs based at least in part on the test image by the first ML model; including, determining a degree of alignment of the plurality of ROIs with respect to a region of the region defined by the reference region; and determining the first range of sizes based at least in part on identifying a span of object sizes that corresponds to a portion of the degree of alignment that is equal to or greater than a threshold degree of alignment; to output the ROI having the size within the first range of sizes based at least in part on receiving one or more first ROIs having a size within the first range of sizes as a first output from the first ML model; providing the second scaled image as a second input to a second ML model trained to output an ROI having a size within a second range of sizes, the first range of sizes and the second range of sizes being different from one another; receiving one or more second ROIs having a size within the second range of sizes as a second output from the second ML model; 16. A computer-implemented method comprising:

5. the image includes a representation of a first object and a representation of a second object; The computer-implemented method further comprises: determining, by the first ML model, a first ROI representing the first object and a second ROI representing the second object based at least in part on the first scaled image; determining, by the second ML model, a third ROI representing the first object and a fourth ROI representing the second object based at least in part on the second scaled image; Further equipped 5. The computer-implemented method of claim 4.

6. the first ROI has a first size outside the first range of sizes; the second ROI has a second size within the first range of sizes; the third ROI has a third size outside the second range of sizes; the fourth ROI has a fourth size within the second range of sizes; The first ML model discards the first ROI and outputs the second ROI; The second ML model discards the fourth ROI and outputs the third ROI.

6. The computer-implemented method of claim 5.

7. scaling the image based at least in part on a first scale to generate the first scaled image; scaling the image based at least in part on a second scale to generate the second scaled image; The computer-implemented method of claim 4, further comprising:

8. 5. The computer-implemented method of claim 4, wherein the first scaled image is provided to the first ML model and the second scaled image is provided to the second ML model substantially simultaneously.

9. determining the first range of sizes based at least in part on an accuracy associated with a first ROI of the one or more first ROIs, wherein the determining includes: determining, based at least in part on a ground truth associated with a region of the image representing an object, a degree of alignment of the first ROI with respect to the region defined by the ground truth; determining the first range of sizes based at least in part on identifying a range of ROI sizes corresponding to a determined degree of alignment for the one or more first ROIs that is equal to or greater than a threshold degree of alignment; 5. The computer-implemented method of claim 4, comprising:

10. receiving a batch of images, the batch of images including a first predefined number of images associated with a first object classification and a second predefined number of images associated with a second object classification; training the first ML model based at least in part on providing the batch of images as input to the first ML model; the first predefined number of images and the second predefined number of images are based at least in part on a confidence score associated with the first ML model or the second ML model; The computer-implemented method of claim 4, further comprising:

11. When executed, the program causes one or more processors to: receiving a first scaled image and a second scaled image, the first scaled image and the second scaled image corresponding to an image; providing the first scaled image as a first input to a first machine learning (ML) model trained to output a region of interest (ROI) having a size within a first range of sizes; The first ML model is training the first ML model, the training comprising: providing a test image as an input to the first ML model, the test image including a test object associated with an area defined by a reference region; determining a plurality of ROIs based at least in part on the test image by the first ML model; including, determining a degree of alignment of the plurality of ROIs with respect to a region of the region defined by the reference region; and determining the first range of sizes based at least in part on identifying a span of object sizes that corresponds to a portion of the degree of alignment that is equal to or greater than a threshold degree of alignment; to output the ROI having the size within the first range of sizes based at least in part on receiving one or more first ROIs having a size within the first range of sizes as a first output from the first ML model; providing the second scaled image as a second input to a second ML model trained to output an ROI having a size within a second range of sizes, the first range of sizes and the second range of sizes being different from one another; receiving one or more second ROIs having a size within the second range of sizes as a second output from the second ML model; A non-transitory computer readable medium having a set of instructions that cause the computer to perform operations including:

12. the image includes a representation of a first object and a representation of a second object; The operation includes: determining, by the first ML model, a first ROI representing the first object and a second ROI representing the second object based at least in part on the first scaled image; determining, by the second ML model, a third ROI representing the first object and a fourth ROI representing the second object based at least in part on the second scaled image; Also includes 12. The non-transitory computer-readable medium of claim 11.

13. the first ROI has a first size outside the first range of sizes; the second ROI has a second size within the first range of sizes; the third ROI has a third size outside the second range of sizes; the fourth ROI has a fourth size within the second range of sizes; The first ML model discards the first ROI and outputs the second ROI; The second ML model discards the fourth ROI and outputs the third ROI.

13. The non-transitory computer-readable medium of claim 12.

14. The operation includes: scaling the image based at least in part on a first scale to generate the first scaled image; scaling the image based at least in part on a second scale to generate the second scaled image; 12. The non-transitory computer-readable medium of claim 11, further comprising:

15. 12. The non-transitory computer-readable medium of claim 11, wherein the first scaled image is provided to the first ML model and the second scaled image is provided to the second ML model substantially simultaneously.

16. The operations further include determining the first range of sizes based at least in part on an accuracy associated with a first ROI of the one or more first ROIs, the determining including: determining, based at least in part on a ground truth associated with a region of the image representing an object, a degree of alignment of the first ROI with respect to the region defined by the ground truth; determining the first range of sizes based at least in part on identifying a range of ROI sizes corresponding to a determined degree of alignment for the one or more first ROIs that is equal to or greater than a threshold degree of alignment; 12. The non-transitory computer readable medium of claim 11, comprising:

17. The operation includes: receiving a batch of images, the batch of images including a first predefined number of images associated with a first object classification and a second predefined number of images associated with a second object classification; training the first ML model based at least in part on providing the batch of images as input to the first ML model; the first predefined number of images and the second predefined number of images are based at least in part on a confidence score associated with the first ML model or the second ML model; 12. The non-transitory computer-readable medium of claim 11, further comprising:

Citation Information

Patent Citations

  • Instance segmentation inferred from the output of a machine learning model

    JP2021528757A

  • System and method for a deep learning machine for object detection

    US20180158189A1