Autonomous driving model, method, device and vehicle based on generative diffusion model

Through the automatic driving model based on the generative diffusion model, noise denoising is used to generate multiple possibilities, which solves the problem of insufficient accuracy of automatic driving decision-making in the existing technology and achieves more efficient future time prediction and decision-making.

CN117519206BActive Publication Date: 2024-08-27BEIJING BAIDU NETCOM SCI & TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311676294.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-07
Publication Date
2024-08-27
Estimated Expiration
2043-12-07

AI Technical Summary

Technical Problem

Existing autonomous driving technology has deficiencies in prediction and decision-making accuracy at future moments, making it difficult to effectively utilize multiple possibilities, resulting in poor autonomous driving decision-making effects.

Method used

An autonomous driving model based on a generative diffusion model is adopted. The current perception information is encoded through the encoding layer, the prediction layer is discretely diffused, and the decoding layer generates autonomous driving decision-making information in the future. It uses noise denoising to generate multiple possibilities, thereby improving Forecasting and decision-making accuracy.

Benefits of technology

It improves the accuracy of autonomous driving decisions and predictions, and can generate multiple possibilities based on diffusion from the past to the future, thereby improving the effect of autonomous driving.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117519206B
    Figure CN117519206B
Patent Text Reader

Abstract

The present disclosure provides an autonomous driving model, method, device and vehicle based on a generative diffusion model, and relates to the fields of computer technology, and in particular to the fields of autonomous driving and artificial intelligence technology. The encoding layer in the autonomous driving model is configured to encode the current perception information of the autonomous driving vehicle to obtain a discrete spatial representation of the current scene, the prediction layer is configured to perform discrete diffusion based on at least one scene discrete spatial representation including the discrete spatial representation of the current scene to determine the predicted spatial representation at a future moment, and the decoding layer is configured to decode the predicted spatial representation to obtain autonomous driving decision information at a future moment. Thus, the autonomous driving model can use the output based on the generative diffusion model to determine the autonomous driving decision of the autonomous driving model. By improving the accuracy of future predictions, the effect of autonomous driving decisions and predictions can be further improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, and in particular to the field of autonomous driving and artificial intelligence technology, and specifically to an autonomous driving model, a training method for an autonomous driving model, an autonomous driving method implemented using an autonomous driving model, an autonomous driving device based on the autonomous driving model, a training device for the autonomous driving model, an electronic device, a computer-readable storage medium, a computer program product, and an autonomous driving vehicle. Background Art

[0002] Artificial intelligence is a discipline that studies how to use computers to simulate certain human thought processes and intelligent behaviors (such as learning, reasoning, thinking, planning, etc.). It includes both hardware-level and software-level technologies. Artificial intelligence hardware technologies generally include technologies such as sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, and big data processing; artificial intelligence software technologies mainly include computer vision technology, speech recognition technology, natural language processing technology, as well as machine learning / deep learning, big data processing technology, knowledge graph technology, and other major directions.

[0003] Autonomous driving technology integrates many technologies such as recognition, decision-making, positioning, communication security, and human-computer interaction. Artificial intelligence learning can assist in generating autonomous driving strategies.

[0004] The methods described in this section are not necessarily methods that have been previously conceived or employed. Unless otherwise indicated, it should not be assumed that any method described in this section is considered to be prior art simply because it is included in this section. Similarly, unless otherwise indicated, the issues mentioned in this section should not be considered to have been recognized in any prior art.

[0005] The methods described in this section are not necessarily methods that have been previously conceived or employed. Unless otherwise indicated, it should not be assumed that any method described in this section is considered to be prior art simply because it is included in this section. Similarly, unless otherwise indicated, the issues mentioned in this section should not be considered to have been recognized in any prior art. Summary of the invention

[0006] The present disclosure provides an autonomous driving model, method, device and vehicle based on a generative diffusion model.

[0007] According to one aspect of the present disclosure, an autonomous driving model is provided, comprising a coding layer, a prediction layer and a decoding layer, wherein the coding layer is configured to encode current perception information of an autonomous driving vehicle to obtain a discrete spatial representation of a current scene; the prediction layer is configured to perform discrete diffusion based on at least one scene discrete spatial representation including a discrete spatial representation of the current scene to determine a predicted spatial representation at a future moment; and the decoding layer is configured to decode the predicted spatial representation to obtain autonomous driving decision information at the future moment.

[0008] According to another aspect of the present disclosure, a method for training an autonomous driving model is provided, comprising: obtaining current sample perception information of an autonomous driving vehicle and real driving decision information corresponding to the current sample perception information; encoding the current sample perception information using the encoding layer of the autonomous driving model to obtain a sample discrete space representation of the current scene; performing discrete diffusion using the prediction layer of the autonomous driving model based on at least one sample scene discrete space representation including the sample discrete space representation of the current scene to determine a sample prediction space representation at a future moment; decoding the sample prediction space representation using the decoding layer of the autonomous driving model to obtain sample driving decision information at the future moment, and adjusting parameters of the autonomous driving model based on the difference between the sample driving decision information and the real driving decision information.

[0009] According to another aspect of the present disclosure, there is provided an autonomous driving method implemented by using an autonomous driving model, including: using the encoding layer of the autonomous driving model to encode the current perception information of the autonomous driving vehicle to obtain a discrete spatial representation of the current scene; using the prediction layer of the autonomous driving model to perform discrete diffusion based on at least one scene discrete spatial representation including the discrete spatial representation of the current scene to determine a predicted spatial representation at a future moment; and using the decoding layer of the autonomous driving model to decode the predicted spatial representation to obtain autonomous driving decision information at the future moment.

[0010] According to another aspect of the present disclosure, an autonomous driving device based on an autonomous driving model is provided, comprising: an encoding unit configured to encode the current perception information of the autonomous driving vehicle to obtain a discrete spatial representation of a current scene; a prediction unit configured to perform discrete diffusion based on at least one scene discrete spatial representation including a discrete spatial representation of the current scene to determine a predicted spatial representation at a future moment; and a decoding unit configured to decode the predicted spatial representation to obtain autonomous driving decision information at the future moment.

[0011] According to another aspect of the present disclosure, there is provided an apparatus for training an autonomous driving model, comprising: an acquisition unit configured to acquire current sample perception information of an autonomous driving vehicle and real driving decision information corresponding to the current sample perception information; an encoding unit configured to encode the current sample perception information to obtain a sample discrete space representation of a current scene; a prediction unit configured to perform discrete diffusion based on at least one sample scene discrete space representation including the sample discrete space representation of the current scene to determine a sample prediction space representation at a future moment; a decoding unit configured to decode the sample prediction space representation to obtain the sample driving decision information at the future moment, and a parameter adjustment unit configured to adjust the parameters of the autonomous driving model according to the difference between the sample driving decision information and the real driving decision information.

[0012] According to another 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; the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor so that the at least one processor can execute the above method.

[0013] According to another 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 the computer to execute the above method.

[0014] According to another aspect of the present disclosure, a computer program product is provided, comprising a computer program, wherein the computer program implements the above method when executed by a processor.

[0015] According to another aspect of the present disclosure, an autonomous driving vehicle is provided, comprising: an autonomous driving device according to an embodiment of the present disclosure, or one of an electronic device.

