Unmanned driving perception method and system, vehicle and computer readable storage medium

By performing feature encoding and visual-language large model processing on input images in autonomous driving technology, combined with the Transformer decoder, the problem of low accuracy of large model structured perception results in autonomous driving scenarios is solved, and high-precision perception results are achieved output and reduce computational costs.

CN118606504APending Publication Date: 2024-09-06CHONGQING CHANGAN TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410656238.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-24
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

In existing autonomous driving technology, the accuracy of structured perception results of large models in autonomous driving scenarios is low, and there is a lack of structured annotation data of sufficient scale, making it difficult to combine large language models with autonomous driving technology.

Method used

By encoding the image features of the input image, and using a large visual-language model to process the image and natural language prompt sentences, combined with the Transformer decoder to predict the perception task, and output the perception results, the perception results can be improved without large-scale structured data training. Accuracy.

Benefits of technology

Without the need to retrain or fine-tune the large model, the accuracy of the structured perception results of the large model in the unmanned driving scenario is improved, the computing cost is reduced, and more accurate information is provided for subsequent planning and control modules.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118606504A
    Figure CN118606504A
Patent Text Reader

Abstract

The invention discloses an unmanned driving perception method and system, a vehicle and a computer readable storage medium, and the method comprises the steps: carrying out the image feature coding of an input image, and obtaining a first query set; acquiring a local image of the input image, and respectively acquiring natural language prompt statements corresponding to the input image and the local image; inputting the obtained natural language prompt statement and the corresponding image into a vision-language large model to obtain a natural language output result; performing feature coding and perception on the natural language output result to obtain a feature vector and a position code, and obtaining a second query set according to the feature vector and the position code; and querying image features of the input image according to the first query set and the second query set, performing perception task prediction based on a Transform decoder, and outputting a perception result. According to the invention, the precision of the structured sensing result of the large model under the unmanned driving scene is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of unmanned driving technology, and in particular to unmanned driving perception methods, systems, vehicles and computer-readable storage media. Background Art

[0002] Perception is one of the most critical links in the field of autonomous driving. Perception results with high accuracy, high robustness, and high generalization ability are the basis for subsequent prediction, planning, control and other links. Among the sensor categories used by autonomous vehicles, cameras are cheaper than sensors such as lidar and millimeter-wave radar, and have richer semantic information such as color texture. Therefore, multi-view cameras are the most commonly used input modality in autonomous driving perception. At present, autonomous driving perception algorithms based on deep learning usually take sensor information as input, and after being processed by neural networks, formatted perception results are obtained: for example, in 3D object detection tasks, the output is formatted into various parameters, categories and confidences of three-dimensional bounding boxes; in bird's-eye view (BEV) semantic segmentation tasks, the output is formatted into a pixel-level map matrix of the bird's-eye view; in occupancy grid prediction tasks, the output is formatted into a voxel matrix of occupancy prediction.

[0003] The formatted output has the following advantages: first, the formatted output is often directly bound to the spatial coordinates and has relatively accurate positioning information; second, the formatted output can often directly obtain quantifiable evaluation indicators through mathematical calculations; finally, the formatted output is easy for computer programs to understand, and subsequent prediction, planning, control and other algorithm modules usually require formatted perception results as input. If you want a neural network model to be able to output in a formatted way, you must give formatted annotations during training. For example, when training a 3D target detection model, you first need to collect a certain amount of data, and then annotate the data with bounding boxes and categories, which is often a very labor-intensive and financially intensive task. The cost of BEV semantic segmentation annotation and occupancy grid annotation, which are grid-by-grid annotation, is even higher. At present, the authenticity of simulation technology is still poor, and it is difficult to migrate from a simulated environment to a real environment. The collection and annotation of real data are also subject to cost constraints. Therefore, the existing unmanned driving data sets are often limited in scale.

[0004] Existing research applies large language models and visual language models to the field of autonomous driving perception. However, the difficulty in formatting output has become a key bottleneck in the combination of large language models and visual language models with autonomous driving technology. Since the output of large language models is natural language, which can only be understood by human drivers, the downstream planning and control systems of autonomous driving cannot currently work based on the perception results described in natural language. In the absence of structured annotated data of sufficient scale, these large language models and visual language models cannot obtain accurate structured perception results.

[0005] Therefore, the prior art still needs to be improved and developed. Summary of the invention

[0006] The main purpose of this application is to provide an unmanned driving perception method, system, vehicle and computer-readable storage medium, aiming to solve the problem of low accuracy of structured perception results of large models in unmanned driving scenarios in the prior art.

[0007] The first aspect of the present application provides an unmanned driving perception method, comprising the following steps: performing image feature encoding on an input image to obtain a first query set; obtaining a local image of the input image, and respectively obtaining natural language prompt sentences corresponding to the input image and the local image; inputting the obtained natural language prompt sentences and the corresponding images into a large visual-language model to obtain a natural language output result; performing feature encoding and perception on the natural language output result to obtain a feature vector and a position encoding, and obtaining a second query set based on the feature vector and the position encoding; querying the image features of the input image based on the first query set and the second query set, and performing perception task prediction based on the Transformer decoder to output a perception result; wherein the perception task includes: any one of 3D target detection and tracking, BEV view semantic segmentation, and occupancy grid prediction.

[0008] According to the above-mentioned technical means, the embodiment of the present application encodes the image features of the input image through the 3D perception model, and processes the image and natural language prompt sentences through the visual-language large model. The visual language model can be combined with the traditional 3D perception model to achieve the improvement of the accuracy of the structured perception results of the large model in the unmanned driving scenario without consuming a lot of computing resources to retrain or fine-tune the large model in the absence of large-scale structured data, and only utilizes the generalization ability of the existing large model.

[0009] Optionally, in one embodiment of the present application, the image feature encoding of the input image to obtain the first query set specifically includes: using a 2D convolutional backbone network to perform image feature encoding on the input image to obtain image coding features; mapping the image coding features based on a Transformer encoder or a perspective conversion network of depth estimation and projection to obtain the first query set.

[0010] According to the above-mentioned technical means, the embodiment of the present application encodes the image features of the input image through a 2D convolutional backbone network to obtain the image coding features of each viewing angle camera, and performs affine transformation mapping on the posture of the image coding features through a Transformer encoder or a perspective conversion network of depth estimation and projection, thereby realizing the alignment of historical frame queries with the current frame, thereby obtaining a more accurate query set represented by position codes and feature vectors.

