A two-stage driving scenario generation system and method using efficient diffusion sampling

By using a two-stage driving scene generation system, high-fidelity driving videos are generated using a grid diffusion model and a video diffusion model, solving the problem of low generation efficiency in existing technologies and achieving efficient driving scene generation.

CN123181706APending Publication Date: 2026-11-27TONGJI UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611254789.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-18
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing driving scene generation technologies struggle to simultaneously guarantee geometric consistency and appearance realism, and diffusion models have low efficiency in generating high-resolution long videos, failing to meet the real-time and large-scale generation requirements of autonomous driving simulation.

Method used

A two-stage driving scene generation system is adopted, including a semantic occupancy grid generation stage based on layout conditions and a multi-condition guided video generation stage. The hidden grid and high-fidelity driving video of the scene are generated by using a grid diffusion model and a video diffusion model, respectively, and the generation efficiency is accelerated by using an efficient diffusion sampling method.

Benefits of technology

It enables the simultaneous generation of semantic occupancy grids and high-fidelity driving videos from scene layout conditions, improving generation efficiency and meeting the real-time and large-scale generation requirements of autonomous driving simulation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123181706A_ABST
    Figure CN123181706A_ABST
Patent Text Reader

Abstract

The application relates to the technical field of automatic driving end-to-end scene generation, in particular to a two-stage driving scene generation system and method using efficient diffusion sampling, which comprises two stages, namely a semantic occupancy grid generation stage based on a layout condition and a video generation stage guided by multiple conditions; the semantic occupancy grid generation stage based on the layout condition comprises a grid diffusion model and a 3D Gaussian decoder; the grid diffusion model is formed by overlapping a plurality of spatial self-attention modules, time self-attention modules and cross-attention modules; the video generation stage guided by the multiple conditions comprises a video diffusion model and a video decoder; the video diffusion model adopts a double-branch structure, gradually denoises standard Gaussian noise into a hidden image sequence, and obtains a high-fidelity driving scene video through decoding. The method fully utilizes the generation capability of the diffusion model, and can simultaneously generate a corresponding semantic occupancy grid and a high-fidelity driving scene video from a scene layout condition.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of end-to-end scene generation technology for autonomous driving, and in particular to a two-stage driving scene generation system and method using efficient diffusion sampling. Background Technology

[0002] End-to-end autonomous driving technology relies heavily on large-scale, diverse driving data with complex interactions for training and validation. However, collecting real-world road data is costly and covers limited scenarios, especially long-tail hazardous scenarios, which are difficult to fully acquire. Therefore, high-quality driving scenario generation and simulation have gradually become important supporting technologies for the development, testing, and safety verification of autonomous driving systems.

[0003] With the development of generative artificial intelligence, scene generation technology based on diffusion models has received widespread attention in the field of autonomous driving. Diffusion models generate highly realistic, diverse, and physically constrained driving scenes or trajectories from complex data distributions through progressive denoising, and have been used for tasks such as traffic scene generation, behavior prediction, and world model construction.

[0004] However, existing driving scene generation technologies still face several key challenges. Mainstream methods employ a single-stage generation strategy, directly generating high-resolution images or videos from layout or text conditions, often failing to simultaneously guarantee geometric consistency and appearance realism. Furthermore, diffusion models typically require multiple iterative denoising processes, resulting in low inference and sampling efficiency, significantly increasing computational costs, especially in high-resolution long video generation tasks, making it difficult to meet the real-time and scalable generation requirements of autonomous driving simulations. Therefore, improving the efficiency of high-resolution driving video generation while ensuring scene realism, structural consistency, and controllability has become a crucial technical problem urgently needing to be solved in the field of autonomous driving scene generation. Summary of the Invention

[0005] This application provides a two-stage driving scene generation system and method using efficient diffusion sampling, which can simultaneously generate corresponding semantic occupancy grids and high-fidelity driving scene videos from scene layout conditions. This application fully utilizes the generative capabilities of diffusion models, decoupling the complex scene generation task into two progressive generation tasks. It also proposes an efficient diffusion sampling method to accelerate the generation efficiency of high-resolution long videos.

