Model training method and device, feature fusion method and device, equipment and medium

By adding initial vectors and initial points in the training of the feature fusion model, using the embedding layer to generate initial vectors and points, and training the model based on the preset loss function, the problems of large amounts of calculation and long time in the existing technology are solved, and high efficiency is achieved. Feature fusion is suitable for autonomous driving perception tasks.

CN118736341AInactive Publication Date: 2024-10-01BEIJING CO WHEELS TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310313312.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-28
Publication Date
2024-10-01
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In the existing technology, the feature fusion method that fuses the lidar sensor and the image sensor in the vehicle has a large number of features, which results in a large amount of calculation and a long calculation time, making it difficult to achieve efficient feature fusion.

Method used

By adding initial vectors and initial points during the training process of the feature fusion model, the embedding layer is used to generate the initial vectors and initial points in the top view space, and the feature fusion model is trained based on the preset loss function until the model converges and the target features are obtained. Fusion model.

Benefits of technology

It reduces the calculation amount of features to be fused, improves training efficiency, saves time, and can obtain accurate fusion features, which is suitable for autonomous driving perception tasks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118736341A_ABST
    Figure CN118736341A_ABST
Patent Text Reader

Abstract

The invention relates to a model training method and device, a feature fusion method and device, equipment and a medium. The method comprises the following steps: inputting an image sample into an image feature extraction part to obtain image features; inputting the radar point cloud sample into a laser feature extraction part to obtain a laser feature; generating a preset number of initial vectors and an initial point corresponding to each initial vector through the embedded layer; inputting the image features, the laser features, the preset number of initial vectors and all the initial points into a fusion part to obtain a preset number of target fusion vectors and a preset number of target points; and based on a preset loss function, according to a preset number of target points and reference points corresponding to the target points, training the feature fusion model until the feature fusion model converges, and obtaining a target feature fusion model. By adding the initial vector and the initial point in the training process of the feature fusion model, the calculation amount can be reduced, the training efficiency can be improved, the time can be saved, and accurate fusion features can be obtained.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of feature fusion, and in particular to a model training method, a feature fusion method, a device, a equipment and a medium. Background Art

[0002] With the continuous development of science and technology, lidar sensors and image sensors are integrated in most vehicles to complement each other's advantages and jointly provide technical support for vehicle driving.

[0003] In the prior art, the feature fusion method is to extract features from the data collected by the image sensor to obtain dense image features, extract features from the data collected by the lidar sensor to obtain lidar features, convert the dense image features to the bird's eye view (BEV) space to obtain image BEV features, fuse the image BEV features with the lidar features to obtain fused features for use by the automatic driving module and other modules in the vehicle. In the above method, due to the large number of features, the amount of calculation is large and the calculation time is long. Summary of the invention

[0004] In order to solve the above technical problems, the present disclosure provides a model training method, a feature fusion method, an apparatus, a device and a medium.

[0005] In a first aspect, the present disclosure provides a method for training a feature fusion model, wherein the feature fusion model comprises: an image feature extraction part, a laser feature extraction part, an embedding layer, and a fusion part, and the method comprises:

[0006] Inputting the image sample into the image feature extraction part to obtain the image feature;

[0007] Inputting the radar point cloud sample into the laser feature extraction part to obtain the laser feature;

[0008] Generate a preset number of initial vectors and an initial point corresponding to each initial vector in the top view space through the embedding layer;

[0009] Inputting the image features, the laser features, the preset number of initial vectors and all initial points into the fusion part to obtain the preset number of target fusion vectors and the preset number of target points;

[0010] Based on a preset loss function, the feature fusion model is trained according to the preset number of target points and reference points corresponding to the target points until the feature fusion model converges to obtain a target feature fusion model.

[0011] Optionally, the fusion part includes a fusion module, and the fusion module includes a determination unit, a fusion unit and a superposition unit;

[0012] The step of inputting the image feature, the laser feature, the preset number of initial vectors and all initial points into the fusion part to obtain the preset number of target fusion vectors and the preset number of target points includes:

[0013] For each initial point, the determination unit determines a target image feature corresponding to the initial point from the image features, and determines a target laser feature corresponding to the initial point from the laser features;

[0014] By means of the fusion unit, feature fusion is performed on the preset number of initial vectors, all target image features and all target laser features to determine the preset number of target fusion vectors and the offset corresponding to each initial point;

[0015] For each initial point, the initial point and the offset corresponding to the initial point are added together by the superposition unit to obtain a target point corresponding to the initial point.

[0016] Optionally, the fusion unit includes a first codec network structure, a second codec network structure and a prediction structure;

[0017] The method of performing feature fusion on the preset number of initial vectors, all target image features, and all target laser features through the fusion unit to determine the preset number of target fusion vectors and the offset corresponding to each initial point includes:

[0018] By using the first encoding and decoding network structure, feature fusion is performed on the preset number of initial vectors and all target image features to obtain the preset number of initial fusion vectors;

[0019] By using the second encoding and decoding network structure, feature fusion is performed on the preset number of initial fusion vectors and all target laser features to obtain the preset number of target fusion vectors;

[0020] The target fusion vector is predicted through the prediction structure to obtain the offset corresponding to each initial point.

