A system and method for automatically labeling pictures of autonomous driving vehicles

Through the combined use of the target detection group and SAM submodule, the annotation results of automobile autonomous driving pictures are screened and corrected, and the problems of low labeling efficiency and insufficient accuracy in the existing technology are solved, and automatic labeling with high accuracy and high efficiency are achieved .

CN118628999BActive Publication Date: 2024-11-05TANBU TECH (SHANGHAI) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411099351.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-12
Publication Date
2024-11-05
Estimated Expiration
2044-08-12

AI Technical Summary

Technical Problem

In the prior art, the labeling of automobile autonomous driving pictures is low and the accuracy is insufficient. Especially in the early stages of model iteration, there are a large number of invalid labels and label details correction requirements, resulting in reduced efficiency.

Method used

The target detection group and more than two object detection models are used for initial detection, and high-quality detection results are screened through consistency indicators, and the SAM submodule is used for semantic segmentation and target box correction. The second filter judges the credibility of the output results. Ensure the accuracy of the labeling results.

Benefits of technology

It improves the accuracy of automatic labeling, reduces the workload of correcting the details of the labeling frame in manual review, improves the labeling efficiency, and ensures the credibility of the labeling results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118628999B_ABST
    Figure CN118628999B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of machine learning training data processing, and discloses a system and method for automatically annotating pictures of an automobile automatic driving. The automatic annotating system for automobile automatic driving pictures provided by the present invention comprises an annotation module. The annotation module comprises: a target detection group, a first filter, a SAM submodule and a second filter. The target detection group detects the picture to be annotated and uses a target frame to mark the target in the detection result, wherein the target detection group is provided with at least two target detection models. The first filter quantifies the detection results of different target detection models and filters out pictures with lower quality. The SAM submodule optimizes the output picture of the first filter so that the target frame of the marked target detection result is more closely aligned with the target contour. The second filter determines whether the output result of the SAM submodule is credible, and outputs the credible annotation result, thereby improving the accuracy of automatic annotation and improving the annotation efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of machine learning training data processing, and in particular to a system and method for automatically labeling pictures of autonomous driving vehicles. Background Art

[0002] Vision-based object detection is one of the basic technologies in the field of autonomous driving. The current field of autonomous driving requires a large number of samples to perform machine learning training on various object detection models. All image samples need to be labeled with specific labels (called annotations) to serve as effective input for machine learning training. Previously, the task of labeling was almost entirely done manually, which was relatively inefficient. The commonly used method is to first manually label a part of the pre-labeled data, then train a model, and then use the model to infer the pre-labeled data, and then manually review it, and then select a part of the approved data for training again, and repeat the iteration until the model inference result meets the target requirements.

[0003] For example, the Chinese patent application with publication number CN114330462A discloses a method and system for assisting in labeling model training data. Its technical solution includes: S1, constructing two training sets; S2, training two classifiers corresponding to the training sets, respectively predicting the categories of the training data in the other training set through the two classifiers, obtaining erroneous data whose prediction results are inconsistent with the categories marked by the operator, and extracting erroneous features from the erroneous data; S3, updating the data pool to be labeled, and obtaining multiple new training data based on the new data pool to be labeled and distributing them to the two training sets; S4, repeating the above steps S2-S3 based on the two new training sets until the total number of training data in the two training sets reaches the preset value, and exporting all the training data in the two training sets.

[0004] This method can indeed reduce manual workload to a certain extent, but there are also several problems: 1. In the process of manual review, especially in the early stage of model iteration, there are often a large number of invalid labels. Removing these labels will reduce the efficiency of this task. 2. In the early stage of model iteration, simply reviewing the availability of labels usually does not meet the iteration conditions, and the details of the labels need to be corrected. If there are too many labels that need to be corrected, the labeling efficiency will also be lower.

[0005] For example, a Chinese patent application with publication number CN115659241A discloses a method and device for labeling a training data set. Its technical solution includes: obtaining a training data set and extracting sample features of each sample in the training data set; calculating the cosine distance between the sample features of every two samples to obtain the cosine distance corresponding to every two samples, and using the cosine distance corresponding to every two samples as the edge with the two samples as vertices in the first connection graph to construct a first connection graph; based on the first connection graph, using the confidence prediction model to predict the confidence of each sample; selecting a preset proportion of samples with the highest confidence from the first connection graph to obtain a second connection graph; based on the edge of every two vertices in the second connection graph, using the connectivity prediction model to predict whether the samples represented by the two vertices belong to the same category, and obtaining the labeling result corresponding to the training data set.

[0006] The labeling results of the technical solution of this patent application are heavily dependent on the accuracy of the sample features extracted by the feature extraction model. If the accuracy of the feature extraction model is insufficient, the labeling results may be under-labeled, missed, or wrongly labeled, thereby reducing the labeling efficiency. Summary of the invention

[0007] The purpose of the present invention is to overcome the problems of insufficient accuracy and low labeling efficiency in the prior art, and to provide a system and method for automatic labeling of pictures of autonomous driving vehicles.

[0008] In a first aspect, the present invention provides an automatic annotation system for automobile automatic driving pictures, comprising at least an annotation module. The annotation module comprises at least: a target detection group, which is used to perform initial detection on the picture to be annotated, wherein the target detection group is provided with at least two target detection models, and the target detection model uses a target box to mark the target in the detection result; a first filter, which is used to merge the detection results of different target detection models, calculate the consistency index after completing the merging operation, and filter out the pictures whose consistency index is lower than the consistency threshold; the merging operation includes obtaining the target box about the same target from the detection results of different target detection models; for the retained pictures, the first filter uses the average value of the target boxes of the same target of different target detection models as the target box attribute value of the output picture of the first filter; a SAM submodule, which is used to perform semantic segmentation on the output picture of the first filter, and at the same time, correct the attributes of the target box according to the segmentation result to make it closer to the target contour; a second filter, which is used to determine whether the output result of the SAM submodule is credible, and if it is credible, output the output result of the SAM submodule as the annotation result of the annotation module.