[0016] By using the embodiments of the present disclosure, the autonomous driving model can use the output based on the generative diffusion model to determine the autonomous driving decision of the autonomous driving model. The diffusion model can obtain multiple possibilities of the future by diffusing from the past to the future, improve the accuracy of future predictions, and thus further improve the effect of autonomous driving decisions and predictions.

[0017] 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

[0018] The accompanying drawings exemplarily illustrate the embodiments and constitute a part of the specification, and together with the text description of the specification, are used to explain the exemplary implementation of the embodiments. The embodiments shown are for illustrative purposes only and do not limit the scope of the claims. In all drawings, the same reference numerals refer to similar but not necessarily identical elements.

[0019] Figure 1 A schematic diagram showing an exemplary system in which the various methods described herein may be implemented according to an embodiment of the present disclosure;

[0020] Figure 2 An exemplary block diagram of an autonomous driving model according to an embodiment of the present disclosure is shown;

[0021] Figure 3 An exemplary flow chart of a method for training an autonomous driving model according to an embodiment of the present disclosure is shown;

[0022] Figure 4 An exemplary flow chart of an autonomous driving method according to an embodiment of the present disclosure is shown;

[0023] Figure 5 An exemplary process of an autonomous driving method according to an embodiment of the present disclosure is shown;

[0024] Figure 6 An exemplary diagram of a prediction layer according to an embodiment of the present disclosure is shown;

[0025] Figure 7 An exemplary diagram of decoding layers according to an embodiment of the present disclosure is shown;

[0026] Figure 8 An exemplary process of training a discretized vocabulary according to an embodiment of the present disclosure is shown;

[0027] Fig. 9 A structural block diagram of an automatic driving device according to an embodiment of the present disclosure is shown;

[0028] Fig.10 A structural block diagram of a device for training an autonomous driving model according to an embodiment of the present disclosure is shown; and

[0029] Fig.11 A structural block diagram of an exemplary electronic device that can be used to implement the embodiments of the present disclosure is shown. DETAILED DESCRIPTION

[0030] 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 of the present disclosure. Similarly, for the sake of clarity and conciseness, the description of well-known functions and structures is omitted in the following description.

[0031] In the present disclosure, unless otherwise specified, the use of the terms "first", "second", etc. to describe various elements is not intended to limit the positional relationship, temporal relationship, or importance relationship of these elements, and such terms are only used to distinguish one element from another element. In some examples, the first element and the second element may refer to the same instance of the element, and in some cases, based on the description of the context, they may also refer to different instances.

[0032] The terms used in the description of various examples in this disclosure are only for the purpose of describing specific examples and are not intended to be limiting. Unless the context clearly indicates otherwise, if the number of elements is not specifically limited, the element can be one or more. In addition, the term "and / or" used in this disclosure covers any one of the listed items and all possible combinations.

[0033] In the technical solution disclosed herein, the acquisition, storage and application of user personal information involved are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.

[0034] The embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings.

[0035] Figure 1 FIG. 1 is a schematic diagram of an exemplary system 100 in which various methods and apparatuses described herein may be implemented according to an embodiment of the present disclosure. Figure 1 , the system 100 includes a motor vehicle 110 , a server 120 , and one or more communication networks 130 coupling the motor vehicle 110 to the server 120 .

[0036] In an embodiment of the present disclosure, the motor vehicle 110 may include a computing device according to an embodiment of the present disclosure and / or be configured to perform a method according to an embodiment of the present disclosure.

[0037] The server 120 may run one or more services or software applications that enable autonomous driving. In some embodiments, the server 120 may also provide other services or software applications, which may include non-virtualized environments and virtualized environments. Figure 1In the configuration shown, the server 120 may include one or more components that implement the functions performed by the server 120. These components may include software components, hardware components, or a combination thereof that can be executed by one or more processors. A user of the motor vehicle 110 may in turn utilize one or more client applications to interact with the server 120 to utilize the services provided by these components. It should be understood that a variety of different system configurations are possible, which may differ from the system 100. Therefore, Figure 1 is one example of a system for implementing the various methods described herein and is not intended to be limiting.