[0021] Optionally, the fusion part includes at least two fusion modules, each fusion module has the same structure, and adjacent fusion modules are connected in series;

[0022] The step of inputting the image feature, the laser feature, the preset number of initial vectors and all initial points into the fusion part to obtain the preset number of target fusion vectors and the preset number of target points includes:

[0023] Determine the preset number of target fusion vectors output by the previous fusion module as the preset number of initial vectors, and determine the preset number of target points output by the previous fusion module as the preset number of initial points;

[0024] The image features, the laser features, the preset number of initial vectors and the preset number of initial points are input into the next fusion module until the last fusion module obtains an output result, and the output result of the last fusion module is determined as the preset number of target fusion vectors and the preset number of target points output by the fusion part.

[0025] Optionally, for each initial point, determining, by the determination unit, a target image feature corresponding to the initial point from the image feature, and determining a target laser feature corresponding to the initial point from the laser feature, comprises:

[0026] For each initial point, the determination unit projects the initial point to the space where the image feature is located according to the parameters of the image sensor to obtain a target image feature corresponding to the initial point;

[0027] For each initial point, the determination unit projects the initial point to the space where the laser feature is located according to the parameters of the laser radar sensor to obtain a target laser feature corresponding to the initial point.

[0028] In a second aspect, the present disclosure provides a feature fusion method, the method comprising:

[0029] Acquire image data and radar point cloud data, wherein the image data and the radar point cloud data are data used for feature fusion;

[0030] The image data and the radar point cloud data are input into a target feature fusion model to obtain a predicted fusion vector, wherein the target feature fusion model is trained based on the method described in the first aspect.

[0031] In a third aspect, the present disclosure provides a feature fusion model training device, wherein the feature fusion model includes: an image feature extraction part, a laser feature extraction part, an embedding layer and a fusion part, and the device includes:

[0032] A first determination module, used for inputting an image sample into the image feature extraction part to obtain image features;

[0033] A second determination module is used to input the radar point cloud sample into the laser feature extraction part to obtain the laser feature;

[0034] A generating module, used for generating a preset number of initial vectors and an initial point corresponding to each initial vector in the top view space through the embedding layer;

[0035] A third determination module is used to input the image feature, the laser feature, the preset number of initial vectors and all initial points into the fusion part to obtain the preset number of target fusion vectors and the preset number of target points;

[0036] The training module is used to train the feature fusion model based on a preset loss function according to the preset number of target points and reference points corresponding to the target points until the feature fusion model converges to obtain a target feature fusion model.

[0037] Optionally, the fusion part includes a fusion module, and the fusion module includes a determination unit, a fusion unit and a superposition unit;

[0038] The determination unit is used to determine, for each initial point, a target image feature corresponding to the initial point from the image feature, and to determine a target laser feature corresponding to the initial point from the laser feature;

[0039] The fusion unit is used to perform feature fusion on the preset number of initial vectors, all target image features and all target laser features, and determine the preset number of target fusion vectors and the offset corresponding to each initial point;

[0040] The superposition unit is used to add the initial point and the offset corresponding to the initial point for each initial point to obtain the target point corresponding to the initial point.

[0041] Optionally, the fusion unit includes a first codec network structure, a second codec network structure and a prediction structure;

[0042] The first encoding and decoding network structure is used to perform feature fusion on the preset number of initial vectors and all target image features to obtain the preset number of initial fusion vectors;

[0043] The second encoding and decoding network structure is used to perform feature fusion on the preset number of initial fusion vectors and all target laser features to obtain the preset number of target fusion vectors;

[0044] The prediction structure is used to predict the target fusion vector to obtain the offset corresponding to each initial point.

[0045] Optionally, the fusion part includes at least two fusion modules, each fusion module has the same structure, and adjacent fusion modules are connected in series;

[0046] The third determination module is specifically used for:

[0047] Determine the preset number of target fusion vectors output by the previous fusion module as the preset number of initial vectors, and determine the preset number of target points output by the previous fusion module as the preset number of initial points;

[0048] The image features, the laser features, the preset number of initial vectors and the preset number of initial points are input into the next fusion module until the last fusion module obtains an output result, and the output result of the last fusion module is determined as the preset number of target fusion vectors and the preset number of target points output by the fusion part.

[0049] Optionally, determine the unit, specifically for:

[0050] For each initial point, the determination unit projects the initial point to the space where the image feature is located according to the parameters of the image sensor to obtain a target image feature corresponding to the initial point;

[0051] For each initial point, the determination unit projects the initial point to the space where the laser feature is located according to the parameters of the laser radar sensor to obtain a target laser feature corresponding to the initial point.

[0052] In a fourth aspect, the present disclosure provides a feature fusion device, the device comprising:

[0053] An acquisition module, used for acquiring image data and radar point cloud data, wherein the image data and the radar point cloud data are data for feature fusion;

[0054] The fourth determination module is used to input the image data and the radar point cloud data into a target feature fusion model to obtain a predicted fusion vector, wherein the target feature fusion model is trained based on the method described in the first aspect.

[0055] In a fifth aspect, the present disclosure further provides an electronic device, including:

[0056] one or more processors;

[0057] a storage device for storing one or more programs,

[0058] When the one or more programs are executed by the one or more processors, the one or more processors implement the feature fusion model training method described in the first aspect, or the feature fusion method described in the second aspect.

[0059] In a sixth aspect, the present disclosure further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the feature fusion model training method as described in the first aspect, or the feature fusion method as described in the second aspect.

[0060] The technical solution provided by the embodiment of the present disclosure has the following advantages compared with the prior art: inputting image samples into the image feature extraction part to obtain image features; inputting radar point cloud samples into the laser feature extraction part to obtain laser features; generating a preset number of initial vectors and initial points corresponding to each initial vector in the overhead view space through the embedding layer; inputting image features, laser features, a preset number of initial vectors and all initial points into the fusion part to obtain a preset number of target fusion vectors and a preset number of target points; based on a preset loss function, training the feature fusion model according to a preset number of target points and reference points corresponding to the target points until the feature fusion model converges to obtain a target feature fusion model. In the above technical solution, by adding initial vectors and initial points in the feature fusion model training process, and training the feature fusion model through initial vectors, initial points, image samples and radar point cloud samples, the calculation amount of the features to be fused can be reduced, the training efficiency can be improved, time can be saved, and accurate fusion features can be obtained. BRIEF DESCRIPTION OF THE DRAWINGS

[0061] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0062] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0063] Figure 1 It is a flowchart of a feature fusion model training method provided by an embodiment of the present disclosure;

[0064] Figure 2 is a schematic diagram of a feature fusion model training process provided by an embodiment of the present disclosure;

[0065] Figure 3 is a flowchart of a feature fusion method provided by an embodiment of the present disclosure;

[0066] Figure 4 It is a structural schematic diagram of a feature fusion model training device provided by an embodiment of the present disclosure;

[0067] Figure 5 is a structural schematic diagram of a feature fusion device provided by an embodiment of the present disclosure;

[0068] Figure 6 It is a structural schematic diagram of an electronic device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION

[0069] In order to more clearly understand the above-mentioned objectives, features and advantages of the present disclosure, the scheme of the present disclosure will be further described below. It should be noted that the embodiments of the present disclosure and the features in the embodiments can be combined with each other without conflict.

[0070] In the following description, many specific details are set forth to facilitate a full understanding of the present disclosure, but the present disclosure may also be implemented in other ways different from those described herein; it is obvious that the embodiments in the specification are only part of the embodiments of the present disclosure, rather than all of the embodiments.

[0071] Figure 1 : is a flowchart of a feature fusion model training method provided by an embodiment of the present disclosure. This embodiment can be used to illustrate the training process of the feature fusion model. The method of this embodiment can be executed by a feature fusion model training device, which can be implemented in hardware / or software and can be configured in an electronic device; wherein the electronic device may include a computer, a terminal device, etc. Figure 1 As shown, the method specifically includes the following:

[0072] S110, inputting the image sample into the image feature extraction part to obtain the image feature.

[0073] Among them, the feature fusion model includes: an image feature extraction part, a laser feature extraction part, an embedding layer and a fusion part. Image samples can be understood as data collected in advance by image sensors (such as cameras, cameras, etc.). Image sensors can be deployed in vehicles. This embodiment does not specifically limit the number and deployment location of image sensors. The image feature extraction part is used to extract features from image samples. It can use network structures such as convolutional neural networks, feedforward neural networks or recursive neural networks, which are not limited here.

[0074] The pre-collected image samples are input into the image feature extraction part of the feature fusion model. The image features corresponding to the image samples can be obtained by performing feature extraction on the image samples through the image feature extraction part.

[0075] S120, inputting the radar point cloud sample into the laser feature extraction part to obtain the laser feature.

[0076] Among them, radar point cloud samples can be understood as data collected in advance by laser radar sensors. Laser radar sensors can be deployed in vehicles. This embodiment does not specifically limit the number and deployment location of laser radar sensors. The laser feature extraction part is used to extract features from radar point cloud samples. It can use network structures such as semi-clustering and generative adversarial networks, or can be implemented by methods based on curvature, surface mesh extraction, or polygon regularization. This embodiment does not limit it.

[0077] Specifically, the pre-collected radar point cloud samples are input into the laser feature extraction part of the feature fusion model, and the laser feature extraction part performs feature extraction on the radar point cloud samples to obtain the laser features corresponding to the radar point cloud samples.

[0078] S130, generating a preset number of initial vectors and an initial point corresponding to each initial vector in the bird's-eye view space through the embedding layer.