[0011] Optionally, in one embodiment of the present application, the perspective conversion network based on the Transformer encoder or depth estimation and projection maps the image coding features to obtain the first query set, specifically including: obtaining motion attributes corresponding to the current frame image coding features, and mapping the current frame image coding features with the previous frame query according to the motion attributes and a preset linear function, and extracting historical information from the previous frame query; performing an affine transformation on the posture of the current frame image coding features according to the historical information, aligning the current frame image coding features with the previous frame query, and obtaining the first query set.

[0012] According to the above-mentioned technical means, the embodiment of the present application uses the current motion attributes and linear functions to map the current frame image coding features with the previous frame query, thereby realizing the registration and fusion of the current frame image coding features with the previous frame query, thereby accurately extracting the historical query information, and mapping the posture of the current frame by affine transformation according to the extracted historical query information, realizing the alignment of the historical frame query with the current frame, and obtaining a more accurate perception task query set.

[0013] Optionally, in one embodiment of the present application, the obtaining of a partial image of the input image and respectively obtaining natural language prompt statements corresponding to the input image and the partial image specifically include: performing sliding window cutting on the input image according to a preset sliding window step size to obtain the partial image, and calculating a camera parameter matrix corresponding to the partial image; respectively associating the input image and the partial image with the corresponding camera parameter matrix, and rearranging them to obtain an image and parameter column; and selecting a natural language prompt statement corresponding to each image according to the image and parameter column.

[0014] According to the above-mentioned technical means, the embodiment of the present application segments the input image through a sliding window, and can use the acquired local images to improve the description of the visual-language large model to obtain more accurate natural language prompt information, and by calculating the camera parameter matrix corresponding to the local image, all images and the corresponding camera parameter matrices can be associated and sorted, so as to obtain the corresponding natural language prompt sentences in turn, thereby improving the output accuracy of the visual-language large model.

[0015] Optionally, in one embodiment of the present application, the natural language prompt sentence corresponding to each image is selected according to the image and parameter column, and then further includes: generating input triplet information according to the selected natural language prompt sentence; wherein the triplet information includes: the input image, the local image, and the prompt words corresponding to each image, and the camera parameter matrix.

[0016] According to the above-mentioned technical means, the embodiment of the present application utilizes image features, prompt words and camera parameter moments to form triplet information, and can use the visual-language large model to obtain natural language output results, so that there is no need for training or fine-tuning in the autonomous driving scenario. Only the model weights that have been trained on large-scale comprehensive data are used for reasoning to match and obtain binary information containing a natural language sentence and the corresponding camera parameters.

[0017] Optionally, in one embodiment of the present application, the acquired natural language prompt sentence and the corresponding image are input into the visual-language large model to obtain a natural language output result, specifically including: inputting each image in the triplet information and the corresponding natural language prompt sentence into the visual-language large model, matching each sentence in the natural language prompt sentence with the camera parameter matrix in the corresponding input triplet, to obtain the natural language output result; wherein, the natural language output result obtained includes: a natural language sentence and a corresponding camera parameter matrix.

[0018] According to the above-mentioned technical means, the embodiment of the present application can obtain a natural language output result by inputting the image features and natural language prompt sentences in the triple information into the visual-language large model, thereby realizing the combination of the visual language model and the traditional 3D perception model. Therefore, there is no need for training or fine-tuning in the autonomous driving scenario, and only the model weights that have been trained on large-scale comprehensive data are used for reasoning, thereby reducing the computational cost of the perception task.

[0019] Optionally, in one embodiment of the present application, the feature encoding and perception of the natural language output result to obtain a feature vector and a position code, and obtaining a second query set based on the feature vector and the position code, specifically includes: word embedding of the natural language sentences in the natural language output result, and inputting the obtained word vector sequence into a natural language text encoder that has been pre-trained by autoencoding to obtain a feature vector of the corresponding sentence; the obtained sentence feature vectors are collectively passed through a multilayer perceptron to obtain a position code, and the second query set is obtained based on the position code.

[0020] According to the above-mentioned technical means, the embodiment of the present application embeds the natural language sentences output by the visual-language large model into words through natural language encoding, and after converting them into word vector sequences, they are input into the natural language text encoder pre-trained by self-encoding for encoding, so as to obtain the perceptual query information described in natural language.

[0021] Optionally, in one embodiment of the present application, the word embedding of the natural language sentences in the natural language output result specifically includes: based on the BERT word embedding method and mapping table, the natural language sentences in the natural language output result are embedded in the form of logo embedding, segment embedding and position embedding to obtain the word vector sequence.

[0022] According to the above-mentioned technical means, the embodiment of the present application embeds words in the natural language output results by using logo embedding, segment embedding and position embedding, so as to fully improve the perception query information of the natural language description of the perception task in the autonomous driving scenario, so that when the 3D perception model is decoded, the formatted output result of the perception task can be accurately obtained.

[0023] Optionally, in one embodiment of the present application, querying the image features of the input image according to the first query set and the second query set, performing perceptual task prediction based on the Transformer decoder, and outputting perceptual results, specifically includes: merging the first query set and the second query set, and querying the image features of the input image according to the merged query set; performing perceptual task prediction based on the Transformer decoder, and outputting formatted perceptual results.

[0024] According to the above-mentioned technical means, the embodiment of the present application combines the query obtained by encoding the 3D perception model with the query obtained by natural language encoding of the visual-language large model, and can perform the perception work of the autonomous driving perception task by relying on the perception results described in natural language, thereby improving the output accuracy of the perception task under autonomous driving conditions in a formatted output manner, and providing more accurate information for subsequent planning control and other modules.

[0025] The second aspect of the present application provides an unmanned driving perception system, which includes: a 3D perception model encoding module, which is used to encode image features of an input image to obtain a first query set; a preprocessing module, which is used to obtain a local image of the input image, and respectively obtain natural language prompt sentences corresponding to the input image and the local image; a large language model processing module, which is used to input the obtained natural language prompt sentences and the corresponding images into a visual-language large model to obtain a natural language output result; a natural language encoding module, which is used to perform feature encoding and perception on the natural language output result to obtain a feature vector and a position code, and obtain a second query set based on the feature vector and the position code; a 3D perception model decoding module, which is used to query the image features of the input image according to the first query set and the second query set, and perform perception task prediction based on the Transformer decoder to output a perception result; wherein the perception task includes: any one of 3D target detection and tracking, BEV view semantic segmentation, and occupancy grid prediction.

[0026] Optionally, in one embodiment of the present application, the 3D perception model encoding module includes: a first encoding unit, used to use a 2D convolutional backbone network to encode image features of the input image to obtain image coding features; a mapping unit, used to map the image coding features based on a Transformer encoder or a perspective conversion network of depth estimation and projection to obtain the first query set.