[0009] According to a preferred implementation, the target detection group saves the detection results of each target detection model into an array T[M], and the constituent elements of the array T[M] are the detection results of each target detection model.

[0010] According to a preferred implementation, the detection result of the target detection model at least includes:

[0011] The actual number of objects detected by the model, and the object boxes that correspond to the detected objects;

[0012] Each target frame includes secondary attributes, and the secondary attributes include at least category, the horizontal coordinate of the upper left corner of the target frame, the vertical coordinate of the upper left corner of the target frame, the width of the target frame, and the height of the target frame.

[0013] According to a preferred embodiment, the first filter further includes a merging submodule. The merging submodule calculates the merged target detection results according to the array T[M] and stores them in a merged target data structure MT. The merged target data structure MT at least includes: the number of identical targets among the targets detected by all target detection models; the number of target detection models that detect the same target; and the target frame of the target detected by each target detection model.

[0014] According to a preferred implementation, the merging submodule further calculates the consistency index based on the merged target detection results. The calculation method of the consistency index is:

[0015]

[0016] Among them, C is the consistency index, tanh is the hyperbolic tangent function, t is the total number of targets after merging, x(z) is the number of target detection models that simultaneously detect target z, and m is the number of target detection models.

[0017] According to a preferred embodiment, the second filter determines whether the output result of the SAM submodule is credible by calculating the credibility of the output result of the SAM submodule and comparing the credibility with a credibility threshold. Preferably, the credibility is calculated by calculating the percentage of each target frame in the output result of the SAM submodule to its original target frame area; averaging the percentage of all target frames in the output result of the SAM submodule to their original target frame areas to obtain an average correction ratio, which is the credibility.

[0018] According to a preferred embodiment, the automatic annotation system for autonomous driving images of automobiles further includes a manual review module. The manual review module is used to provide a human-computer interaction interface so that annotators can review and correct the output results of the annotation module and output the annotation data set.

[0019] According to a preferred embodiment, the automatic annotation system for autonomous driving images of a car further includes a training module. The training module is used to train the target detection model; and the training module can use the annotated data set output by the manual review module to continue iteratively training the target detection model.

[0020] According to a preferred embodiment, the automatic annotation system for images of autonomous driving vehicles further includes a scheduler. The scheduler is used to perform the function of moving the target detection model; the scheduler can copy the trained target detection model in the training module to the annotation module to update the target detection group.

[0021] The present invention also provides a method for automatically labeling pictures of automobile automatic driving. The automatic labeling method at least includes the following steps: using a target detection group to identify and detect sample pictures, wherein the target detection group has at least two target detection models, and the target detection model uses a target box to mark the target in the detection result; then merging the detection result group, and calculating the consistency of the detection results of each target detection model; discarding the picture samples and their detection results with low detection consistency of each target detection model, and retaining the picture samples and their detection results with high detection consistency of each target detection model; screening the samples again through the SAM model, and correcting the target box; judging whether the correction result of the target box is credible, and outputting the labeling result if it is credible.

[0022] Compared with the prior art, the present invention has the following beneficial effects:

[0023] The present invention introduces a target detection group to perform target detection on the input image, and reviews the detection results of the target detection group, without relying on the reliability of a single model. During the review, the present invention first quantifies the detection quality of the detection result through a first filter, and directly regresses samples with quality lower than the set value into the pre-labeled data set, and samples with quality higher than the set value enter the manual review process. In addition, the present invention also uses the SAM mechanism to optimize the target detection results, so that the target box marking the target detection result is more closely aligned with the target contour, thereby improving the accuracy of automatic labeling, and then reducing the workload of correcting the details of the labeling box during manual review. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] Figure 1 It is a data flow diagram of a preferred embodiment of the present invention;

[0025] Figure 2 is a schematic diagram of target detection results of a target detection group according to a preferred embodiment of the present invention;

[0026] Figure 3 It is a processing schematic diagram of a SAM submodule according to a preferred embodiment of the present invention;

[0027] Figure 4 It is a schematic diagram of a target frame classification process of a preferred embodiment of the present invention;

[0028] Figure 5 It is a schematic diagram of a sample screening process according to a preferred embodiment of the present invention. DETAILED DESCRIPTION

[0029] The present invention is further described in detail below in conjunction with test examples and specific implementation methods. However, this should not be understood as the scope of the above subject matter of the present invention being limited to the following embodiments, and all technologies realized based on the content of the present invention belong to the scope of the present invention.

[0030] Unless otherwise specified, in the description of the specific embodiments of the present invention, the terms indicating the orientation or position relationship such as "up", "down", "left", "right", "center", "inside", "outside", etc. are all expressions based on the orientation or position relationship shown in the drawings, or the orientation or position relationship when the invented product / equipment / device is usually used. These terms of orientation or position relationship are only for the convenience of describing the scheme of the present invention or simplifying the description in the specific embodiments, so as to facilitate the technicians to quickly understand the scheme, and do not indicate or imply that a specific device / component / element must have a specific orientation, or be constructed and operated in a specific position relationship, and therefore cannot be understood as a limitation on the present invention.