[0079] The top view space is the space under the top view (also called bird's-eye view) perspective. The preset number may be a predetermined number, such as 100, or may be determined according to specific circumstances, which is not limited in this embodiment.

[0080] Specifically, in the BEV space, feature information of different perspectives, different time series (frames), and different modalities (sensors) can be fused to output more accurate BEV space features, thereby better achieving autonomous driving perception tasks and providing better services for vehicles. In addition, the image features obtained in S110 and the laser features obtained in S120 contain a large number of feature quantities, so the amount of calculation in the model training process is also large. Based on this, this embodiment generates a preset number of initial vectors in the top view space through the embedding layer, and the initial vectors can be randomly generated. After the initial vectors are generated, the three-dimensional coordinates corresponding to each initial vector in the BEV space are obtained, and the three-dimensional coordinates are the initial points.

[0081] S140, inputting the image features, laser features, a preset number of initial vectors and all initial points into the fusion part to obtain a preset number of target fusion vectors and a preset number of target points.

[0082] Among them, the target point can be understood as the point obtained by updating the initial point through the fusion part.

[0083] Specifically, after obtaining a preset number of initial vectors and the initial points corresponding to each initial vector, the image features, laser features, the preset number of initial vectors and all the initial points are input into the fusion part of the feature fusion model, and the features corresponding to each initial point in the image features and the features corresponding to each initial point in the laser features are obtained through the fusion part. Then, by fusing these features with the preset number of initial vectors, the preset number of target fusion vectors can be obtained, thereby reducing the workload of the fusion part. At the same time, the preset number of target points can also be obtained through the fusion part.

[0084] S150, based on a preset loss function, the feature fusion model is trained according to a preset number of target points and reference points corresponding to the target points until the feature fusion model converges to obtain a target feature fusion model.

[0085] Among them, the preset loss function can be a cosine loss function, a connectionist temporal classification (CTC) loss function, a multi-classification cross entropy loss function, and a mean square loss function, etc. The loss function can be determined according to actual use requirements, and the embodiment of the present disclosure does not limit it. The reference point can be understood as the true value point corresponding to the target point in the BEV space.

[0086] Specifically, the preset loss function is a measure of whether the feature fusion model is trained properly, thereby effectively ensuring that the trained feature fusion model has a fusion result with high accuracy. Since the target point corresponds to the initial point, both are predicted by the feature fusion model, and there may be a certain error with the true value point. Therefore, for a preset number of target points, the loss value between each target point and the reference point corresponding to the target point can be calculated by the preset loss function, and the accuracy of the feature fusion model can be verified by the loss value. When the accuracy does not meet the preset standard, the parameters of the feature fusion model are adjusted until the feature fusion model converges to obtain the target feature fusion model (i.e., the trained feature fusion model) to train a feature fusion model with high accuracy.

[0087] In this embodiment, image samples are input into the image feature extraction part to obtain image features; radar point cloud samples are input into the laser feature extraction part to obtain laser features; a preset number of initial vectors and initial points corresponding to each initial vector are generated in the overhead view space through the embedding layer; image features, laser features, a preset number of initial vectors and all initial points are input into the fusion part to obtain a preset number of target fusion vectors and a preset number of target points; based on a preset loss function, the feature fusion model is trained according to the preset number of target points and the reference points corresponding to the target points until the feature fusion model converges to obtain a target feature fusion model. In the above technical solution, by adding initial vectors and initial points in the feature fusion model training process, the feature fusion model is trained by the initial vectors, initial points, image samples and radar point cloud samples, which can reduce the calculation amount of the features to be fused, improve the training efficiency, save time, and facilitate obtaining accurate fusion features.

[0088] For example, Figure 2 FIG. 1 is a schematic diagram of a feature fusion model training process provided by an embodiment of the present disclosure. Figure 2 As shown, the feature fusion model includes: an image feature extraction part, a laser feature extraction part, an embedding layer and a fusion part. The functions of these parts and the training process of the feature fusion model have been described in detail in the above S110-S150. In order to avoid repetition, they will not be repeated here.

[0089] In some embodiments, optionally, the fusion part includes a fusion module, and the fusion module includes a determination unit, a fusion unit, and a superposition unit;

[0090] The image features, laser features, a preset number of initial vectors and all initial points are input into the fusion part to obtain a preset number of target fusion vectors and a preset number of target points, including:

[0091] For each initial point, a determination unit determines a target image feature corresponding to the initial point from the image features, and determines a target laser feature corresponding to the initial point from the laser features;

[0092] By means of a fusion unit, a preset number of initial vectors, all target image features and all target laser features are subjected to feature fusion to determine a preset number of target fusion vectors and an offset corresponding to each initial point;

[0093] For each initial point, the initial point and the offset corresponding to the initial point are added together by a superposition unit to obtain the target point corresponding to the initial point.

[0094] Specifically, when the fusion part includes only one fusion module, for each initial point, the determination unit of the fusion module can determine the target image feature corresponding to the initial point from the image feature according to the mapping relationship obtained by the three-dimensional coordinates of the initial point and the image sensor calibration, and can determine the target laser feature corresponding to the initial point from the laser feature according to the mapping relationship obtained by the three-dimensional coordinates of the initial point and the laser radar sensor calibration, thereby obtaining a preset number of target image features and a preset number of target laser features. Then, by performing feature fusion on the preset number of initial vectors, all target image features, and all target laser features through the fusion unit, a preset number of target fusion vectors can be determined, and the target fusion vectors can be predicted to obtain the offset corresponding to each initial point. After obtaining the offset corresponding to each initial point, each initial point is added to the offset corresponding to the initial point through the superposition unit, so that the target point corresponding to the initial point can be obtained.

[0095] In this embodiment, the target image features and target laser features corresponding to each initial point are determined by the determination unit included in the fusion module, and then the initial vector, all target image features and all target laser features are fused by the fusion unit included in the fusion module, which can significantly reduce the number of features to be fused, thereby reducing the workload and improving efficiency. The target point calculated by the offset and the initial point is also more accurate.

[0096] In some embodiments, optionally, the fusion unit includes a first codec network structure, a second codec network structure, and a prediction structure;

[0097] Through the fusion unit, a preset number of initial vectors, all target image features, and all target laser features are feature fused to determine a preset number of target fusion vectors and an offset corresponding to each initial point, including:

[0098] By using the first encoding and decoding network structure, a preset number of initial vectors and all target image features are subjected to feature fusion to obtain a preset number of initial fusion vectors;

[0099] Through the second encoding and decoding network structure, a preset number of initial fusion vectors and all target laser features are feature fused to obtain a preset number of target fusion vectors;

[0100] Through the prediction structure, the target fusion vector is predicted to obtain the offset corresponding to each initial point.

[0101] The first codec network structure and the second codec network structure may adopt a network structure having an encoder and a decoder, such as a Transformer structure, a U-net structure, or a SegNet structure, which is not limited in this embodiment. The prediction structure may adopt a structure including a least squares method or an iterative algorithm, and may also adopt a regression network structure, a convolutional layer, or a regression layer, which is not limited in this embodiment.

[0102] Specifically, the preset number of initial vectors and all target image features are firstly fused through the first codec network structure to obtain the preset number of initial fusion vectors. Then, the preset number of initial fusion vectors and all target laser features are fused through the second codec network structure to obtain the preset number of target fusion vectors. Since the first codec network structure and the second codec network structure can greatly speed up the network training and reasoning time, and can more effectively improve the accuracy of various tasks, they are currently widely used in computer vision-related tasks, and have achieved quite good results in multiple tasks. After obtaining the target fusion vector, the target fusion vector is predicted through a prediction structure, such as a structure including a least squares method or an iterative algorithm, a regression network structure, a convolutional layer or a regression layer, etc., to obtain the offset corresponding to each initial point.

[0103] In this embodiment, a preset number of target fusion vectors and an offset corresponding to each initial point are obtained through the first codec network structure, the second codec network structure and the prediction structure, which is not only fast but also can effectively improve the accuracy of the training task.

[0104] In some embodiments, optionally, the fusion part includes at least two fusion modules, each fusion module has the same structure, and adjacent fusion modules are connected in series;

[0105] The image features, laser features, a preset number of initial vectors and all initial points are input into the fusion part to obtain a preset number of target fusion vectors and a preset number of target points, including:

[0106] Determine a preset number of target fusion vectors output by a previous fusion module as a preset number of initial vectors, and determine a preset number of target points output by a previous fusion module as a preset number of initial points;

[0107] The image features, laser features, a preset number of initial vectors and a preset number of initial points are input into the next fusion module until the last fusion module obtains the output result, and the output result of the last fusion module is determined as the preset number of target fusion vectors and the preset number of target points output by the fusion part.

[0108] Specifically, when the fusion part includes at least two fusion modules, adjacent fusion modules are connected in series, and each fusion module has the same structure. Each fusion module is used to perform feature fusion. After the previous fusion module obtains the output result, the preset number of target fusion vectors output by the previous fusion module is determined as the preset number of initial vectors, and the preset number of target points output by the previous fusion module is determined as the preset number of initial points. Then the image features, laser features, the preset number of initial vectors (i.e., the preset number of target fusion vectors output by the previous fusion module) and the preset number of initial points (i.e., the preset number of target points output by the previous fusion module) are used as the input of the next fusion module, and input to the next fusion module, and so on, until the last fusion module obtains the output result, and the output result of the last fusion module is determined as the preset number of target fusion vectors and the preset number of target points output by the fusion part.

[0109] In this embodiment, at least two iterations of the at least two fusion modules are used to train a feature fusion model with high accuracy, thereby improving the accuracy of the model.

[0110] In some embodiments, optionally, for each initial point, determining, by a determination unit, a target image feature corresponding to the initial point from the image feature, and determining a target laser feature corresponding to the initial point from the laser feature, includes:

[0111] For each initial point, the determination unit projects the initial point to the space where the image feature is located according to the parameters of the image sensor to obtain the target image feature corresponding to the initial point;

[0112] For each initial point, the determination unit projects the initial point to the space where the laser feature is located according to the parameters of the laser radar sensor, and obtains the target laser feature corresponding to the initial point.

[0113] Among them, the parameters of the image sensor include intrinsic parameters and extrinsic parameters. Intrinsic parameters are parameters related to the characteristics of the image sensor itself, such as the focal length and pixel size of the camera; the extrinsic parameters of the image sensor are parameters in the world coordinate system, such as the position and rotation direction of the image sensor. Image sensor calibration can be understood as: given the world coordinates and pixel coordinates of the calibration control points, the mapping relationship is calculated. The world coordinates are artificially defined. The parameters of the lidar sensor mainly refer to its extrinsic parameters, namely: three rotation parameters and three translation parameters. The calibration of the lidar extrinsic parameters can be understood as solving the relative transformation relationship between the lidar measurement coordinate system and the measurement coordinate systems of other sensors, that is, the rotation and translation transformation matrix.

[0114] Specifically, for each initial point, the determination unit projects the initial point to the space where the image feature is located according to the parameters of the image sensor and the mapping relationship obtained by the image sensor calibration, so that the target image feature corresponding to the initial point can be obtained. And for each initial point, the determination unit projects the initial point to the space where the laser feature is located according to the parameters of the laser radar sensor and the relative transformation relationship obtained by the laser radar sensor calibration, so that the target laser feature corresponding to the initial point can be obtained.

[0115] In this embodiment, the target image features and target laser features corresponding to the initial point are obtained through the above process, which facilitates the subsequent feature fusion of a preset number of initial vectors, all target image features and all target laser features, thereby accelerating the model training process.

[0116] Figure 3 is a flowchart of a feature fusion method provided by an embodiment of the present disclosure. This embodiment can be used to illustrate the process of feature fusion of data to be fused. The method of this embodiment can be executed by a feature fusion device, which can be implemented in hardware or software and can be configured in an electronic device; wherein the electronic device may include a computer, a terminal device, etc. Figure 3 As shown, the method specifically includes the following:

[0117] S310, acquiring image data and radar point cloud data.

[0118] Among them, image data and radar point cloud data are data used for feature fusion.

[0119] Specifically, the image data collected by the image sensor and the radar point cloud data collected by the laser radar sensor are obtained. These two types of data are the data that need to be feature fused. Fusion here refers to fusing these two different types of data.

[0120] S320, input the image data and the radar point cloud data into the target feature fusion model to obtain a predicted fusion vector.

[0121] Among them, the target feature fusion model is trained based on the feature fusion model training method described in any embodiment.

[0122] By inputting the acquired image data and radar point cloud data into the trained feature fusion model (i.e., target feature fusion model), a predicted fusion vector can be obtained. The fusion vector is the feature fusion result of the image data and radar point cloud data.

[0123] In this embodiment, image data and radar point cloud data are obtained; the image data and radar point cloud data are input into the target feature fusion model to obtain a predicted fusion vector. In the above technical solution, since the feature fusion model adds initial vectors and initial points during the training process, it can reduce the amount of calculation, improve training efficiency, and save time. Therefore, through the trained feature fusion model, the predicted fusion vector can be quickly obtained with high accuracy.

[0124] Figure 4 : is a structural diagram of a feature fusion model training device provided in an embodiment of the present disclosure; the device is configured in an electronic device and can implement the feature fusion model training method described in any embodiment of the present application. The device specifically includes the following:

[0125] A first determination module 410 is used to input the image sample into the image feature extraction part to obtain image features;

[0126] A second determination module 420 is used to input the radar point cloud sample into the laser feature extraction part to obtain the laser feature;

[0127] A generating module 430, configured to generate a preset number of initial vectors and an initial point corresponding to each initial vector in a bird's-eye view space through the embedding layer;

[0128] A third determination module 440 is used to input the image feature, the laser feature, the preset number of initial vectors and all initial points into the fusion part to obtain the preset number of target fusion vectors and the preset number of target points;

[0129] The training module 450 is used to train the feature fusion model based on a preset loss function according to the preset number of target points and reference points corresponding to the target points until the feature fusion model converges to obtain a target feature fusion model.

[0130] In this embodiment, optionally, the fusion part includes a fusion module, and the fusion module includes a determination unit, a fusion unit and a superposition unit;

[0131] The determination unit is used to determine, for each initial point, a target image feature corresponding to the initial point from the image feature, and to determine a target laser feature corresponding to the initial point from the laser feature;

[0132] The fusion unit is used to perform feature fusion on the preset number of initial vectors, all target image features and all target laser features, and determine the preset number of target fusion vectors and the offset corresponding to each initial point;

[0133] The superposition unit is used to add the initial point and the offset corresponding to the initial point for each initial point to obtain the target point corresponding to the initial point.

[0134] In this embodiment, optionally, the fusion unit includes a first codec network structure, a second codec network structure, and a prediction structure;

[0135] The first encoding and decoding network structure is used to perform feature fusion on the preset number of initial vectors and all target image features to obtain the preset number of initial fusion vectors;

[0136] The second encoding and decoding network structure is used to perform feature fusion on the preset number of initial fusion vectors and all target laser features to obtain the preset number of target fusion vectors;

[0137] The prediction structure is used to predict the target fusion vector to obtain the offset corresponding to each initial point.

[0138] In this embodiment, optionally, the fusion part includes at least two fusion modules, each fusion module has the same structure, and adjacent fusion modules are connected in series;

[0139] The third determination module is specifically used for:

[0140] Determine the preset number of target fusion vectors output by the previous fusion module as the preset number of initial vectors, and determine the preset number of target points output by the previous fusion module as the preset number of initial points;

[0141] The image features, the laser features, the preset number of initial vectors and the preset number of initial points are input into the next fusion module until the last fusion module obtains an output result, and the output result of the last fusion module is determined as the preset number of target fusion vectors and the preset number of target points output by the fusion part.

[0142] In this embodiment, optionally, the determining unit is specifically configured to:

[0143] For each initial point, the determination unit projects the initial point to the space where the image feature is located according to the parameters of the image sensor to obtain a target image feature corresponding to the initial point;

[0144] For each initial point, the determination unit projects the initial point to the space where the laser feature is located according to the parameters of the laser radar sensor to obtain a target laser feature corresponding to the initial point.

[0145] Through the feature fusion model training device provided by the embodiment of the present disclosure, image samples are input into the image feature extraction part to obtain image features; radar point cloud samples are input into the laser feature extraction part to obtain laser features; a preset number of initial vectors and initial points corresponding to each initial vector are generated in the overhead view space through the embedding layer; image features, laser features, a preset number of initial vectors and all initial points are input into the fusion part to obtain a preset number of target fusion vectors and a preset number of target points; based on a preset loss function, the feature fusion model is trained according to a preset number of target points and reference points corresponding to the target points until the feature fusion model converges to obtain a target feature fusion model. In the above technical scheme, by adding initial vectors and initial points in the feature fusion model training process, the feature fusion model is trained by the initial vectors, initial points, image samples and radar point cloud samples, which can reduce the calculation amount of the features to be fused, improve training efficiency, save time, and facilitate obtaining accurate fusion features.

[0146] The feature fusion model training device provided in the embodiments of the present disclosure can execute the feature fusion model training method provided in any embodiment of the present disclosure, and has the corresponding functional modules and beneficial effects of the execution method.

[0147] Figure 5 : is a structural diagram of a feature fusion device provided in an embodiment of the present disclosure; the device is configured in an electronic device and can implement the feature fusion method described in any embodiment of the present application. The device specifically includes the following:

[0148] An acquisition module 510, used for acquiring image data and radar point cloud data, wherein the image data and the radar point cloud data are data for feature fusion;

[0149] The fourth determination module 520 is used to input the image data and the radar point cloud data into the target feature fusion model to obtain a predicted fusion vector, wherein the target feature fusion model is trained based on the feature fusion model training method described in any embodiment.

[0150] Through the feature fusion device provided by the embodiment of the present disclosure, image data and radar point cloud data are obtained; the image data and radar point cloud data are input into the target feature fusion model to obtain a predicted fusion vector. In the above technical scheme, since the feature fusion model adds initial vectors and initial points during the training process, it can reduce the amount of calculation, improve training efficiency, and save time. Therefore, through the trained feature fusion model, the predicted fusion vector can be quickly obtained with high accuracy.

[0151] The feature fusion device provided in the embodiments of the present disclosure can execute the feature fusion method provided in any embodiment of the present disclosure, and has the corresponding functional modules and beneficial effects of the execution method.

[0152] Figure 6 Schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure. Figure 6 As shown, the electronic device includes a processor 610 and a storage device 620; the number of the processor 610 in the electronic device can be one or more. Figure 6 A processor 610 is taken as an example; the processor 610 and the storage device 620 in the electronic device can be connected via a bus or other means. Figure 6 The example of connecting through bus is taken in the following.

[0153] The storage device 620, as a computer-readable storage medium, can be used to store software programs, computer executable programs and modules, such as the feature fusion model training method in the embodiment of the present disclosure, or the program instructions / modules corresponding to the feature fusion method. The processor 610 executes various functional applications and data processing of the electronic device by running the software programs, instructions and modules stored in the storage device 620, that is, implements the feature fusion model training method or feature fusion method provided in the embodiment of the present disclosure.

[0154] The storage device 620 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system and at least one application required for a function; the data storage area may store data created according to the use of the terminal, etc. In addition, the storage device 620 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some instances, the storage device 620 may further include a memory remotely arranged relative to the processor 610, and these remote memories may be connected to the electronic device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0155] An electronic device provided in this embodiment can be used to execute the feature fusion model training method or feature fusion method provided in any of the above embodiments, and has corresponding functions and beneficial effects.