[0006] To address the aforementioned technical problems, in a first aspect, embodiments of this application provide a two-stage driving scene generation system using efficient diffusion sampling, comprising two stages: a semantic occupancy grid generation stage based on layout conditions and a multi-condition guided video generation stage; the semantic occupancy grid generation stage based on layout conditions includes a grid diffusion model and a 3D Gaussian decoder; the grid diffusion model is composed of several overlapping spatial self-attention modules, temporal self-attention modules, and cross-attention modules; the grid diffusion model is used to generate the hidden grid of the scene, and the hidden grid of the scene is decoded by the 3D Gaussian decoder to obtain the semantic occupancy grid and 3D Gaussian attributes. The multi-condition guided video generation stage includes a video diffusion model and a video decoder. The video diffusion model adopts a ControlNet-based dual-branch structure, which includes a basic branch and a conditional branch. The input of the conditional branch is the semantic occupancy grid and 3D Gaussian attributes output by the grid diffusion model, and the input of the basic branch is standard Gaussian noise and the processing result output by the conditional branch. The basic branch and the conditional branch alternate in the video diffusion model, gradually denoising the standard Gaussian noise and transforming it into a latent image sequence. The latent image sequence is decoded by the video decoder to obtain a high-fidelity driving scene video.

[0007] In some exemplary embodiments, the input to the mesh diffusion model is the input condition obtained by concatenating the layout conditions of multiple frames with standard Gaussian noise; the layout conditions include road boundaries, lane lines, traffic participant positions, and drivable area information; the hidden mesh of the scene generated by the mesh diffusion model encodes rich geometric and semantic information of the scene.

[0008] In some exemplary embodiments, the spatial self-attention module and the temporal self-attention module can accurately model changes in both time and space dimensions; the input of the cross-attention module also includes the vehicle's motion trajectory information, supplementing the grid diffusion model with additional motion information.

[0009] In some exemplary embodiments, the system further includes a renderer for rendering semantic occupancy grids and 3D Gaussian properties into depth maps and semantic intents for the corresponding scene; using the rendered depth maps and semantic intents as pixel conditions, sufficient three-dimensional spatial information can be provided to the video diffusion model, improving the quality of video generation; the input to the video diffusion model includes input conditions obtained by stitching the rendered depth maps and semantic intents with reference frames of the video, as well as layout conditions, perimeter bounding boxes, scene text descriptions, and camera information.

[0010] In some exemplary embodiments, the 3D Gaussian decoder includes a semantic mesh decoder and a 3D Gaussian decoder; the semantic mesh decoder and the 3D Gaussian decoder are derived from the decoder portion of a 3D Gaussian conditionally enhanced mesh autoencoder, and decode the hidden mesh of the scene to obtain the semantic occupancy mesh and 3D Gaussian attributes.

[0011] In some exemplary embodiments, the 3D Gaussian-conditional augmented mesh autoencoder is obtained by enhancing a traditional variational autoencoder with the introduction of 3D Gaussian conditions and deriving a new variational lower bound for network training, as shown below: (1) in, It refers to any kind of observation of the generated scene; It is a hidden mesh; Represents the complete scene distribution; and These correspond to the decoder and encoder parts in the aforementioned mesh autoencoder, respectively; Represents a predefined prior distribution; It is a regularization term used to measure the regularity between any two distributions. and The difference between them, and satisfy .

[0012] In some exemplary embodiments, the semantic grid decoder and the 3D Gaussian decoder correspond to the variational lower bound of formula (1). The output of the semantic grid decoder is the semantic occupancy grid; the output of the 3D Gaussian decoder is the 3D Gaussian attribute corresponding to each semantic occupancy grid. , which correspond to the center position, opacity, size, and rotation of the Gaussian ellipsoid, respectively.

[0013] In some exemplary embodiments, the mesh diffusion model is an optimized mesh diffusion model; this is achieved by adding an extra step length to the mesh diffusion model. As input, the forced model study , and All combinations of these elements are used to ensure that the model can achieve good generation results even with larger step lengths. The training objective is:

[0014] In the formula, the first term is the original Flow-Matching loss, while the second term is the self-consistency loss, which is used to force the model to generate a linear denoised trajectory.