[0031] In addition, if the terms "horizontal", "vertical", "overhanging", "parallel" and the like appear, it does not mean that the corresponding devices / components / elements are required to be absolutely horizontal or vertical or overhanging or parallel, but may be slightly tilted or have deviations. For example, "horizontal" only means that its direction is more horizontal than "vertical", and does not mean that the structure must be completely horizontal, but may be slightly tilted. Alternatively, it can be simplified to mean that the corresponding devices / components / elements are set in directions such as "horizontal", "vertical", "overhanging", "parallel", etc., and can have an error / deviation of ±10% relative to the corresponding direction setting, more preferably an error / deviation within ±8%, more preferably an error / deviation within ±6%, more preferably an error / deviation within ±5%, and more preferably an error / deviation within ±4%. As long as the corresponding device / component / element is within the error / deviation range, it can still achieve its role in the scheme of the present invention.

[0032] In addition, the expressions “first”, “second”, “third”, etc. that appear in the terms are merely descriptions used to distinguish the same or similar components and should not be understood as emphasizing or implying the relative importance of specific components.

[0033] In addition, in the description of the embodiments of the present invention, "several", "plurality" and "a number" represent at least 2. It can be any number such as 2, 3, 4, 5, 6, 7, 8, 9, and even more than 9.

[0034] In addition, in the description of the technical solution of the present invention, unless otherwise clearly specified / defined / restricted, the terms "set", "install", "connect", "connected", "provided with", "laid", and "arranged" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection, and can be welding, riveting, bolting, threading, and other commonly used connection means in the field. This connection can be a mechanical connection, an electrical connection, or a communication connection; it can be a direct connection, or an indirect connection through an intermediate medium, and it can be the internal connection of two elements.

[0035] Example 1

[0036] The present embodiment provides an automatic annotation system for automobile automatic driving images. The automatic annotation system for automobile automatic driving images may include an annotation module. The annotation module may include: a target detection group, a first filter, a SAM submodule, and a second filter. The target detection group is used to perform initial detection on the image to be annotated, wherein the target detection group is provided with at least two target detection models, and the target detection model uses a target box to mark the target in the detection result. The first filter is used to merge the detection results of different target detection models, calculate the consistency index after completing the merging operation, and filter out the images whose consistency index is lower than the consistency threshold. The merging operation includes obtaining the target box about the same target from the detection results of different target detection models. For the retained images, the first filter uses the average value of the target boxes of the same target of different target detection models as the target box attribute value of the output image of the first filter. The SAM submodule is used to perform semantic segmentation on the output image of the first filter, and at the same time, correct the attributes of the target box according to the segmentation result to make it closer to the target contour. The second filter is used to determine whether the output result of the SAM submodule is credible, and if it is credible, output the output result of the SAM submodule as the annotation result of the annotation module.

[0037] In the automatic annotation system for autonomous driving images of vehicles provided in this embodiment:

[0038] A target detection group with at least two target detection models is set to detect the image to be labeled and use the target box to mark the target in the detection result; the first filter quantifies the detection results of different target detection models and filters out the images with lower quality; the SAM submodule optimizes the output image of the first filter so that the target box of the marked target detection result is more closely aligned with the target contour; the second filter determines whether the output result of the SAM submodule is credible, and outputs the credible labeling result, thereby improving the accuracy of automatic labeling and reducing the workload of correcting the details of the labeling box during manual review.

[0039] Example 2

[0040] This embodiment is a further improvement of Embodiment 1, and the repeated contents are not repeated here. In this embodiment, the target detection group saves the detection results of each target detection model into an array T[M], and the constituent elements of the array T[M] are the detection results of each target detection model.

[0041] Preferably, the detection result of the target detection model includes at least:

[0042] The actual number of objects detected by the model, and the object boxes that correspond to the detected objects;

[0043] Each target frame includes secondary attributes, which include at least category, horizontal coordinate of the upper left corner of the target frame, vertical coordinate of the upper left corner of the target frame, width of the target frame, and height of the target frame.

[0044] Preferably, the first filter further includes a merging submodule. The merging submodule calculates the merged target detection results according to the array T[M] and stores them in the merged target data structure MT. The merged target data structure MT at least includes: the number of identical targets among the targets detected by all target detection models; the number of target detection models that detect the same target; and the target frame of the target detected by each target detection model.

[0045] Preferably, the merging submodule further calculates a consistency index based on the merged target detection results. The consistency index is calculated as follows:

[0046]

[0047] Among them, C is the consistency index, tanh is the hyperbolic tangent function, t is the total number of targets after merging, x(z) is the number of target detection models that simultaneously detect target z, and m is the number of target detection models.

[0048] Preferably, the second filter determines whether the output result of the SAM submodule is credible by calculating the credibility of the output result of the SAM submodule and comparing the credibility with the credibility threshold. Preferably, the credibility calculation method includes: calculating the percentage of each target frame in the output result of the SAM submodule to its original target frame area; averaging the percentage of all target frames in the output result of the SAM submodule to their original target frame areas to obtain an average correction ratio, and the average correction ratio is the credibility.

[0049] Preferably, the automatic annotation system for self-driving car images also includes a manual review module. The manual review module is used to provide a human-computer interaction interface so that the annotator can review and correct the output results of the annotation module and output the annotation data set.

[0050] Preferably, the automatic annotation system for self-driving car images also includes a training module. The training module is used to train the target detection model; and the training module can use the annotated data set output by the manual review module to continue iterative training of the target detection model.