[0156] The embodiments of the present disclosure also provide a storage medium containing computer executable instructions, which, when executed by a computer processor, are used to implement the feature fusion model training method or feature fusion method provided in the embodiments of the present disclosure.

[0157] Of course, the storage medium containing computer executable instructions provided by the embodiments of the present disclosure is not limited to the method operations described above, and can also execute the feature fusion model training method provided by any embodiment of the present disclosure, or related operations in the feature fusion method.

[0158] Through the above description of the implementation methods, the technical personnel in the relevant field can clearly understand that the present disclosure can be implemented by means of software and necessary general hardware, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present disclosure can be essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as a computer floppy disk, read-only memory (ROM), random access memory (RAM), flash memory (FLASH), hard disk or optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, server, or network device, etc.) to execute the methods described in each embodiment of the present disclosure.

[0159] It is worth noting that in the embodiments of the above-mentioned feature fusion model training device and feature fusion device, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present disclosure.

[0160] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0161] The above description is only a specific embodiment of the present disclosure, so that those skilled in the art can understand or implement the present disclosure. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present disclosure. Therefore, the present disclosure will not be limited to the embodiments described herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A feature fusion model training method, characterized in that: The feature fusion model includes: an image feature extraction part, a laser feature extraction part, an embedding layer and a fusion part, and the method includes: Inputting the image sample into the image feature extraction part to obtain the image feature; Inputting the radar point cloud sample into the laser feature extraction part to obtain the laser feature; Generate a preset number of initial vectors and an initial point corresponding to each initial vector in the top view space through the embedding layer; Inputting the image features, the laser features, the preset number of initial vectors and all initial points into the fusion part to obtain the preset number of target fusion vectors and the preset number of target points; Based on a preset loss function, the feature fusion model is trained according to the preset number of target points and reference points corresponding to the target points until the feature fusion model converges to obtain a target feature fusion model.