[0038] Server 120 may include one or more general purpose computers, dedicated server computers (e.g., PC (personal computer) servers, UNIX servers, mid-range servers), blade servers, mainframe computers, server clusters, or any other suitable arrangement and / or combination. Server 120 may include one or more virtual machines running virtual operating systems, or other computing architectures involving virtualization (e.g., one or more flexible pools of logical storage devices that may be virtualized to maintain a server's virtual storage device). In various embodiments, server 120 may run one or more services or software applications that provide the functionality described below.

[0039] The computing units in the server 120 may run one or more operating systems including any of the above operating systems and any commercially available server operating systems. The server 120 may also run any of a variety of additional server applications and / or middle-tier applications, including HTTP servers, FTP servers, CGI servers, JAVA servers, database servers, etc.

[0040] In some embodiments, server 120 may include one or more applications to analyze and consolidate data feeds and / or event updates received from motor vehicle 110. Server 120 may also include one or more applications to display data feeds and / or real-time events via one or more display devices of motor vehicle 110.

[0041] The network 130 may be any type of network known to those skilled in the art that may support data communications using any of a variety of available protocols, including, but not limited to, TCP / IP, SNA, IPX, etc. By way of example only, one or more networks 130 may be a satellite communications network, a local area network (LAN), an Ethernet-based network, a token ring, a wide area network (WAN), the Internet, a virtual network, a virtual private network (VPN), an intranet, an extranet, a blockchain network, a public switched telephone network (PSTN), an infrared network, a wireless network (including, for example, Bluetooth, WiFi), and / or any combination of these and other networks.

[0042] The system 100 may also include one or more databases 150. In some embodiments, these databases may be used to store data and other information. For example, one or more of the databases 150 may be used to store information such as audio files and video files. The data repository 150 may reside in various locations. For example, the data repository used by the server 120 may be local to the server 120, or may be remote from the server 120 and may communicate with the server 120 via a network-based or dedicated connection. The data repository 150 may be of different types. In some embodiments, the data repository used by the server 120 may be a database, such as a relational database. One or more of these databases may store, update, and retrieve data to and from the database in response to a command.

[0043] In some embodiments, one or more of the databases 150 may also be used by an application to store application data. The databases used by the application may be different types of databases, such as a key-value store, an object store, or a conventional store backed by a file system.

[0044] The motor vehicle 110 may include a sensor 111 for sensing the surrounding environment. The sensor 111 may include one or more of the following sensors: a visual camera, an infrared camera, an ultrasonic sensor, a millimeter wave radar, and a laser radar (LiDAR). Different sensors may provide different detection accuracy and range. The camera may be installed at the front, rear, or other location of the vehicle. The visual camera may capture the situation inside and outside the vehicle in real time and present it to the driver and / or passengers. In addition, by analyzing the images captured by the visual camera, information such as traffic light indications, intersection conditions, and the operating status of other vehicles may be obtained. The infrared camera may capture objects under night vision conditions. Ultrasonic sensors may be installed around the vehicle to measure the distance of objects outside the vehicle from the vehicle using the characteristics of strong ultrasonic directionality. Millimeter wave radars may be installed at the front, rear, or other location of the vehicle to measure the distance of objects outside the vehicle from the vehicle using the characteristics of electromagnetic waves. Laser radars may be installed at the front, rear, or other location of the vehicle to detect object edges and shape information, thereby identifying and tracking objects. Due to the Doppler effect, the radar device may also measure the speed change of the vehicle and the moving object.

[0045] The motor vehicle 110 may also include a communication device 112. The communication device 112 may include a satellite positioning module capable of receiving satellite positioning signals (e.g., Beidou, GPS, GLONASS, and GALILEO) from satellites 141 and generating coordinates based on these signals. The communication device 112 may also include a module for communicating with a mobile communication base station 142, and the mobile communication network may implement any suitable communication technology, such as GSM / GPRS, CDMA, LTE, and other current or evolving wireless communication technologies (e.g., 5G technology). The communication device 112 may also have a vehicle-to-vehicle or vehicle-to-everything (V2X) module, which is configured to implement, for example, vehicle-to-vehicle (V2V) communication with other vehicles 143 and vehicle-to-infrastructure (V2I) communication with infrastructure 144. In addition, the communication device 112 may also have a module configured to communicate with a user terminal 145 (including but not limited to a smartphone, a tablet computer, or a wearable device such as a watch) by, for example, using a wireless LAN or Bluetooth of the IEEE802.11 standard. Using the communication device 112, the motor vehicle 110 may also access the server 120 via the network 130.

[0046] The motor vehicle 110 may also include a control device 113. The control device 113 may include a processor that communicates with various types of computer-readable storage devices or media, such as a central processing unit (CPU) or a graphics processing unit (GPU), or other dedicated processors. The control device 113 may include an automatic driving system for automatically controlling various actuators in the vehicle. The automatic driving system is configured to control the powertrain, steering system, and braking system of the motor vehicle 110 (not shown) via multiple actuators in response to inputs from multiple sensors 111 or other input devices to control acceleration, steering, and braking, respectively, without human intervention or limited human intervention. Some processing functions of the control device 113 can be implemented through cloud computing. For example, some processing can be performed using an on-board processor, while other processing can be performed using computing resources in the cloud. The control device 113 can be configured to perform a method according to the present disclosure. In addition, the control device 113 can be implemented as an example of a computing device on the motor vehicle side (client) according to the present disclosure.

[0047] Figure 1 The system 100 may be configured and operated in various ways to enable the application of various methods and apparatuses described in the present disclosure.

[0048] The diffusion model is a generative model that is derived from the principle of diffusion phenomenon in physics. In physics, the diffusion process of matter from a high-concentration area to a low-concentration area is similar to the loss of information due to noise interference. Therefore, the diffusion model introduces noise and attempts to generate new information by denoising.

[0049] The present disclosure provides a new autonomous driving model based on a diffusion model.

[0050] Figure 2 An exemplary block diagram of an autonomous driving model according to an embodiment of the present disclosure is shown.

[0051] like Figure 2 As shown, the autonomous driving model 200 includes a coding layer 210 , a prediction layer 220 , and a decoding layer 230 .

[0052] The encoding layer 210 is configured to encode the current perception information of the autonomous driving vehicle to obtain a discrete spatial representation of the current scene.

[0053] The prediction layer 220 is configured to perform discrete diffusion based on at least one discrete spatial representation of a scene including a discrete spatial representation of a current scene to determine a predicted spatial representation at a future time.

[0054] The decoding layer 230 is configured to decode the prediction spatial representation to obtain the autonomous driving decision information at a future time.

[0055] By using the autonomous driving model provided by the embodiments of the present disclosure, the output based on the generative diffusion model can be used to determine the autonomous driving decision of the autonomous driving model. The diffusion model can obtain multiple possibilities of the future by diffusing from the past to the future, improve the accuracy of future predictions, and thus further improve the effect of autonomous driving decisions and predictions.

[0056] The principles of the present disclosure will be described in detail below.

[0057] The encoding layer 210 is configured to encode the current perception information of the autonomous driving vehicle to obtain a discrete spatial representation of the current scene.

[0058] The perception information may include sensor input collected by at least one sensor installed on the autonomous driving vehicle. The perception information for the vehicle's surrounding environment may include at least one of the following items: perception information from one or more cameras, perception information from one or more lidars, and perception information from one or more millimeter-wave radars. The current perception information may include sensor input collected at the current time t. The historical perception information may include historical perception information from all times since the start of the autonomous driving process (for example, from time 0 to time t-1), and may also include historical perception information within a predetermined time period before the current time t (for example, from time tk to time t, where k represents a predetermined time range).

[0059] In some embodiments, the perceptual information may be encoded using the encoding layer 210 to obtain a discrete spatial representation of the scene corresponding to the perceptual information. In some examples, the discrete spatial representation of the scene referred to herein refers to a discrete representation of the perceptual information in the BEV space. For example, the current perceptual information may be mapped to the bird's-eye view BEV space to obtain a continuous BEV representation of the current perceptual information. The current perceptual information may be mapped to the BEV space using models such as BEVFormer and BEVFusion to obtain a continuous BEV representation of the current perceptual information. Then, the continuous BEV representation may be discretized according to a pre-trained vocabulary to obtain a discrete spatial representation of the current scene. For example, the continuous BEV representation is b t , and the dimension of the continuous BEV representation is W×H×C, for example, for each of the W×H C-dimensional vectors in the continuous BEV representation, the nearest vocabulary vector can be found in the secondary table, and the vector in the corresponding BEV representation can be replaced with the nearest vocabulary vector. In this way, the perceptual information in the BEV space can be represented by a limited vocabulary vector. The vector in the vocabulary can also be C-dimensional.

[0060] Although the principles of the present disclosure are described above by representing the perception information in the BEV space, it is understood that, without departing from the principles of the present disclosure, the perception information may be mapped to other spaces other than the BEV space and the discrete spatial representation of the corresponding scene may be determined. In addition, any other suitable method other than the vocabulary may be used to determine the discrete spatial representation of the scene.

[0061] The prediction layer 220 is configured to perform discrete diffusion based on at least one discrete spatial representation of a scene including a discrete spatial representation of a current scene to determine a predicted spatial representation at a future time.

[0062] Among them, at least one discrete spatial representation of a scene may include a discrete spatial representation of a current scene and a discrete spatial representation of at least one historical scene. The discrete spatial representation of the current scene may be a discrete representation encoded based on the perceptual information at the current moment, and the discrete spatial representation of the historical scene may be a discrete representation encoded in the same manner based on the perceptual information at at least one previous moment, such as a discrete spatial representation in a BEV space.

[0063] In some embodiments, the predicted spatial representation of the future time moment may be a spatial representation of predicted perceptual information, that is, predicted information for the perceptual information at the future time moment.

[0064] For the spatial positions corresponding to the W×H vectors in the discrete spatial representation of each scene, the prediction layer 220 can be configured to perform feature transformation according to the information at each position in the discrete spatial representation of each scene and the information at each position in the predetermined information to obtain the information represented by the vector at the corresponding position in the predicted spatial representation. The size of the predetermined information can also be W×H. The predetermined information can have the same size as the predicted spatial representation and have a predefined default content. For example, the predetermined information can include predetermined noise, or any other suitable information.

[0065] When determining the vector representation at each position in the prediction spatial representation, each scene discrete spatial representation may be spatially transformed first so that the network can perceive the spatial information in the scene. In some examples, the prediction layer may be configured to spatially transform each scene discrete spatial representation to obtain a corresponding transformed spatial representation.

[0066] Various suitable neural network models can be used to perform spatial transformation on the discrete spatial representation of each scene. For example, the discrete spatial representation of each scene can be processed using Swin Transformer or any other suitable spatial transformation model to achieve spatial transformation of information. Swin Transformer can be used to spatially aggregate the information in the current perception information, thereby enhancing the network's perception and understanding of the information in the current perception information.

[0067] In some examples, the step of spatially transforming the discrete spatial representations of each scene may also include using the driving trajectory of the autonomous driving vehicle to transform the spatial representation in a coordinate system. For example, the coordinate system transformation may be performed after the discrete spatial representations of each scene are processed using Swin Transformer. The driving trajectory from the current moment to the future moment may be determined based on the autonomous driving decision information for the current moment output by the decoding layer of the previous moment, and the transformed spatial representation in the coordinate system of the current moment may be mapped to the transformed spatial representation in the coordinate system of the future moment based on the driving trajectory. For another example, the coordinate system transformation may also be performed before the discrete spatial representations of each scene are processed using Swin Transformer. The discrete spatial representation of the scene in the coordinate system of the current moment may be mapped to the discrete spatial representation of the scene in the coordinate system of the future moment according to the driving trajectory, and then the discrete spatial representation of the scene in the coordinate system of the future moment may be processed using Swin Transformer to output the transformed spatial representation in the coordinate system of the future moment.

[0068] For each position in the prediction spatial representation, feature transformation is performed according to the vector representation of the corresponding position in each transformed spatial representation and the vector representation of the corresponding position in the predetermined information to determine the vector representation of the position in the prediction spatial representation.

[0069] The feature transformation can be implemented using various suitable neural network models. For example, a generative diffusion model can be used to implement the feature transformation. In the generative diffusion model, the vector representation of the corresponding position in the transformed spatial representation and the vector representation of the corresponding position in the predetermined information can be input into the Transformer network to implement the feature transformation.

[0070] In some implementations, the final prediction space representation can be obtained through multiple feature transformations. That is, the output of the neural network model for feature transformation (such as the Transformer mentioned above) and the scene discrete space representation can be input into the feature transformation network again, and the prediction space representation can be obtained by repeating the above steps multiple times.

[0071] For example, performing feature transformation based on the vector representation of the corresponding position in each transformed discrete spatial representation and the vector representation of the corresponding position in the predetermined information may include: using a Transformer to process the vector representation of the corresponding position in each transformed spatial representation and the vector representation of the corresponding position in the predetermined information to obtain the first future scene information. Then, the vector representation of the corresponding position in the transformed spatial representation and the vector representation of the corresponding position in the first future scene information may be processed using a Transformer to obtain the second future scene information. The prediction information may be determined based on the second future scene information.

[0072] In some examples, the second future scene information can be directly used as the prediction space input into the decoding layer of the autonomous driving model. In other examples, the second future scene information and the transformed spatial representation can be used to continue repeating the feature transformation step to obtain the final prediction space representation. The number of repetitions of the feature transformation step can be determined according to actual conditions.

[0073] The autonomous driving model may also combine the current additional information to obtain prediction information. In some examples, the current additional information may include at least one of historical decision information, interaction information, and traffic information. It is understood that without departing from the principles of the present disclosure, the additional information may include any information that can assist in autonomous driving decision making.

[0074] The autonomous driving decision information may include information such as the planned trajectory or control signals for the vehicle (e.g., signals for controlling the throttle, brake, steering amplitude, etc.). That is, the historical decision information may include a sequence of historical trajectories and / or historical control signals output by the autonomous driving model before the current moment. In some examples, the historical decision information may include historical decision information at all moments after the start of the autonomous driving process (e.g., for moment t, the historical decision information includes autonomous driving decision information from moment 0 to moment t-1), and may also include historical decision information within a predetermined time period before the current moment t (e.g., autonomous driving decision information from moment tk to moment t, where k represents a predetermined time range).

[0075] The interactive information may include at least one of traffic command information, interactive information from passengers, and interactive information from safety officers. Among them, the traffic command information may include actions and / or language from outside the vehicle for traffic command purposes. The interactive information from passengers and the interactive information from safety officers may include actions and / or language collected in the vehicle when the passenger or safety officer is in the vehicle, and may also include actions and / or language used to communicate with the vehicle when the passenger or safety officer is outside the vehicle, and may also include instruction information sent by the passenger or safety officer to the vehicle end through a remote communication device. The interactive information may be information collected by sensors such as cameras and microphones, or may be information received remotely via a communication device. In some implementations, the interactive information may include interactive information obtained at the current time t, and may also include historical interactive information obtained before the current time t. The historical interactive information may include historical interactive information at all times after the start of the autonomous driving process (for example, from 0 to t-1), and may also include historical interactive information within a predetermined time period before the current time t (for example, from tk to t, where k represents a predetermined time range).

[0076] Traffic information may include at least one of speed limit information, map information, and navigation information of the current route. For example, map information may include lane information, stop line information, traffic light information, etc. In the example, traffic information may include lane-level or road-level traffic information. Traffic information may include traffic information at the current time t, and may also include historical traffic information at at least one previous time before the current time t. In some examples, historical traffic information may include historical traffic information at all times since the start of the autonomous driving process (e.g., from time 0 to time t-1), and may also include historical traffic information within a predetermined time period before the current time t (e.g., from time tk to time t, where k represents a predetermined time range).

[0077] In this case, the prediction layer can perform discrete diffusion on the scene discrete space representation and the current additional information to obtain the prediction space representation.

[0078] The principle of the present disclosure will be described below by taking the case where the current additional information is interactive information as an example.

[0079] In some implementations, when the interaction information includes natural language information, the interaction information in natural language form can be vectorized using a pre-trained language model (PLM) or a large language model (LLM) to convert the natural language information into a tensor form. When the interaction information includes action information represented by an image, a suitable image recognition algorithm can be used to convert the information in the image into natural language information or vectorized information that can be processed by a machine. The tensor representation of the interaction information can be obtained using the above method. The tensor representation of the interaction information can be configured to have the same size as the discrete space representation of the scene, such as W×H.

[0080] In the example, the prediction layer can be discretely diffused according to the scene discrete space representation and the current interaction information to obtain the prediction space representation. For example, the discrete space representations of each scene and the tensor representation of the interaction information can be stacked together to obtain a modified scene discrete space representation. The vector representation at each position of the modified scene discrete space representation and the vector representation at the same position in the predetermined information can be input into the Transformer network for feature transformation to obtain the information of the vector representation at the corresponding position in the prediction space representation. As mentioned above, the scene discrete space representation can be spatially transformed before the feature transformation. The final prediction space representation can be obtained by repeating the feature transformation step multiple times.

[0081] In the case where the current additional information includes historical decision information and / or traffic information, the scene discrete space representation can also be modified using the historical decision information and / or traffic information in a similar manner. The historical decision information and / or traffic information can be encoded into a tensor representation of the same size as the scene discrete space representation in any suitable manner, and the scene discrete space representation can be stacked with the tensor representation of the current additional information to obtain a modified scene discrete space representation. In the example, the historical trajectory of the vehicle can be determined based on the historical decision information, and the coordinate points of the historical trajectory can be encoded using a recurrent neural network or Transformer to obtain a tensor representation of the historical decision information. In the example, the tensor representation of the traffic information can be obtained by mapping the traffic information to the BEV space.

[0082] Without departing from the principles of the present disclosure, the scene discrete space representation may be modified using the additional information in any other suitable manner, so that the modified scene discrete space representation incorporates the information of the scene discrete space representation and the additional information. Thus, the model can simultaneously learn and consider both the information of the scene discrete space representation and the additional information when performing reasoning.

[0083] The decoding layer 230 is configured to decode the prediction spatial representation to obtain the autonomous driving decision information at a future time.

[0084] In some embodiments, a Transformer network may be used to decode the predicted spatial representation to obtain autonomous driving decision information for future moments.

[0085] When the input of the autonomous driving model also includes current interaction information, the decoding layer can also output interaction information at a future time as a response to the current interaction information.

[0086] In the case where the prediction layer is configured to perform discrete diffusion only based on the discrete spatial representation of the scene, the prediction information at the future moment only includes the prediction information of the perception information. In this case, the decoding layer can be configured to decode the tensor representation of the prediction spatial representation and the current interaction information to obtain the interaction information and the autonomous driving decision information at the future moment.

[0087] When the prediction layer is configured to obtain the prediction space representation according to the scene discrete space representation and the current interaction information by discrete diffusion, the prediction information at the future moment includes both the prediction information of the perception information and the prediction information of the interaction information. In this case, the decoding layer can be configured to decode the prediction space representation to obtain the interaction information and the autonomous driving decision information at the future moment.

[0088] By utilizing the embodiments of the present disclosure, the principle of a generative diffusion model can be used to obtain predictive information for generating autonomous driving decision information, so that the diffusion model's predictive ability for the future can be utilized in the autonomous driving decision process to improve the effectiveness of autonomous driving decisions.

[0089] Figure 3 An exemplary flow chart of a method for training an autonomous driving model according to an embodiment of the present disclosure is shown. Figure 3 The method shown in the Figure 2 The described autonomous driving model is trained.

[0090] In step S302, the current sample perception information of the autonomous driving vehicle and the real driving decision information corresponding to the current sample perception information may be obtained. The training sample data of the autonomous driving model may be obtained by collecting data on the process of human drivers driving the vehicle. The perception information collected by the sensors installed on the vehicle at each moment may be collected as sample perception information, and the operation signals of the human drivers at each moment may be collected accordingly as real driving decision information.

[0091] In step S304, the current sample perception information may be encoded using the encoding layer of the autonomous driving model to obtain a discrete spatial representation of the current scene.

[0092] In step S306, the prediction layer of the autonomous driving model may be used to perform discrete diffusion based on at least one sample scene discrete space representation including a sample discrete space representation of the current scene to determine a sample prediction space representation at a future moment.

[0093] In step S308, the decoding layer of the autonomous driving model may be used to decode the sample prediction space representation to obtain the sample driving decision information at the future moment.

[0094] Can be combined with Figure 2 The autonomous driving model described above is used to execute the above steps S304 to S308 to generate sample driving decision information based on the current sample perception information.

[0095] In step S310, the parameters of the autonomous driving model may be adjusted according to the difference between the sample driving decision information and the actual driving decision information.

[0096] For example, the decision loss function L of the autonomous driving model can be determined according to formula (1): cts :

[0097]

[0098] Where t represents the current time, represents the sample driving decision information output by the autonomous driving model at time t, c t Represents the actual driving decision information at time t.

[0099] In some embodiments, real future information corresponding to the current sample perception information can also be obtained, and the parameters of the autonomous driving model can be adjusted according to the difference between the sample prediction spatial representation and the spatial representation of the real future information.

[0100] Among them, the sample prediction space representation output by the autonomous driving model is the discretized representation of the prediction information at the future moment in the BEV space. The real future information collected during actual driving can be mapped into a discrete representation in the BEV space. t+1 The prediction loss function L of the autonomous driving model can be determined according to formula (2): fp :

[0101]

[0102] Where t represents the current time, represents the predicted spatial representation at time t+1 generated based on the current perception information at time t, b t+1 It represents the spatial representation of the real future information at time t+1 in the BEV space.

[0103] In some embodiments, when the autonomous driving model is also configured to process interaction information, the decoding layer of the autonomous driving model may also output sample prediction interaction information. In some examples, step S308 may include decoding the sample prediction space representation and the tensor representation of the current sample interaction information using the decoding layer of the autonomous driving model to obtain the sample prediction interaction information and sample driving decision information at the future moment. In other examples, step S306 may include performing discrete diffusion according to the discrete space representation of the sample scene and the current sample interaction information to obtain the sample prediction space representation. In this case, step S308 may include decoding the sample prediction space representation using the decoding layer to obtain the sample prediction interaction information and the sample driving decision information.

[0104] When the decoding layer of the autonomous driving model outputs sample predicted interaction information, the real interaction information corresponding to the current sample interaction information can be obtained, and the parameters of the autonomous driving model can be adjusted to maximize the probability that the sample predicted interaction information is the real interaction information. The interaction loss function L can be determined according to formula (3): nll :

[0105] L nll =∑ t logp(u t ) (3)

[0106] Among them, t represents the current time, p(u t ) represents the predicted probability of the true interaction information at time t.

[0107] Based on the above decision loss function L cts , prediction loss function L fp And the interaction loss function L nll At least one of the above may determine a loss function for adjusting the parameters of the autonomous driving model. The parameters in the autonomous driving model may be adjusted by minimizing the loss function.

[0108] In some embodiments, step S304 may include: mapping the current sample perception information to the bird's-eye view BEV space to obtain a sample continuous BEV representation of the current sample perception information, and discretizing the sample continuous BEV representation according to a pre-trained vocabulary to obtain a sample discrete space representation of the current scene.

[0109] Among them, the vocabulary can be generated in the following manner: obtaining a sample sensor input; mapping the sample sensor input to the BEV space to obtain a continuous BEV representation of the sample sensor input; for the vector representation at each position of the continuous BEV representation of the sample sensor input, replacing the vector representation with the nearest vocabulary vector in the vocabulary to obtain a discrete representation of the sample sensor input; decoding the discrete representation of the sample sensor input to obtain a recovered sensor input; adjusting the parameters of the vocabulary by minimizing the difference between the recovered sensor input and the sample sensor input.

[0110] Figure 4 An exemplary flow chart of an automatic driving method according to an embodiment of the present disclosure is shown. Figure 2 The autonomous driving model described is implemented Figure 4 The automatic driving method shown in the above combination Figure 2 The advantages of the described autonomous driving model are also applicable to the autonomous driving method 400 and will not be elaborated here.

[0111] In step S402, the encoding layer of the autonomous driving model may be used to encode the current perception information of the autonomous driving vehicle to obtain a discrete spatial representation of the current scene.

[0112] In step S404, the prediction layer of the autonomous driving model may be used to perform discrete diffusion based on at least one scene discrete spatial representation including a discrete spatial representation of the current scene to determine a predicted spatial representation at a future moment.

[0113] In step S406, the prediction space representation may be decoded using the decoding layer of the autonomous driving model to obtain autonomous driving decision information at a future time.

[0114] Figure 5 An exemplary process of an autonomous driving method according to an embodiment of the present disclosure is shown.

[0115] like Figure 5 As shown, the sensor input perception information (t-2) 501-1, perception information (t-1) 501-2 and perception information (t) 501-3 at time t-2, time t-1 and time t can be encoded to obtain continuous representations 502-1, 502-1, 502-3 of the perception information in the BEV space. Furthermore, the continuously represented perception information can be discretized using a vocabulary to obtain discrete space representations BEV (t-2) 503-1, BEV (t-1) 503-2, BEV (t) 503-3 of the scene corresponding to the perception information.

[0116] The prediction layer 510 can be used to predict the prediction information at time t+1 by discrete diffusion based on BEV(t-2), BEV(t-1), and BEV(t). The historical decision information (t-2) 504-1, the historical decision information (t-1) 504-2, and the decision information (t) 504-3 can be simultaneously input into the prediction layer together with BEV(t-2), BEV(t-1), and BEV(t) to generate the prediction result PRED_BEV(t+1) 506. As mentioned above, the decision information (t-2), the decision information (t-1), and the decision information (t) can be used to transform the coordinate system of BEV(t-2), BEV(t-1), and BEV(t), respectively.

[0117] After obtaining the prediction result PRED_BEV(t+1), PRED_BEV(t+1) can be compared with the real sample information BEV(t+1)503-4, and the parameters of the autonomous driving model can be adjusted according to the difference between PRED_BEV(t+1) and the real BEV(t+1). Among them, the continuous representation 502-4 of the BEV space can be obtained by encoding the perception information (t+1)501-4, and the continuous representation 502-4 can be discretized to obtain the discrete representation BEV(t+1)503-4. Furthermore, the prediction information PRED_BEV(t+2)507 at time t+2 can be further predicted based on PRED_BEV(t+1), BEV(t), and BEV(t-1). PRED_BEV(t+2) can be compared with the real sample information BEV(t+2)503-5, and the parameters of the autonomous driving model can be adjusted according to the difference between PRED_BEV(t+2) and the real BEV(t+2). The perception information (t+2)501-5 can be encoded to obtain a continuous representation 502-5 of the BEV space, and the continuous representation 502-5 can be discretized to obtain a discrete representation BEV(t+2)503-5.

[0118] Furthermore, the current interactive information at time t can be encoded by the interactive information encoding unit 520, and the current traffic information at time t can be encoded by the traffic information encoding unit 530 to obtain the tensor representation 504 of the traffic and interactive prompt information at time t. The tensor representation and prediction information PRED_BEV(t+1)505 of the traffic and interactive prompt information can be decoded by the decoding layer to obtain the interactive information and driving decision at time t+1. The tensor representation and prediction information PRED_BEV(t+2) of the traffic and interactive prompt information can also be decoded by the decoding layer 540 to obtain the interactive information and driving decision at time t+2.

[0119] Figure 6 An exemplary diagram of a prediction layer according to an embodiment of the present disclosure is shown.

[0120] like Figure 6 As shown, before discrete diffusion begins, the prediction space representation is initialized to predetermined information PRED_BEV(t+1,0), such as the information of the special word [MASK].

[0121] The Swin Transformer can be used to perform spatial transformation on the discrete representations 601-1, 601-2, 601-3 of the perception information to obtain transformed discrete representations 602-1, 602-2, 602-3. Correspondingly, the predetermined information PRED_BEV(t+1,0)603 can also be discretely represented to obtain transformed predetermined information 604.

[0122] For the W×H vectors in the transformed discrete representation, extract the vectors at the same position in the discrete representations 602-1, 602-2, and 602-3 ( Figure 6 The vector at the lower left corner position is shown as an example in FIG. 1 and the vector at the same position in the transformed predetermined information are input into the Transformer together to obtain the information at the corresponding position in the first prediction information PRED_BEV(t+1,1). The first prediction information PRED_BEV(t+1,1) can be obtained by traversing the W×H vectors in the discrete representation in a similar manner.

[0123] Next, the above discrete diffusion process can be repeated by replacing the predetermined information PRED_BEV(t+1,0) with the first prediction information PRED_BEV(t+1,1) to obtain the second prediction information PRED_BEV(t+1,2). Further, the above discrete diffusion process can be repeated by replacing the first prediction information PRED_BEV(t+1,1) with the first prediction information PRED_BEV(t+1,1) to obtain the third prediction information PRED_BEV(t+1,3).

[0124] The third prediction information PRED_BEV(t+1,3) may be determined as the prediction information PRED_BEV(t+1) output at time t+1.

[0125] Figure 7 An exemplary diagram of a decoding layer according to an embodiment of the present disclosure is shown. Figure 7 As shown, the traffic and interaction prompt information and the prediction information can be flattened into a one-dimensional vector and decoded by the Transformer network 710. In the case where the traffic and interaction prompt information is input first and then the prediction information is input, the Transformer network 710 can decode the natural language interaction information first and then decode the driving decision information.

[0126] Figure 8 An exemplary process of training a discretized vocabulary according to an embodiment of the present disclosure is shown.

[0127] like Figure 8As shown, the original sensor input 801 can be processed by the sensor space fusion model 802 to obtain a continuous BEV representation 803. Among them, the model 802 can be implemented by BEVFormer, BEVFusion or any suitable model. Then, each vector in the continuous BEV representation can be discretized by finding the nearest vector in the vocabulary 804 to obtain a discrete representation 805 of the sensor input. Among them, the vocabulary 804 can include multiple vectors with the same dimension as the vector in the BEV representation. Then, the discrete representation 805 can be decoded by a decoding unit 806 to restore the BEV representation to sensor data 807. The decoding unit 806 can be implemented in any manner corresponding to the encoding process of the model 802. By minimizing the difference between the original input sensor data 801 and the restored sensor data 807, the sensor space fusion model 802 and the vocabulary 804 can be parameter adjusted for use in the autonomous driving model provided by the embodiment of the present disclosure.

[0128] Fig. 9 FIG. 9 is a block diagram showing a structure of an automatic driving device 900 according to an embodiment of the present disclosure. Fig. 9 As shown, the automatic driving device 900 includes an encoding unit 910, a prediction unit 920, and a decoding unit 930.

[0129] The encoding unit 910 can be configured to encode the current perception information of the autonomous driving vehicle to obtain a discrete spatial representation of the current scene.

[0130] The prediction unit 920 may be configured to perform discrete diffusion according to at least one scene discrete spatial representation including a discrete spatial representation of a current scene to determine a predicted spatial representation at a future time.

[0131] The decoding unit 930 may be configured to decode the predicted spatial representation to obtain autonomous driving decision information at a future time.

[0132] It should be understood that Fig. 9 The various modules or units of the apparatus 900 shown in FIG. 9 can be used in conjunction with the reference Figure 4 The steps in the method 400 described above correspond to each other. Therefore, the operations, features and advantages described above for the method 400 are also applicable to the device 900 and the modules and units included therein. For the sake of brevity, some operations, features and advantages are not repeated here.

[0133] Fig.10 A structural block diagram of an apparatus 1000 for training an autonomous driving model according to an embodiment of the present disclosure is shown.

[0134] like Fig.10As shown, the apparatus 1000 includes an acquisition unit 1010 , an encoding unit 1020 , a prediction unit 1030 , a decoding unit 1040 and a parameter adjustment unit 1050 .

[0135] The acquisition unit 1010 can be configured to acquire current sample perception information of the autonomous driving vehicle and actual driving decision information corresponding to the current sample perception information.

[0136] The encoding unit 1020 may be configured to encode the current sample perception information to obtain a sample discrete space representation of the current scene.

[0137] The prediction unit 1030 may be configured to perform discrete diffusion according to at least one sample scene discrete space representation including a sample discrete space representation of a current scene, so as to determine a sample prediction space representation at a future moment.

[0138] The decoding unit 1040 may be configured to decode the sample prediction space representation to obtain sample driving decision information at a future moment.

[0139] The parameter adjustment unit 1050 may be configured to adjust the parameters of the autonomous driving model according to the difference between the sample driving decision information and the actual driving decision information.

[0140] It should be understood that Fig.10 The various modules or units of the apparatus 1000 shown in FIG. 1 can be used in conjunction with the reference Figure 3 The steps in the method 300 described above correspond to each other. Therefore, the operations, features and advantages described above for the method 300 are also applicable to the device 1000 and the modules and units included therein. For the sake of brevity, some operations, features and advantages are not repeated here.

[0141] Although specific functionality is discussed above with reference to specific modules, it should be noted that the functionality of the various units discussed herein may be separated into multiple units, and / or at least some functionality of multiple units may be combined into a single unit.

[0142] It should also be understood that various techniques may be described herein in the general context of software hardware elements or program modules. Fig. 9 , Fig.10The various units described can be implemented in hardware or in hardware in combination with software and / or firmware. For example, these units can be implemented as computer program codes / instructions, which are configured to be executed in one or more processors and stored in a computer-readable storage medium. Alternatively, these units can be implemented as hardware logic / circuits. For example, in some embodiments, one or more of units 910 to 930, 1010 to 1050 can be implemented together in a system on chip (System on Chip, SoC). SoC may include an integrated circuit chip (which includes a processor (e.g., a central processing unit (CPU), a microcontroller, a microprocessor, a digital signal processor (DSP), etc.), a memory, one or more communication interfaces, and / or one or more components in other circuits), and may optionally execute the received program code and / or include embedded firmware to perform functions.

[0143] According to another aspect of the present disclosure, an electronic device is also provided, including: at least one processor; and a memory communicatively connected to the at least one processor; 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 autonomous driving method according to an embodiment of the present disclosure.

[0144] According to another aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is also provided, and the computer instructions are used to enable the computer to execute the automatic driving method according to an embodiment of the present disclosure.

[0145] According to another aspect of the present disclosure, a computer program product is also provided, including a computer program, wherein the computer program implements the automatic driving method according to an embodiment of the present disclosure when executed by a processor.

[0146] According to another aspect of the present disclosure, an autonomous driving vehicle is also provided, comprising an autonomous driving device according to an embodiment of the present disclosure and one of the above-mentioned electronic devices.

[0147] refer to Fig.11, a block diagram of an electronic device 1100 that can be used as a server or client of the present disclosure will now be described, which is an example of a hardware device that can be applied to various aspects of the present disclosure. The electronic device is intended to represent various forms of digital electronic computer devices, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can 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.

[0148] like Fig.11 As shown, the electronic device 1100 includes a computing unit 1101, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 1102 or a computer program loaded from a storage unit 1108 into a random access memory (RAM) 1103. In the RAM 1103, various programs and data required for the operation of the electronic device 1100 can also be stored. The computing unit 1101, the ROM 1102, and the RAM 1103 are connected to each other via a bus 1104. An input / output (I / O) interface 1105 is also connected to the bus 1104.

[0149] Multiple components in the electronic device 1100 are connected to the I / O interface 1105, including: an input unit 1106, an output unit 1107, a storage unit 1108, and a communication unit 1109. The input unit 1106 can be any type of device that can input information to the electronic device 1100. The input unit 1106 can receive input digital or character information, and generate key signal input related to user settings and / or function control of the electronic device, and can include but is not limited to a mouse, a keyboard, a touch screen, a track pad, a track ball, a joystick, a microphone, and / or a remote controller. The output unit 1107 can be any type of device that can present information, and can include but is not limited to a display, a speaker, a video / audio output terminal, a vibrator, and / or a printer. The storage unit 1108 can include but is not limited to a disk and an optical disk. The communication unit 1109 allows the electronic device 1100 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks, and may include but is not limited to a modem, a network card, an infrared communication device, a wireless communication transceiver and / or a chipset, such as a Bluetooth device, an 802.11 device, a WiFi device, a WiMax device, a cellular communication device and / or the like.

[0150] The computing unit 1101 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 1101 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 1101 performs the various methods and processes described above, such as methods (or processes) 300, 400. For example, in some embodiments, the method (or process) 300 may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 1108. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 1100 via the ROM 1102 and / or the communication unit 1109. When the computer program is loaded into the RAM 1103 and executed by the computing unit 1101, one or more steps of the methods (or processes) 300, 400 described above may be performed. Alternatively, in other embodiments, the computing unit 1101 may be configured to execute the method (or process) 300 , 400 in any other appropriate manner (eg, by means of firmware).

[0151] 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), load 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.

[0152] 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.

[0153] 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 equipment, 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.

[0154] 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).