[0051] Preferably, the automatic annotation system for self-driving car images also includes a scheduler. The scheduler is used to perform the function of moving the target detection model; the scheduler can copy the trained target detection model in the training module to the annotation module to update the target detection group.

[0052] Example 3

[0053] This embodiment provides an automatic annotation system for pictures of an autonomous driving vehicle, and this embodiment is a further improvement of Embodiment 1 and Embodiment 2, and the repeated contents will not be repeated. Figure 1 In this embodiment, the automatic labeling system for autonomous driving images of automobiles may include: a labeling module, a manual review module, a training module and a scheduler.

[0054] The labeling module is used to perform target detection on the training samples and output the detection results with target box marks. Preferably, the labeling module is configured with more than two target detection models.

[0055] The input data of the manual review module is the target detection result of the labeling module. It provides a relevant human-computer interaction interface for humans (labelers) to review and correct the output results of the labeling module. The manual review module also provides a switch for the training module, which is manually controlled by the labeler. When the labeler determines that the output results of the labeling module are not accurate enough (for example, there are still many cases that require manual correction) or are accurate enough (basically no manual correction is required), the training module can be turned on or off. Preferably, the labeler can evaluate from three aspects: label omission, label misdetection, and label edge correction, and set a labeling cost indicator.

[0056] Preferably, the manual review module outputs a relatively accurate annotated data set after the review is passed. Preferably, the annotated data set output by the manual review module can not only be output to the user as the processing result of the automatic annotation system, but also be output to the training module for training. Preferably, when the annotator turns on the switch of the training module, the training module can use the annotated data set output by the manual review module to train the target detection model.

[0057] When the output result of the labeling module is not accurate enough, it indicates that the detection result of the target detection model is not accurate enough, and the target detection model needs to be iteratively trained. Preferably, when the output result of the labeling module is not accurate enough, the labeler can turn on the switch so that the training module continues to iteratively train the target detection model using the labeling data set output by the manual review module. Preferably, when the output result of the labeling module is not accurate enough, the training module can also use other labeling data sets to continue iteratively train the target detection model.

[0058] The training module is used to train the target detection model. The scheduler performs the function of moving the target detection model. The scheduler can copy the latest trained target detection model in the training module to the labeling module, thereby ensuring that the labeling module always uses the latest trained model for target detection.

[0059] Preferably, the training module includes multiple target detection models.

[0060] When the automatic labeling system is run for the first time, the training data of the training module can use an open source labeled data set. In the subsequent stage, the training data of the training module can use a labeled data set that has been manually reviewed.

[0061] The detection focus of each target detection model configured in the annotation module may be different. Preferably, each target detection model may be different in structure. For example, some target detection models may be based on point estimation for target detection; some target detection models may directly estimate the target bounding box when performing target detection. Point estimation represents the probability distribution of each point in the form of a heat map to obtain the target box, which is conducive to locating the shape of the target and is suitable for complex targets, but the missed detection rate will be relatively high, such as CenterNet. The model that directly predicts the bounding box is slightly inferior to the point estimation method in category distinction and boundary regression, such as Yolo. Even different target detection models based on the same characteristic will have their own advantages and disadvantages in terms of target category, detection ability, and boundary regression. Therefore, the various target detection models configured in the annotation module can be various existing target detection models.

[0062] The training module can determine whether the target detection model has completed training through pre-configured quantitative indicators. Preferably, the quantitative indicators can be set to the number of training rounds of the target detection model, etc. For example, it is stipulated that the target detection model has completed training when the number of training rounds reaches a preset number of rounds; or it is stipulated that the target detection model has completed training when the loss of the target detection model decreases less than a preset value within a prescribed number of rounds, and the training of the model can be terminated in advance. The loss is the difference between the target box detected by the model and the true value. Preferably, after the training module completes the training of the target detection model, it waits for the scheduler to move.

[0063] Preferably, the labeling module includes a target detection group, a first filter, a SAM submodule, a second filter, etc.

[0064] The target detection group contains target detection models output by several training modules. The sample image data to be labeled is first input to each target detection model in the target detection group for detection. Figure 2 , each target detection model marks the detection result with a target box, and each target detection model transmits the detection result with the target box to the first filter for processing.

[0065] The first filter calculates the consistency index of the detection results of different target detection models, then compares the calculation result with the consistency threshold, and performs corresponding processing according to the comparison result.

[0066] If the consistency index of the detection result is lower than the consistency threshold, the first filter may regard the image corresponding to the detection result as raw data of lower quality, discard the image, and directly discard the detection result.

[0067] If the consistency index of the detection result is not lower than the consistency threshold, the first filter may retain the detection result and its corresponding image.

[0068] For the retained images, the first filter obtains target frames about the same target from the detection results of different target detection models; and takes the average value of the same target frame of different target detection models as the target frame attribute value of the output image of the first filter.

[0069] The output image of the first filter is transmitted to the SAM submodule for processing.

[0070] See also Figure 3The SAM submodule is used to perform semantic segmentation on the output image of the first filter, and at the same time, modify the properties of the target box according to the segmentation results to make it closer to the target contour. The SAM submodule is configured with a SAM model. SAM (Segment Anything Model) is an open source general-purpose semantic segmentation model that uses a neural network to perform semantic segmentation on images. The result of semantic segmentation is a set of boundary pixel coordinate points of the target object. According to the minimum x coordinate and the minimum y coordinate in the boundary pixel coordinate point set, the upper left corner vertex of the target box can be confirmed. Similarly, the maximum x coordinate and y coordinate can be obtained to confirm the lower right corner vertex of the target box. Based on the two determined vertices, a target box with the minimum surrounding semantic segmentation result can be confirmed.