2. The method according to claim 1, characterized in that The fusion part includes a fusion module, and the fusion module includes a determination unit, a fusion unit and a superposition unit; The step of inputting the image feature, the laser feature, the preset number of initial vectors and all initial points into the fusion part to obtain the preset number of target fusion vectors and the preset number of target points includes: For each initial point, the determination unit determines a target image feature corresponding to the initial point from the image features, and determines a target laser feature corresponding to the initial point from the laser features; By means of the fusion unit, feature fusion is performed on the preset number of initial vectors, all target image features and all target laser features to determine the preset number of target fusion vectors and the offset corresponding to each initial point; For each initial point, the initial point and the offset corresponding to the initial point are added together by the superposition unit to obtain a target point corresponding to the initial point.

3. The method according to claim 2, characterized in that The fusion unit includes a first codec network structure, a second codec network structure and a prediction structure; The method of performing feature fusion on the preset number of initial vectors, all target image features, and all target laser features through the fusion unit to determine the preset number of target fusion vectors and the offset corresponding to each initial point includes: By using the first encoding and decoding network structure, feature fusion is performed on the preset number of initial vectors and all target image features to obtain the preset number of initial fusion vectors; By using the second encoding and decoding network structure, feature fusion is performed on the preset number of initial fusion vectors and all target laser features to obtain the preset number of target fusion vectors; The target fusion vector is predicted through the prediction structure to obtain the offset corresponding to each initial point.