[0027] Optionally, in one embodiment of the present application, the mapping unit includes: a historical information extraction subunit, used to obtain the motion attributes corresponding to the current frame image coding features, and map the current frame image coding features with the previous frame query according to the motion attributes and a preset linear function, and extract historical information from the previous frame query; a feature alignment subunit, used to perform an affine transformation on the posture of the current frame image coding features according to the historical information, align the current frame image coding features with the previous frame query, and obtain the first query set.

[0028] Optionally, in one embodiment of the present application, the preprocessing module includes: a local image acquisition unit, used to perform sliding window cutting on the input image according to a preset sliding window step size to obtain the local image, and calculate the camera parameter matrix corresponding to the local image; an image arrangement unit, used to associate the input image and the local image with the corresponding camera parameter matrix, respectively, and rearrange them to obtain the image and parameter column; a prompt statement selection unit, used to select the natural language prompt statement corresponding to each image according to the image and parameter column.

[0029] Optionally, in one embodiment of the present application, the preprocessing module also includes: a triplet information generation unit, used to generate input triplet information according to a selected natural language prompt sentence; wherein the triplet information includes: the input image, the local image, and the prompt words corresponding to each image, and a camera parameter matrix.

[0030] Optionally, in one embodiment of the present application, the large language model processing module includes: a sentence matching unit, used to input each image in the triplet information and the corresponding natural language prompt sentence into the visual-language large model, and match each sentence in the natural language prompt sentence with the camera parameter matrix in the corresponding input triplet to obtain the natural language output result; wherein the natural language output result includes: a natural language sentence and a corresponding camera parameter matrix.

[0031] Optionally, in one embodiment of the present application, the natural language encoding module includes: a natural language encoding unit, used to perform word embedding on the natural language sentences in the natural language output result, and input the obtained word vector sequence into a natural language text encoder that has been pre-trained by autoencoding to obtain a feature vector of the corresponding sentence; a multi-layer perceptron unit, used to pass the obtained sentence feature vectors through a multi-layer perceptron together to obtain a position code, and obtain the second query set based on the position code.

[0032] Optionally, in one embodiment of the present application, the natural language encoding unit includes: a word embedding subunit, which is used to embed the natural language sentences in the natural language output result by using the word embedding method and mapping table based on BERT, using the methods of logo embedding, segment embedding and position embedding to obtain the word vector sequence.

[0033] Optionally, in one embodiment of the present application, the 3D perception model decoding module includes: a feature query unit, used to merge the first query set and the second query set, and query the image features of the input image based on the merged query set; a perception task prediction unit, used to perform perception task prediction based on the Transformer decoder and output formatted perception results.

[0034] A third aspect of the present application provides a vehicle, comprising: a memory, a processor, and an unmanned driving perception program stored in the memory and executable on the processor, wherein the unmanned driving perception program, when executed by the processor, implements the steps of the unmanned driving perception method as described in the above embodiment.

[0035] The fourth aspect of the present application provides a computer-readable storage medium, which stores an unmanned driving perception program. When the unmanned driving perception program is executed by a processor, the steps of the unmanned driving perception method described in the above embodiment are implemented.

[0036] Beneficial effects of this application:

[0037] (1) The embodiment of the present application encodes the image features of the input image through the 3D perception model, and processes the image and natural language prompt sentence through the visual-language large model. The visual language model can be combined with the traditional 3D perception model to achieve the improvement of the accuracy of the structured perception results of the large model in the unmanned driving scenario without consuming a lot of computing resources to retrain or fine-tune the large model in the absence of large-scale structured data, and only by utilizing the generalization ability of the existing large model.

[0038] (2) The embodiments of the present application combine the current mainstream deep learning perception algorithm with a large language model with strong generalization ability to provide a perception algorithm that has stronger generalization ability and can provide program-understandable structured output like the current mainstream perception algorithm, thereby avoiding the training process of large-scale structured data and reducing the computational cost of autonomous driving perception tasks.

[0039] (3) The embodiment of the present application obtains natural language output results by utilizing a large vision-language model, thereby eliminating the need for training or fine-tuning in an autonomous driving scenario. By simply using the model weights that have been trained on large-scale comprehensive data for reasoning, it is possible to match and obtain binary information containing a natural language sentence and the corresponding camera parameters.

[0040] (4) The embodiment of the present application combines the query obtained by encoding the 3D perception model with the query obtained by natural language encoding of the visual-language large model. It can perform the perception work of the autonomous driving perception task by relying on the perception results described in natural language, thereby improving the output accuracy of the perception task in the autonomous driving case in a formatted output manner, and providing more accurate information for subsequent planning control and other modules.

[0041] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0043] Figure 1 It is a flow chart of a preferred embodiment of the unmanned driving perception method of the present application;

[0044] Figure 2 This is a flow chart of an application scenario of the unmanned driving perception method of the present application;

[0045] Figure 3 It is a schematic diagram of the framework of the unmanned driving perception method of the present application;

[0046] Figure 4 It is a structural schematic diagram of a preferred embodiment of the unmanned driving perception system of the present application;

[0047] Figure 5 This is a schematic structural diagram of a preferred embodiment of the vehicle of the present application.

[0048] Among them, 10-unmanned driving perception system; 100-3D perception model encoding module; 200-preprocessing module, 300-large language model processing module, 400-natural language encoding module; 500-3D perception model decoding module; 501-memory, 502-processor and 503-communication interface. DETAILED DESCRIPTION

[0049] Embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, and should not be construed as limiting the present application.

[0050] The formatted output based on perception tasks has the following advantages: first, the formatted output is often directly bound to the spatial coordinates and has relatively accurate positioning information; second, the formatted output can often directly obtain quantifiable evaluation indicators through mathematical calculations; finally, the formatted output is convenient for computer programs to understand, and subsequent prediction, planning, control and other algorithm modules usually require formatted perception results as input. If you want a neural network model to be able to output formatted output, you must give formatted annotations during training. For example, when training a 3D target detection model, you first need to collect a certain amount of data, and then annotate the data with bounding boxes and categories, which is often a very labor-intensive and financially intensive task. The cost of BEV semantic segmentation annotation and occupancy grid annotation, which are grid-by-grid annotation, is even higher. At present, the authenticity of simulation technology is still poor, and it is difficult to migrate from a simulated environment to a real environment. The collection and annotation of real data are also subject to cost constraints. Therefore, the existing unmanned driving data sets are often limited in scale.

[0051] Existing research applies large language models and visual language models to the field of autonomous driving perception. However, the difficulty in formatting output has become a key bottleneck in the combination of large language models and visual language models with autonomous driving technology. Since the output of large language models is natural language, which can only be understood by human drivers, the downstream planning and control systems of autonomous driving cannot currently work based on the perception results described in natural language. In the absence of structured annotated data of sufficient scale, these large language models and visual language models cannot obtain accurate structured perception results.