[0155] The systems and techniques described herein can be implemented in a computing system that includes backend 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 frontend 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 backend components, middleware components, or frontend components. The components of the system can 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), the Internet, and a blockchain network.

[0156] 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 of client and server is generated by computer programs running on respective computers and having a client-server relationship with each other. The server may be a cloud server, a server of a distributed system, or a server combined with a blockchain.

[0157] 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 described in this disclosure can be performed 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.

[0158] Although the embodiments or examples of the present disclosure have been described with reference to the accompanying drawings, it should be understood that the above-mentioned methods, systems and devices are merely exemplary embodiments or examples, and the scope of the present invention is not limited by these embodiments or examples, but only by the claims after authorization and their equivalent scope. Various elements in the embodiments or examples can be omitted or replaced by their equivalent elements. In addition, each step can be performed in an order different from that described in the present disclosure. Further, the various elements in the embodiments or examples can be combined in various ways. It is important that with the evolution of technology, many elements described herein can be replaced by equivalent elements that appear after the present disclosure.

Claims

1. An autonomous driving model, comprising a coding layer, a prediction layer and a decoding layer, wherein: The encoding layer is configured to encode current perception information of the autonomous driving vehicle to obtain a discrete spatial representation of the current scene; The prediction layer is configured to perform discrete diffusion based on at least one discrete spatial representation of a scene including a discrete spatial representation of the current scene to determine a predicted spatial representation at a future time; as well as The decoding layer is configured to decode the prediction space representation to obtain the autonomous driving decision information at the future moment, The performing discrete diffusion according to at least one scene discrete space representation including the discrete space representation of the current scene comprises: Performing spatial transformation on each scene discrete spatial representation to obtain a corresponding transformed spatial representation; For each position in the predicted spatial representation, feature transformation is performed based on the vector representation of the corresponding position in each transformed spatial representation and the vector representation of the corresponding position in the predetermined information to determine the vector representation of the position in the predicted spatial representation.

