Object detection method, computer readable storage medium, and driving device

By setting a restriction layer in the target detection neural network model to limit the range of feature values ​​output by the convolution unit, the problem of low target detection accuracy in special weather scenarios after model quantification is solved, and higher detection accuracy is achieved.

WO2024183406A1PCT designated stage expired Publication Date: 2024-09-12ANHUI NIO AUTONOMOUS DRIVING TECH CO LTD

Patent Information

Application Number
PCT/CN2023/140069
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-08
Filing Date
2023-12-20
Publication Date
2024-09-12

AI Technical Summary

Technical Problem

When using a model based on model quantification to detect targets in special weather scenarios, the low quality of image or point cloud data leads to large quantification errors, resulting in target misdetection or missed detection. How to further improve the accuracy of target detection has become an urgent problem that needs to be solved.

Method used

Set a restriction layer in the target detection neural network model to limit the range of eigenvalues ​​output by the convolution unit, and limit the eigenvalues ​​to a specific range by presetting lower limit values ​​and upper limit values ​​to reduce fluctuations in the eigenvalue range, thereby reducing quantization. error.

Benefits of technology

It effectively improves the accuracy of target detection, reduces quantization errors, and improves the target detection performance of the model in special weather scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023140069_12092024_PF_FP_ABST
    Figure CN2023140069_12092024_PF_FP_ABST
Patent Text Reader

Abstract

The present invention relates to the technical field of object detection, and specifically provides an object detection method, a computer readable storage medium, and a driving device, aiming at solving the problem of how to further improve the object detection accuracy during object detection based on a model that has undergone model quantization. To achieve this objective, the object detection method of the present invention comprises: a limiting layer is at least provided at an output end of at least one convolution unit in an object detection neural network model to limit a feature value range of a feature tensor output by the corresponding convolution unit, and then when the object detection neural network model is applied to perform object detection on perceived data for a current driving scene, the convolution unit is used for performing feature extraction on the perceived data and outputting the feature tensor. The limiting layer is used for limiting the feature value range of the feature tensor output by the output end of the convolution unit, thereby reducing fluctuation of the feature value range, reducing the quantization error, and effectively improving the accuracy of object detection.
Need to check novelty before this filing date? Find Prior Art

Description

Target detection method, computer-readable storage medium, and driving device

[0001] This application claims priority to Chinese patent application No. 202310213483.2 filed on March 8, 2023, entitled “A target detection method, computer-readable storage medium and driving device”. The entire contents of the above Chinese patent application are incorporated into this application by reference. Technical Field

[0002] The present invention relates to the field of target detection technology, and specifically provides a target detection method, a computer-readable storage medium, and a driving device. Background Art

[0003] Currently, when deploying object detection models based on point clouds or images, model quantization is often required due to factors such as computing power and latency. Model quantization converts the weights and activation values ​​of a trained model from high-precision to low-precision, thereby reducing computing power requirements and increasing computational speed.

[0004] However, when the quantized model is applied to target detection in special weather scenes such as rainy days, snowy days, foggy days, haze and other scenes, the quality of the collected images or point cloud data is low due to the influence of the weather. For example, there will be low-quality point cloud distribution such as incomplete ground point cloud, air noise or unclear target edges. When the image or point cloud data is input into the model, a large quantization error will be generated, resulting in false detection or missed detection of targets. To address the above problems, related technologies have obtained more data in special weather scenes, and trained the initial model based on the large amount of data obtained in special weather scenes to obtain a model with better recognition ability. This method can improve the accuracy of target detection, but the effect is relatively poor. How to further improve the accuracy of target detection based on the quantized model has become an urgent problem to be solved.

[0005] Summary of the Invention

[0006] The present invention aims to solve the above technical problem, that is, to solve the problem of how to further improve the accuracy of target detection when performing target detection based on a model after model quantization.

[0007] In a first aspect, the present invention provides a target detection method, applied to a driving device, comprising:

[0008] Acquiring perception data of the current driving scene, wherein the perception data includes image data collected by a camera and / or point cloud data collected by a radar;

[0009] Inputting the perception data into a target detection neural network model to obtain a target detection result for the current driving scene;

[0010] In which, the target detection neural network model includes multiple convolution units and restriction layers, the restriction layer is at least set at the output end of at least one of the convolution units, the convolution unit includes at least a convolution layer, and the convolution unit is used to extract features from the perception data and output a feature tensor; the restriction layer is used to limit the feature value range of the feature tensor output from the output end of the convolution unit.

[0011] In some embodiments, the restriction layer includes a preset lower limit value and a preset upper limit value, and inputting the perception data into a target detection neural network model to obtain a target detection result for the current driving scene includes:

[0012] Based on the restriction layer, the range of all eigenvalues ​​of the feature tensor outputted from the output end of the convolution unit is limited, so that all eigenvalues ​​of the feature tensor obtained after the limitation are within a range greater than or equal to the preset lower limit value and less than or equal to the preset upper limit value.

[0013] In some embodiments, limiting the range of all eigenvalues ​​of the feature tensor outputted by the output terminal of the convolution unit based on the restriction layer includes:

[0014] Obtain the eigenvalue of each element in the eigenvalue tensor, as well as the preset upper limit value and preset lower limit value corresponding to the eigenvalue; for each element in the eigenvalue tensor, select a larger value between the eigenvalue of the element and the preset lower limit value, and select a smaller value between the larger value and the preset upper limit value as the eigenvalue of the element after restriction.

[0015] In some embodiments, the target detection neural network model includes a plurality of convolutional units arranged in cascade;

[0016] When the restriction layer is set between two adjacent convolution units in a cascade arrangement, the restriction layer is used to limit the eigenvalue range of the feature tensor output by the preceding convolution unit in the two convolution units, and input the restricted eigenvalues ​​into the succeeding convolution unit in the two convolution units.

[0017] In some embodiments, the target detection neural network model includes a main network and at least one branch network, and the convolution unit and the restriction layer are arranged on the main network and / or the branch network of the target detection neural network.

[0018] In some embodiments, the target detection neural network model also includes a fusion layer, which is arranged at the output end of at least one of the convolution units in the main network and / or the branch network. The fusion layer is used to fuse the output features of at least part of the parallel branch network, or the main network and the branch network to obtain a fusion feature; and transmit the fusion feature to the restriction layer.

[0019] In some embodiments, the convolution unit further includes a batch normalization layer provided at the output end of the convolution layer, wherein the batch normalization layer is used to normalize the feature tensor outputted from the output end of the convolution layer;

[0020] or,

[0021] The convolution unit also includes a batch normalization layer and an activation layer sequentially arranged at the output end of the convolution layer, the batch normalization layer is used to normalize the feature tensor outputted from the output end of the convolution layer, and the activation layer is used to perform linear or nonlinear conversion on the normalized feature tensor.

[0022] In some embodiments, the method further comprises training the target detection neural network model by the following steps:

[0023] Collecting training data of driving scenarios and labeling the training data;

[0024] Constructing an initial target detection neural network model, the initial target detection neural network model comprising a plurality of convolutional units and a restriction layer, the restriction layer being disposed at least at the output end of at least one of the convolutional units, the convolutional unit comprising at least a convolutional layer, the convolutional unit being configured to extract features from the training data and output a feature tensor; the restriction layer being configured to limit a range of feature values ​​of the feature tensor outputted from the output end of the convolutional unit;

[0025] Inputting the labeled training data into the initial target detection neural network model, and training the initial target detection neural network model until the initial target detection neural network model converges;

[0026] The converged initial target detection neural network model is quantized to obtain the target detection neural network model.

[0027] In some embodiments, the collecting of driving scene training data includes collecting image training data and / or point cloud training data of driving scenes in at least one of sunny, rainy, foggy, hazy, and snowy weather conditions.

[0028] According to a second aspect of the present invention, a computer-readable storage medium is provided, wherein a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the target detection method described in any one of the above items is implemented.