4. The method according to claim 2, characterized in that: The fusion part includes at least two fusion modules, each fusion module has the same structure, and adjacent fusion modules are connected in series; The step of inputting the image feature, the laser feature, the preset number of initial vectors and all initial points into the fusion part to obtain the preset number of target fusion vectors and the preset number of target points includes: Determine the preset number of target fusion vectors output by the previous fusion module as the preset number of initial vectors, and determine the preset number of target points output by the previous fusion module as the preset number of initial points; The image features, the laser features, the preset number of initial vectors and the preset number of initial points are input into the next fusion module until the last fusion module obtains an output result, and the output result of the last fusion module is determined as the preset number of target fusion vectors and the preset number of target points output by the fusion part.

5. The method according to claim 2, characterized in that: For each initial point, determining, by the determination unit, a target image feature corresponding to the initial point from the image feature, and determining a target laser feature corresponding to the initial point from the laser feature, comprises: For each initial point, the determination unit projects the initial point to the space where the image feature is located according to the parameters of the image sensor to obtain a target image feature corresponding to the initial point; For each initial point, the determination unit projects the initial point to the space where the laser feature is located according to the parameters of the laser radar sensor to obtain a target laser feature corresponding to the initial point.

6. A feature fusion method, characterized in that: include: Acquire image data and radar point cloud data, wherein the image data and the radar point cloud data are data used for feature fusion; The image data and the radar point cloud data are input into a target feature fusion model to obtain a predicted fusion vector, wherein the target feature fusion model is trained based on the method according to any one of claims 1 to 5.