[0015] In some exemplary embodiments, the video diffusion model is a sampling method that employs a training-free token caching and reuse mechanism, and is an optimized video diffusion model. This sampling method divides the entire sampling process into several sampling periods, each containing... Each sampling step involves a sampling process. In each sampling step of the cycle, the sampling method performs a complete computation on all tokens and caches the results for reuse in future sampling steps. Based on the spatial similarity of tokens, the sampling method uses the K-nearest neighbor clustering algorithm to cluster all tokens, ensuring that tokens in each cluster share similar characteristics. In the following... Each sampling step randomly selects only one token from each cluster for computation, significantly reducing computational complexity. These newly computed tokens will update the existing cache proportionally, thus propagating the new results to tokens that have not been recomputed. For other tokens that have not been recomputed, an approximation based on a Taylor series prediction formula is used.

[0016] in, For cached features, The i-th order difference quotient is the feature.

[0017] Secondly, embodiments of this application provide a two-stage driving scene generation method using efficient diffusion sampling. This method is based on the two-stage driving scene generation method using efficient diffusion sampling described in the above embodiments. The method includes the following steps: generating a hidden mesh of the scene based on scene layout conditions through a mesh diffusion model, and decoding it through a 3D Gaussian decoder to obtain a semantic occupancy mesh and 3D Gaussian attributes; inputting the semantic occupancy mesh and 3D Gaussian attributes into the video diffusion model to generate a hidden image sequence, and decoding it through a video decoder to obtain a high-fidelity driving scene video.

[0018] The technical solution provided in this application has at least the following advantages: This application provides a two-stage driving scene generation system and method using efficient diffusion sampling. The system includes two stages: a semantic occupancy grid generation stage based on layout conditions and a multi-condition guided video generation stage. The semantic occupancy grid generation stage based on layout conditions includes a grid diffusion model and a 3D Gaussian decoder. The grid diffusion model is composed of several overlapping spatial self-attention modules, temporal self-attention modules, and cross-attention modules. The grid diffusion model is used to generate the hidden grid of the scene. The hidden grid of the scene is decoded by the 3D Gaussian decoder to obtain the semantic occupancy grid and 3D Gaussian attributes. The multi-condition guided video generation stage includes a video diffusion model and a video decoder. The video diffusion model adopts a ControlNet-based dual-branch structure, which includes a basic branch and a conditional branch. The input of the conditional branch is the semantic occupancy grid and 3D Gaussian attributes output by the grid diffusion model. The input of the basic branch is standard Gaussian noise and the processing result output by the conditional branch. The basic branch and the conditional branch alternate in the video diffusion model, gradually denoising the standard Gaussian noise and transforming it into a hidden image sequence. The hidden image sequence is decoded by the video decoder to obtain a high-fidelity driving scene video.

[0019] The two-stage driving scene generation system using efficient diffusion sampling provided in this application can simultaneously generate the corresponding semantic occupancy grid and high-fidelity driving scene video from scene layout conditions. At the same time, this application makes full use of the generation capability of the diffusion model, decoupling the complex scene generation task into two progressive generation tasks. It also proposes an efficient diffusion sampling method to accelerate the generation efficiency of high-resolution long videos. Attached Figure Description

[0020] One or more embodiments are illustrated by way of example with reference to the accompanying drawings. These illustrations do not constitute a limitation on the embodiments, and unless otherwise stated, the figures in the drawings are not to be limited by scale.

[0021] Figure 1 This is a schematic diagram of the overall architecture of a two-stage driving scene generation method using efficient diffusion sampling, provided in an embodiment of this application.

[0022] Figure 2 This is a schematic diagram showing the detailed structure of a model provided in one embodiment of this application.

[0023] Figure 3 A schematic diagram of a 3D Gaussian-conditionally enhanced mesh autoencoder provided in an embodiment of this application.

[0024] Figure 4 This is a schematic diagram of a diffusion-accelerated sampling method provided in an embodiment of this application. Detailed Implementation

[0025] As the background technology indicates, existing driving scene generation technologies still face several key challenges. Single-stage generation strategies struggle to simultaneously guarantee geometric consistency and visual realism. Furthermore, diffusion models typically require multiple rounds of iterative denoising processes, leading to low inference and sampling efficiency. This significantly increases computational costs, particularly in high-resolution long-video generation tasks, making it difficult to meet the real-time and scalable generation requirements of autonomous driving simulations.