[0052] The unmanned driving perception method, system, vehicle and computer-readable storage medium of the embodiment of the present application are described below with reference to the accompanying drawings. In view of the problem of low accuracy of structured perception results of large models in unmanned driving scenarios mentioned in the above background technology, the present application provides an unmanned driving perception method, in which a first query set is obtained by encoding the image features of the input image; a local image of the input image is obtained, and the natural language prompt sentences corresponding to the input image and the local image are respectively obtained; the obtained natural language prompt sentences and the corresponding images are input into the visual-language large model to obtain natural language output results; feature encoding and perception of the natural language output results are performed to obtain feature vectors and position encoding, and a second query set is obtained based on the feature vectors and the position encoding; the image features of the input image are queried based on the first query set and the second query set, and the perception task prediction is performed based on the Transformer decoder to output the perception results; wherein the perception task includes: any one of 3D target detection and tracking, BEV view semantic segmentation and occupancy grid prediction.

[0053] In an embodiment of the present application, the image features of the input image are encoded through a 3D perception model, and the image and natural language prompt sentences are processed through a large visual-language model. The visual language model can be combined with the traditional 3D perception model to achieve the improvement of the accuracy of the structured perception results of the large model in the unmanned driving scenario without consuming a lot of computing resources to retrain or fine-tune the large model in the absence of large-scale structured data, and only by utilizing the generalization ability of the existing large model.

[0054] Specifically, Figure 1 A flowchart of an unmanned driving perception method provided in an embodiment of the present application.

[0055] like Figure 1 As shown, the unmanned driving perception method includes the following steps:

[0056] In step S101, image feature encoding is performed on the input image to obtain a first query set.

[0057] It can be understood that the unmanned driving perception method in the embodiment of the present application is mainly aimed at predicting the perception tasks of the unmanned driving vehicle during driving; wherein, the perception tasks include but are not limited to: 3D target detection and tracking, BEV view semantic segmentation, occupancy grid prediction, etc.

