Information prediction method and training method and device of automatic driving model
By generating models to encode sensing data and predict control information from autoregressive models, the dependence of autonomous driving systems on accurately labeled data is solved and a low-cost, scalable autonomous driving technology solution is achieved.
Patent Information
- Application Number
- CN202410796725.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-19
- Publication Date
- 2024-09-10
AI Technical Summary
Existing autonomous driving systems rely on accurate perception annotation data that is expensive and difficult to obtain, resulting in high deployment costs and poor scalability, which limits the applicability of autonomous driving models.
A generative model is used to encode sensory data, generate image token sequences and driving characteristics, control information prediction is performed through an autoregressive model, and the image generation task is used as an auxiliary task to reduce reliance on accurately annotated data.
It achieves control information prediction without relying on large-scale accurately annotated data, reduces the deployment cost of autonomous driving models, improves scalability and applicability, and establishes robust environmental perception and representation.
Smart Images

Figure CN118629009A
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of artificial intelligence technology, in particular to technical fields such as computer vision and deep learning, and can be applied to scenarios such as autonomous driving. Background Art
[0002] With the rapid development of artificial intelligence and autonomous driving technologies, end-to-end autonomous driving systems have attracted much attention due to their simplified system architecture, reduced error accumulation, and global optimization capabilities.
[0003] For example, the autonomous driving system can predict the control signal for the vehicle by analyzing the perception data. The vehicle can control the braking system according to the predicted control signal to achieve automatic driving of the vehicle. The setting of the autonomous driving system can meet the needs of convenient travel to a certain extent. Summary of the invention
[0004] The present disclosure aims to provide an information prediction method and an autonomous driving model training method, device, equipment, medium, program product and autonomous driving vehicle that can realize control information prediction without relying on large-scale accurate labeled data.
[0005] According to a first aspect of the present disclosure, there is provided an information prediction method, comprising: acquiring perception data, the perception data comprising image data collected by a sensor in a vehicle and driving data of the vehicle; encoding the image data to obtain an image token sequence corresponding to the image data; encoding the driving data to obtain driving characteristics corresponding to the driving data; and based on the driving characteristics and the image token sequence, using a generative model to generate a prediction token sequence corresponding to the image token sequence and control information for the vehicle.
[0006] According to a second aspect of the present disclosure, a training method for an autonomous driving model is provided, wherein the autonomous driving model includes a coding layer and a generation model; the coding layer includes a sequence coding network and a driving data coding network, and the training method includes: using the sequence coding network to encode image data in sample perception data to obtain an image token sequence corresponding to the image data; using the driving data coding network to encode driving data in the sample perception data to obtain driving characteristics corresponding to the driving data; based on the driving characteristics and the image token sequence, using the generation model to generate a prediction token sequence corresponding to the image token sequence and prediction control information for the vehicle; and training the autonomous driving model according to the prediction token sequence and the image token sequence.
[0007] According to a third aspect of the present disclosure, there is provided an information prediction device, comprising: a data acquisition module, for acquiring perception data, the perception data comprising image data collected by a sensor in a vehicle and driving data of the vehicle; a first encoding module, for encoding the image data to obtain an image token sequence corresponding to the image data; a second encoding module, for encoding the driving data to obtain driving characteristics corresponding to the driving data; and a generation module, for generating a prediction token sequence corresponding to the image token sequence and control information for the vehicle using a generation model based on the driving characteristics and the image token sequence.
[0008] According to a fourth aspect of the present disclosure, a training device for an autonomous driving model is provided, wherein the autonomous driving model includes a coding layer and a generation model; the coding layer includes a sequence coding network and a driving data coding network. The training device includes: a first coding module, which is used to encode image data in sample perception data using a sequence coding network to obtain an image token sequence corresponding to the image data; a second coding module, which is used to encode driving data in sample perception data using a driving data coding network to obtain driving features corresponding to the driving data; a generation module, which is used to generate a prediction token sequence corresponding to the image token sequence and prediction control information for the vehicle using a generation model based on the driving features and the image token sequence; and a training module, which is used to train the autonomous driving model according to the prediction token sequence and the image token sequence.
[0009] According to the fifth aspect of the present disclosure, an electronic device is provided, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the information prediction method provided by the present disclosure.
[0010] According to a sixth aspect of the present disclosure, an electronic device is provided, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the training method of the autonomous driving model provided by the present disclosure.
[0011] According to the seventh aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable a computer to execute the information prediction method or the training method of the autonomous driving model provided by the present disclosure.
[0012] According to an eighth aspect of the present disclosure, a computer program product is provided, including a computer program / instructions, wherein the computer program / instructions are stored on at least one of a readable storage medium and an electronic device, and when the computer program / instructions are executed by a processor, the information prediction method or the autonomous driving model training method provided by the present disclosure is implemented.
[0013] According to a ninth aspect of the present disclosure, an autonomous driving vehicle is provided, comprising the electronic device provided in the fifth aspect of the present disclosure.
[0014] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present disclosure.
[0016] FIG1 is a schematic diagram of an application scenario of an information prediction method and an automatic driving model training method and device according to an embodiment of the present disclosure;
[0017] FIG2 is a schematic diagram of a flow chart of an information prediction method according to an embodiment of the present disclosure;
[0018] FIG3 is a schematic diagram of an implementation principle of an information prediction method according to an embodiment of the present disclosure;
[0019] FIG4 is a schematic diagram showing the principle of encoding navigation data according to an embodiment of the present disclosure;
[0020] FIG5 is a schematic diagram showing the principle of encoding image data to obtain an image token sequence according to an embodiment of the present disclosure;
[0021] FIG6 is a schematic diagram of an implementation principle of an information prediction method according to another embodiment of the present disclosure;
[0022] FIG7 is a flow chart of a method for training an autonomous driving model according to an embodiment of the present disclosure;
[0023] FIG8 is a structural block diagram of an information prediction device according to an embodiment of the present disclosure;
[0024] FIG9 is a structural block diagram of a training device for an autonomous driving model according to an embodiment of the present disclosure; and
[0025] FIG10 is a block diagram of an electronic device used to implement the information prediction method or the training method of the autonomous driving model according to the embodiment of the present disclosure. DETAILED DESCRIPTION
[0026] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.
[0027] A major challenge facing end-to-end autonomous driving systems is how to establish robust environmental perception and representation. For example, the ability to establish robust environmental perception and representation can be improved by introducing auxiliary perception tasks. Specifically, existing autonomous driving systems usually rely on multi-task assisted planning and improve environmental representation by introducing auxiliary supervisory signals, but these methods often require expensive and difficult-to-obtain, accurate perception annotations, that is, accurately annotated perception data is required to use the annotated data as auxiliary supervisory signals. Therefore, there is a problem of time-consuming and labor-intensive, which will limit the deployment cost, scalability and practical applicability of autonomous driving models to a certain extent.
[0028] In order to solve the problems existing in the traditional technology, the present disclosure provides an information prediction method and a training method, device, equipment, medium, program product and autonomous driving vehicle of an autonomous driving model. The following first describes the application scenario of the method and device provided by the present disclosure in conjunction with FIG1.
[0029] FIG1 is a schematic diagram of an application scenario of an information prediction method and an autonomous driving model training method and device according to an embodiment of the present disclosure.
[0030] As shown in Fig. 1, the application scenario 100 of this embodiment may include a vehicle 110 and a server 120. The vehicle 110 may be integrated with an automatic driving system, and the server 120 may be, for example, a background management server for providing support for the operation of the intelligent driving system.
[0031] In one embodiment, the vehicle 110 may also be integrated with various types of sensors that are connected to the automatic driving system, such as visual cameras and radar ranging sensors. Among them, the visual cameras may include, for example, monocular cameras, binocular stereo cameras, panoramic cameras, infrared cameras, etc. The radar ranging sensors may include, for example, laser radars, millimeter wave radars, ultrasonic radars, etc. The automatic driving system may process the data collected by various types of sensors to determine the environmental information of the vehicle 110 and the control information for the vehicle 110, so that the vehicle travels according to the control information.
[0032] In one embodiment, the server 120 may, for example, provide an autonomous driving system with an autonomous driving model 130, and the autonomous driving system may process the image data collected by the sensor according to the autonomous driving model 130, and combine the current driving data of the vehicle to predict the control information for the vehicle, so that the vehicle automatically drives according to the control information. For example, the autonomous driving model 130 may take the prediction of control information as the main task, take the image generation task as the auxiliary task, synchronously output the image token sequence and the predicted control information, and generate the image by decoding the output image token sequence.
[0033] In one embodiment, the server 120 can train the autonomous driving model 130 in combination with the labeled data so that the autonomous driving model has the ability to predict control information. The server 120 can use the image data to perform self-supervisory training on the autonomous driving model 130 so that the autonomous driving model has the ability to generate images to perform auxiliary tasks and rely on the auxiliary tasks to improve the accuracy of the autonomous driving model 130 in performing the main task.
[0034] In one embodiment, the autonomous driving system in the vehicle 110 may also send the data collected by the sensor to the server 120, and the server 120 generates images and predicts the control information. Subsequently, the server 120 sends the predicted control information to the autonomous driving system, and the autonomous driving system controls the movement of the vehicle according to the control information.
[0035] It should be noted that the information prediction method provided by the present disclosure can be executed by the vehicle or the automatic driving system in the vehicle, or by the server 120. Accordingly, the information prediction device provided by the present disclosure can be set in the vehicle or the automatic driving system included in the vehicle, or in the server 120. The training method of the automatic driving model provided by the present disclosure can be executed by the server 120. Accordingly, the training device of the automatic driving model provided by the present disclosure can be set in the server 120.
[0036] It should be understood that the number and type of vehicles 110 and servers 120 in FIG1 are merely illustrative. Any number and type of vehicles 110 and servers 120 may be provided as required.
[0037] The information prediction method provided by the present disclosure will be described in detail below in conjunction with Figures 2 to 6.
[0038] FIG2 is a flow chart of an information prediction method according to an embodiment of the present disclosure.
[0039] As shown in FIG. 2 , the information prediction method 200 of this embodiment may include operations S210 to S240 .
[0040] In operation S210, perception data is acquired, which includes at least image data collected by a sensor in the vehicle and driving data of the vehicle.
[0041] According to an embodiment of the present disclosure, perception data can be acquired in real time during the execution of the information prediction method. The driving data of the vehicle may include one or more of the navigation data at the current moment, the speed at the current moment, the control information for the vehicle at the current moment, etc. Among them, the control information may include one or more of the accelerator pedal angle, the brake pedal angle, the steering wheel steering and the steering wheel rotation angle, etc. The driving data can be acquired by the vehicle control system in the vehicle, for example, or by the automatic driving system in the vehicle, and the present disclosure does not limit this. The image data collected by the sensor may include, for example, the environmental image at the current moment collected by the camera in the vehicle, etc.
[0042] In one embodiment, the acquired perception data may include, in addition to the image data and driving data collected at the current moment, image data and driving data collected at historical moments (e.g., one or more historical moments). The image data at the historical moments and the image data at the current moment may constitute an image data sequence, and the driving data at the historical moments and the driving data at the current moment may constitute a driving data sequence.
[0043] In operation S220, the image data is encoded to obtain an image token sequence corresponding to the image data.
[0044] According to an embodiment of the present disclosure, for example, the environment image may be first processed by block processing, and then each image block obtained by block processing may be encoded to obtain a token. Then, by encoding multiple image blocks obtained by block processing, a token sequence may be obtained, that is, an image token sequence may be obtained. For example, a two-dimensional convolutional layer may be used to encode each image block to obtain a token.
[0045] When the image data sequence is obtained, a token sequence can be obtained for each image data in the image data sequence, and multiple token sequences can be obtained in total. Then, according to the acquisition order of the image data, the multiple token sequences are spliced to obtain an image token sequence corresponding to the image data sequence.
[0046] In operation S230, the driving data is encoded to obtain driving characteristics corresponding to the driving data.
[0047] For example, driving data can be represented by a string of numbers, which may include the speed of the vehicle, the two-dimensional coordinates of a target point in a navigation path, the pedal angle of the vehicle accelerator, etc. For example, an embedding layer can be used to encode the driving data to map the driving data into a vector to obtain driving features.
[0048] When a driving data sequence is obtained, the driving data at each moment in the driving data sequence may be encoded to obtain a feature. A plurality of features are obtained for the driving data sequence in total. Then, according to the collection order of the driving data, the plurality of features are spliced to obtain a driving feature corresponding to the driving data sequence.
[0049] In operation S240 , based on the driving characteristics and the image token sequence, a generation model is used to generate a prediction token sequence corresponding to the image token sequence and control information for the vehicle.
[0050] For example, the driving feature and the image token sequence can be concatenated to obtain the input feature, and the input feature can be input into the generation model to obtain the prediction token sequence and control information. The control information can be understood as the control signal of the vehicle, which can include at least one of the following information: accelerator pedal angle, brake pedal angle, steering wheel rotation direction and steering wheel rotation angle, etc.
[0051] In this embodiment, the generation model is a model that performs multiple tasks, and the multiple tasks performed include an image generation task and a control information prediction task. The image generation task can be an image reconstruction task or an image prediction task, and the image generation task is an auxiliary task relative to the control information prediction task.
[0052] For example, the generation model may be a variational auto encoder (VAEs), a diffusion model, or an autoregressive model, etc. The autoregressive model may be, for example, a model based on a Transformer architecture, which is not limited in the present disclosure.
[0053] In one embodiment, the image token sequence is set to be the sequence X corresponding to the image data at time t. t =(x t,1 , x t,2 , …, x t,n ), the prediction token sequence generated by the generative model can be, for example, the predicted sequence X corresponding to the image data at time t t ’ =(x t,1 ’ , x t,2 ’ , …, x t,n ’ ), or it can be the predicted sequence X corresponding to the image data at time t+1 t+1 =(x t+1,1 , x t+1,2 , …, x t+1,n ).
[0054] After obtaining the control information, the automatic driving system in the vehicle can, for example, determine driving parameters based on the control information and control the vehicle driving based on the driving parameters.
[0055] In the disclosed embodiment, by introducing an auxiliary task of predicting the token sequence of the image to predict the control information of the vehicle, robust environmental perception and representation can be established in the process of predicting the control information. And because the auxiliary task can be implemented with the collected image as a supervisory signal, it does not need to rely on accurate perception annotation, which can effectively reduce the difficulty of implementing the auxiliary task, facilitate the wide deployment of the control information prediction task, and improve the scalability and practical applicability of the control information prediction task.
[0056] FIG. 3 is a diagram showing an implementation principle of an information prediction method according to an embodiment of the present disclosure.
[0057] In one embodiment, in the process of encoding image data into an image token sequence, some fine-grained information in the image may be lost, for example, the association information between the image blocks corresponding to two tokens may be lost, and the influence of small objects such as traffic lights on the prediction accuracy of control information may be lost. In order to further ensure the prediction accuracy of control information and enable the auxiliary task to better assist the completion of the main task (predicting control information), this embodiment can extract image features of the image data while encoding the image data to obtain the image token sequence, that is, extract features based on the image data, and use the extracted features as part of the input data of the generation model.
[0058] As shown in FIG3 , in the embodiment 300, the sequence encoding network 311 may be used to encode the image data 301 to obtain the image token sequence 302. The embodiment 300 may also use the first convolutional network 312 to extract the image features of the image data 301 to obtain the first feature vector 303 representing the image features. The embodiment 300 also uses the driving data encoding network 313 to encode the driving data 304 to obtain the driving features 305.
[0059] After obtaining the driving feature 305, the first feature vector 303 and the image token sequence 302, the generation model 320 can be used to perform the auxiliary task and the main task based on these features, that is, to generate the predicted token sequence 306 and the control information 307 for the vehicle. Specifically, the driving feature 305, the first feature vector 303 and the image token sequence 302 can be concatenated as input features and input into the generation model 320, and the generation model 320 outputs the predicted token sequence 306 and the control information 307.
[0060] In one embodiment, the generation model 320 may be an autoregressive model. When executing a task, the driving feature 305 and the first feature vector 303 may be concatenated and input into the generation model 320, and the generation model predicts the first token in the token sequence 306. Then, the driving feature 305, the first feature vector 303, and the first image token in the image token sequence 302 may be concatenated and input into the generation model 320, and the generation model predicts the second token in the token sequence 306. By analogy, the token sequence 306 may be generated. Finally, the driving feature 305, the first feature vector 303, and the image token sequence 302 may be concatenated and input into the generation model 320, and the generation model 320 predicts the control information 307.
[0061] In one embodiment, when the generation model 320 predicts a single token, the data generated is a probability vector, which includes the probability of each token in the multiple tokens. In this embodiment, the token corresponding to the highest probability in the probability vector can be used as the predicted token. The token corresponding to the image block can be understood as a visual vocabulary, and the number of probability values included in the probability vector can be understood as the number of predetermined visual vocabulary.
[0062] In one embodiment, the driving data encoding network 313 may adopt an embedded layer structure, for example. This embodiment may also adopt any non-serialized network to replace the first convolutional network 312. The first convolutional network 312 may adopt a network architecture such as VGG, ResNet, MobileNet, etc., for example, a lightweight convolutional network architecture, etc., which is not limited in the present disclosure.
[0063] The first convolutional network 312 is used to map image data into image features. For example, the image features of the original image with a spatial resolution of 1 / 2m can be flattened to obtain the first feature vector.
[0064] In one embodiment, the driving data may include at least the following two parts of data: driving parameters of the vehicle and navigation data of the vehicle. In this embodiment, different networks may be used to encode different parts of the driving data, so as to improve the expression ability of the driving characteristics obtained by encoding. This is because different types of encoding principles may be used for different types of data to improve the encoding accuracy.
[0065] For example, the navigation data may be a navigation map, that is, the navigation data may be data in an image modality. This embodiment may use a convolutional network to encode the navigation data to obtain a second feature vector representing the navigation data. For example, the driving parameters may include at least one of the following parameters: vehicle speed, scalar acceleration, rotation angle, etc. This embodiment may use a fully connected layer or a multi-layer perceptron to encode the driving parameters to obtain a third feature vector representing the driving parameters. Accordingly, the aforementioned driving characteristics include the second feature vector and the third feature vector of this embodiment.
[0066] FIG. 4 is a schematic diagram showing a principle of encoding navigation data according to an embodiment of the present disclosure.
[0067] As shown in FIG. 4 , in an embodiment 400, the navigation data may include the positions of at least two target points on the navigation path. The positions may be represented, for example, by two-dimensional coordinates to represent the positions of the target points on the road plane where the vehicle is located. For example, the at least two target points may be two, one being the target point corresponding to the current position of the vehicle, and the other being the next passing point of the vehicle on the navigation path. The at least two target points may also be multiple to represent the entire navigation path or a sub-path close to the vehicle on the navigation path.
[0068] In other words, in embodiment 400, only the positions of at least two target points on the navigation path can be extracted from navigation map 401 as navigation data 402. In this way, the interference of other information in navigation map 401 except the navigation path on the prediction task can be reduced, which is conducive to improving the prediction accuracy of control information.
[0069] For example, after obtaining the navigation data 402, the embodiment 400 can generate a mask image 403 representing the path formed by the at least two target points based on the positions of the at least two target points. By converting to a mask image, it is convenient to use a convolutional network to extract the features of the navigation path. After obtaining the mask image 403, the convolutional network 410 can be used to encode the mask image 403, so as to obtain a second feature vector 404 representing the navigation data.
[0070] The convolution network 410 for encoding the mask image 403 may be, for example, a ResNet series network, a VGG series network, etc., which is not limited in the present disclosure. In this embodiment, the mask image 403 may be input into the convolution network 410, and the convolution network may output image features in the form of tensors, and the second feature vector 404 may be obtained by expanding the image features.
[0071] FIG. 5 is a schematic diagram showing the principle of encoding image data to obtain an image token sequence according to an embodiment of the present disclosure.
[0072] In one embodiment, in the process of encoding the image data to obtain the image token sequence, for example, quantization processing may be performed to discretize the obtained image token sequence, thereby facilitating the calculation of the probability in the prediction task.
[0073] For example, in embodiment 500, encoder 510 may be used to encode image data 501 to map the pixel values of the image data to a more efficient representation space, thereby compressing information and improving the computational efficiency of the generation model. By encoding with encoder 510, a coding feature sequence 502 may be obtained. Subsequently, quantizer 520 is used to quantize the coding feature sequence 502 to map the continuous representation of the coding feature sequence to an integer value for discretization. Through quantization, an image token sequence 503 is obtained.
[0074] In one embodiment, the input to the encoder 510 may be a series of pixels obtained by pixel segmentation of the image. The encoder 510 may, for example, adopt a two-dimensional convolutional layer structure. For example, the encoder may process the pixels using a function , then the following formula (1) can be used to obtain the coding feature sequence f 502. It should be noted that in the actual processing process, the input function The variable is the pixel sequence obtained by dividing the image I into blocks.
[0075] Formula (1)
[0076] In one embodiment, the quantizer 520 may be a pre-learned codebook. The codebook contains K vectors, K is the number of predetermined visual words, and C is the dimension of each predetermined visual word embedding. The quantizer 520 can rely on the quantization function To quantize the coding feature sequence f 502. For example, for the coding feature corresponding to the pixel in the i-th row and j-th column in the image I, , the following formula (2) can be used for quantization to obtain the encoding feature The corresponding quantized features , as an image token. In this way, each encoded feature can be mapped to a vector included in the codebook e closest to it, that is, .in, represents the kth vector of codebook e.
[0077] Formula (2)
[0078] In one embodiment, the step of encoding the image data to obtain the image token sequence may be implemented, for example, by using data compression technology: Vector Quantization (VQ). For example, the image data may be encoded by using a pre-trained Vector Quantized Generative Adversarial Network (VQGAN) or an encoder in a Vector Quantized Variational Auto Encoder (VQVAE) to map the image data to a discretized vector representation in the VQ space, which is not limited in the present disclosure.
[0079] In one embodiment, the following formula (3) can be used to calculate the image at time t: Encode to obtain a discrete image token sequence.
[0080] Formula (3)
[0081] Among them, the encoding network including encoder and quantizer , the encoding network has, for example, a 16-fold spatial downsampling rate, where , h and w are the pixel height and width of image I respectively. Thus, after being processed by the encoding network, the bit compression ratio of image data I is Among them, 3 is the number of channels for each pixel, and 8 is the number of bits occupied by each pixel.
[0082] FIG6 is a diagram showing an implementation principle of an information prediction method according to another embodiment of the present disclosure.
[0083] According to an embodiment of the present disclosure, when a generative model is used to perform a prediction task, a mark may be added to a sequence input to the generative model to prompt the generative model to perform auxiliary tasks and main tasks.
[0084] For example, if the auxiliary task is to regenerate the input image token sequence, that is, if the input image token sequence represents the image data at time t, then the auxiliary task can be to predict the token sequence representing the image data at time t. Then a start marker can be added to the head position of the image token sequence obtained by the above embodiment, so that the generation model predicts the first token in the token sequence representing the image data at time t based on the start marker. The start marker can be, for example, <c>The present disclosure does not limit the predefined marks.
[0085] For example, a query tag can be added at the end of the image token sequence to prompt the generated model that the image token sequence has been fully input and the main task, i.e., predicting the control information for the vehicle, can be started. The present disclosure does not limit the predefined marks.
[0086] In one embodiment, a tag can be added to the head position and the tail position of the image token sequence at the same time to obtain a labeled token sequence. Subsequently, for example, the driving characteristics obtained in the above embodiment can be spliced with the labeled token sequence to obtain an input sequence for the generation model. Subsequently, the input sequence is input into the generation model, and the generation model can generate a predicted token sequence (i.e., a token sequence representing the image data at time t) and control information.
[0087] In one embodiment, when executing the auxiliary task and the main task, for example, the first feature vector representing the image feature obtained in the above embodiment may also be considered simultaneously.
[0088] In one embodiment, the driving data may include the aforementioned driving parameters and navigation data. The navigation data may be encoded using a second convolutional network, and the driving parameters may be encoded using an MLP.
[0089] For example, as shown in Figure 6, in embodiment 600, the acquired perception data includes image data 601 and driving data. The perception data can be processed via an autonomous driving model to generate a prediction token sequence and control information for the vehicle.
[0090] The autonomous driving model may include a coding layer and a generation model 620. The coding layer may include networks for encoding image data 601, driving parameters 602, and navigation data 603, respectively.
[0091] In one embodiment, the encoding layer includes a sequence encoding network 611 for encoding the image data 601 to obtain an image token sequence 604 corresponding to the image data 601 .
[0092] In one embodiment, the encoding layer may further include a driving data encoding network, which is used to encode the driving data to obtain driving features. In one embodiment, the driving data may include driving parameters 602 and navigation data 603. The driving data encoding network may include a multi-layer perceptron MLP 612 and a second convolutional network 613. The multi-layer perceptron MLP 612 is used to encode the driving parameters 602 to obtain a third feature vector 605. The second convolutional network 613 is used to encode the navigation data 603 to obtain a second feature vector 606.
[0093] For example, the driving parameters include the speed at time t For example, the multilayer perceptron MLP 612 can use the following formula (4) to encode the driving parameters to obtain the third feature vector 605. Among them, The function used by the multilayer perceptron.
[0094] Formula (4)
[0095] For example, assuming that the navigation data includes the positions of at least two target points on the navigation path, taking the principle described in the above embodiment 400 as an example, the second convolutional network 613 can use the following formula (5) to obtain the second feature vector .in, A mask image representing a path formed by at least two target points is generated based on the positions of at least two target points. It is the function adopted by the second convolutional network 613.
[0096] Formula (5)
[0097] In one embodiment, the encoding layer may further include a first convolutional network 614 for extracting image features of the image data 601 to obtain a first feature vector 607 representing the image features. The first convolutional network 614 is a non-quantized branch and may be used to extract driving-related information from the image data 601. For example, the first convolutional network 614 may use a lightweight convolutional network. , to obtain the image data The image features of spatial resolution can be flattened and used as hint information when predicting control information. For example, for the image data at time t , the first convolutional network 614 can use the following formula (6) to obtain the first feature vector 607. Among them, , for The pixel height and pixel width of the image feature at the spatial resolution.
[0098] Formula (6)
[0099] In one embodiment, during the process of encoding the perceptual data, learnable position information may also be incorporated, which is similar to the position tag added to the token when inputting the Transformer architecture.
[0100] In one embodiment, after the encoding of the perception data is completed, the input sequence of the generation model 620 can be obtained, for example, based on each vector or sequence obtained by encoding.
[0101] For example, a start tag may be added at the head of the image token sequence 604. <c>, add a query token at the end of the image token sequence 604< / c> , get the marked token sequence, and then put the obtained vector and sequence in order Input the generated model in sequence. Among them, time t can be understood as the current time.
[0102] In one embodiment, the generative model 620 may be, for example, an autoregressive model. This is because the autoregressive model has the flexibility to accept diverse prompts, and the series model (such as the generative pre-trained model GPT, etc.) is scalable. In this embodiment, The input sequence is input into the generation model 620, and the generation model predicts the probability vector of the first token in the predicted token sequence 608 based on the input sequence. This embodiment can use the token corresponding to the maximum probability value in the probability vector as the first token in the predicted token sequence. as well as The first image token in is used as an input sequence to input into the generation model 620, and the generation model predicts the probability vector of the second token in the prediction token sequence 608. In this embodiment, the token corresponding to the maximum probability value in the probability vector can be used as the second token in the prediction token sequence. as well as All image tokens except the last image token are input into the generation model, thereby obtaining the last token in the predicted token sequence 608. Finally, this embodiment can The generation model is input as an input sequence, and the generation model predicts control information 609 for the vehicle at time t+1.
[0103] Through the disclosed embodiments, with the help of the autonomous driving model, end-to-end prediction of control information can be achieved. And because the image generation task is used as an auxiliary task to guide the implementation of the main task, there is no need to rely on complex perception tasks and expensive perception annotations, which can provide a low-cost and scalable solution for end-to-end autonomous driving technology.
[0104] In order to facilitate the implementation of the information prediction method of the embodiment of the present disclosure, the present disclosure also provides a training method for an autonomous driving model, which will be described in detail below in conjunction with FIG. 7 .
[0105] FIG. 7 is a flow chart of a method for training an autonomous driving model according to an embodiment of the present disclosure.
[0106] As shown in FIG7 , the training method 700 of the autonomous driving model of this embodiment may include operations S710 to S740. The autonomous driving model may include a coding layer and a generation model. The coding layer may include a sequence coding network and a driving data coding network.
[0107] In operation S710, a sequence encoding network is used to encode image data in the sample perception data to obtain an image token sequence corresponding to the image data.
[0108] According to an embodiment of the present disclosure, the sample perception data includes image data collected at a historical moment and driving data of the vehicle at the moment when the image data was collected.
[0109] The sequence encoding network may include, for example, a structure for performing block processing on an image and a two-dimensional convolutional layer, so as to encode the image data in the sample perception data using a principle similar to the principle described in the aforementioned operation S220 to obtain an image token sequence. In one embodiment, the sequence encoding network may use vector quantization compression technology to encode the image data.
[0110] In operation S720, a driving data encoding network is used to encode driving data in the sample perception data to obtain driving features corresponding to the driving data.
[0111] According to an embodiment of the present disclosure, the implementation principle of operation S720 is similar to the implementation principle of the aforementioned operation S220, which will not be repeated here. The driving data encoding network may adopt an embedding layer structure, or may include an MLP and a convolutional network as shown in the aforementioned embodiment 600.
[0112] In operation S730 , based on the driving characteristics and the image token sequence, a generation model is used to generate a prediction token sequence corresponding to the image token sequence and prediction control information for the vehicle.
[0113] According to an embodiment of the present disclosure, the implementation principle of operation S730 is similar to the implementation principle of the aforementioned operation S230. It should be noted that, when the generation model is an autoregressive model, the generation model generates a series of probability vectors corresponding to the tokens in the prediction token sequence. In this embodiment, the token corresponding to the maximum probability value in the probability vector can be used as the token corresponding to the probability vector in the prediction token sequence.
[0114] In operation S740, the autonomous driving model is trained based on the prediction token sequence and the image token sequence.
[0115] For example, this embodiment can determine the loss value of the autonomous driving model based on the difference between the predicted token sequence and the image token sequence, and then train the autonomous driving model with the goal of minimizing the loss value.
[0116] In one embodiment, when the generation model generates a series of probability vectors, the embodiment can determine the loss value of the autonomous driving model according to the probability value corresponding to the i-th image token in the image token sequence in the i-th probability vector. For example, the classification loss function can be used to calculate the loss value.
[0117] For example, for an embodiment in which the generation model is an autoregressive model, considering that the principle of autoregressive modeling is that, given a series of discrete tags, the generation probability of the ith discrete tag depends on all tag sequences located before the ith discrete tag. Therefore, taking the cross entropy loss function as an example, the embodiment can use the following formula (7) to determine the loss value of the autonomous driving model based on the probability vector: .in, Generate the probability value for the i-th image token in the i-th probability vector for the image at time t.
[0118] Formula (7)
[0119] It should be noted that the probability value It is also related to the driving data at time t, which is not reflected in formula (7). n is the number of image tokens in the image token sequence.
[0120] Through this embodiment, since the supervisory signal is the image data itself in the sample perception data, without the need for accurate perception annotation data, self-supervised training of the autonomous driving model can be achieved.
[0121] In one embodiment, when training an autonomous driving model, for example, the network parameters included in the sequence encoding network in the autonomous driving model may not be adjusted, so as to facilitate improving the stability of the image token sequence serving as a supervisory signal, thereby improving the training accuracy and training efficiency of the autonomous driving model.
[0122] In one embodiment, the sample perception data may include perception data at several moments before time t in addition to the perception data at time t. For the perception data at each moment, the image token sequence and driving characteristics may be obtained in a similar manner. When the generation model predicts the predicted token sequence and the control information at time t+1, the perception data at several moments before time t may be considered at the same time to improve the prediction accuracy.
[0123] For example, if the sample perception data includes perception data from the 1st moment to the Tth moment in the historical moments, then in the process of training the autonomous driving model, the prediction token sequence corresponding to the image data at the 1st moment can be predicted based on the perception data at the 1st moment, and a loss value can be obtained based on the prediction token sequence. Subsequently, based on the perception data at the 1st moment and the perception data at the 2nd moment, the prediction token sequence corresponding to the image data at the 2nd moment is predicted, and a loss value can be obtained based on the prediction token sequence. By analogy, T loss values can be obtained. In this embodiment, the sum of T loss values can be used as the loss value of the token sequence generated by the autonomous driving model. The autonomous driving model is trained with the goal of minimizing the loss value.
[0124] In one embodiment, a supervisory signal may also be added to the main task (predicted control information) performed by the autonomous driving model. For example, the sample perception data may also include real control information. Specifically, if the sample perception data includes perception data at time t, the perception data at time t may have a label indicating the real control information at time t+1. This embodiment may also consider the difference between the real control information and the predicted control information when training the autonomous driving model. For example, a regression loss function may be used to determine the loss value of the autonomous driving model generating the predicted control information. For example, the real control information is set to , To predict control information, this embodiment can use the following formula (8) to calculate the loss value of generating the predicted control information: It should be noted that the prediction control information It is also related to the driving data at time t, and may also be related to the image data and driving data before time t, which are not reflected in the expression here. The regression loss function may include, for example, an L1 loss function, an L2 loss function, etc., which is not limited in the present disclosure.
[0125] Formula (8)
[0126] For example, if the sample perception data includes perception data from the 1st moment to the Tth moment in the historical moments, then in the process of training the autonomous driving model, the control information at the 2nd moment can be predicted based on the perception data at the 1st moment, and a loss value for generating the control information can be obtained based on the predicted control information and the actual control information at the 2nd moment. Subsequently, the control information at the 3rd moment is predicted based on the perception data at the 1st moment and the perception data at the 2nd moment, and a loss value for generating the control information can be obtained based on the predicted control information and the actual control information at the 3rd moment. By analogy, T loss values can be obtained, and this embodiment can use the sum of the T loss values as the loss value for generating the control information of the autonomous driving model. The autonomous driving model is trained with the goal of minimizing the loss value.
[0127] In one embodiment, the loss value of the autonomous driving model in generating control information and the loss value of generating a prediction token sequence can be considered at the same time. For example, the weighted sum of the two loss values can be used as the total loss value of the autonomous driving model. The autonomous driving model is trained with the goal of minimizing the total loss value. The weights used in the weighting can be set according to actual needs. For example, considering that the task of generating a prediction token sequence is an auxiliary task, the loss value can be A smaller weight is assigned, which is not limited in the present disclosure.
[0128] In one embodiment, the aforementioned encoding layer may further include a first convolutional network. The first convolutional network is similar to the first convolutional network in the aforementioned embodiment 600. This embodiment may use the first convolutional network to extract image features of image data to obtain a first feature vector representing the image features. Subsequently, based on the driving features, the first feature vector and the image token sequence, a generative model is used to generate a predicted token sequence and predicted control information.
[0129] In one embodiment, the driving data may include historical driving parameters of the vehicle and historical navigation data of the vehicle. The driving data encoding network may include the second convolutional network and the multilayer perceptron in the aforementioned embodiment 600. The second convolutional network is used to encode the historical navigation data to obtain a second feature vector representing the navigation data. The multilayer perceptron is used to encode the historical driving parameters to obtain a third feature vector representing the driving parameters. The aforementioned driving characteristics include the second feature vector and the third feature vector.
[0130] In one embodiment, the sequence encoding network includes an encoder and a quantizer. The sequence encoding network can use a principle similar to the principle described in the aforementioned embodiment 500 to encode the image data, thereby obtaining an image token sequence.
[0131] In one embodiment, the principle of generating a prediction token sequence and prediction control information by a generation model is similar to the principle described in the aforementioned embodiment 600 and will not be repeated here.
[0132] In one embodiment, the training method of the autonomous driving model can train the autonomous driving model through two tasks, one of which is the autoregressive generation task of the next token (i.e., the task of generating a predicted token sequence), and the other is the action prediction of the planner (e.g., brake, accelerator, steering wheel, etc.) (i.e., the task of predicting control information). In addition to different output heads, the two tasks share most of the network parameters. In this way, when optimizing the shared parameters for the generation task, the model will learn the dependencies between the input tokens well, thereby establishing a good environmental representation and facilitating the implementation of the action prediction task.
[0133] Based on the information prediction method provided by the present disclosure, the present disclosure also provides an information prediction device, which will be described in detail below in conjunction with FIG.
[0134] FIG8 is a structural block diagram of an information prediction device according to an embodiment of the present disclosure.
[0135] As shown in FIG. 8 , the information prediction device 800 of this embodiment may include a data acquisition module 810 , a first encoding module 820 , a second encoding module 830 and a first generation module 840 .
[0136] The data acquisition module 810 is used to acquire perception data, which includes image data collected by sensors in the vehicle and driving data of the vehicle. In one embodiment, the data acquisition module 810 can be used to perform the operation S210 described above, which will not be repeated here.
[0137] The first encoding module 820 is used to encode the image data to obtain an image token sequence corresponding to the image data. In one embodiment, the first encoding module 820 can be used to perform the operation S220 described above, which will not be described in detail here.
[0138] The second encoding module 830 is used to encode the driving data to obtain driving characteristics corresponding to the driving data. In one embodiment, the second encoding module 830 can be used to perform the operation S230 described above, which will not be described in detail here.
[0139] The first generation module 840 is used to generate a prediction token sequence corresponding to the image token sequence and control information for the vehicle using a generation model based on the driving characteristics and the image token sequence. In one embodiment, the first generation module 840 can be used to perform the operation S240 described above, which will not be repeated here.
[0140] According to an embodiment of the present disclosure, the image token sequence is a discrete feature of the image data. The information prediction device 800 may also include a first feature extraction module for extracting image features of the image data using a first convolutional network to obtain a first feature vector representing the image features. The first generation module 840 may be specifically used to generate a prediction token sequence and control information using a generation model based on the driving features, the first feature vector and the image token sequence.
[0141] According to an embodiment of the present disclosure, the driving data includes driving parameters of the vehicle and navigation data of the vehicle. The second encoding module 830 may include a first encoding submodule and a second encoding submodule. The first encoding submodule is used to encode the navigation data using a second convolutional network to obtain a second feature vector representing the navigation data. The second encoding submodule is used to encode the driving parameters using a multilayer perceptron to obtain a third feature vector representing the driving parameters. The driving characteristics include the second feature vector and the third feature vector.
[0142] According to an embodiment of the present disclosure, the navigation data may include the positions of at least two target points on the navigation path. The first encoding submodule may include an image generation unit and an image encoding unit. The image generation unit is used to generate a mask image representing the path formed by the at least two target points based on the positions of the at least two target points. The image encoding unit is used to encode the mask image using a second convolutional network to obtain a second feature vector.
[0143] According to an embodiment of the present disclosure, the first encoding module 820 may include a third encoding submodule and a first quantization submodule. The third encoding submodule is used to encode the image data using an encoder to obtain a coding feature sequence. The first quantization submodule is used to quantize the coding feature sequence using a quantizer to obtain an image token sequence.
[0144] According to an embodiment of the present disclosure, the above-mentioned first generation module may include a first tag adding submodule, a first sequence obtaining submodule and a first generation submodule. The first tag adding submodule is used to add a start tag at the head position of the image token sequence and to add a query tag at the tail position of the image token sequence to obtain a marked token sequence. The first sequence obtaining submodule is used to obtain an input sequence of the generation model based on driving characteristics and the marked token sequence. The first generation submodule is used to input the input sequence into the generation model to obtain a predicted token sequence and control information generated by the generation model.
[0145] Based on the training method of the autonomous driving model provided by the present disclosure, the present disclosure also provides a training device for the autonomous driving model. The device will be described in detail below in conjunction with FIG. 9 .
[0146] FIG9 is a structural block diagram of a training device for an autonomous driving model according to an embodiment of the present disclosure.
[0147] As shown in Fig. 9, the training device 900 of the autonomous driving model of this embodiment may include a third encoding module 910, a fourth encoding module 920, a second generation module 930 and a training module 940. The autonomous driving model includes an encoding layer and a generation model, and the encoding layer includes a sequence encoding network and a driving data encoding network.
[0148] The third encoding module 910 is used to encode the image data in the sample perception data using a sequence encoding network to obtain an image token sequence corresponding to the image data. In one embodiment, the third encoding module 910 can be used to perform the operation S710 described above, which will not be repeated here.
[0149] The fourth encoding module 920 is used to encode the driving data in the sample perception data using a driving data encoding network to obtain driving features corresponding to the driving data. In one embodiment, the fourth encoding module 920 can be used to perform the operation S720 described above, which will not be repeated here.
[0150] The second generation module 930 is used to generate a prediction token sequence corresponding to the image token sequence and prediction control information for the vehicle using a generation model based on the driving characteristics and the image token sequence. In one embodiment, the second generation module 930 can be used to perform the operation S730 described above, which will not be repeated here.
[0151] The training module 940 is used to train the autonomous driving model according to the prediction token sequence and the image token sequence. In one embodiment, the training module 940 can be used to perform the operation S740 described above, which will not be repeated here.
[0152] According to an embodiment of the present disclosure, the sample perception data also includes real control information. The training module 940 can also be used to train the autonomous driving model according to the difference between the real control information and the predicted control information.
[0153] According to an embodiment of the present disclosure, the above-mentioned training module 940 is specifically used to train other model structures in the autonomous driving model except the sequence encoding network.
[0154] According to an embodiment of the present disclosure, the encoding layer also includes a first convolutional network. The training device 900 of the above-mentioned autonomous driving model may also include a second feature extraction module for extracting image features of image data using the first convolutional network to obtain a first feature vector representing the image features. The above-mentioned second generation module 930 is specifically used to generate a prediction token sequence and prediction control information using a generation model based on driving characteristics, the first feature vector and the image token sequence.
[0155] According to an embodiment of the present disclosure, the driving data includes historical driving parameters of the vehicle and historical navigation data of the vehicle, and the driving data encoding network includes a second convolutional network and a multi-layer perceptron. The fourth encoding module 920 may include a fourth encoding submodule and a fifth encoding submodule. The fourth encoding submodule is used to encode the historical navigation data using the second convolutional network to obtain a second feature vector representing the navigation data. The fifth encoding submodule is used to encode the historical driving parameters using a multi-layer perceptron to obtain a third feature vector representing the driving parameters. The driving characteristics include a second feature vector and a third feature vector.
[0156] According to an embodiment of the present disclosure, the above-mentioned sequence coding network includes an encoder and a quantizer. The above-mentioned third coding module 910 may include a sixth coding submodule and a second quantization submodule. The sixth coding submodule is used to encode the image data using the encoder to obtain a coding feature sequence. The second quantization submodule is used to quantize the coding feature sequence using a quantizer to obtain an image token sequence. Among them, the sequence coding network processes the image data based on a compression technology based on vector quantization.
[0157] According to an embodiment of the present disclosure, the above-mentioned second generation module 930 may include a second tag adding submodule, a second sequence obtaining submodule and a second generation submodule. The second tag adding submodule is used to add a start tag at the head position of the image token sequence, and to add a query tag at the tail position of the image token sequence to obtain a marked token sequence. The second sequence obtaining submodule is used to obtain an input sequence of the generation model based on driving characteristics and the marked token sequence. The second generation submodule is used to input the input sequence into the generation model to obtain a predicted token sequence and predicted control information generated by the generation model. Among them, the generation model includes an autoregressive model.
[0158] It should be noted that the collection, storage, use, processing, transmission, provision, disclosure and application of user personal information involved in the technical solution of this disclosure are in compliance with the provisions of relevant laws and regulations, necessary confidentiality measures have been taken, and they do not violate public order and good morals. In the technical solution of this disclosure, the user's authorization or consent is obtained before obtaining or collecting user personal information.
[0159] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.
[0160] FIG10 shows a schematic block diagram of an example electronic device 1000 that can be used to implement the information prediction method or the training method of the autonomous driving model of the embodiment of the present disclosure. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.
[0161] As shown in FIG10 , the device 1000 includes a computing unit 1001, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 1002 or a computer program loaded from a storage unit 1008 into a random access memory (RAM) 1003. In the RAM 1003, various programs and data required for the operation of the device 1000 can also be stored. The computing unit 1001, the ROM 1002, and the RAM 1003 are connected to each other via a bus 1004. An input / output (I / O) interface 1005 is also connected to the bus 1004.
[0162] A number of components in the device 1000 are connected to the I / O interface 1005, including: an input unit 1006, such as a keyboard, a mouse, etc.; an output unit 1007, such as various types of displays, speakers, etc.; a storage unit 1008, such as a disk, an optical disk, etc.; and a communication unit 1009, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 1009 allows the device 1000 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0163] The computing unit 1001 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 1001 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 1001 performs the various methods and processes described above, such as the information prediction method or the training method of the autonomous driving model. For example, in some embodiments, the information prediction method or the training method of the autonomous driving model may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 1008. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 1000 via the ROM 1002 and / or the communication unit 1009. When the computer program is loaded into the RAM 1003 and executed by the computing unit 1001, one or more steps of the information prediction method or the training method of the autonomous driving model described above may be performed. Alternatively, in other embodiments, the computing unit 1001 may be configured to execute the information prediction method or the training method of the autonomous driving model in any other appropriate manner (for example, by means of firmware).
[0164] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0165] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0166] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0167] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0168] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.
[0169] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship between the client and the server is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. Among them, the server may be a cloud server, also known as a cloud computing server or a cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services ("Virtual Private Server", or "VPS" for short). The server may also be a server of a distributed system, or a server combined with a blockchain.
[0170] Based on the electronic device for implementing the information prediction method provided in the present disclosure, the present disclosure also provides an autonomous driving vehicle, which includes an electronic device for implementing the information prediction method.
[0171] In one embodiment, the autonomous driving vehicle may also include a sensor for collecting image data. The electronic device may predict the control information at the next moment based on the image data and the driving data of the autonomous driving vehicle, so as to control the driving of the autonomous driving vehicle based on the control information.
[0172] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.
[0173] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure. < / c>
Claims
1. An information prediction method, comprising: Acquiring perception data, the perception data including image data collected by a sensor in a vehicle and driving data of the vehicle; Encoding the image data to obtain an image token sequence corresponding to the image data; encoding the driving data to obtain driving characteristics corresponding to the driving data; as well as Based on the driving characteristics and the image token sequence, a generative model is used to generate a prediction token sequence corresponding to the image token sequence and control information for the vehicle.
2. The method according to claim 1, wherein: The image token sequence is a discrete feature of the image data; the method further comprises: Extracting image features of the image data using a first convolutional network to obtain a first feature vector representing the image features; The generating a prediction token sequence corresponding to the image token sequence and control information for the vehicle using a generation model based on the driving characteristics and the image token sequence comprises: Based on the driving characteristics, the first feature vector and the image token sequence, the generative model is used to generate the predicted token sequence and the control information.
3. The method according to claim 1 or 2, wherein: The driving data includes driving parameters of the vehicle and navigation data of the vehicle; The encoding of the driving data to obtain driving characteristics corresponding to the driving data includes: encoding the navigation data using a second convolutional network to obtain a second feature vector representing the navigation data; and The driving parameters are encoded using a multilayer perceptron to obtain a third feature vector representing the driving parameters. The driving characteristics include the second feature vector and the third feature vector.
4. The method according to claim 3, wherein: The navigation data includes the positions of at least two target points on the navigation path; The adopting a second convolutional network to encode the navigation data to obtain a second feature vector representing the navigation data comprises: Based on the positions of the at least two target points, generating a mask image representing a path formed by the at least two target points; as well as The second convolutional network is used to encode the mask image to obtain the second feature vector.
5. The method according to claim 1, wherein: The encoding of the image data to obtain an image token sequence corresponding to the image data comprises: Encoding the image data using an encoder to obtain a coding feature sequence; and A quantizer is used to quantize the coding feature sequence to obtain the image token sequence.
6. The method according to claim 1, wherein: The generating a prediction token sequence corresponding to the image token sequence and control information for the vehicle using a generation model based on the driving characteristics and the image token sequence comprises: Adding a start tag at the head position of the image token sequence, and adding a query tag at the tail position of the image token sequence to obtain a marked token sequence; Based on the driving characteristics and the labeled token sequence, obtaining an input sequence of the generative model; and The input sequence is input into the generation model to obtain the predicted token sequence and the control information generated by the generation model.
7. A method for training an autonomous driving model, wherein: The autonomous driving model includes a coding layer and a generation model; the coding layer includes a sequence coding network and a driving data coding network; the method includes: Using the sequence encoding network to encode image data in the sample perception data to obtain an image token sequence corresponding to the image data; encoding the driving data in the sample perception data using the driving data encoding network to obtain driving features corresponding to the driving data; Based on the driving characteristics and the image token sequence, using the generation model to generate a prediction token sequence corresponding to the image token sequence and prediction control information for the vehicle; and The autonomous driving model is trained according to the prediction token sequence and the image token sequence.
8. The method according to claim 7, wherein: The sample sensing data also includes real control information; the method also includes: The autonomous driving model is trained according to the difference between the actual control information and the predicted control information.
9. The method according to claim 7 or 8, wherein: Training the autonomous driving model includes: Train other model structures in the autonomous driving model except the sequence encoding network.
10. The method according to claim 7, wherein: The encoding layer also includes a first convolutional network; the method also includes: Extracting image features of the image data using the first convolutional network to obtain a first feature vector representing the image features; The step of using the generation model to generate a prediction token sequence corresponding to the image token sequence and prediction control information for the vehicle based on the driving characteristics and the image token sequence includes: Based on the driving characteristics, the first feature vector and the image token sequence, the generative model is used to generate the predicted token sequence and the predicted control information.
11. The method according to claim 7 or 10, wherein: The driving data includes historical driving parameters of the vehicle and historical navigation data of the vehicle; the driving data encoding network includes a second convolutional network and a multi-layer perceptron; The using the driving data encoding network to encode the driving data in the sample perception data to obtain driving features corresponding to the driving data includes: encoding the historical navigation data using the second convolutional network to obtain a second feature vector representing the navigation data; and The historical driving parameters are encoded using the multilayer perceptron to obtain a third feature vector representing the driving parameters, The driving characteristics include the second feature vector and the third feature vector.
12. The method according to claim 7, wherein: The sequence coding network includes an encoder and a quantizer; the sequence coding network is used to encode the image data in the sample perception data to obtain an image token sequence corresponding to the image data, including: encoding the image data using the encoder to obtain a coding feature sequence; and The quantizer is used to quantize the coding feature sequence to obtain the image token sequence. Wherein, the sequence coding network processes the image data based on vector quantization compression technology.
13. The method according to claim 7, wherein: The step of using the generation model to generate a prediction token sequence corresponding to the image token sequence and prediction control information for the vehicle based on the driving characteristics and the image token sequence includes: Adding a start tag at the head position of the image token sequence, and adding a query tag at the tail position of the image token sequence to obtain a marked token sequence; Based on the driving characteristics and the labeled token sequence, obtaining an input sequence of the generative model; and Inputting the input sequence into the generation model to obtain the prediction token sequence and the prediction control information generated by the generation model, Wherein, the generation model includes an autoregressive model.
14. An information prediction device, comprising: A data acquisition module, used to acquire perception data, wherein the perception data includes image data collected by sensors in the vehicle and driving data of the vehicle; A first encoding module, used for encoding the image data to obtain an image token sequence corresponding to the image data; a second encoding module, used to encode the driving data to obtain driving characteristics corresponding to the driving data; as well as A generation module is used to generate a prediction token sequence corresponding to the image token sequence and control information for the vehicle using a generation model based on the driving characteristics and the image token sequence.
15. The device according to claim 14, wherein: The image token sequence is a discrete feature of the image data; the apparatus further comprises: A feature extraction module, configured to extract image features of the image data using a first convolutional network to obtain a first feature vector representing the image features; The generation module is used to: generate the predicted token sequence and the control information using the generation model based on the driving characteristics, the first feature vector and the image token sequence.
16. The device according to claim 14 or 15, wherein: The driving data includes driving parameters of the vehicle and navigation data of the vehicle; The second encoding module includes: a first encoding submodule, configured to encode the navigation data using a second convolutional network to obtain a second feature vector representing the navigation data; and The second encoding submodule is used to encode the driving parameter using a multi-layer perceptron to obtain a third feature vector representing the driving parameter. The driving characteristics include the second feature vector and the third feature vector.
17. The device according to claim 16, wherein: The navigation data includes the positions of at least two target points on the navigation path; The first encoding submodule includes: An image generating unit, configured to generate a mask image representing a path formed by the at least two target points based on the positions of the at least two target points; as well as An image encoding unit is used to encode the mask image using the second convolutional network to obtain the second feature vector.
18. The device according to claim 14, wherein: The first encoding module includes: A third encoding submodule is used to encode the image data using an encoder to obtain an encoding feature sequence; and The quantization submodule is used to use a quantizer to quantize the encoding feature sequence to obtain the image token sequence.
19. The device according to claim 14, wherein: The generation module comprises: A tag adding submodule, used for adding a start tag at the head position of the image token sequence, and adding a query tag at the tail position of the image token sequence, to obtain a marked token sequence; a sequence acquisition submodule, configured to obtain an input sequence of the generation model based on the driving characteristics and the labeled token sequence; and A generation submodule is used to input the input sequence into the generation model to obtain the predicted token sequence and the control information generated by the generation model.
20. A training device for an autonomous driving model, wherein: The autonomous driving model includes a coding layer and a generation model; the coding layer includes a sequence coding network and a driving data coding network; the device includes: A first encoding module, configured to encode image data in the sample perception data using the sequence encoding network to obtain an image token sequence corresponding to the image data; a second encoding module, configured to encode the driving data in the sample perception data using the driving data encoding network to obtain driving features corresponding to the driving data; a generation module, configured to generate, based on the driving characteristics and the image token sequence, a prediction token sequence corresponding to the image token sequence and prediction control information for the vehicle using the generation model; and A training module is used to train the autonomous driving model according to the prediction token sequence and the image token sequence.
21. The device according to claim 20, wherein: The sample perception data also includes real control information; the training module is also used for: The autonomous driving model is trained according to the difference between the actual control information and the predicted control information.
22. The device according to claim 20 or 21, wherein: The training module is used to: Train other model structures in the autonomous driving model except the sequence encoding network.
23. The device according to claim 20, wherein: The encoding layer also includes a first convolutional network; the device also includes: A feature extraction module, configured to extract image features of the image data using the first convolutional network to obtain a first feature vector representing the image features; The generation module is used to: generate the predicted token sequence and the predicted control information using the generation model based on the driving characteristics, the first feature vector and the image token sequence.
24. The device according to claim 20 or 21, wherein: The driving data includes historical driving parameters of the vehicle and historical navigation data of the vehicle; the driving data encoding network includes a second convolutional network and a multi-layer perceptron; The second encoding module includes: a first encoding submodule, configured to encode the historical navigation data using the second convolutional network to obtain a second feature vector representing the navigation data; and The second encoding submodule is used to encode the historical driving parameters using the multi-layer perceptron to obtain a third feature vector representing the driving parameters. The driving characteristics include the second feature vector and the third feature vector.
25. The device according to claim 20, wherein: The sequence coding network includes an encoder and a quantizer; the first coding module includes: A third encoding submodule is used to encode the image data using the encoder to obtain an encoding feature sequence; and A quantization submodule is used to quantize the encoding feature sequence using the quantizer to obtain the image token sequence. Wherein, the sequence coding network processes the image data based on vector quantization compression technology.
26. The device according to claim 20, wherein: The generation module comprises: A tag adding submodule, used for adding a start tag at the head position of the image token sequence, and adding a query tag at the tail position of the image token sequence, to obtain a marked token sequence; a sequence acquisition submodule, configured to obtain an input sequence of the generation model based on the driving characteristics and the labeled token sequence; and A generation submodule, used for inputting the input sequence into the generation model to obtain the prediction token sequence and the prediction control information generated by the generation model, Wherein, the generation model includes an autoregressive model.
27. An electronic device comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute any one of claims 1 to 6.
28. An electronic device comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute any one of claims 7 to 13.
29. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to cause the computer to execute the method according to any one of claims 1 to 13.
30. A computer program product, comprising a computer program / instruction, wherein the computer program / instruction is stored on at least one of a readable storage medium and an electronic device, and when the computer program / instruction is executed by a processor, the steps of the method according to any one of claims 1 to 13 are implemented.
31. An autonomous driving vehicle comprising the electronic device according to claim 27.
Citation Information
Patent Citations
Vehicle control and model training method and device, vehicle, equipment and storage medium
CN114407916A
Urban scene end-to-end automatic driving control method and device based on attention mechanism and graph model reinforcement learning
CN115303297A
Vehicle track prediction model training method and device, equipment and storage medium
CN116401549A
Automatic driving model, training method, automatic driving method and vehicle
CN116880462A
Cited By
Vehicle control method and device, vehicle and computer readable storage medium
CN121912996A
Vehicle control method, device, vehicle and computer readable storage medium
CN121912996B