[0029] According to a third aspect of the present invention, there is provided an electronic device comprising:

[0030] at least one processor;

[0031] and, a memory communicatively coupled to the at least one processor;

[0032] The memory stores a computer program, and when the computer program is executed by the at least one processor, any one of the target detection methods described above is implemented.

[0033] A fourth aspect of the present invention provides a driving device, which includes a driving device body, a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, it implements any of the target detection methods described above.

[0034] When employing the above-mentioned technical solution, the present invention can limit the eigenvalue range of the feature tensor output by at least one convolutional unit in the target detection neural network model by placing a restriction layer at the output of at least one convolutional unit, thereby reducing fluctuations in the eigenvalue range and lowering quantization error. Furthermore, when applying this target detection neural network model to target detection on sensory data of the current driving scene, the convolutional unit extracts features from the sensory data and outputs a feature tensor; the restriction layer limits the eigenvalue range of the feature tensor output by the convolutional unit, effectively improving target detection accuracy. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] The preferred embodiments of the present invention are described below with reference to the accompanying drawings, in which:

[0036] FIG1 is a schematic flow chart of the main steps of a target detection method provided by an embodiment of the present invention;

[0037] FIG2 is a schematic diagram of a local structure of a target detection neural network model provided by an embodiment of the present invention;

[0038] FIG3 is a schematic diagram of a partial structure of another target detection neural network model provided by an embodiment of the present invention;

[0039] FIG4 is a schematic diagram of a partial structure of another target detection neural network model provided by an embodiment of the present invention;

[0040] 5 is a schematic diagram of the backbone network structure of the target detection neural network model provided by an embodiment of the present invention;

[0041] FIG6 is a flow chart of a target detection neural network model training method according to an embodiment of the present invention;

[0042] 7 is a schematic structural diagram of an electronic device provided in an embodiment of the present invention;

[0043] FIG8 is a schematic structural diagram of a driving device provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0044] Some embodiments of the present invention are described below with reference to the accompanying drawings. Those skilled in the art should understand that these embodiments are only used to explain the technical principles of the present invention and are not intended to limit the scope of protection of the present invention.

[0045] The target detection method provided by the present invention can be applied to a driving device. Referring to FIG1 , FIG1 is a flow chart showing the main steps of the target detection method provided by an embodiment of the present invention, which may include:

[0046] Step S11: Acquire perception data of the current driving scene, where the perception data includes image data collected by a camera and / or point cloud data collected by a radar;

[0047] Step S12: inputting the perception data into the target detection neural network model to obtain the target detection result of the current driving scene;

[0048] Among them, the target detection neural network model includes multiple convolution units and restriction layers. The restriction layer is set at least at the output end of at least one convolution unit. The convolution unit includes at least a convolution layer. The convolution unit is used to extract features from the perception data and output feature tensors; the restriction layer is used to limit the feature value range of the feature tensor output from the output end of the convolution unit.

[0049] In other embodiments, the convolution unit may further include a batch normalization layer provided at the output of the convolution layer, the batch normalization layer being used to normalize the feature tensor outputted from the output of the convolution layer; or, in other embodiments, the convolution unit may further include a batch normalization layer and an activation layer provided in sequence at the output of the convolution layer, the batch normalization layer being used to normalize the feature tensor outputted from the output of the convolution layer, and the activation layer being used to perform linear or nonlinear transformation on the normalized feature tensor. The batch normalization layer may be represented as a BN layer (Batch Normalization), and the activation layer may be represented as an Act layer. As an example, the activation layer may use a ReLU (Rectified Linear Unit) activation function.

[0050] In some embodiments, step S11 may specifically include collecting image data of the current driving scene using a camera and / or collecting point cloud data of the current driving scene using a radar. The radar may be a lidar or a millimeter-wave radar. The current driving scene may be a driving scene in good weather with high visibility, such as a sunny day, or a driving scene in special weather, such as rain, fog, haze, or snow.