[0058] In a possible implementation, in the embodiment of the present application, the input image is encoded by the encoder of the 3D perception model to obtain a series of queries; wherein the input image is an image captured by the camera of the autonomous driving vehicle (e.g., a front-view camera, a surround-view camera, etc.); the 3D perception model can be various models that are currently commonly used on the vehicle side and trained on unmanned driving structured data, such as the BEVFormer model, etc. The query obtained by the encoder of the 3D perception model can be a dense feature (e.g., a bird's-eye view feature map or a feature voxel) or a sparse feature, as long as it can be represented in the form of a position code + a feature vector.

[0059] Specifically, the image feature encoding of the input image to obtain the first query set includes: using a 2D convolutional backbone network to encode the image features of the input image to obtain image coding features; mapping the image coding features based on a Transformer encoder or a perspective conversion network of depth estimation and projection to obtain the first query set.

[0060] In one possible implementation, Figure 3 As shown, for the 3D perception model, its encoder can be a 2D convolution backbone network; therefore, the 2D convolution backbone network Encode 2D , respectively encode the image features of the 2D visual image (i.e., the input image) obtained by each viewing angle camera. Assume that the 2D visual image is M i (i=1,2,...,N), then the image encoding features of each camera view obtained through image feature encoding are: Then, the obtained image coding features are mapped through a perspective conversion network based on Transformer encoder or depth estimation and projection, and a series of queries q1 = {i = 1, 2, ..., k1 | <PE i ,F i >}, where PE refers to position encoding and F refers to feature vector. In the obtained series of queries (i.e., the first query set), for dense feature voxels or bird's-eye view feature maps with a resolution of X×Y×Z (i.e., Z=1), k1=X×Y×Z; for sparse query methods, k1 is a pre-specified query number.

[0061] The embodiment of the present application encodes the image features of the input image through a 2D convolutional backbone network to obtain the image coding features of each viewing angle camera, and performs affine transformation mapping on the posture of the image coding features through a Transformer encoder or a perspective conversion network of depth estimation and projection, thereby realizing the alignment of historical frame queries with the current frame, thereby obtaining a more accurate query set represented by position coding and feature vectors.

[0062] Specifically, the perspective conversion network based on the Transformer encoder or the depth estimation and projection maps the image coding features to obtain the first query set, including: obtaining motion attributes corresponding to the current frame image coding features, and mapping the current frame image coding features with the previous frame query according to the motion attributes and a preset linear function, and extracting historical information from the previous frame query; performing an affine transformation on the posture of the current frame image coding features according to the historical information, aligning the current frame image coding features with the previous frame query, and obtaining the first query set.

[0063] In one possible implementation, in the 2D convolution backbone network Encode 2D In the encoding process, the 2D convolution backbone network Encode 2D is the 2D visual image M of each camera input i (i=1,2,...,N) shared weights; 2D convolution backbone network Encode in the embodiment of the present application 2D Usually, a 2D convolutional network structure and a corresponding CBNet combined backbone network architecture can be used, which are fused with a feature pyramid (FPN) at multiple scales; wherein, the 2D convolutional network structure includes but is not limited to: ResNet, EfficientNet, SwinTransformer, VoVNetV2, ConvNeXt and other networks with a certain depth level.

[0064] The image features obtained in the encoding After that, the current motion attributes of the vehicle (e.g., time interval t, speed v, and vehicle posture matrix E) are first obtained, and then the current motion attributes are mapped to the query of the previous frame through a linear function μ(·) (i.e., a preset linear function), thereby achieving the same query as the current frame. In this way, the query of the previous frame is continuously fused into the current frame through a loop similar to RNN, thereby realizing the extraction of historical information.

[0065] For the stored historical query, the historical frame query is aligned with the current frame by mapping the pose of the current frame through affine transformation, that is, Figure 3The first query set can be obtained by performing the mapping process of the MLN layer (feedforward network) in . The specific formula is as follows:

[0066]

[0067]

[0068] Among them, LN represents the linear layer, γ and β represent the standard deviation and mean normalization parameters predicted by the linear layer.

[0069] The embodiment of the present application uses the current motion attributes and linear functions to map the current frame image coding features with the previous frame query, realizes the registration and fusion of the current frame image coding features with the previous frame query, thereby accurately extracting the historical query information, and performs affine transformation mapping on the posture of the current frame according to the extracted historical query information, realizes the alignment of the historical frame query with the current frame, and obtains a more accurate perception task query set.

[0070] In step S102, a partial image of the input image is obtained, and natural language prompt sentences corresponding to the input image and the partial image are obtained respectively.

[0071] In a possible implementation, the input image is passed through an input preprocessing module to obtain a series of prepared inputs, wherein each prepared input includes an image, a natural language prompt, and corresponding internal and external parameters of the image.

[0072] It is understandable that when the encoder of the 3D perception model encodes the input image, the current frame input image will be sent to the preprocessing module. Since there may be too many objects in a picture, the visual-language model's description of the entire image may not be perfect. Therefore, the local picture will also be handed over to the visual-language model for processing.

[0073] Specifically, the method of obtaining a partial image of the input image and respectively obtaining natural language prompt sentences corresponding to the input image and the partial image includes: performing sliding window cutting on the input image according to a preset sliding window step size to obtain the partial image, and calculating a camera parameter matrix corresponding to the partial image; respectively associating the input image and the partial image with the corresponding camera parameter matrix, and rearranging them to obtain an image and parameter column; selecting a natural language prompt sentence corresponding to each image according to the image and parameter column; generating input triplet information according to the selected natural language prompt sentence; wherein the triplet information includes: the input image, the partial image, and the prompt words and camera parameter matrix corresponding to each image.

[0074] In a possible implementation, during the processing of the preprocessing module, the local image is obtained from the 2D visual image M i (i=1,2,...,N) to perform sliding window cutting. Each image corresponds to a calibrated camera sensor, and its intrinsic and extrinsic parameter matrix is ​​r i ,t i .

[0075] When cutting the sliding window, assuming that the input image resolution is W×H, the sliding window step size is set to s, the sliding window size is w×h, and the local image taken is:

[0076] M i,j,k =M i ([js,js+w],[ks,ks+h]),j=0,1,...,(Ww)s,k=0,1,...,(Hh)s; at the same time,

[0077] For each local image, calculate the corresponding camera intrinsic parameter matrix r i ,t i,j,k (This matrix is ​​the transformation matrix from the pixel coordinate system of the local image to the vehicle coordinate system, and is related to r i ,t i There is only a difference in the translation matrix).

[0078] After the sliding window is cut, the 2D visual image M i and the local image M i,j,k , and its corresponding parameter matrix r i ,t i and r i ,t i,j,k , rearranged to M m and r m ,t m , where m = 0, 1, ..., m input , where m input =i×{1+[(Ww)s+1]×[Hh]s+1}-1. The rearranged image and the corresponding camera parameter matrix are as follows Figure 3 As shown, in Figure 3 In the preprocessing module, after the sliding window is sampled, it is rearranged to obtain the queue of image-prompt word-camera parameters.

[0079] After rearranging all the images, select appropriate prompt words according to the visual-language model to be used. For models such as GPT-4V that are mainly trained with English corpus, English prompt words can be selected. For models such as iFlytek Spark that are mainly trained with Chinese corpus, Chinese prompt words can be selected, such as "Assuming that you are a mature driver, this picture is what you are seeing now. Please describe the scene you see and describe every object and its location that may affect driving as much as possible." Set the prompt word string to p, and then obtain a series of input triples through the processing of the preprocessing module. <M m ,p,(r m ,t m )>.

[0080] The embodiment of the present application segments the input image through a sliding window, and can use the acquired local image to improve the description of the large visual-language model to obtain more accurate natural language prompt information, and by calculating the camera parameter matrix corresponding to the local image, all images and the corresponding camera parameter matrix can be associated and sorted, so as to obtain the corresponding natural language prompt sentences in turn, and improve the output accuracy of the large visual-language model. And by using the image features, prompt words and camera parameter moments to form triple information, the large visual-language model can be used to obtain the natural language output result, so that there is no need for training or fine-tuning in the autonomous driving scenario, and only the model weights that have been trained on large-scale comprehensive data are used for reasoning to match and obtain the two-tuple information containing a natural language sentence and the corresponding camera parameters.

[0081] In step S103, the acquired natural language prompt sentence and the corresponding image are input into the visual-language large model to obtain a natural language output result.

[0082] In one possible implementation, after obtaining a preliminary input including an image, a natural language prompt, and corresponding image internal and external parameters, for each preliminary input obtained, the image and the natural language prompt are input into a large visual-language model to obtain an output in natural language form.

[0083] Specifically, the method of inputting the acquired natural language prompt sentence and the corresponding image into the visual-language large model to obtain the natural language output result includes: inputting each image in the triplet information and the corresponding natural language prompt sentence into the visual-language large model, matching each sentence in the natural language prompt sentence with the camera parameter matrix in the corresponding input triplet to obtain the natural language output result; wherein, the natural language output result obtained includes: natural language sentence and corresponding camera parameter matrix.

[0084] In one possible implementation, the obtained <M m ,p,(r m ,t m )> Image M m The visual-language model is input with the prompt word p into the large visual-language model to obtain the natural language output result. It is understandable that the large visual-language model can be deployed on high-end vehicle-mounted devices or cloud servers, or technical cloud services provided by relevant algorithm companies. Therefore, the large visual-language model does not need to be trained or fine-tuned in the autonomous driving scenario. It only needs to use the model weights that have been trained on large-scale comprehensive data for reasoning, avoiding the large-scale structured data training process and using the generalization ability of the existing large model to obtain better structured perception results.

[0085] It is worth mentioning that for the selection of the visual-language large model, you can choose a model with better performance based on the actual output effect. For example, GPT-V, CogVLM, LLaMA-V, etc. are all optional visual-language large models. In the processing of the visual-language large model, suppose the natural language paragraph returned by the mth group of input contains c m sentences, and by matching each sentence with the camera parameter matrix in the corresponding input triplet, a series of output bigrams can be obtained <C α ,(r α ,t α )>, α=0,1,...,k2, where, The natural language output result in the embodiment of the present application is a series of bigrams, each output bigram containing a natural language sentence and corresponding camera parameters.

[0086] The embodiment of the present application obtains a natural language output result by inputting the image features and natural language prompt sentences in the triplet information into the visual-language large model, thereby realizing the combination of the visual language model and the traditional 3D perception model. As a result, there is no need for training or fine-tuning in the autonomous driving scenario, and only the model weights that have been trained on large-scale comprehensive data are used for reasoning, thereby reducing the computational cost of the perception task.

[0087] In step S104, feature encoding and perception are performed on the natural language output result to obtain a feature vector and a position code, and a second query set is obtained according to the feature vector and the position code.

[0088] In one possible implementation, after obtaining the output in natural language form through the visual-language large model, each sentence in the natural language output is passed through a natural language encoder, and is encoded by the natural language encoder to obtain a feature vector and a position vector; wherein, the position vector is obtained by encoding each sentence in combination with the corresponding internal and external parameters of the image during the encoding process of the natural language encoder; in the embodiment of the present application, the position code and feature vector obtained by encoding with the natural language encoder can constitute a series of queries, and these queries are the second query set.

[0089] Specifically, the natural language output result is feature encoded and perceived to obtain a feature vector and a position code, and a second query set is obtained based on the feature vector and the position code, including: word embedding of natural language sentences in the natural language output result, and inputting the obtained word vector sequence into a natural language text encoder that has been pre-trained by autoencoding to obtain a feature vector of the corresponding sentence; the obtained sentence feature vectors are passed through a multi-layer perceptron to obtain a position code, and the second query set is obtained based on the position code.

[0090] In one possible implementation, the bigrams output by the vision-language model are <C α ,(r α ,t α )> in the natural language sentence C α , after word embedding and conversion into a word vector sequence, it is input into a natural language text encoder pre-trained by autoencoder to obtain the feature vector F of the sentence α ; The feature vector F α and (r α ,t α ) are passed through a multi-layer perceptron (MLP) to obtain the position encoding PE α , and finally we get a series of queries q2 = {α = 1, 2, ..., k1 | <PE α ,F α >}, where PE refers to the position encoding and F refers to the feature vector.

[0091] The embodiment of the present application embeds the natural language sentences output by the visual-language large model into words through natural language encoding, and after converting them into word vector sequences, they are input into a natural language text encoder that has been pre-trained by autoencoding for encoding, so as to obtain perceptual query information described in natural language.

[0092] Specifically, the word embedding of the natural language sentences in the natural language output result includes: based on the BERT word embedding method and mapping table, the natural language sentences in the natural language output result are embedded in the form of logo embedding, segment embedding and position embedding to obtain the word vector sequence.

[0093] In one possible implementation, Figure 3 As shown, the embodiment of the present application Figure 3 The word embedding shown in the natural language encoding process adopts BERT's word embedding method and mapping table. For example, it adopts three layers of embedding: token embeddings, segment embeddings, and position embeddings (the position embedding here refers to the position of each word in the sentence).

[0094] In the embodiment of the present application, the embedded word vector is encoded by the natural language encoding layer to obtain sentence features. The encoding layer can be any natural language encoder that has been pre-trained by autoencoding. Figure 3 The BERT encoder is used in the above. In addition, you can also choose natural language encoders such as ELMO encoder, ERNIE encoder (suitable for Chinese), GPT encoder, etc. according to specific needs and computing resource constraints.

[0095] In the embodiment of the present application, the word embedding Emb(·) and the text encoder Encode are selected. text , get the sentence feature vector F α =Encode text (Emb(C α )), and then obtain the corresponding position code PE α =MLP(concat(F α ,r α ,t α )), and finally obtain the query set q2 = {α = 1, 2, ..., k1 | <PE α ,F α >}.

[0096] The embodiment of the present application uses logo embedding, segment embedding and position embedding to embed words into natural language sentences in the natural language output results, so as to fully improve the perception query information of the natural language description of the perception task in the autonomous driving scenario, so that when the 3D perception model is decoded, the formatted output result of the perception task can be accurately obtained.

[0097] In step S105, the image features of the input image are queried according to the first query set and the second query set, and a perception task prediction is performed based on the Transformer decoder to output a perception result.

[0098] In one possible implementation, the first query set encoded by the 3D perception model and the second query set encoded by natural language are merged, and the merged query is decoded by the 3D perception model to jointly query the image features of the input image, and the query results are used to predict the perception results based on the Transformer decoder. Perception tasks may include 3D object detection and tracking, BEV view semantic segmentation, occupancy grid prediction, etc.

[0099] Specifically, the image features of the input image are queried according to the first query set and the second query set, and perception task prediction is performed based on the Transformer decoder to output the perception result, including: merging the first query set and the second query set, and querying the image features of the input image according to the merged query set; performing perception task prediction based on the Transformer decoder to output formatted perception results.

[0100] In a possible implementation, for the obtained query sets q1 and q2, the query set q = q1∪q2 is obtained by taking the union; then, it is decoded by the Transformer-based task decoder to obtain a formatted perception result output; Figure 3 As shown, Figure 3 In the process of encoding the 3D perception model, a task decoder based on DETR can be used. For the actual selection of the decoder, decoders of methods such as deformable DETR, RT-DETR, DAB-DETR, etc. can be used, or different decoders can be selected for different tasks.

[0101] The embodiment of the present application combines the query obtained by encoding the 3D perception model with the query obtained by natural language encoding of the visual-language large model. It can perform the perception work of the autonomous driving perception task by relying on the perception results described in natural language, thereby improving the output accuracy of the perception task in the autonomous driving case in a formatted output manner, and providing more accurate information for subsequent planning control and other modules.

[0102] In order to further improve the structured perception accuracy of the unmanned driving perception task in the embodiment of the present application, the 3D perception model (for example, the BEV perception network model) may be weighted trained, specifically:

[0103] The 2D image data of the on-board cameras of each viewing angle corresponding to each timestamp t is obtained, and the required 3D target categories and corresponding bounding box information are annotated in the 3D space according to the required perception task requirements. The high-precision map data covering the driving area of ​​the collected vehicle is used to annotate the structured information such as the road passable area and lane lines, as well as the occupied grid annotation, etc. on its layer; at the same time, the vehicle posture information of each timestamp is saved, and a special sample library for 3D perception model training is prepared; then, by constructing the corresponding multi-task loss function, the multimodal BEV perception network model training is completed to obtain the optimal network weights; finally, the optimal network weights obtained through training are provided to the network model for reasoning.

[0104] Before annotating the 2D image data, it is also necessary to align the timestamps according to the needs of the 2D visual image data of each camera perspective. Usually, the most recent timestamp can be used as the data corresponding to the same group of sensors, and the vehicle posture state information at each timestamp can be used for necessary motion compensation.

[0105] During the training process, the total loss function L of the model training is composed of the weighted losses of each task, that is, L = γ1·L task1 +γ2·L task2 +...+γ m ·L taskm During training, only the model weights of the 3D perception model encoding, natural language encoding, and 3D perception model decoding parts are updated, and the large language model is not trained. The large language model always uses the fixed model weights that have been trained on a large-scale dataset for inference.

[0106] like Figure 2 As shown, in a possible implementation, the unmanned driving perception method proposed in the embodiment of the present application includes:

[0107] S1, encode the input image through the 3D perception model;

[0108] S2, preprocessing the input image through a preprocessing module;

[0109] S3, processing the prepared input obtained by preprocessing through the large language model;

[0110] S4, encoding the natural language output result output by the large language model through a natural language encoder;

[0111] S5. Decode the 3D perception model according to the query encoded by the 3D perception model and the query obtained by natural language encoding, and output the perception result.

[0112] S6. Perform weight training on the perception network model of steps S1 to S5 through a training strategy.

[0113] The embodiment of the present application combines the current mainstream deep learning perception algorithm with a large language model with strong generalization ability, providing a perception algorithm that has stronger generalization ability and can produce structured output like the current mainstream perception algorithm. It is worth noting that the embodiment of the present application has strong compatibility and can combine almost any 3D perception model with any large visual-language model.

[0114] In summary, this application encodes the image features of the input image through a 3D perception model, and processes the image and natural language prompt sentences through a large visual-language model. It can combine the visual language model with the traditional 3D perception model to achieve the improvement of the accuracy of the structured perception results of the large model in the unmanned driving scenario without consuming a lot of computing resources to retrain or fine-tune the large model in the absence of large-scale structured data. Only the generalization ability of the existing large model is used.

[0115] Next, the unmanned driving perception system proposed according to the embodiment of the present application is described with reference to the accompanying drawings.

[0116] Figure 4 It is a block diagram of an unmanned driving perception system according to an embodiment of the present application.

[0117] like Figure 4 As shown, the unmanned driving perception system 10 includes: a 3D perception model encoding module 100, a preprocessing module 200, a large language model processing module 300, a natural language encoding module 400 and a 3D perception model decoding module 500.

[0118] Specifically, the 3D perception model encoding module 100 is used to encode the image features of the input image to obtain a first query set; the preprocessing module 200 is used to obtain a local image of the input image, and respectively obtain the natural language prompt sentences corresponding to the input image and the local image; the large language model processing module 300 is used to input the obtained natural language prompt sentences and the corresponding images into the visual-language large model to obtain a natural language output result; the natural language encoding module 400 is used to perform feature encoding and perception on the natural language output result to obtain a feature vector and a position encoding, and obtain a second query set based on the feature vector and the position encoding; the 3D perception model decoding module 500 is used to query the image features of the input image according to the first query set and the second query set, and perform perception task prediction based on the Transformer decoder to output the perception result; wherein the perception task includes: any one of 3D target detection and tracking, BEV view semantic segmentation, and occupancy grid prediction.

[0119] Optionally, in one embodiment of the present application, the 3D perception model encoding module 100 includes: a first encoding unit, used to use a 2D convolutional backbone network to encode the image features of the input image to obtain image coding features; a mapping unit, used to map the image coding features based on a Transformer encoder or a perspective conversion network of depth estimation and projection to obtain the first query set.

[0120] Optionally, in one embodiment of the present application, the mapping unit includes: a historical information extraction subunit, used to obtain the motion attributes corresponding to the current frame image coding features, and map the current frame image coding features with the previous frame query according to the motion attributes and a preset linear function, and extract historical information from the previous frame query; a feature alignment subunit, used to perform an affine transformation on the posture of the current frame image coding features according to the historical information, align the current frame image coding features with the previous frame query, and obtain the first query set.

[0121] Optionally, in one embodiment of the present application, the preprocessing module 200 includes: a local image acquisition unit, used to perform sliding window cutting on the input image according to a preset sliding window step size to obtain the local image, and calculate the camera parameter matrix corresponding to the local image; an image arrangement unit, used to associate the input image and the local image with the corresponding camera parameter matrix, respectively, and rearrange them to obtain an image and parameter column; a prompt statement selection unit, used to select a natural language prompt statement corresponding to each image according to the image and parameter column.

[0122] Optionally, in one embodiment of the present application, the preprocessing module 200 also includes: a triplet information generation unit, used to generate input triplet information according to the selected natural language prompt sentence; wherein the triplet information includes: the input image, the local image and the prompt words corresponding to each image, and the camera parameter matrix.

[0123] Optionally, in one embodiment of the present application, the large language model processing module 300 includes: a sentence matching unit, used to input each image in the triplet information and the corresponding natural language prompt sentence into the visual-language large model, and match each sentence in the natural language prompt sentence with the camera parameter matrix in the corresponding input triplet to obtain the natural language output result; wherein the natural language output result includes: a natural language sentence and a corresponding camera parameter matrix.

[0124] Optionally, in one embodiment of the present application, the natural language encoding module 400 includes: a natural language encoding unit, used to perform word embedding on the natural language sentences in the natural language output result, and input the obtained word vector sequence into a natural language text encoder that has been pre-trained by autoencoding to obtain a feature vector of the corresponding sentence; a multi-layer perceptron unit, used to pass the obtained sentence feature vectors through a multi-layer perceptron to obtain a position code, and obtain the second query set based on the position code.

[0125] Optionally, in one embodiment of the present application, the natural language encoding unit includes: a word embedding subunit, which is used to embed the natural language sentences in the natural language output result by using the word embedding method and mapping table based on BERT, using the methods of logo embedding, segment embedding and position embedding to obtain the word vector sequence.

[0126] Optionally, in one embodiment of the present application, the 3D perception model decoding module 500 includes: a feature query unit, used to merge the first query set and the second query set, and query the image features of the input image based on the merged query set; a perception task prediction unit, used to perform perception task prediction based on the Transformer decoder and output formatted perception results.

[0127] It should be noted that the aforementioned explanation of the unmanned driving perception method embodiment is also applicable to the unmanned driving perception system of this embodiment and will not be repeated here.

[0128] According to the unmanned driving perception system proposed in the embodiment of the present application, the system encodes image features of the input image through a 3D perception model, and processes the image and natural language prompt sentences through a visual-language large model. The visual language model can be combined with the traditional 3D perception model to achieve the improvement of the accuracy of the structured perception results of the large model in the unmanned driving scenario without consuming a lot of computing resources to retrain or fine-tune the large model in the absence of large-scale structured data, and only utilizes the generalization ability of the existing large model.

[0129] Figure 5 A schematic diagram of the structure of a vehicle provided in an embodiment of the present application. The vehicle may include: a memory 501, a processor 502, and a computer program stored in the memory 501 and executable on the processor 502. When the processor 502 executes the program, the unmanned driving perception method provided in the above embodiment is implemented.

[0130] Furthermore, the vehicle also includes: a communication interface 503, used for communication between the memory 501 and the processor 502; the memory 501, used to store computer programs that can be run on the processor 502; the memory 501 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.

[0131] If the memory 501, the processor 502 and the communication interface 503 are implemented independently, the communication interface 503, the memory 501 and the processor 502 can be connected to each other through a bus and communicate with each other. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component (PCI) bus or an Extended Industry Standard Architecture (EIS) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 5 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0132] Optionally, in a specific implementation, if the memory 501, the processor 502 and the communication interface 503 are integrated on a chip, the memory 501, the processor 502 and the communication interface 503 can communicate with each other through an internal interface. The processor 502 may be a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application.