[0026] To address the aforementioned issues, this application provides a two-stage driving scene generation system and method using efficient diffusion sampling. It proposes first generating a semantic occupancy grid from a custom scene layout, and then using this as a condition to generate a high-quality driving video. The system can simultaneously generate the corresponding semantic occupancy grid and high-fidelity driving scene video from the scene layout conditions. This system fully utilizes the generative capabilities of the diffusion model, decoupling the complex scene generation task into two progressive generation tasks. Furthermore, it proposes an efficient diffusion sampling method to accelerate the generation efficiency of high-resolution long videos.

[0027] The embodiments of this application will now be described in detail with reference to the accompanying drawings. However, those skilled in the art will understand that many technical details have been provided in the embodiments of this application to facilitate a better understanding of the application. However, the technical solutions claimed in this application can be implemented even without these technical details and various variations and modifications based on the following embodiments.

[0028] See Figure 1 This application provides a two-stage driving scene generation system using efficient diffusion sampling, comprising two stages: a semantic occupancy grid generation stage based on layout conditions and a multi-condition guided video generation stage. The semantic occupancy grid generation stage based on layout conditions includes a grid diffusion model and a 3D Gaussian decoder. The grid diffusion model is composed of several overlapping spatial self-attention modules, temporal self-attention modules, and cross-attention modules. The grid diffusion model is used to generate the hidden grid of the scene, which is decoded by the 3D Gaussian decoder to obtain the semantic occupancy grid and 3D Gaussian attributes. The multi-condition guided video generation stage includes a video diffusion model and a video decoder. The video diffusion model adopts a ControlNet-based dual-branch structure, which includes a basic branch and a conditional branch. The input of the conditional branch is the semantic occupancy grid and 3D Gaussian attributes output by the grid diffusion model, and the input of the basic branch is standard Gaussian noise and the processing result output by the conditional branch. The basic branch and the conditional branch alternate in the video diffusion model, gradually denoising the standard Gaussian noise into a hidden image sequence. The hidden image sequence is decoded by the video decoder to obtain a high-fidelity driving scene video.

[0029] Figure 1This paper presents a flowchart illustrating the overall architecture of the two-stage driving scene generation system using efficient diffusion sampling proposed in this application. Figure 1 The diagram for Phase 2 illustrates the dual-branch structure of the video diffusion model. The conditional branch processes the semantic occupancy grid and 3D Gaussian attributes, and its output is fed back into the base branch. Therefore, the input to the base branch includes standard Gaussian noise and the processing result from the conditional branch. After processing all inputs simultaneously, the base branch's output is sent to the video decoder for decoding, ultimately producing the generated video.

[0030] This application provides a two-stage driving scene generation method using efficient diffusion sampling. The method is based on the two-stage driving scene generation method using efficient diffusion sampling described in the above embodiment. The method includes the following steps: generating a hidden mesh of the scene based on the scene layout conditions through a mesh diffusion model, and decoding it through a 3D Gaussian decoder to obtain a semantic occupancy mesh and 3D Gaussian attributes; inputting the semantic occupancy mesh and 3D Gaussian attributes into the video diffusion model to generate a hidden image sequence, and decoding it through a video decoder to obtain a high-fidelity driving scene video.

[0031] Figure 2 This more clearly demonstrates the model details of this application. In some embodiments, the input to the mesh diffusion model is the input condition obtained by concatenating the layout conditions of multiple frames with standard Gaussian noise; the layout conditions include road boundaries, lane lines, traffic participant positions, and drivable area information; the hidden mesh of the scene generated by the mesh diffusion model encodes rich geometric and semantic information of the scene.

[0032] In some embodiments, the spatial self-attention module and the temporal self-attention module can accurately model changes in both time and space dimensions; the input of the cross-attention module also includes the vehicle's motion trajectory information, supplementing the grid diffusion model with additional motion information.