2. The automatic driving model according to claim 1, wherein: Encoding the current perception information of the autonomous vehicle includes: Mapping the current perception information to a bird's-eye view BEV space to obtain a continuous BEV representation of the current perception information; The continuous BEV representation is discretized according to a pre-trained vocabulary to obtain a discrete spatial representation of the current scene.

3. The automatic driving model according to claim 1, wherein: Performing feature transformation according to the vector representation of the corresponding position in each of the transformed spatial representations and the vector representation of the corresponding position in the predetermined information comprises: Using a Transformer, processing the vector representation of the corresponding position in each of the transformed spatial representations and the vector representation of the corresponding position in the predetermined information to obtain first future scene information; Using a Transformer, processing the vector representation of the corresponding position in each of the transformed spatial representations and the vector representation of the corresponding position in the first future scene information to obtain second future scene information; The predicted spatial representation is determined based on the second future scene information.

4. The automatic driving model according to claim 1, wherein: Performing spatial transformation on the discrete spatial representation of each scene to obtain a corresponding transformed spatial representation includes: The discrete space representation of the scene is processed using Swin Transformer.

5. The automatic driving model as claimed in claim 4, wherein: Performing spatial transformation on the discrete spatial representation of each scene further includes: Determine a driving trajectory from the current moment to the future moment according to the automatic driving decision information for the current moment output by the decoding layer at the previous moment; The transformed spatial representation in the coordinate system at the current moment is mapped to the transformed spatial representation in the coordinate system at the future moment based on the driving trajectory.