[0051] In some embodiments, when the perception data is image data collected by a camera, the infrastructure of the target detection neural network model used may include a backbone network and a detection head. In some embodiments, the infrastructure of the target detection neural network model may further include a neck network arranged between the backbone network and the detection head. As an example, the target detection neural network model may be based on CNN (Convolutional Neural Network), Faster-RCNN (Region Convolutional Neural Network), Yolo (You Only Look Once) or SSD (Single Shot MultiBox Detector), and may be obtained by setting a restriction layer at the output end of at least one convolution unit in CNN, Faster-RCNN, Yolo or SSD.

[0052] In another embodiment, when the perception data is point cloud data collected by radar, the basic architecture of the target detection neural network model used may include a backbone network and a detection head. In some embodiments, the basic architecture of the target detection neural network model may also include a network provided before the backbone network for processing the input point cloud data into a data expression format. As an example, the target detection neural network model may be based on Centerpoint or PointPillars and is obtained by setting a restriction layer at the output of at least one convolutional unit in Centerpoint or PointPillars.

[0053] In another embodiment, when the perception data is image data collected by a camera and point cloud data collected by a radar, the target detection neural network model can be a fusion target detection neural network model built based on a convolutional neural network model. As an example, the basic architecture of the fusion target detection neural network model can include two backbone networks arranged in parallel, respectively used to extract features from the input image data and point cloud data; a fusion network connected to the output ends of the two backbone networks and used to fuse the features output by the two backbone networks; and a detection head that performs target detection based on the fusion features output by the fusion network; wherein a restriction layer can be set at the output end of at least one convolution unit in the fusion target detection neural network model.

[0054] In some embodiments, the restriction layer may include a preset lower limit value and a preset upper limit value. Step S12 may specifically include: limiting the range of all eigenvalues ​​of the feature tensor outputted by the convolution unit output terminal based on the restriction layer, such that all eigenvalues ​​of the feature tensor obtained after the restriction are within a range greater than or equal to the preset lower limit value and less than or equal to the preset upper limit value. The preset lower limit value and the preset upper limit value may be set as required.

[0055] In some embodiments, limiting the range of all eigenvalues ​​of the feature tensor outputted by the output terminal of the convolution unit based on the restriction layer may include:

[0056] Get the eigenvalue of each element in the eigenvalue tensor, as well as the preset upper limit and preset lower limit corresponding to the eigenvalue;

[0057] For each element in the feature tensor, the larger value is selected from the element's eigenvalue and the preset lower limit value, and the smaller value is selected from the larger value and the preset upper limit value as the element's restricted eigenvalue.

[0058] In some embodiments, the confinement layer can be represented by the following expression: f(x)=min(a, max(b, x))

[0059] Where x represents the eigenvalue of an element in the feature tensor, a represents the preset upper limit, and b represents the preset lower limit. For example, a can be 6 and b can be 0.

[0060] In some embodiments, referring to FIG2 , FIG2 is a schematic diagram of the local structure of a target detection neural network model provided by an embodiment of the present invention, which may include two convolution units, the two convolution units respectively including a convolution layer Conv1 and a convolution layer Conv2; and a restriction layer provided at the output end of the convolution layer Conv1. As a specific example, when the output end of the convolution layer Conv1 outputs a feature tensor of WXHXC, the feature tensor contains WXHXC elements, where W and H represent the width and height of the output feature map, respectively, and C represents the number of channels. The restriction layer f(x) can be used to restrict the eigenvalues ​​of all elements in the feature tensor.

[0061] In some embodiments, the target detection neural network model may include multiple convolution units, each convolution unit includes a convolution layer, and the output end of each convolution layer is provided with a restriction layer. By providing a restriction layer at the output end of each convolution layer in the target detection neural network model, the output range of each layer is within the restriction range, which can effectively avoid the problem of large fluctuations in the output range of each layer and uneven distribution of eigenvalues, thereby reducing subsequent quantization errors and improving the accuracy of target detection. It should be noted that the restriction layers set at the output ends of different convolution units may have different corresponding preset lower limit values ​​and / or preset upper limit values, or, restriction layers with the same preset lower limit value and preset upper limit value may be set at the output ends of different convolution units.