[0133] This embodiment also provides a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the above-mentioned unmanned driving perception method is implemented.

[0134] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or N embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.

[0135] In addition, the terms "first" and "second" are used only for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of the present application, the meaning of "N" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined. Any process or method description in the flowchart or otherwise described herein may be understood to represent a module, fragment or portion of a code including one or N executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present application includes additional implementations, in which the functions may not be performed in the order shown or discussed, including in a substantially simultaneous manner or in a reverse order according to the functions involved, which should be understood by a technician in the technical field to which the embodiments of the present application belong.

[0136] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable storage medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purposes of this specification, a "computer-readable storage medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples (non-exhaustive list) of computer-readable storage media include the following: an electrical connection with one or N wirings (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable storage medium may even be paper or other suitable medium on which the program is printed, since the program can be obtained electronically by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways as necessary, and then storing it in a computer memory.

[0137] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiment, the N steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0138] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.

[0139] In addition, each functional unit in each embodiment of the present application may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.

[0140] It should be understood that the application of the present application is not limited to the above examples. For ordinary technicians in this field, improvements or changes can be made based on the above description. All these improvements and changes should fall within the scope of protection of the claims attached to this application.

Claims

1. An unmanned driving perception method, characterized in that: The unmanned driving perception method comprises: Performing image feature encoding on the input image to obtain a first query set; Acquire a partial image of the input image, and respectively acquire natural language prompt sentences corresponding to the input image and the partial image; Input the acquired natural language prompt sentence and the corresponding image into the visual-language model to obtain the natural language output result; Performing feature coding and perception on the natural language output result to obtain a feature vector and a position code, and obtaining a second query set according to the feature vector and the position code; The image features of the input image are queried according to the first query set and the second query set, and a perception task prediction is performed based on the Transformer decoder to output a perception result; wherein the perception task includes: any one of 3D object detection and tracking, BEV view semantic segmentation, and occupancy grid prediction.