6. The automatic driving model according to claim 1, wherein: The predetermined information includes predetermined noise.

7. The automatic driving model according to claim 1, wherein: The decoding layer is configured to decode the predicted spatial representation and the tensor representation of the current interaction information to obtain the interaction information and the autonomous driving decision information at the future moment.

8. The automatic driving model according to claim 1, wherein: Performing discrete diffusion according to at least one discrete spatial representation of a scene including a discrete spatial representation of the current scene comprises: Discrete diffusion is performed according to the discrete spatial representation of the scene and the current interactive information to obtain the predicted spatial representation.

9. The automatic driving model as claimed in claim 8, wherein: The decoding layer is configured to decode the predicted spatial representation to obtain the interaction information and autonomous driving decision information at the future moment.

10. The automatic driving model according to claim 1, wherein: The at least one scene discrete space representation includes a discrete space representation of the current scene and a discrete space representation of at least one historical scene.

11. A method for training an autonomous driving model according to any one of claims 1 to 10, comprising: Acquire current sample perception information of the autonomous driving vehicle and actual driving decision information corresponding to the current sample perception information; Encoding the current sample perception information using the encoding layer of the autonomous driving model to obtain a sample discrete space representation of the current scene; Using the prediction layer of the autonomous driving model, discrete diffusion is performed based on at least one sample scene discrete spatial representation including the sample discrete spatial representation of the current scene to determine a sample prediction spatial representation at a future moment; Decoding the sample prediction space representation using a decoding layer of the autonomous driving model to obtain sample driving decision information at the future moment, and The parameters of the autonomous driving model are adjusted according to the difference between the sample driving decision information and the actual driving decision information.