[0062] In some embodiments, referring to FIG3 , FIG3 is a schematic diagram of the local structure of another target detection neural network model provided by an embodiment of the present invention, which may include a plurality of cascaded convolution units; the output end of at least one convolution unit is provided with a restriction layer. When the restriction layer is provided between two adjacent convolution units in a cascaded arrangement, the restriction layer is used to limit the eigenvalue range of the feature tensor output by the preceding convolution unit in the two convolution units, and input the restricted eigenvalues ​​into the following convolution unit in the two convolution units, thereby ensuring that the input eigenvalue range of the following convolution unit is within the limited range, which is beneficial to the subsequent reduction of model quantization errors. As shown in FIG3 , the convolution unit may include a convolution layer Conv1 and a BN layer, and the convolution unit may further include a convolution layer Conv2, a BN layer and an Act layer.

[0063] In some embodiments, referring to FIG4 , FIG4 is a schematic diagram of the partial structure of another target detection neural network model provided by an embodiment of the present invention. The target detection neural network model may include a main network and at least one branch network, and the convolution unit and the restriction layer are arranged on the main network and / or the branch network of the target detection neural network. FIG4 exemplarily shows that the target detection neural network model includes a main network and a branch network. The main network is provided with two cascade-connected convolution units, one of which may include a convolution layer Conv1 and a BN layer, and the other convolution unit may include a convolution layer Conv2, a BN layer, and an Act layer, with a restriction layer arranged between the two convolution units; the branch network is also provided with two cascade-connected convolution units, one of which may include a convolution layer Conv3, and the other convolution unit may include a convolution layer Conv4 and a BN layer, with a restriction layer arranged between the two convolution units. In addition, the target detection neural network model may further include a fusion layer arranged at the output end of the main network, for fusing the output features of the main network and the branch network to obtain a fused feature. As an example, the fusion layer can be fused using an add operation or a concat operation.

[0064] In some embodiments, the target detection neural network model may include a fusion layer, and accordingly, the target detection neural network model may further include a restriction layer disposed at the output end of the fusion layer. The fusion layer is disposed at the output end of at least one convolutional unit in the main network and / or the branch network, and is configured to fuse the output features of at least a portion of the parallel branch network, or the main network and the branch network, to obtain a fused feature; and transmit the fused feature to the restriction layer.

[0065] In some embodiments, as shown in FIG4 , a fusion layer is provided at the output end of a convolution unit in the main network, for fusing the output features of the main network and the branch network. In other embodiments, a fusion layer may be provided at the output end of a convolution unit in the branch network, for fusing the output features of multiple parallel branch networks, as shown in FIG5 , which is a schematic diagram of the backbone network structure of the target detection neural network model provided by an embodiment of the present invention, wherein the backbone network of the target detection neural network model can be obtained by adding a restriction layer to the backbone network of PointPillar.

[0066] Specifically, the backbone network of the target detection neural network model may include a backbone network, on which an input layer, a pad layer (for zero-padding input features that are less than a preset length) and four cascaded convolutional units are sequentially arranged, wherein each convolutional unit may include a convolutional layer, a batch normalization layer and an activation layer, and a restriction layer may be provided at the output end of at least one convolutional unit. FIG5 exemplarily shows that a restriction layer is provided at the output end of one of the four cascaded convolutional units.

[0067] The backbone network of the target detection neural network model also includes multiple branch networks connected to the output end of the last convolution unit of the backbone network, a fusion layer for fusing the output features of the multiple branch networks, and a restriction layer provided at the output end of the fusion layer. The fusion layer fuses the output features of the multiple branch networks and transmits them to the restriction layer. Each branch network is provided with at least one convolution unit, and each convolution unit may include a convolution layer, a batch normalization layer, and an activation layer provided in sequence. A restriction layer may be provided at the output end of at least one convolution unit on the branch network. FIG5 exemplarily shows the provision of a restriction layer at the output end of a convolution unit on the right branch network.