2. The unmanned driving perception method according to claim 1, characterized in that: The step of encoding the input image features to obtain a first query set specifically includes: Using a 2D convolutional backbone network, encoding the input image to obtain image encoding features; The image coding features are mapped based on a Transformer encoder or a perspective conversion network of depth estimation and projection to obtain the first query set.

3. The unmanned driving perception method according to claim 2, characterized in that: The Transformer encoder or the perspective conversion network based on depth estimation and projection maps the image coding features to obtain the first query set, specifically including: Obtaining a motion attribute corresponding to a coding feature of a current frame image, and mapping the coding feature of the current frame image with a previous frame query according to the motion attribute and a preset linear function, and extracting historical information from the previous frame query; An affine transformation is performed on the posture of the current frame image coding feature according to the historical information, and the current frame image coding feature is aligned with the previous frame query to obtain the first query set.

4. The unmanned driving perception method according to claim 1, characterized in that: The acquiring of the partial image of the input image and respectively acquiring the natural language prompt sentences corresponding to the input image and the partial image specifically includes: Perform sliding window cutting on the input image according to a preset sliding window step size to obtain the local image, and calculate the camera parameter matrix corresponding to the local image; Respectively associating the input image and the local image with corresponding camera parameter matrices, and rearranging them to obtain an image and parameter columns; A natural language prompt sentence corresponding to each image is selected according to the image and parameter column.