12. The method of claim 11, further comprising: Acquire real future information corresponding to the current sample perception information; The parameters of the autonomous driving model are adjusted according to the difference between the spatial representation of the sample prediction and the spatial representation of the real future information.

13. The method of claim 11, wherein: Decoding the sample prediction space representation using a decoding layer of the autonomous driving model includes: The decoding layer of the autonomous driving model is used to decode the tensor representation of the sample prediction space representation and the current sample interaction information to obtain the sample prediction interaction information and sample driving decision information at the future moment.

14. The method of claim 11, wherein using the prediction layer of the autonomous driving model to perform discrete diffusion according to at least one sample scene discrete space representation including a sample discrete space representation of the current scene comprises: The prediction layer of the autonomous driving model is used to discretely diffuse the predetermined information according to the discrete spatial representation of the sample scene and the current sample interaction information. Utilizing the decoding layer of the autonomous driving model to decode the sample prediction space representation to obtain the sample driving decision information at the future moment includes: utilizing the decoding layer of the autonomous driving model to decode the sample prediction space representation to obtain the sample driving decision information and sample prediction interaction information at the future moment.

15. The method according to claim 13 or 14, further comprising: Acquire real interaction information corresponding to the current sample interaction information; The parameters of the autonomous driving model are adjusted to maximize the probability that the sample predicted interaction information is the true interaction information.