[0068] The backbone network of the target detection neural network model also includes multiple parallel branch networks connected to the restriction layer set at the output end of the fusion layer, each branch network can be provided with a convolution unit, a transposition layer and an output layer, wherein the convolution unit can include a convolution layer.

[0069] In some embodiments, as shown in FIG6 , a target detection neural network model can also be trained by the following steps:

[0070] Step S61: collecting training data of driving scenes and labeling the training data;

[0071] Step S62: constructing an initial target detection neural network model, the initial target detection neural network model including multiple convolution units and a restriction layer, the restriction layer being provided at least at the output end of at least one convolution unit, the convolution unit including at least a convolution layer, the convolution unit being used to extract features from training data and output a feature tensor; the restriction layer being used to limit the feature value range of the feature tensor outputted from the output end of the convolution unit;

[0072] Step S63: inputting the labeled training data into the initial target detection neural network model, and training the initial target detection neural network model until the initial target detection neural network model converges;

[0073] Step S64: performing model quantization on the converged initial target detection neural network model to obtain the target detection neural network model.

[0074] In some embodiments, step S61 may specifically involve collecting image training data of the driving scene using a camera and / or collecting point cloud training data of the driving scene using a radar. In some embodiments, collecting driving scene training data may include collecting image training data and / or point cloud training data of driving scenes in at least one of sunny, rainy, foggy, hazy, and snowy weather conditions. In other embodiments, training data of driving scenes in other special weather conditions may also be collected to enrich the training dataset. A more accurate object detection neural network model can be trained based on this rich training dataset.

[0075] In some embodiments, labeling the training data may include labeling the target category and target position of each sample in the training data.

[0076] In some embodiments, step S62 can be specifically as follows: when the training data is image training data collected by a camera, a CNN, Faster-RCNN, Yolo or SSD network is used, and a restriction layer is set at least at the output end of at least one convolution unit in the network to construct an initial target detection neural network; when the training data is point cloud training data collected by a radar, a Centerpoint or PointPillars network is used, and a restriction layer is set at least at the output end of at least one convolution unit in the network to construct an initial target detection neural network.

[0077] The restriction layer can be expressed by the expression shown above: f(x)=min(a, max(b, x))

[0078] In some embodiments, when a restriction layer is set between two adjacent convolution units in a cascade arrangement, the restriction layer is used to limit the eigenvalue range of the feature tensor output by the preceding convolution unit in the two convolution units, and input the restricted eigenvalues ​​into the succeeding convolution unit in the two convolution units.

[0079] In some embodiments, the initial target detection neural network model may include a main network and at least one branch network, and the convolution unit and the restriction layer are arranged on the main network and / or the branch network of the initial target detection neural network.

[0080] In some embodiments, the initial target detection neural network model may also include a fusion layer and a restriction layer arranged at the output end of the fusion layer. The fusion layer is arranged at the output end of at least one convolution unit in the main network and / or the branch network, and is used to fuse the output features of at least part of the parallel branch network, or the main network and the branch network to obtain a fusion feature, and transmit the fusion feature to the restriction layer.

[0081] In some embodiments, step S63 can be specifically performed on the training samples in the training data according to the initial target detection neural network model to obtain the target detection results, wherein the target detection results may include target detection categories and candidate boxes; the target detection results are compared with the pre-labeled target categories and target positions to determine whether a preliminary trained target detection neural network model is obtained, and if so, stop training; if not, adjust the parameters in the initial target detection neural network model, and continue to train the initial target detection neural network model until the initial target detection neural network model converges.

[0082] In an embodiment of the present invention, step S64 may use a conventional quantization method in the art to quantize the converged initial target detection neural network model to obtain the target detection neural network model.