[0033] In some embodiments, such as Figure 1 and Figure 2 As shown, the system also includes a renderer, which renders the semantic occupancy grid and 3D Gaussian properties into a depth map and semantic intent of the corresponding scene. Using the rendered depth map and semantic intent as pixel conditions, sufficient three-dimensional spatial information can be provided for the video diffusion model, improving the quality of video generation. The input of the video diffusion model includes the input conditions obtained by stitching the rendered depth map and semantic intent with the reference frame of the video, as well as layout conditions, perimeter bounding boxes, scene text descriptions, and camera information.

[0034] In some embodiments, the 3D Gaussian decoder includes a semantic mesh decoder and a 3D Gaussian decoder; the semantic mesh decoder and the 3D Gaussian decoder are derived from the decoder portion of a 3D Gaussian conditionally enhanced mesh autoencoder, and decode the hidden mesh of the scene to obtain the semantic occupancy mesh and 3D Gaussian attributes.

[0035] The following section provides a detailed description of the two-stage driving scenario generation system and method using efficient diffusion sampling provided in this application, with reference to the accompanying drawings and specific embodiments.

[0036] like Figure 1 and Figure 2 As shown, the entire generation process can be divided into two stages: (1) Semantic Occupation Mesh Generation Stage Based on Layout Conditions: In this stage, the model receives layout conditions from multiple frames as input. These layout conditions mainly include information such as road boundaries, lane lines, traffic participant positions, and drivable areas. These conditions are then rendered onto a two-dimensional semantic map. By concatenating these conditions with standard Gaussian noise, the input to the mesh diffusion model is obtained. This mesh diffusion model consists of several overlapping spatial self-attention modules, temporal self-attention modules, and cross-attention modules. The input of the cross-attention module also includes the vehicle's motion trajectory information. The spatiotemporal self-attention module can accurately model changes in both time and space, while the cross-attention module supplements the model with additional motion information. The model output is the hidden mesh of the scene, which encodes rich geometric and semantic information of the scene. Subsequently, the corresponding semantic occupancy mesh and 3D Gaussian attributes can be obtained through the decoder part of the mesh autoencoder. These results will serve as guiding conditions for subsequent video generation.

[0037] (2) Multi-condition guided video generation stage: Since the complexity of image generation is much higher than that of occupancy grid generation, the video diffusion model adopts a dual-branch structure based on ControlNet. The input of the basic branch includes standard Gaussian noise and the processing result of the conditional branch output, while the input of the conditional branch comes from the semantic occupancy grid and 3D Gaussian attributes obtained by the final decoding in the previous stage. These two modules appear alternately in the video diffusion model, gradually denoising the above Gaussian noise and transforming it into a latent image sequence. Finally, the final generated video can be obtained through a pre-trained video decoder.

[0038] To incorporate semantic occupancy grids and 3D Gaussian properties as conditional inputs to the network, we first render them as depth maps and semantic intents for the corresponding scene using a renderer. Utilizing these as pixel conditions provides the model with sufficient 3D spatial information, improving the quality of video generation. Then, by stitching together the first latent image (reference frame) of the video, they are fed into the video diffusion model. In addition, layout conditions, perimeter bounding boxes, scene text descriptions, and camera information, among other control conditions, are also used as inputs to this model. The layout conditions are directly added to the model's input after passing through their respective encoders, while the remaining sequence information is fed into the network via cross-attention after passing through their respective encoders. The architecture of the video diffusion model is similar to the grid diffusion model, but it adds a cross-view spatial diffusion network module to enhance the cross-view consistency of the generated video.

[0039] 2. 3D Gaussian-conditionally enhanced mesh autoencoder.

[0040] The sparse representation of semantic occupancy grids is not conducive to the generation of grid-spreading models; therefore, we must use an encoder to compress it into a compact latent grid. Variational autoencoders (VAEs) are probabilistic generative models capable of sampling data from a simple probabilistic prior (often Gaussian distributed) to generate data with arbitrary distributions, making them an effective tool for compressing and encoding semantic occupancy grids. However, since the ground truth values ​​of the semantic occupancy grids used for training are often flawed (due to noise in the data acquisition and annotation process), the final trained network can only generate flawed data. To address this issue, methods such as... Figure 3 As shown, this application introduces 3D Gaussian conditions to enhance the traditional variational autoencoder and derives a new variational lower bound for network training, resulting in a 3D Gaussian-enhanced mesh autoencoder:

[0041] in, It refers to any kind of observation of the generated scene; It is a hidden mesh; Represents the complete scene distribution; and These correspond to the decoder and encoder parts in the aforementioned mesh autoencoder, respectively; Represents a predefined prior distribution; It is a regularization term used to measure the regularity between any two distributions. and The difference between them, and satisfy Here, iff is an abbreviation for if and only if. In this application, the regularization term uses SIGReg, which employs the Epps-Pulley test to measure the difference between the two distributions, thus better normalizing the latent space distribution and improving the representation ability of the latent grid.

[0042] This mesh autoencoder uses two decoders: a semantic mesh and a 3D Gaussian, corresponding to the variational lower bound. : The output of the semantic grid decoder is the semantic occupancy grid, which is used to calculate the reconstruction loss along with the ground truth value of the semantic occupancy grid.

[0043] in For cross-entropy loss, Lovasz-softmax loss, These are the weighting coefficients.

[0044] The output of the 3D Gaussian decoder is the 3D Gaussian attribute corresponding to each semantic grid. These correspond to the center position, opacity, size, and rotation of the Gaussian ellipsoid, respectively. Combined with the semantic information inherent in the raster, the renderer can then render depth and semantic meaning.

[0045] The depth and semantic intent obtained from these decodes will be compared with the corresponding ground truth values ​​to calculate the loss:

[0046] in, It refers to the depth cross-correlation loss at the fuzzy scale, reflecting the local relative depth consistency between the rendered depth and the ground truth depth. It represents an image patch. and These represent the mean and standard deviation of the image patch depth, respectively. This is the standard two-dimensional image semantic cross-entropy loss. The final loss is:

[0047] The mesh autoencoder trained using this method produces better generation results than samples in the training set, with less floating noise, mainly due to the additional supervision introduced by the 3D Gaussian condition. Simultaneously, the depth and semantic maps it decodes and renders also have higher quality.

[0048] 3. Efficient diffusion model sampling.

[0049] Although the two-stage scene generation method proposed in this application can already generate high-quality scene semantic meshes and videos, the extremely high computational burden of the diffusion model often means that it takes a long time to complete the generation of a scene. To address this, this application further optimizes the original model in terms of fewer sampling steps and faster inference speed, thereby accelerating the generation process.

[0050] (1) Fewer sampling steps.

[0051] The training loss of a typical flow-matching-based diffusion model is:

[0052] in It is the starting point of generation (standard Gaussian noise), and The image you want to generate. Let be the velocity predicted by the model at time t.

[0053] However, this sampling method actually predicted arrive The average velocity direction is such that reducing the number of sampling steps significantly reduces the quality of the generated data. Therefore, as... Figure 4 As shown, this application employs an improved flow matching accelerated sampling method, which adds an extra step length to the model. As input, the forced model study , and All combinations of these elements are used to enable the model to achieve good generation results even with larger step lengths (i.e., fewer sampling steps). The training objective is:

[0054] It can be observed that the first term is the original Flow-Matching loss, while the second term is the self-consistency loss, which is used to force the model to generate a linear denoised trajectory.

[0055] (2) Faster reasoning speed.

[0056] like Figure 4 As shown, this application employs a training-free token caching and reuse mechanism to accelerate the inference speed of diffusion models for high-resolution long videos. Specifically, this sampling method divides the entire sampling process into several sampling periods, each containing... Each sampling step involves a sampling process. In one sampling step of each cycle, the method performs a complete computation on all tokens and caches the results for reuse in future sampling steps. Based on the spatial similarity of tokens, the method further employs a K-nearest neighbor clustering algorithm to cluster all tokens, ensuring that tokens in each cluster share similar characteristics. In the following... Each sampling step randomly selects only one token from each cluster for computation, significantly reducing the computational load. These newly computed tokens will update the existing cache proportionally, thus propagating the new results to tokens that have not been recomputed. For other tokens that have not been recomputed, an approximation is made using a prediction formula based on Taylor series.

[0057] in For cached features, The i-th order difference quotient is the feature.