[0071] The SAM submodule transmits the output result to the second filter for processing. The output result of the SAM submodule is a picture with a corrected target box.

[0072] The second filter is used to calculate the credibility of the output results of the SAM submodule, and output the target box results with high credibility (higher than the set credibility threshold) to the manual review module (as annotations to be manually reviewed); unreliable target detection results will not be output.

[0073] Preferably, the first filter uses a configured merging submodule to calculate consistency indicators for the detection results of different target detection models. Preferably, the merging submodule calculates consistency indicators for the detection results of different target detection models in the following manner: calculating the merged target detection result based on the results of each target detection model; and calculating the consistency indicator based on the merged target detection result.

[0074] Preferably, the second filter is used to calculate the credibility of the output result of the SAM submodule in the following manner:

[0075] Calculate the percentage of the area of ​​each target box in the output result of the SAM submodule to its original target box. The higher the percentage, the greater the adjustment of the target box by SAM.

[0076] The average percentage of the area of ​​all target boxes in the output results of the SAM submodule and their original target boxes is taken to obtain the average correction ratio, which is the credibility.

[0077] If the average correction ratio exceeds a preset credibility threshold, the output result of the SAM submodule is considered unreliable; otherwise, the output result of the SAM submodule is considered reliable.

[0078] Preferably, the automatic annotation system for the image of the automobile autonomous driving provided in this embodiment also includes a super-resolution model. The super-resolution model is used to improve the resolution of the entire sample image to avoid the problem that the target detection model cannot detect some small targets due to insufficient resolution in the annotation module. If the small target on the sample image after the resolution is improved by the super-resolution model is still not detected by the annotation module, it can be regarded as insufficient in features and the small target is abandoned.

[0079] Preferably, the super-resolution model improves the image quality of the sample images input to the annotation module, in the hope that each target detection model in the target detection group can detect as many targets in the sample images as possible. For example, the "car in the distance on the road" in the photo, according to the imaging principle, the size of the target in the sample image is relatively small, and after the resolution is improved, it may still not be detected by the target detection model, but for the relatively large targets in the sample image, the target detection model can detect them. At this time, the sample image can still be used for machine learning training of the target detection model, so when a small target in the sample image cannot be detected, it is only necessary to abandon the small target instead of abandoning the sample image.

[0080] The image with enhanced resolution will be used as the input of the SAM submodule. It should be noted that the target frame and the image of the target detection exist independently of each other, and the target frame is only used to record information such as the target coordinates; although this embodiment uses the super-resolution model to enhance the resolution of the sample image in order to obtain a more reliable target frame, the sample image used to train the target detection model is still the original image before being processed by the super-resolution model.

[0081] For target detection, the quality of the labeling results is composed of three factors: ① Whether the category of the target box is correct ② Whether the position of the target box is correct ③ Whether the target box fits the target. Manual review is also evaluated and adjusted from these three aspects. In the first filter, this embodiment screens out problematic samples with low label quality due to factors ① and ② by evaluating the consistency of the labeling results of multiple target detection models. In the second filter, this embodiment combines the results of the super-resolution model with the SAM model to evaluate the low-quality label samples due to factor ③. In this embodiment, the low-quality samples that have been screened out will be left in the automatic labeling system after the update of the target detection model is completed, and then re-detected and labeled.

[0082] The existing semi-automatic labeling tools often focus on how to improve the detection and recognition accuracy of the target detection model, hoping to obtain more accurate labeling. The existing labeling results are all manually processed. If there are a large number of low-quality samples in the labeling results, manual correction will also take time. However, manual correction of samples increases the time cost of labeling.

[0083] This embodiment constructs two filters, so that the labeled samples entering the manual review module are those that the system considers to have a sufficiently high quality of labeling results, thereby always ensuring that the review does not see low-quality label samples, and thus does not need to spend too much time on corrections, saving the time of manual secondary thinking during the labeling process.

[0084] Example 4

[0085] This embodiment provides a method for automatically annotating pictures of an autonomous driving vehicle, and the automatic annotating systems for the automatic driving vehicle pictures provided in Embodiments 1, 2, and 3 all perform automatic annotating of pictures according to the automatic annotating method for the automatic driving vehicle pictures provided in this embodiment. In this embodiment, the automatic annotating method for the automatic driving vehicle pictures may include the following steps:

[0086] Using a target detection group to perform recognition detection on the sample image, wherein the target detection group is provided with at least two target detection models, and the target detection model uses a target box to mark the target in the detection result;

[0087] Then the detection result groups are merged and the consistency of the detection results of each target detection model is calculated;

[0088] Discard the image samples and their detection results with low detection consistency of each target detection model, and retain the image samples and their detection results with high detection consistency of each target detection model;

[0089] The samples are screened again through the SAM model, and the target box is corrected; whether the correction result of the target box is credible is determined, and if so, the labeling result is output.

[0090] Example 5

[0091] This embodiment provides a method for automatically labeling pictures of an autonomous driving vehicle, and this embodiment is a further improvement of Embodiment 4, and repeated contents will not be repeated.

[0092] In this embodiment, the method for automatically labeling pictures of an autonomous driving vehicle may include the following steps:

[0093] S1. Prepare the dataset for training the target detection model

[0094] The number of samples in the data set used to train the target detection model will gradually increase with the use of the method for automatically labeling pictures of autonomous driving vehicles provided in this embodiment. Before using the method for automatically labeling pictures of autonomous driving vehicles provided in this embodiment, an open source data set with low acquisition cost can be used to train the target detection model.