[0083] It will be understood by those skilled in the art that all or part of the processes in the methods for implementing the above embodiments of the present invention may also be accomplished by instructing related hardware through a computer program. The computer program may be stored in a computer-readable storage medium. When the computer program is executed by a processor, the steps of each of the above method embodiments may be implemented. The computer program includes computer program code, which may be in source code form, object code form, executable file, or some intermediate form. The computer-readable storage medium may include any entity or device, medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory, random access memory, electric carrier signal, telecommunication signal, and software distribution medium, etc., which may carry the computer program code.

[0084] Another aspect of the present invention provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the target detection method described in any of the above embodiments. The computer-readable storage medium may be a storage device formed by various electronic devices. Optionally, in embodiments of the present invention, the computer-readable storage medium is non-transitory.

[0085] Another aspect of the present invention also provides an electronic device, which may include at least one processor; and a memory communicatively connected to the at least one processor; wherein a computer program is stored in the memory, and when the computer program is executed by the at least one processor, the target detection method described in any of the above embodiments is implemented.

[0086] Referring to FIG. 7 , FIG. 7 exemplarily shows a structure in which a memory 71 and a processor 72 are connected via a bus, and only one memory 71 and only one processor 72 are provided.

[0087] In other embodiments, the electronic device may include multiple memories 71 and multiple processors 72. The program for executing the target detection method of any of the above embodiments may be divided into multiple subroutines, each of which may be loaded and executed by a processor to execute different steps of the target detection method of the above method embodiment. Specifically, each subroutine may be stored in a different memory 71, and each processor 72 may be configured to execute the programs in one or more memories 71 to jointly implement the target detection method of the above method embodiment.

[0088] As shown in Figure 8, another aspect of the present invention further provides a driving device, which may include a driving device body 80, a memory 81 and a processor 82. The memory 81 stores a computer program, and when the computer program is executed by the processor 82, it implements the target detection method described in any of the above embodiments.

[0089] The memory 81 and the processor 82 may be connected via a bus or other means. FIG8 exemplarily shows a structure in which the memory 81 and the processor 82 are connected via a bus and only one of the memory 81 and the processor 82 is provided.

[0090] In other embodiments, the driving device may include multiple memories 81 and multiple processors 82. The program for executing the target detection method of any of the above-described embodiments may be divided into multiple subroutines, each of which may be loaded and executed by a processor to perform different steps of the target detection method of the above-described method embodiment. Specifically, each subroutine may be stored in a different memory 81, and each processor 82 may be configured to execute the programs in one or more memories 81 to collectively implement the target detection method of the above-described method embodiment.

[0091] In some embodiments, the driving device may also be equipped with a camera, a lidar, and a millimeter-wave radar.

[0092] Thus far, the technical solutions of the present invention have been described in conjunction with the preferred embodiments shown in the accompanying drawings. However, it will be readily understood by those skilled in the art that the scope of protection of the present invention is obviously not limited to these specific embodiments. Without departing from the principles of the present invention, those skilled in the art may make equivalent changes or substitutions to the relevant technical features, and the technical solutions after such changes or substitutions will fall within the scope of protection of the present invention.

Claims

1. A target detection method, applied to a driving device, characterized in that: include: Acquire perception data of the current driving scene, wherein the perception data includes image data collected by a camera and / or point cloud data collected by a radar; Inputting the perception data into a target detection neural network model to obtain a target detection result of the current driving scene; Among them, the target detection neural network model includes multiple convolution units and restriction layers, the restriction layer is at least set at at least one of the convolution unit output ends, the convolution unit includes at least a convolution layer, the convolution unit is used to extract features from the perception data and output a feature tensor; the restriction layer is used to limit the feature value range of the feature tensor output from the output end of the convolution unit.

2. The method according to claim 1, characterized in that The restriction layer includes a preset lower limit value and a preset upper limit value, and the inputting of the perception data into the target detection neural network model to obtain the target detection result of the current driving scene includes: Based on the restriction layer, the range of all eigenvalues ​​of the feature tensor outputted from the output end of the convolution unit is limited, so that all eigenvalues ​​of the feature tensor obtained after the limitation are within a range greater than or equal to the preset lower limit value and less than or equal to the preset upper limit value.