[0058] After using the two sampling acceleration methods mentioned above, the original 30-step sampling process can be reduced to 10 steps. At the same time, the duration of the video inference task with a resolution of 424×800 and a length of 233 frames can be reduced from 615s to 198s, while the quality is not significantly reduced.

[0059] Based on the above technical solutions, this application provides a two-stage driving scene generation system and method using efficient diffusion sampling. The system comprises two stages: a semantic occupancy grid generation stage based on layout conditions and a multi-condition guided video generation stage. The semantic occupancy grid generation stage based on layout conditions includes a grid diffusion model and a 3D Gaussian decoder. The grid diffusion model is composed of several overlapping spatial self-attention modules, temporal self-attention modules, and cross-attention modules. The grid diffusion model is used to generate the hidden grid of the scene, which is then decoded by the 3D Gaussian decoder to obtain the semantic occupancy grid and 3D Gaussian attributes. The multi-condition guided video generation stage includes a video diffusion model and a video decoder. The video diffusion model adopts a ControlNet-based dual-branch structure, which includes a basic branch and a conditional branch. The input to the conditional branch is the semantic occupancy grid and 3D Gaussian attributes output by the grid diffusion model, while the input to the basic branch is standard Gaussian noise and the processing result output by the conditional branch. The basic branch and the conditional branch alternate in the video diffusion model, gradually denoising the standard Gaussian noise into a hidden image sequence. The hidden image sequence is decoded by the video decoder to obtain a high-fidelity driving scene video.

[0060] The two-stage driving scene generation system using efficient diffusion sampling provided in this application can simultaneously generate the corresponding semantic occupancy grid and high-fidelity driving scene video from scene layout conditions. At the same time, this application makes full use of the generation capability of the diffusion model, decoupling the complex scene generation task into two progressive generation tasks. It also proposes an efficient diffusion sampling method to accelerate the generation efficiency of high-resolution long videos.

[0061] Those skilled in the art will understand that the above-described embodiments are specific examples of implementing this application, and in practical applications, various changes in form and detail may be made without departing from the spirit and scope of this application. Any person skilled in the art can make their own modifications and alterations without departing from the spirit and scope of this application; therefore, the scope of protection of this application should be determined by the scope defined in the claims.

Claims

1. A two-stage driving scene generation system using efficient diffusion sampling, characterized in that, It includes two stages: a semantic occupancy grid generation stage based on layout conditions and a multi-condition guided video generation stage; The semantic occupancy grid generation stage based on layout conditions includes a grid diffusion model and a 3D Gaussian decoder; The grid diffusion model is composed of several overlapping spatial self-attention modules, temporal self-attention modules, and cross-attention modules; the grid diffusion model is used to generate the hidden grid of the scene, and the hidden grid of the scene is decoded by a 3D Gaussian decoder to obtain the semantic occupancy grid and 3D Gaussian attributes. The multi-condition guided video generation stage includes a video diffusion model and a video decoder; The video diffusion model adopts a two-branch structure based on ControlNet, which includes a basic branch and a conditional branch. The input to the conditional branch is the semantic occupancy grid and 3D Gaussian attributes output by the grid diffusion model, and the input to the base branch is standard Gaussian noise and the processing result output by the conditional branch. The base branch and the conditional branch appear alternately in the video diffusion model, gradually denoising the standard Gaussian noise and transforming it into a latent image sequence. The latent image sequence is decoded by the video decoder to obtain a high-fidelity driving scene video.

2. The two-stage driving scene generation system using efficient diffusion sampling according to claim 1, characterized in that, The input to the grid diffusion model is the input condition obtained by splicing the layout conditions of multiple frames with standard Gaussian noise. The layout conditions include information on road boundaries, lane lines, locations of traffic participants, and drivable areas. The hidden mesh of the scene generated by the mesh diffusion model encodes rich geometric and semantic information of the scene.

3. The two-stage driving scenario generation system using efficient diffusion sampling according to claim 1, characterized in that, The spatial self-attention module and the temporal self-attention module can accurately model changes in both time and space dimensions; The input to the cross-attention module also includes the vehicle's motion trajectory information, which supplements the grid diffusion model with additional motion information.