[0095] S2. Perform data enhancement on the training data set

[0096] A series of basic image transformations such as rotation, cropping, exposure change, and adding noise are performed on the training dataset to enhance the generalization ability of the object detection model.

[0097] S3. Training target detection model

[0098] The detector module of this method is different from the traditional semi-automatic labeling method. It uses multiple target detection models to form a target detection module group, and uses the same training samples to train different target detection models. The features that each target detection model focuses on are different. For example, when detecting the same car, some models are more sensitive to car doors, some models are more sensitive to engine hoods, and so on. This embodiment can comprehensively consider the capabilities of various target detection models based on their precision and recall, and reasonably select target detection models.

[0099] When the target detection model training reaches a certain quantitative index, the target detection model training is considered complete. The scheduler will automatically migrate the trained target detection model to the labeling module.

[0100] S4. Use the super-resolution model to improve the resolution of sample images to be pre-annotated

[0101] In order to avoid the problem of failing to detect some small targets due to insufficient resolution when performing target detection, this method uses a super-resolution model to improve the resolution of the entire image. If the small target still cannot be detected after the resolution is improved, it can be considered that the features are indeed insufficient and the target is abandoned.

[0102] S5. Preliminary screening of samples based on the test results of the target detection group.

[0103] The image output by S4 is sent to the target detection group for recognition detection, and a detection result group of the target marked with the target box is obtained. Then, the detection result group is statistically analyzed and processed, and the consistency of the detection of each target detection model is calculated. The image samples and their detection results with low detection consistency of each target detection model are discarded, and the image samples and their detection results with high detection consistency of each target detection model are retained.

[0104] The specific steps are as follows:

[0105] S51, detection data initialization processing.

[0106] S511, test result data.

[0107] There are MODEL_NUMBER target detection models in the target detection group. The maximum number of targets that each target detection model can detect is MAX_TARGETS.

[0108] For the sample images of the input target detection group, the detection results are saved in the array T[M], where i represents the subscript and the i-th element of the array represents the detection result of the i-th target detection model.

[0109] The detection result of each target detection model is a structure, which contains the following properties:

[0110] TargetsNumber, which indicates the actual number of targets detected by the target detection model. Its value is less than MAX_TARGETS;

[0111] Targets[MAX_TARGETS] is an array, each element of which is a target frame. The actual number of valid targets in the array is TargetsNumber. Each target frame contains secondary attributes such as class (for example, 0 represents a car, 1 represents a truck, 2 represents a bicycle, etc.), the horizontal coordinate of the upper left corner of the target frame (X), the vertical coordinate of the upper left corner of the target frame (Y), the width of the target frame (W), and the height of the target frame (H).

[0112] S512: Define the merge target data structure.

[0113] Define and initialize a "merged target" data structure MT (Merged Targets), which contains the following attributes:

[0114] MergedTargetsNumber: The number of targets after merging. The maximum value of MergedTargetsNumber is MAX_TARGETS*MODEL_NUMBER. The initial value is 0.

[0115] MergedTargets[MAX_TARGETS*MODEL_NUMBER] is an array, each element of which represents a merged target. MergedTargets[MAX_TARGETS*MODEL_NUMBER] also contains the following attributes: ModelNumber, BoxApplied, and BoxList[MODEL_NUMBER].

[0116] ModelNumber: indicates the number of target detection models that detected the target. It should be ≤ MODEL_NUMBER and its initial value is 0.

[0117] BoxApplied: is the target box for actual application, which is obtained by averaging the target boxes of the target detected by various target detection models. Its initial value is empty;

[0118] BoxList[MODEL_NUMBER]: is a list of target boxes for each target detection model that detects the target (target detection model detection box list). The actual valid number is ModelNumber, and its initial value is empty.

[0119] S52, target merging.

[0120] Target merging is the process of calculating the merged target detection results based on the results of each target detection model. Each time a new image sample is input into the target detection group, each target detection model will perform target detection on the sample image, and the detection results are stored in the aforementioned T[M] array.

[0121] S521. For each target frame of the target detection results of each target detection model in the target detection result array (Targets[MAX_TARGETS]), a "merge flag" attribute (MergeFlag) is extended, which is used to indicate whether the target has been merged. Its initial value is FALSE (not merged).

[0122] S522, initialize the merge target data structure MT, and perform target merging according to the following steps:

[0123] See also Figure 4 , traverse each target detection model in T[M] (target detection model k, k represents the subscript, for example, T[k] represents the detection result of the kth target detection model, MODEL_NUMBER>k≥0) and all detection targets of each target detection model (target j, T[k]. TargetsNumber>j≥0), and perform the following operations:

[0124] S5221. Determine whether the target has been merged, that is, whether T[k].Targets[j].MergeFlag==TRUE is true. If the target frame has been merged, jump to the next target; if the target has not been merged, continue to perform the following operations:

[0125] S52211. Compare the target with each target in the merged target (stored in the data structure MT). If two conditions are met, the target to be merged and the merged target can be considered to be the same target: ① The target box is of the same category as the merged target; ② The IOU of the target box and most (more than half) of the target boxes in the model detection box list of the merged target exceeds the manually set intersection-over-union ratio threshold IOUTH (IOU refers to the intersection-over-union ratio of two target boxes, that is, the overlap of the two boxes. The larger the IOU, the higher the overlap of the two boxes, and vice versa. The intersection-over-union ratio threshold IOUTH can be set based on actual measured experience, generally between 0.6-0.9.

[0126] S52212. If it is determined that the two are the same target, then: ① set the "merge flag" of the target to be merged to TRUE, ② add the target frame to be merged to the "model detected target frame list" of the merged target, ③ add 1 to the "number of detected target detection models" of the merged target.

[0127] S5222. If it is determined through step S5221 that no merged target meets the conditions, a new entry is added for it in the merged targets, which specifically includes the following steps: S52221. Add 1 to the number of merged targets (MT.MergedTargetsNumber); S52222. Assign 1 to the number of detected models of the newly added merged target (MT.MergedTargets[MergedTargetsNumber].ModelNumber); S52223. Copy the target box of the target to be merged to the model detection box list of the newly added merged target.

[0128] After traversing all the detected targets, we get the merged targets, which are saved in the data result MT. It contains information such as how many identical targets there are among the targets detected by all detection models, how many target detection models simultaneously detect each identical target, and the target boxes of the targets detected by each target detection model. Next, we use this information to calculate the consistency index of the targets detected by each target detection model, and calculate a more accurate and practical target box for the merged targets.

[0129] S53, detection consistency calculation.

[0130] We believe that if the merged target is detected simultaneously by more target detection models, its contribution score to the consistency of the entire target detection result will be higher, and vice versa.

[0131] To this end, we define the consistency index (C) as follows:

[0132]

[0133] Among them, tanh is the hyperbolic tangent function; among them, t is the total number of merged targets (i.e., MT.MergedTargetsNumber); z represents the subscript, x(z) is the number of target detection models that simultaneously detect target z (i.e., MT.MergedTargets[l].ModelNumber), and m is the number of target detection models (i.e., MODEL_NUMBER). The hyperbolic tangent function is symmetric about the origin. Targets detected by less than half of the target detection models will be penalized, and targets detected by more than half of the target detection models will be encouraged. The average value is finally taken. The significance is to measure the average score of each target on the one hand, and to constrain C to [-1, 1] on the other hand. At this point, we define a detection consistency threshold (CTH). When the calculated consistency C is greater than the consistency threshold, it can be considered that the detection result consistency is good and worthy of being used as input for manual review. Otherwise, the detection result consistency is not good, and both the detection result and the original image are discarded and do not enter the subsequent process. For example, setting the value of CTH to 0 can express that each detected target is detected by half of the target detection models. Setting it to 1 can express that each detected target needs to be detected by all target detection models. It is usually set between 0.5 and 0.9. The specific value of the consistency threshold CTH can be modified based on actual measured experience.

[0134] S54, calculating the target frame for actual application.

[0135] For each merged target, calculate the average value of each attribute according to each target frame in its model detection frame list, and assign it to its final applied target frame (BoxApplied). That is, the value of MT.MergedTargets[n].BoxApplied is equal to the average value of the attributes of each component element in MT.MergedTargets[n].BoxList[], where n represents the subscript. MT.MergedTargets[n].BoxApplied represents the applied target frame (BoxApplied) of the nth merged target (MergedTargets[n]) in the merged target structure (MT), and MT.MergedTargets[n].BoxList[] represents the target frame array (BoxList[]) in the nth merged target in the merged target structure.

[0136] S6. Filter the samples again through the SAM model and correct the target box.

[0137] See also Figure 3The SAM model is a large semantic segmentation model. Its input is the target box, and its output is the semantic segmentation of the target in the box. Through the boundary of semantic segmentation, a target box that fits the target contour more closely can be obtained. Considering that SAM is only an algorithm model and cannot be 100% accurate, and the target box passed down from upstream may not be accurate, we define the correction ratio indicator , used to record the difference in area between the target box output by the SAM model and the original target box,

[0138]

[0139] is the original target box area, is the target box area output by the SAM model, and abs is the absolute value of the difference between the two. It measures the correction ratio of the target box area output by the SAM model to the original target box area. The higher the value, the greater the adjustment of the target frame by the SAM model. The sum of the correction ratios is divided by the number of boxes to obtain the final average correction ratio, which is the credibility. If the average correction ratio exceeds the preset credibility threshold, the output result of the SAM model is considered unreliable; otherwise, the output result of the SAM model is considered reliable. If this average correction ratio reaches a certain credibility threshold (the credibility threshold can also be corrected according to the measured data), for example, the credibility threshold is set to 0.5, then the samples that exceed the credibility threshold are significantly modified. The sample image and its detection results will be discarded.

[0140] S7. The samples screened by S5 and S6 are sent to manual review and correction.

[0141] Reviewers (labelers) can control the two directions of the corrected samples by switching on and off the training. With the iteration of the target detection model, when the reviewer believes that the cost of correcting the sample labels after screening by S5 and S6 is low, the reviewer can turn off the switch of the training module and output it directly to the user. However, as samples from different scenarios enter the labeling module, the labeling ability may decrease. At this time, the reviewer can restart the switch of the training module.

[0142] Preferably, the image after resolution enhancement will be used as the input of the SAM submodule. It should be noted that the target detection label and image exist independently, and the label is only used to record the target coordinates; although the resolution is enhanced to obtain more reliable labels, the samples sent to the training module for training are still the original images before resolution enhancement.

[0143] See also Figure 5, the labeling process for a sample set to be labeled can be:

[0144] Step 1: Obtain the sample set to be labeled.

[0145] Step 2: Improve the resolution of the images in the sample set to be labeled.

[0146] Step 3: Use the object detection model group to detect the images with enhanced resolution.

[0147] Step 4: Perform consistency evaluation on the detection results of the target detection model group; if the consistency evaluation passes, execute step 5; if the consistency evaluation fails, transfer the corresponding sample images to the screening samples.

[0148] Step 5: Use the SAM model to optimize the target box.

[0149] Step 6: Make a credibility judgment on the output result of the SAM model; if the judgment result is true, execute step 7; if the judgment result is false, transfer the corresponding sample image to the screened sample.

[0150] Step 7: Manually review the labeled samples after SAM model optimization.

[0151] The images transferred to the screened samples can be used to construct the second sample set to be labeled. The second sample set to be labeled can be labeled after the target detection model in the target detection model group is updated.

[0152] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. An automatic annotation system for car autonomous driving images, comprising at least an annotation module, characterized in that: The marking module at least includes: A target detection group is used to perform initial detection on the image to be annotated, wherein the target detection group is provided with at least two target detection models, and the target detection model uses a target box to mark the target in the detection result; the target detection group saves the detection results of each target detection model to an array T[M], and the constituent elements of the array T[M] are the detection results of each target detection model; A first filter, used to merge the detection results of different object detection models, calculate the consistency index after completing the merging operation, and filter out pictures whose consistency index is lower than the consistency threshold; The merging operation includes obtaining a target frame about the same target from the detection results of different target detection models; For the retained picture, the first filter uses an average value of the target boxes of the same target by different target detection models as a target box attribute value of the output picture of the first filter; The first filter also includes a merging submodule; The merging submodule calculates the merged target detection result according to the array T[M] and stores it in the merged target data structure MT; The merged target data structure MT at least includes: The number of identical objects detected by all object detection models; The number of object detection models that detected the same object; And the target box of the target detected by each target detection model; The merging submodule further calculates the consistency index according to the merged target detection results; The consistency index is calculated as follows: Where C is the consistency index, tanh is the hyperbolic tangent function, t is the total number of targets after merging, x(z) is the number of target detection models that simultaneously detect target z, and m is the number of target detection models; A SAM submodule is used to perform semantic segmentation on the output image of the first filter, and to modify the properties of the target box according to the segmentation result to make it closer to the target outline; The second filter is used to determine whether the output result of the SAM submodule is credible, and if it is credible, output the output result of the SAM submodule as the marking result of the marking module.

2. The automatic labeling system for automatic driving images of a car according to claim 1, characterized in that: The detection result of the target detection model at least includes: The actual number of objects detected by the model, and the object boxes that correspond to the detected objects; Each target frame includes secondary attributes, and the secondary attributes include at least category, the horizontal coordinate of the upper left corner of the target frame, the vertical coordinate of the upper left corner of the target frame, the width of the target frame, and the height of the target frame.

3. The automatic labeling system for automatic driving images of a car according to claim 1, characterized in that: The second filter determines whether the output result of the SAM submodule is credible in the following manner: Calculating the credibility of the output result of the SAM submodule, and comparing the credibility with a credibility threshold; The calculation method of the credibility includes: Calculate the percentage of the area of ​​each target box in the output result of the SAM submodule to its original target box; The percentage of the area of ​​all target frames of the SAM submodule output results to their original target frames is averaged to obtain an average correction ratio, which is the credibility.

4. The automatic labeling system for automatic driving images of a car according to claim 1, characterized in that: The automatic annotation system for autonomous driving images of vehicles also includes a manual review module; The manual review module is used to provide a human-computer interaction interface so that the labeler can review and correct the output results of the labeling module and output the labeled data set.

5. The automatic labeling system for automatic driving images of a car according to claim 4, characterized in that: The automatic annotation system for automobile autonomous driving images also includes a training module; The training module is used to train the target detection model; and the training module can use the labeled data set output by the manual review module to continue iterative training of the target detection model.

6. The automatic labeling system for automatic driving images of a car according to claim 5, characterized in that: The automatic annotation system for automobile autonomous driving pictures also includes a scheduler; The scheduler is used to perform the function of moving the target detection model; The scheduler can copy the target detection model that has completed training in the training module to the labeling module to update the target detection group.

7. A method for automatically labeling pictures of autonomous driving vehicles, characterized in that: The automatic marking method comprises at least the following steps: Using a target detection group to perform recognition detection on the sample image, wherein the target detection group is provided with at least two target detection models, and the target detection model uses a target box to mark the target in the detection result; the target detection group saves the detection results of each target detection model to an array T[M], and the constituent elements of the array T[M] are the detection results of each target detection model; Then, the detection results of different target detection models are merged, and the consistency index is calculated based on the merged target detection results; The merging operation includes: Calculate the merged target detection result according to the array T[M] and store it in the merged target data structure MT; The merged target data structure MT at least includes: The number of identical objects detected by all object detection models; The number of object detection models that detected the same object; And the target box of the target detected by each target detection model; The consistency index is calculated as follows: Where C is the consistency index, tanh is the hyperbolic tangent function, t is the total number of targets after merging, x(z) is the number of target detection models that simultaneously detect target z, and m is the number of target detection models; Discard the image samples and their detection results whose detection consistency of each target detection model is lower than the consistency threshold, and retain the image samples and their detection results whose detection consistency of each target detection model is not lower than the consistency threshold; For the retained images, the average value of the target boxes of the same target from different target detection models is used as the target box attribute value of the output image; The output image is semantically segmented through the SAM model, and the properties of the target box are modified according to the segmentation results to make it closer to the target outline; Determine whether the correction result of the target box is credible, and if so, output the labeling result.