3. The method according to claim 2, characterized in that The limiting the range of all eigenvalues ​​of the feature tensor outputted from the output end of the convolution unit based on the limiting layer includes: Obtain the eigenvalue of each element in the feature tensor, as well as the preset upper limit value and the preset lower limit value corresponding to the eigenvalue; for each element in the feature tensor, select a larger value between the eigenvalue of the element and the preset lower limit value, and select a smaller value between the larger value and the preset upper limit value as the restricted eigenvalue of the element.

4. The method according to claim 1, characterized in that: The target detection neural network model includes a plurality of convolution units arranged in cascade; When the restriction layer is arranged between two adjacent convolution units in a cascade arrangement, the restriction layer is used to limit the eigenvalue range of the feature tensor output by the preceding convolution unit in the two convolution units, and input the restricted eigenvalues ​​into the succeeding convolution unit in the two convolution units. unit.

5. The method according to claim 1, characterized in that The target detection neural network model includes a main network and at least one branch network, and the convolution unit and the restriction layer are arranged on the main network and / or the branch network of the target detection neural network.

6. The method according to claim 5, characterized in that The target detection neural network model also includes a fusion layer, which is arranged at the output end of at least one of the convolution units in the main network and / or the branch network. The fusion layer is used to fuse the output features of at least part of the parallel branch network, or the main network and the branch network to obtain a fused feature; and transmit the fused feature to the restriction layer.

7. The method according to any one of claims 1 to 6, characterized in that The convolution unit further includes a batch normalization layer arranged at the output end of the convolution layer, and the batch normalization layer is used to normalize the feature tensor outputted from the output end of the convolution layer; or, The convolution unit also includes a batch normalization layer and an activation layer which are sequentially arranged at the output end of the convolution layer, wherein the batch normalization layer is used to normalize the feature tensor outputted from the output end of the convolution layer, and the activation layer is used to perform linear or nonlinear conversion on the normalized feature tensor.

8. The method according to claim 1, characterized in that The method further comprises training the target detection neural network model by the following steps: Collecting training data of driving scenarios and labeling the training data; Constructing an initial target detection neural network model, the initial target detection neural network model includes a plurality of convolution units and a restriction layer, the restriction layer is at least arranged at an output end of at least one of the convolution units, the convolution unit includes at least a convolution layer, and the convolution unit is used to extract features from the training data and output a feature tensor; The restriction layer is used to limit the eigenvalue range of the feature tensor output by the output end of the convolution unit; Inputting the labeled training data into the initial target detection neural network model, and training the initial target detection neural network model until the initial target detection neural network model converges; The converged initial target detection neural network model is quantized to obtain the target detection neural network model.

9. The method according to claim 8, characterized in that The collecting of driving scene training data includes collecting image training data and / or point cloud training data of driving scenes in at least one of sunny days, rainy days, foggy days, haze, and snowy days.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the target detection method according to any one of claims 1 to 9 is implemented.

11. An electronic device, characterized in that: include: at least one processor; and, a memory communicatively coupled to the at least one processor; The memory stores a computer program, and when the computer program is executed by the at least one processor, the target detection method according to any one of claims 1 to 9 is implemented.

12. A driving device, characterized in that: The invention comprises a driving device body, a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the target detection method according to any one of claims 1 to 9 is implemented.

Citation Information

Patent Citations

  • Object detection method, device, apparatus, storage medium and vehicle

    CN109345510A

  • Object detection method, device and equipment and storage medium

    CN113435232A

  • Mangrove forest individual tree target detection method based on improved YOLOv5

    CN113705478A

  • Target detection method, computer readable storage medium and driving equipment

    CN115984802A

  • Cognitive searches based on deep-learning neural networks

    US20190188295A1

Cited By

  • Vehicle detection method based on visual information and point cloud information

    CN118968473A