5. The unmanned driving perception method according to claim 4, characterized in that: The step of selecting a natural language prompt sentence corresponding to each image according to the image and the parameter list further comprises: Input triplet information is generated according to the selected natural language prompt sentence; wherein the triplet information includes: the input image, the local image, the prompt word corresponding to each image, and the camera parameter matrix.

6. The unmanned driving perception method according to claim 5, characterized in that: The obtained natural language prompt sentence and the corresponding image are input into the visual-language model to obtain the natural language output result, which specifically includes: Inputting each image and the corresponding natural language prompt sentence in the triplet information into the visual-language large model, matching each sentence in the natural language prompt sentence with the camera parameter matrix in the corresponding input triplet, and obtaining the natural language output result; The natural language output result obtained includes: a natural language sentence and a corresponding camera parameter matrix.

7. The unmanned driving perception method according to claim 6, characterized in that: The step of performing feature encoding and perception on the natural language output result to obtain a feature vector and a position code, and obtaining a second query set according to the feature vector and the position code, specifically includes: Performing word embedding on the natural language sentences in the natural language output result, and inputting the obtained word vector sequence into a natural language text encoder pre-trained by autoencoding to obtain a feature vector of the corresponding sentence; The obtained feature vectors of the sentences are collectively passed through a multi-layer perceptron to obtain position codes, and the second query set is obtained according to the position codes.

8. The unmanned driving perception method according to claim 7, characterized in that: The word embedding of the natural language sentences in the natural language output result specifically includes: Based on the word embedding method and mapping table of BERT, the natural language sentences in the natural language output result are word embedded by using the methods of logo embedding, segment embedding and position embedding to obtain the word vector sequence.

9. The unmanned driving perception method according to claim 1, characterized in that: The querying of the image features of the input image according to the first query set and the second query set, performing perception task prediction based on the Transformer decoder, and outputting the perception result specifically includes: Merging the first query set and the second query set, and querying the image features of the input image according to the merged query set; The Transformer-based decoder performs perception task prediction and outputs formatted perception results.

10. An unmanned driving perception system, characterized in that: The unmanned driving perception system comprises: A 3D perception model encoding module, used for encoding image features of an input image to obtain a first query set; A preprocessing module, used to obtain a partial image of the input image, and respectively obtain natural language prompt sentences corresponding to the input image and the partial image; A large language model processing module is used to input the acquired natural language prompt sentence and the corresponding image into the visual-language large model to obtain a natural language output result; A natural language encoding module, used for performing feature encoding and perception on the natural language output result to obtain a feature vector and a position code, and obtaining a second query set according to the feature vector and the position code; The 3D perception model decoding module is used to query the image features of the input image according to the first query set and the second query set, perform perception task prediction based on the Transformer decoder, and output the perception result.

11. A vehicle, characterized in that: The vehicle includes: a memory, a processor, and an unmanned driving perception program stored in the memory and executable on the processor. When the unmanned driving perception program is executed by the processor, the steps of the unmanned driving perception method as described in any one of claims 1 to 9 are implemented.

12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores an unmanned driving perception program, and when the unmanned driving perception program is executed by a processor, the steps of the unmanned driving perception method according to any one of claims 1 to 9 are implemented.

Citation Information

Cited By

  • Lane map construction method and device based on large language model and storage medium

    CN119665944A