7. A feature fusion model training device, characterized in that: The feature fusion model includes: an image feature extraction part, a laser feature extraction part, an embedding layer and a fusion part, and the device includes: A first determination module, used for inputting an image sample into the image feature extraction part to obtain image features; A second determination module is used to input the radar point cloud sample into the laser feature extraction part to obtain the laser feature; A generating module, used for generating a preset number of initial vectors and an initial point corresponding to each initial vector in a bird's-eye view space through the embedding layer; A third determination module is used to input the image feature, the laser feature, the preset number of initial vectors and all initial points into the fusion part to obtain the preset number of target fusion vectors and the preset number of target points; The training module is used to train the feature fusion model based on a preset loss function according to the preset number of target points and reference points corresponding to the target points until the feature fusion model converges to obtain a target feature fusion model.

8. A feature fusion device, characterized in that: The device comprises: An acquisition module, used for acquiring image data and radar point cloud data, wherein the image data and the radar point cloud data are data for feature fusion; The fourth determination module is used to input the image data and the radar point cloud data into a target feature fusion model to obtain a predicted fusion vector, wherein the target feature fusion model is trained based on the method described in any one of claims 1 to 5.

9. An electronic device, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method as claimed in any one of claims 1 to 5 or claim 6.

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

Citation Information

Patent Citations

  • Feature fusion method of point cloud data and image data and related device

    CN114723793A

  • Method and apparatus for generating point cloud encoder,method and apparatus for generating point cloud data, electronic device and computer storage medium

    WO2022219384A1