4. The two-stage driving scenario generation system using efficient diffusion sampling according to claim 1, characterized in that, The system also includes a renderer for rendering semantic occupancy grids and 3D Gaussian properties into depth maps and semantic images of the corresponding scene. By using the rendered depth map and semantic intent as pixel conditions, sufficient three-dimensional spatial information can be provided for the video diffusion model, thereby improving the quality of video generation. The input to the video diffusion model includes the rendered depth map and the input conditions obtained by stitching the semantic meaning with the reference frame of the video, as well as the layout conditions, the surrounding bounding box, the scene text description, and the camera information.

5. The two-stage driving scenario generation system using efficient diffusion sampling according to claim 1, characterized in that, The 3D Gaussian decoder includes a semantic grid decoder and a 3D Gaussian decoder; The semantic mesh decoder and the 3D Gaussian decoder are derived from the decoder part of the 3D Gaussian conditionally enhanced mesh autoencoder, which decodes the hidden mesh of the scene to obtain the semantic occupancy mesh and 3D Gaussian attributes.

6. The two-stage driving scene generation system using efficient diffusion sampling according to claim 5, characterized in that, The 3D Gaussian-conditional augmented mesh autoencoder is obtained by introducing 3D Gaussian conditions to enhance the traditional variational autoencoder and deriving a new variational lower bound for network training. The resulting 3D Gaussian-conditional augmented mesh autoencoder is shown below: (1) in, It refers to any kind of observation of the generated scene; It is a hidden mesh; Represents the complete scene distribution; and These correspond to the decoder and encoder parts in the aforementioned mesh autoencoder, respectively; Represents a predefined prior distribution; It is a regularization term used to measure the regularity between any two distributions. and The difference between them, and satisfy .

7. The two-stage driving scene generation system using efficient diffusion sampling according to claim 6, characterized in that, The semantic grid decoder and the 3D Gaussian decoder correspond to the variational lower bound in formula (1). : The output of the semantic grid decoder is the semantic grid occupancy. The output of the 3D Gaussian decoder is the 3D Gaussian attribute corresponding to each semantic grid. , which correspond to the center position, opacity, size, and rotation of the Gaussian ellipsoid, respectively.

8. The two-stage driving scenario generation system using efficient diffusion sampling according to claim 1, characterized in that, The grid diffusion model is an optimized grid diffusion model; By adding an extra step length to the grid diffusion model As input, the forced model study , and All combinations of these elements are used to ensure that the model can achieve good generation results even with larger step lengths. The training objective is: In the formula, the first term is the original Flow-Matching loss, while the second term is the self-consistency loss, which is used to force the model to generate a linear denoised trajectory.

9. The two-stage driving scene generation system using efficient diffusion sampling according to claim 1, characterized in that, The video diffusion model is a sampling method that uses a token caching and reuse mechanism without training, and is an optimized video diffusion model. This sampling method divides the entire sampling process into several sampling periods, each containing... Each sampling step; In one sampling step of each period, the sampling method performs a complete calculation on all tokens and caches the calculation results so that they can be reused in future sampling steps; Based on the spatial similarity of tokens, this sampling method uses the K-nearest neighbor clustering algorithm to cluster all tokens, and the tokens in each cluster have similar characteristics; In the next Each sampling step randomly selects only one token from each cluster for computation, significantly reducing computational complexity. These newly computed tokens will update the existing cache proportionally, thus propagating the new results to tokens that have not been recomputed. For other tokens that have not been recomputed, an approximation based on a Taylor series prediction formula is used. in, For cached features, The i-th order difference quotient is the feature.

10. A two-stage driving scene generation method using efficient diffusion sampling, the method being implemented based on the two-stage driving scene generation method using efficient diffusion sampling as described in any one of claims 1 to 9, characterized in that, The method includes the following steps: Based on scene layout conditions, a hidden mesh of the scene is generated through a mesh diffusion model and decoded through a 3D Gaussian decoder to obtain the semantic occupancy mesh and 3D Gaussian attributes. The semantic occupancy grid and 3D Gaussian properties are input into the video diffusion model to generate a latent image sequence, which is then decoded by a video decoder to obtain a high-fidelity driving scene video.