16. The method of claim 11, wherein: Encode the current sample perception information: Mapping the current sample perception information to a bird's-eye view BEV space to obtain a sample-continuous BEV representation of the current sample perception information; The sample continuous BEV representation is discretized according to the pre-trained vocabulary to obtain a sample discrete space representation of the current scene.

17. The method of claim 16, wherein: The vocabulary is generated in the following way: Get sample sensor input; Mapping the sample sensor input to the BEV space to obtain a continuous BEV representation of the sample sensor input; For each position of the continuous BEV representation of the sample sensor input, replace the vector representation with the nearest vocabulary vector in the vocabulary to obtain a discrete representation of the sample sensor input; decoding the discrete representation of the sample sensor input to obtain a recovered sensor input; Parameters of the vocabulary are adjusted by minimizing a difference between the restored sensor input and the sample sensor input.

18. An automatic driving method implemented by using the automatic driving model according to any one of claims 1 to 10, comprising: Encoding the current perception information of the autonomous driving vehicle using the encoding layer of the autonomous driving model to obtain a discrete spatial representation of the current scene; performing discrete diffusion using a prediction layer of the autonomous driving model based on at least one discrete spatial representation of a scene including a discrete spatial representation of the current scene to determine a predicted spatial representation at a future time; as well as The prediction space representation is decoded using a decoding layer of the autonomous driving model to obtain autonomous driving decision information at the future moment.

19. An automatic driving device based on the automatic driving model according to any one of claims 1 to 10, comprising: an encoding unit configured to encode the current perception information of the autonomous driving vehicle to obtain a discrete spatial representation of a current scene; A prediction unit configured to perform discrete diffusion based on at least one discrete spatial representation of a scene including a discrete spatial representation of the current scene to determine a predicted spatial representation at a future moment; as well as A decoding unit is configured to decode the predicted spatial representation to obtain the autonomous driving decision information at the future moment.

20. A device for training an autonomous driving model according to any one of claims 1 to 10, comprising: an acquisition unit configured to acquire current sample perception information of the autonomous driving vehicle and real driving decision information corresponding to the current sample perception information; an encoding unit configured to encode the current sample perception information to obtain a sample discrete space representation of the current scene; A prediction unit configured to perform discrete diffusion according to at least one sample scene discrete space representation including the sample discrete space representation of the current scene to determine a sample prediction space representation at a future moment; a decoding unit configured to decode the sample prediction space representation to obtain the sample driving decision information at the future moment, and A parameter adjustment unit is configured to adjust the parameters of the automatic driving model according to the difference between the sample driving decision information and the actual driving decision information.

21. An electronic device comprising: at least one processor; as well as a memory communicatively coupled to the at least one processor; in The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 11 to 18.

22. 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 11-18.

23. A computer program product comprising a computer program, wherein: The computer program implements the method of any one of claims 11 to 18 when executed by a processor.

24. An autonomous driving vehicle comprising: One of the automatic driving device according to claim 19 and the electronic device according to claim 21.