Three-dimensional scene generation and editing method and system based on three-dimensional Gaussian

By using a three-dimensional Gaussian-based method and utilizing large-scale language models and multi-time step sampling technology, the quality and consistency problems of three-dimensional scene generation in the existing technology are solved, efficient three-dimensional scene generation and editing are achieved, and the scope of application is expanded.

CN118570353APending Publication Date: 2024-08-30UNIV OF SCI & TECH OF CHINA
View PDF 0 Cites 10 Cited by

Patent Information

Application Number
CN202410689870.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-30
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

Existing text-driven 3D scene generation technology has limitations in quality, consistency and editability, and is difficult to meet user needs, especially the lack of 3D consistency based on image completion methods, and the limited model library based on 3D model combination methods limits its scope of application.

Method used

Using a three-dimensional Gaussian-based method, the text content is expanded through a pre-trained large-scale language model, a three-dimensional Gaussian model is generated, and multi-time step sampling and predefined rendering strategies are used for scene initialization and optimization to ensure scene-level consistency and reliability. controllability while supporting flexible scene editing.

Benefits of technology

It achieves high-quality, scene-level consistent 3D scene generation, expands the available range of 3D scene generation, provides a foundation for subsequent scene interaction and other applications, and improves generation efficiency and editing flexibility.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118570353A
    Figure CN118570353A
Patent Text Reader

Abstract

The invention relates to the technical field of three-dimensional modeling, and discloses a three-dimensional scene generating and editing method based on three-dimensional Gaussian. The three-dimensional scene generation method comprises the following steps: expanding text content specified by a user into an indication text of an object contained in a corresponding scene and detailed description of the scene; generating a three-dimensional Gaussian model of an object corresponding to each indication text through a three-dimensional object generation method based on three-dimensional Gaussian; the initialization of the whole scene is completed; performing medium-term iterative optimization on the scene three-dimensional Gaussian model; rendering the scene three-dimensional Gaussian model subjected to middle-term iterative optimization into a group of two-dimensional images through the obtained group of camera poses; and using a pseudo real image to supervise and optimize the scene three-dimensional Gaussian model after mid-term iterative optimization. The two-dimensional text graph diffusion model is distilled through multi-time-step sampling, object features and spatial features in a scene can be considered in optimization, and consistent optimization of the scene is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of three-dimensional modeling, and in particular to a three-dimensional scene generation and editing method and system based on three-dimensional Gaussian. Background Art

[0002] 3D scene generation is an important direction of 3D content generation in AI generation tasks. Using AI to automatically generate 3D scenes can improve the efficiency of 3D asset creation and reduce the difficulty of 3D asset creation, and can play an important role in game production, mixed reality, design and decoration, etc. Recently, the latest research results have attracted widespread interest from academia and industry. The current text-driven 3D scene generation can be mainly divided into 3D scene generation methods based on image completion and 3D scene generation methods based on 3D model combination.

[0003] Methods that generate 3D scenes based on image completion can present realistic visual effects in limited ranges and angles, but the 3D consistency of the generated scenes is limited. Even a small change in the viewing angle may cause the visual integrity of the scene to collapse, which means that such methods lack robustness. Methods such as Text2Room and Text2NeRF start by initializing an image and partially masking the image to simulate views from adjacent perspectives. They use pre-trained image inpainting models and depth estimation models to complete the masked image blocks and infer their depth, thereby generating a complete 3D scene through an iterative process of depth information and image alignment. Therefore, when the predefined camera sampling area is exceeded, the 3D scenes generated by such methods will show obvious degradation when rendered into 2D images. At the same time, such methods tend to duplicate certain iconic objects in the scene, such as the sofa that appears repeatedly in the living room scene, which shows that they have the defect of 3D consistency.

[0004] Methods that generate 3D scenes based on 3D model combination use different strategies. In the past, such methods relied on a pre-built 3D model library. During the generation process, the system selects and combines these 3D models based on text descriptions or other input information to build an overall 3D scene that meets the description requirements. Compared with image completion-based methods, such methods can provide better 3D consistency and controllability because they are not affected by changes in perspective. However, the limited 3D model library reduces the ability of such methods to meet user needs, and it is difficult for them to meet the requirements for models that have not appeared in the model library. Other methods that use generative models find it difficult to obtain high-quality 3D models to combine with complete scenes.

[0005] To date, limitations in quality, consistency, and editability have hampered the widespread adoption of text-driven 3D content generation techniques. Summary of the invention

[0006] To solve the above technical problems, the present invention provides a 3D scene generation and editing method and system based on 3D Gaussian, which ensures the consistency of the scene level, has higher generation quality than previous methods, and supports flexible scene editing based on a controllable layout diagram.

[0007] In order to solve the above technical problems, the present invention adopts the following technical solutions:

[0008] A three-dimensional scene generation method based on three-dimensional Gaussian includes the following steps:

[0009] Step 1: Using a pre-trained large-scale language model, by applying a pre-defined prompt question-answering template, the text content specified by the user is expanded into an indication text of the objects contained in the corresponding scene and a detailed description of the scene;

[0010] Step 2: Generate a 3D Gaussian model of the object corresponding to each indication text by using a 3D Gaussian-based 3D object generation method;

[0011] Step 3: Based on the 3D Gaussian model of the object, use a predefined environment initialization method to initialize the environment 3D Gaussian model and the ground 3D Gaussian model of the scene; use a predefined 3D Gaussian point affine transformation method to combine the environment 3D Gaussian model, the ground 3D Gaussian model and the object 3D Gaussian model into a scene 3D Gaussian model according to the scene content layout specified by the user, and complete the initialization of the entire scene;

[0012] Step 4, performing mid-term iterative optimization on the scene 3D Gaussian model to obtain the scene 3D Gaussian model after mid-term iterative optimization, specifically comprising the following steps:

[0013] S41, using a predefined camera sampling strategy to sample the camera pose, and using a predefined rendering method to render a two-dimensional image of the three-dimensional Gaussian model of the scene in an iterative process to obtain a rendered image;

[0014] S42, using a predefined multi-time step sampling method, guiding the three-dimensional content generation of the scene three-dimensional Gaussian model through a pre-trained two-dimensional Wensheng graph diffusion model, and optimizing the parameters of the scene three-dimensional Gaussian model;

[0015] Step 5: Sample a set of camera poses according to a predefined camera sampling strategy, and render a set of two-dimensional images using the three-dimensional Gaussian model of the scene optimized after the mid-term iteration through the obtained set of camera poses;

[0016] Step 6: Use a predefined reconstruction generation method to add noise and denoise the two-dimensional image rendered in step 5 through a pre-trained two-dimensional Vincent diffusion model to obtain a pseudo-real image for reconstruction. Use the pseudo-real image to supervise and optimize the three-dimensional Gaussian model of the scene after mid-term iterative optimization to obtain the final three-dimensional Gaussian model of the scene.

[0017] Furthermore, in step 3, the object-based 3D Gaussian model uses a predefined environment initialization method to initialize the environment 3D Gaussian model and the ground 3D Gaussian model of the scene, specifically including:

[0018] According to the different characteristics of indoor and outdoor scenes, two structures are used to initialize the environment Gaussian model and ground Gaussian model of the scene respectively;

[0019] For indoor scenes, a cube is used for initialization to simulate the indoor ceiling, wall and floor, and adjacent faces have different initial grayscales.

[0020] For outdoor scenes, a hemisphere or a sphere is used for initialization. A spherical surface is used to represent the distant view of an unbounded outdoor scene, and a circular plane is used to represent the ground. At the same time, an initialization color is assigned to the outdoor scene according to the detailed description of the scene.

[0021] The initialization size of the environment is obtained after all objects in the scene content layout are transformed into the scene space, based on the bounding box boundary parameters of the object's 3D Gaussian model and the predefined scene size, to ensure that the object's 3D Gaussian model does not collide with the environment's 3D Gaussian model.

[0022] Further, in step 3, the use of the predefined 3D Gaussian point affine transformation method, according to the scene content layout specified by the user, combines the environment 3D Gaussian model, the ground 3D Gaussian model and the object 3D Gaussian model into a scene 3D Gaussian model to complete the initialization of the entire scene, specifically including:

[0023] The scene content layout specified by the user includes the position, direction and size of each object in the scene, as well as the number of times each object needs to be placed repeatedly. For rendering in the subsequent optimization process, the object's 3D Gaussian model needs to be transformed from the object space to a unified scene space;

[0024] According to the position, direction and size of the object in the specified scene content layout, the object's 3D Gaussian model is transformed into the scene space by the following formula:

[0025] world(x) = r·s·obj i (x)+t,i=1,…,N;

[0026] Among them, x represents the coordinate set of the three-dimensional Gaussian point in the object coordinate system, world(x) represents the transformation formula, t represents the translation parameter, r represents the rotation parameter, s represents the scaling parameter, and obj i (·) represents the parameters of the three-dimensional Gaussian points in the three-dimensional Gaussian model of the object; N represents the number of objects placed in the scene;

[0027] For the rotation and scaling transformation of three-dimensional Gaussian points, the spherical harmonic coefficients and scaling coefficients need to be transformed. In a typical three-dimensional Gaussian representation, the scaling coefficient needs to be added to the logarithm of the scaling transformation multiple; the spherical harmonic coefficients need to be rotated through quaternion multiplication.

[0028] Further, in step S41, the sampling of the camera pose using a predefined camera sampling strategy and the rendering of the two-dimensional image of the three-dimensional Gaussian model of the scene using a predefined rendering method in an iterative process specifically include:

[0029] The predefined rendering method specifically includes:

[0030] According to the predefined rendering strategy, the scene 3D Gaussian model is rendered in different ranges, including: rendering only the environment; rendering the environment and all objects; rendering the environment and some objects;

[0031] The predefined camera sampling strategy specifically includes:

[0032] For indoor scenes, indoor camera sampling strategy 1 is: sampling from the edge of the environment to the center of the scene; indoor camera sampling strategy 2 is: sampling from the periphery of the object to the center of the object, or around a specified area; in the mid-term iteration process before the number of iterations is 70% of the total number of iterations, indoor camera sampling strategy 1 is used throughout the process; in the mid-term iteration process after the number of iterations is 70% of the total number of iterations, indoor camera sampling strategy 1 and indoor camera sampling strategy 2 are randomly applied;

[0033] For outdoor scenes, the outdoor camera sampling strategy one is: pointing from the center of the environment to the outside of the scene; the outdoor camera sampling strategy two is: pointing in the same direction along a random diameter and sampling at different positions; in the mid-term iteration process before the number of iterations is 70% of the total number of iterations, the outdoor camera sampling strategy one is used throughout the first stage; in the mid-term iteration process after the number of iterations is 70% of the total number of iterations, the outdoor camera sampling strategy two is used throughout.

[0034] Furthermore, in step 5, sampling a set of camera poses according to a predefined camera sampling strategy, and rendering a set of two-dimensional images with the scene three-dimensional Gaussian model optimized after mid-term iteration by using the obtained set of camera poses, specifically includes:

[0035] The camera perspective is sampled in the scene according to the camera sampling strategy of step S41. For indoor scenes, the camera sampling strategy is to randomly use indoor camera sampling strategy 1 and indoor camera sampling strategy 2. For outdoor scenes, the camera sampling strategy is outdoor camera sampling strategy 2. A three-dimensional Gaussian rasterizer is used to render the three-dimensional Gaussian model of the scene into a two-dimensional image.

[0036] Further, in step S42, the predefined multi-time step sampling method is used to guide the scene three-dimensional Gaussian model to generate three-dimensional content through a pre-trained two-dimensional Wensheng graph diffusion model, and the parameters of the scene three-dimensional Gaussian model are optimized, which specifically includes:

[0037] θ represents the parameters of the scene's three-dimensional Gaussian model, c represents the camera's position, and g(·) represents the rendering process. The rendered image x0=g(θ,c) of the scene's three-dimensional Gaussian model is denoised to obtain a noisy image. Add noise to the image The prediction noise of the corresponding empty prompt text embedding in the input 2D text graph diffusion model φ The noisy image is calculated by the inversion method of the denoising diffusion implicit model Repeat the above process until the mth noisy image is obtained

[0038] Among them, the time step t i The sampling method is as follows:

[0039]

[0040] Where, T end is a decreasing time step node, iter represents the number of optimization iterations, random represents a random value within the time period, and m is the number of divided time periods;

[0041] Add noise to the image Input two-dimensional Wensheng graph diffusion model φ prediction Prediction noise corresponding to the hint text embedding The parameters of the scene's three-dimensional Gaussian model are optimized according to the following formula:

[0042]

[0043] In the formula It represents the multi-time-step sampling loss function to find the gradient of the parameter θ of the scene 3D Gaussian model. represents the multi-time step sampling loss function, y represents a detailed description of the input scene, and w(t) is the loss function for different time steps t. i The multi-time step sampling loss function formula is:

[0044]

[0045] Furthermore, step six specifically includes:

[0046] Render K images from different camera positions around the 3D Gaussian model of the scene By in the image Add t time steps of noise to obtain the noisy image Predict a pseudo-real image with reasonable texture using the following formula

[0047]

[0048] Where t represents the time step of adding noise, y represents the detailed description of the input scene, represents the noisy image calculated using the inversion method of the denoising diffusion implicit model, and Describe the relative size of the diffusion model noise and signal at time t;

[0049] And use the following formula to optimize the parameters of the scene's three-dimensional Gaussian model:

[0050]

[0051] In the formula, represents the reconstruction loss function, g(θ,c i ) is a 2D image rendered from the corresponding pseudo-real image camera position around the 3D Gaussian model of the scene during the reconstruction iteration.

[0052] A three-dimensional scene generation system based on three-dimensional Gaussian, comprising:

[0053] The text expansion module uses a pre-trained large-scale language model to expand the user-specified text content into the corresponding scene object indication text and the detailed description of the scene by applying pre-defined prompt question and answer templates;

[0054] A three-dimensional Gaussian model generation module generates a three-dimensional Gaussian model of an object corresponding to each indication text by using a three-dimensional object generation method based on three-dimensional Gaussian;

[0055] The scene initialization module uses a predefined environment initialization method to initialize the environment 3D Gaussian model and the ground 3D Gaussian model of the scene based on the 3D Gaussian model of the object; uses a predefined 3D Gaussian point affine transformation method to combine the environment 3D Gaussian model, the ground 3D Gaussian model and the object 3D Gaussian model into a scene 3D Gaussian model according to the scene content layout specified by the user, thereby completing the initialization of the entire scene;

[0056] The mid-term iterative optimization module performs mid-term iterative optimization on the scene three-dimensional Gaussian model to obtain the scene three-dimensional Gaussian model after mid-term iterative optimization, specifically including: using a predefined camera sampling strategy to sample the camera pose, using a predefined rendering method to render the scene three-dimensional Gaussian model as a two-dimensional image during the iteration process to obtain a rendered image; using a predefined multi-time step sampling method, using a pre-trained two-dimensional Vincent graph diffusion model to guide the three-dimensional content generation of the scene three-dimensional Gaussian model, and optimizing the parameters of the scene three-dimensional Gaussian model;

[0057] A two-dimensional image rendering module samples a set of camera poses according to a predefined camera sampling strategy, and renders a set of two-dimensional images using the obtained set of camera poses to use the three-dimensional Gaussian model of the scene optimized after mid-term iteration;

[0058] The supervised optimization module uses a predefined reconstruction generation method to add noise and denoise the two-dimensional image rendered in step five through a pre-trained two-dimensional Vincent diffusion model to obtain a pseudo-real image for reconstruction. The pseudo-real image is used to supervise the optimization of the scene three-dimensional Gaussian model after mid-term iterative optimization to obtain the final scene three-dimensional Gaussian model.

[0059] A 3D scene editing method based on 3D Gaussian is used to edit a 3D Gaussian model of a scene generated by a 3D scene generation method based on 3D Gaussian, and specifically comprises the following steps:

[0060] Step 1. Select the editing method. The editing methods include:

[0061] Editing method 1: edit the position, direction, and size of the object;

[0062] Editing method 2: Editing the properties and style of the object;

[0063] Editing method three: Edit the properties and style of the scene.

[0064] Step 2: Perform different editing operations according to the selected editing method:

[0065] If editing method 1 is selected, the three-dimensional Gaussian model of the object is transformed using a predefined three-dimensional Gaussian point affine transformation method to obtain an editing result.

[0066] If you select Edit Mode 2 or Edit Mode 3, perform the following operations:

[0067] S21: Iteratively edit the object 3D Gaussian model or the scene 3D Gaussian model, specifically including the following steps:

[0068] S210. When editing method two is selected, a two-dimensional image of the three-dimensional Gaussian model of the specified object is rendered through a randomly sampled camera perspective; when editing method three is selected, the camera pose is sampled through a predefined camera sampling strategy, and a predefined rendering method is used to render a two-dimensional image of the three-dimensional Gaussian model of the scene in an iterative process.

[0069] S211, using a predefined multi-time step sampling editing method, editing and guiding the object 3D Gaussian model or the scene 3D Gaussian model through a pre-trained 2D Vincent graph diffusion model, and optimizing parameters of the object 3D Gaussian model or the scene 3D Gaussian model;

[0070] S22, sampling a set of camera poses according to a predefined camera sampling strategy, and rendering a set of two-dimensional images with a three-dimensional Gaussian model of the object or a three-dimensional Gaussian model of the scene;

[0071] S23. Use a predefined reconstruction-based generative editing method to add noise and denoise the rendered image through a pre-trained two-dimensional Vincent diffusion model to obtain a pseudo-real image for reconstruction, and use the pseudo-real image to supervise and optimize the three-dimensional Gaussian model of the object or the three-dimensional Gaussian model of the scene.

[0072] Furthermore, if the editing mode 1 is selected, the 3D Gaussian model of the object is transformed using a predefined 3D Gaussian point affine transformation method to obtain the editing result, which specifically includes:

[0073] According to the current position, direction, size and target position, direction and size of the specified object, the relative transformation parameters are calculated to transform the 3D Gaussian model of the object:

[0074] world(x) = r·s·obj i (x)+t,i=1,…,N

[0075] Where x represents the coordinate set of the three-dimensional Gaussian point in the object coordinate system, t represents the relative translation parameter, r represents the relative rotation parameter, and s represents the relative scaling parameter. For the rotation and scaling transformation of the three-dimensional Gaussian point, the spherical harmonic coefficients and scaling coefficients of the three-dimensional Gaussian point also need to be transformed. The scaling coefficient needs to be added to the logarithm of the scaling transformation multiple, and the spherical harmonic coefficients need to be quaternion multiplied to complete the rotation;

[0076] That is, the editing method 1 is completed and the editing result is obtained.

[0077] Compared with the prior art, the beneficial technical effects of the present invention are:

[0078] The present invention provides a 3D scene generation and editing method and system based on 3D Gaussian. The 2D Vincent map diffusion model is distilled by multi-time step sampling. The object features and spatial features in the scene can be taken into account during optimization to ensure consistent optimization of the scene, thereby generating a 3D scene with high scene-level consistency in a short time. At the same time, based on the 3D Gaussian representation, the 3D scene generated by the present invention can be flexibly edited, effectively expanding the available range of 3D scene generation and laying a foundation for subsequent applications such as scene interaction. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0080] Figure 1 is a flow chart of a three-dimensional scene generation method based on three-dimensional Gaussian according to an embodiment of the present invention;

[0081] Figure 2 is a schematic diagram of a model architecture according to an embodiment of the present invention;

[0082] Figure 3 It is a comparison of the rendering images generated by the embodiment of the present invention and other methods. The lower picture in each group of pictures is the rendering image after the camera is moved to a large extent;

[0083] Figure 4 and Figure 5 It is a rendering image of a three-dimensional scene generation result under multiple camera perspectives according to an embodiment of the present invention. DETAILED DESCRIPTION

[0084] The following is a clear and complete description of the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0085] First, the terms that may be used in the present invention are explained as follows:

[0086] The terms "include", "comprises", "contains", "has" or other descriptions with similar semantics should be interpreted as non-exclusive inclusion. For example, including certain technical feature elements (such as raw materials, components, ingredients, carriers, dosage forms, materials, dimensions, parts, components, mechanisms, devices, steps, procedures, methods, reaction conditions, processing conditions, parameters, algorithms, signals, data, products or products, etc.) should be interpreted as including not only certain technical feature elements explicitly listed, but also other technical feature elements known in the art that are not explicitly listed.

[0087] The contents not described in detail in the examples of the present invention belong to the prior art known to professionals in the field. If no specific conditions are specified in the examples of the present invention, the conditions are carried out according to the conventional conditions in the field or the conditions recommended by the manufacturer. If the manufacturer is not specified in the reagents or instruments used in the examples of the present invention, they are all conventional products that can be purchased commercially.

[0088] Embodiment 1

[0089] like Figure 1 As shown, the 3D scene generation method based on 3D Gaussian in the present invention has the characteristics of scene-level consistency and high quality, specifically including:

[0090] Step 1: Using the pre-trained large-scale language model, by applying the predefined prompt question and answer template, the text content specified by the user is expanded into the indication text of the objects contained in the corresponding scene and the detailed description of the corresponding entire scene.

[0091] Step 2: Generate a high-quality three-dimensional Gaussian model of the object corresponding to the indication text through a three-dimensional object generation method based on three-dimensional Gaussian.

[0092] Step 3: read the object 3D Gaussian model generated in the previous step, and use a predefined environment initialization method to initialize the environment 3D Gaussian model of the scene; use a predefined 3D Gaussian point affine transformation method to combine the environment 3D Gaussian model, the ground 3D Gaussian model and the object 3D Gaussian model into a scene 3D Gaussian model according to the scene content layout specified by the user.

[0093] Step 4: Iteratively optimize the three-dimensional Gaussian model of the environment, which specifically includes the following steps:

[0094] S41. Sample the camera pose using a predefined camera sampling strategy, and render a two-dimensional image of the three-dimensional Gaussian model of the scene in an iterative process using a predefined rendering method.

[0095] S42. Using a predefined multi-time-step sampling method, the three-dimensional Gaussian model of the scene is guided by a pre-trained two-dimensional Vincent graph diffusion model for three-dimensional content generation, and the parameters of the three-dimensional Gaussian model of the scene are iteratively optimized to obtain the three-dimensional Gaussian model of the scene after mid-term iterative optimization.

[0096] Step 5: Sample a set of camera poses according to a predefined camera sampling strategy, and render a set of two-dimensional images of the three-dimensional Gaussian model of the scene after mid-term iteration optimization.

[0097] Step 6: Use a predefined reconstruction generation method to add noise and denoise a set of rendered two-dimensional images through a pre-trained two-dimensional Wensheng map diffusion model to obtain a pseudo-real image for reconstruction, and use the pseudo-real image to supervise the optimization of the three-dimensional Gaussian model of the scene after mid-term iterative optimization.

[0098] According to the characteristics of bounded 3D scenes and unbounded 3D scenes, typical 3D scenes can be divided into bounded indoor scenes and unbounded outdoor scenes, and different initialization strategies, camera sampling strategies, and optimization strategies are used to generate high-quality 3D scenes. On this basis, based on the explicit characteristics of 3D Gaussian representation, the 3D Gaussian model corresponding to the selected object in the scene can be edited, such as performing affine transformation operations, or performing separate optimization, style transfer, or replacing it with other 3D Gaussian models.

[0099] Furthermore, step one specifically includes:

[0100] Use a pre-trained large-scale language model (such as GPT-4 or Tongyi Qianwen), input the user's simple instructions for the scene, and provide the large-scale language model with predefined prompt question-answering templates, such as:

[0101] Predefined Question and Answer templates:

[0102] Similar to the input and output template below, do the corresponding scene description decomposition and expansion for each sentence that follows. Do not describe the relationship between objects in the scene. Just list the objects that should exist in the scene and describe them at the object level.

[0103] Input: A cozy bedroom;

[0104] Output:

[0105] A cozy bedroom with clean walls and a soft ambience;

[0106] a comfortable bed with a soft white mattress;

[0107] A wooden desk;

[0108] a white ergonomic chair;

[0109] a log bedside table;

[0110] A wooden wardrobe.

[0111] After completing the above input, use the large-scale language model and input "a European-style kitchen" to get the following results:

[0112] A kitchen full of European style, combining classical and modern design elements, showing a unique style and taste. The kitchen space is bright and well ventilated, and large windows bring in natural light, making the entire area appear particularly bright;

[0113] The walls decorated with vintage tiles have intricate and elegant pattern designs;

[0114] High-grade integrated stainless steel cabinets with solid wood carvings on the surface and rich and varied internal structures provide ample storage space;

[0115] The polished marble worktop has a smooth and delicate texture, and is sturdy and durable;

[0116] A high-end gas stove and built-in oven combination with advanced cooking functions;

[0117] The double-trough stainless steel sink is paired with a classic copper faucet, which is beautifully designed and practical;

[0118] French windows bring in plenty of natural light and open views;

[0119] The small dining table is made of high-quality wood, with clear and beautiful tabletop texture, and is surrounded by comfortable leather dining chairs;

[0120] The European-style chandelier hanging from the ceiling has a unique shape and emits warm yellow soft light, adding a strong European style to the space.

[0121] After large-scale language model reasoning, a detailed description of the objects contained in the corresponding scene and a contextual description of the entire scene are generated. The output is formatted to extract the instruction text used in the generation process in the subsequent steps. The user can also directly participate in the editing of the instruction text in this step to obtain an instruction text that better meets the user's needs based on the prompts.

[0122] Furthermore, step 2 specifically includes:

[0123] A high-quality three-dimensional Gaussian model of the object corresponding to the indication text is generated by a three-dimensional object generation method based on three-dimensional Gaussian. A model library of the object corresponding to the indication text can also be pre-constructed by a three-dimensional reconstruction and segmentation method based on three-dimensional Gaussian, and the corresponding high-quality three-dimensional Gaussian model can be obtained from the model library.

[0124] Furthermore, step three specifically includes:

[0125] The three-dimensional Gaussian model data represented by three-dimensional Gaussian consists of a large number of three-dimensional Gaussian points. Its typical data organization forms include:

[0126] The three-dimensional center coordinates x, y, and z of the three-dimensional Gaussian point affect the position of the three-dimensional Gaussian point; the covariance matrix of the three-dimensional Gaussian point represented by the quaternion affects the shape and direction of the three-dimensional Gaussian point; the spherical harmonic function coefficients of the three-dimensional Gaussian point represented by the multidimensional coefficient affect the color and appearance of the three-dimensional Gaussian point; the scaling coefficient of the three-dimensional Gaussian point represented by the three-dimensional coefficient affects the scale of the three-dimensional Gaussian point; and the opacity of the three-dimensional Gaussian point.

[0127] The predefined environment initialization method in step 3 specifically includes:

[0128] According to the different characteristics of indoor and outdoor scenes, two typical structures are used to initialize the environment 3D Gaussian model and the ground 3D Gaussian model of the scene. For indoor scenes, a typical hollow cube shape is used for initialization to simulate the indoor ceiling, wall and ground, and the 3D Gaussian points contained in adjacent faces have different initial grayscales. For outdoor scenes, a hollow hemisphere similar to a skybox is used for initialization (depending on the actual situation, a hollow sphere shape can also be used for initialization). The spherical surface is used to represent the distant view of the unbounded scene, and the circular plane is used to represent the ground. At the same time, the initialization color can be specified for the 3D Gaussian model of the outdoor environment according to the text description.

[0129] The initialization size of the environment is obtained after all objects in the layout are transformed into the scene space, based on the bounding box boundary parameters of the object's 3D Gaussian model and the predefined scene size (length, width, height), to ensure that the object and the 3D Gaussian model of the environment do not produce unexpected collisions or overlaps.

[0130] In step 3, a predefined 3D Gaussian point affine transformation method is used to combine the environment 3D Gaussian model, the ground 3D Gaussian model and the object 3D Gaussian model into a scene 3D Gaussian model according to the scene content layout specified by the user, specifically including:

[0131] The user-specified scene content layout includes the position, direction, and size of each object in the scene, as well as the number of times each object needs to be placed repeatedly. For rendering in the subsequent optimization process, the object's three-dimensional Gaussian model needs to be transformed from the object space to a unified world space or scene space.

[0132] The three-dimensional Gaussian points that make up the object are transformed according to the position, direction, and size of the specified object in the scene. The transformation is performed according to the following formula:

[0133] world(x) = r·s·obji (x)+t,i=1,…,N

[0134] Where world(x) represents the transformation formula, x represents the coordinate set of three-dimensional Gaussian points in the object coordinate system, t represents the translation parameter, r represents the rotation parameter, and s represents the scaling parameter.

[0135] For the rotation and scaling transformation of 3D Gaussian points, the spherical harmonic coefficients and scaling coefficients need to be transformed. In a typical 3D Gaussian representation, the scaling coefficient needs to be added to the logarithm of the scaling factor. The spherical harmonic coefficients need to be rotated through quaternion multiplication.

[0136] Through the above initialization, transformation, and combination methods, the initialization of the entire scene can be completed according to the scene content layout specified by the user.

[0137] Furthermore, step S41 specifically includes: using a predefined camera sampling strategy to sample the camera pose, and using a predefined rendering method to render a two-dimensional image of the three-dimensional Gaussian model of the scene in an iterative process to obtain a rendered image.

[0138] The predefined camera sampling strategies include:

[0139] Based on the typical scene characteristics of bounded and unbounded scenes, indoor and outdoor scenes, different strategies are used for camera sampling for different scene types, including:

[0140] The main purpose of the indoor scene camera sampling strategy is: 1. Get a semantically consistent three-dimensional representation of the indoor environment and the ground; 2. Reduce the problem of object duplication in the scene caused by the lack of scene-level information and improve the rationality of the scene; 3. Maintain good scene-level consistency when observing from different positions and directions. Therefore, in the optimization stage, the main camera sampling strategies are: Strategy 1, point from the edge of the environment to the center of the scene, the rendered image will contain the main objects that have been generated, so as to avoid object duplication, and the optimized scene style is consistent with the object; Strategy 2, point from the surroundings of the object to the center of the object, or sample around the designated key areas to optimize the appearance of multiple angles and positions. In the optimization process, Strategy 1 is used throughout the first stage, and Strategy 2 is added after 70% of the iterations to randomly sample the cameras around the object; Strategy 1 and Strategy 2 are randomly applied throughout the second stage.

[0141] The main objectives of the outdoor scene camera sampling strategy are: 1. Obtain a semantically consistent 3D representation of the outdoor distant view and ground; 2. Have good scene consistency observed at different positions and directions within a sufficiently large range. Therefore, in the optimization stage, the main camera sampling strategies are: Strategy 1: Point to the outside of the scene from the center of the environment to optimize the distant view appearance. Strategy 2: Point to the same direction along a random diameter, sample at different positions, and optimize the scene and ground appearance at different distances. In the optimization process, Strategy 1 is used throughout the first stage, and Strategy 2 is added after 70% of the steps; Strategy 2 is used throughout the second stage.

[0142] Step S42 specifically includes: using a predefined multi-time-step sampling method, guiding the three-dimensional content generation of the scene three-dimensional Gaussian model through a pre-trained two-dimensional Wensheng graph diffusion model, and iteratively optimizing the parameters of the scene three-dimensional Gaussian model.

[0143] θ represents the parameters of the scene's three-dimensional Gaussian model, c represents the camera's position, and g(·) represents the rendering process. The rendered image x0=g(θ,c) of the scene's three-dimensional Gaussian model is denoised to obtain a noisy image. Add noise to the image Prediction noise of the corresponding empty prompt text embedding in the input 2D text graph diffusion model φ The noisy image is calculated by the inversion method of the denoising diffusion implicit model Repeat this process until the mth noisy image is obtained. In this embodiment, the two-dimensional Wensheng graph diffusion model adopts the Stable Diffusion v2.1-base model.

[0144] Among them, the time step t i The sampling method is as follows:

[0145]

[0146] Where, T end It is a decreasing time step node, iter represents the number of optimization iterations, random represents random values ​​within the time period to enhance the randomness of the optimization process and thus enhance the diversity of generation, and m is the number of divided time periods.

[0147] Add noise to the image Input two-dimensional Wensheng graph diffusion model φ prediction Prediction noise corresponding to the hint text embedding The parameters of the scene's three-dimensional Gaussian model are optimized according to the following formula:

[0148]

[0149] In the formula It means that the multi-time-step sampling loss function seeks the gradient of the three-dimensional Gaussian model parameter θ. represents the multi-time step sampling loss function, y represents a detailed description of the input scene, and w(t) is the loss function for different time steps t. i The multi-time step sampling loss function formula is:

[0150]

[0151] Furthermore, the step five specifically includes:

[0152] Sample a set of camera poses according to the camera sampling strategy predefined in step S41, and obtain a set of two-dimensional images of the three-dimensional Gaussian model of the scene;

[0153] The camera sampling strategy for indoor scenes is a random combination of strategy one and strategy two, and the camera sampling strategy for outdoor scenes is strategy two.

[0154] Furthermore, step six specifically includes:

[0155] Using a predefined reconstruction generation method, the rendered image is denoised and denoised through a pre-trained 2D Vincent diffusion model to obtain a pseudo-real image for reconstruction, which is then used to supervise and optimize the 3D Gaussian model of the scene.

[0156] Render K images from different camera positions around the 3D Gaussian model of the scene By rendering the image Add t time steps of noise to obtain The pseudo-real image with reasonable texture can be predicted by the following formula

[0157]

[0158] Where t represents the time step of adding noise, y represents the detailed description of the input scene, represents the noisy image calculated using the inversion method of the denoising diffusion implicit model, and Describes the relative size of the diffusion model noise and signal at time t.

[0159] And use the following formula to optimize the three-dimensional model parameters:

[0160]

[0161] In the formula represents the reconstruction loss function, where g(θ,c i ) is a 2D image rendered from the camera position around the 3D model corresponding to the pseudo-real image during the reconstruction iteration.

[0162] Embodiment 2

[0163] The present invention also provides a method for editing the three-dimensional Gaussian model of the scene generated by the present invention, comprising:

[0164] Step 1. Select the editing method. The editing methods include:

[0165] Editing method 1: Editing the position, direction, and size of an object;

[0166] Editing method 2: Editing the properties and style of the object;

[0167] Editing method three: Edit the properties and style of the scene.

[0168] Specifically,

[0169] Editing method 1 requires inputting the target position, direction and size of the object.

[0170] Editing methods two and three require inputting the text instructions when the object or scene was previously generated, or understanding the object or scene through a pre-trained image understanding model to obtain the text instructions as the prompt text to be edited, and inputting the text instructions as the editing purpose as the conditional prompt text.

[0171] Step 2: Perform editing operations according to the selected editing method:

[0172] If editing method 1 is selected, the three-dimensional Gaussian model of the object is transformed using a predefined three-dimensional Gaussian point affine transformation method to obtain an editing result.

[0173] If you choose Edit Mode 2 or Edit Mode 3, similar to the generation process, perform the following operations:

[0174] S21: Iteratively edit the object 3D Gaussian model or the scene 3D Gaussian model, specifically including the following steps:

[0175] S210. When editing method two is selected, a two-dimensional image of the three-dimensional Gaussian model of the specified object is rendered through a randomly sampled camera perspective; when editing method three is selected, the camera pose is sampled through a predefined camera sampling strategy, and a predefined rendering method is used to render a two-dimensional image of the three-dimensional Gaussian model of the scene in an iterative process.

[0176] S211. Use a predefined multi-time-step sampling editing method to edit and guide the object's three-dimensional Gaussian model or the scene's three-dimensional Gaussian model through a pre-trained two-dimensional Wensheng graph diffusion model, and optimize the parameters of the object's three-dimensional Gaussian model or the scene's three-dimensional Gaussian model.

[0177] S22. Sample a set of camera poses according to a predefined camera sampling strategy, and render a set of two-dimensional images using the object three-dimensional Gaussian model or the scene three-dimensional Gaussian model.

[0178] S23. Use a predefined reconstruction-based generative editing method to add noise and denoise the rendered image through a pre-trained two-dimensional Vincent diffusion model to obtain a pseudo-real image for reconstruction, and use the pseudo-real image to supervise and optimize the three-dimensional Gaussian model of the object or the three-dimensional Gaussian model of the scene.

[0179] Furthermore, if editing mode 1 is selected, the 3D Gaussian model of the object is transformed using a predefined 3D Gaussian point affine transformation method to obtain an editing result, which specifically includes:

[0180] According to the current position, direction and size of the specified object and the target position, direction and size, the relative transformation parameters are calculated to transform the object's three-dimensional Gaussian:

[0181] world(x) = r·s·obj i (x)+t,i=1,…,N;

[0182] Where x represents the coordinate set of the three-dimensional Gaussian point in the object coordinate system, t represents the relative translation parameter, r represents the relative rotation parameter, and s represents the relative scaling parameter. For the rotation and scaling transformation of the three-dimensional Gaussian, its spherical harmonic coefficients and scaling coefficients also need to be transformed. In a typical three-dimensional Gaussian representation, the scaling coefficient needs to be added to the logarithm of the scaling transformation multiple. The spherical harmonic coefficients need to be rotated by quaternion multiplication. After the above transformations, the affine editing of the three-dimensional Gaussian model of the object can be completed according to user requirements.

[0183] Further, S210, when the editing mode 2 is selected, the 3D Gaussian model of the specified object is rendered into a 2D image through the randomly sampled camera viewpoint, specifically including:

[0184] During the editing iterative optimization process, the camera viewpoint is randomly sampled, and a rasterizer of three-dimensional Gaussian points is used to render the three-dimensional Gaussian model into a two-dimensional image.

[0185] The camera pose is sampled through a predefined camera sampling strategy, and a predefined rendering method is used to render a two-dimensional image of the three-dimensional model in an iterative process. Specifically:

[0186] In the editing iterative optimization process, the camera view is sampled in the scene according to a predefined camera sampling strategy, and a predefined rendering method is used to render the three-dimensional Gaussian model into a two-dimensional image using a three-dimensional Gaussian rasterizer. The camera sampling strategy is the same as the camera sampling strategy during the generation. The predefined rendering method is the same as the rendering method during the generation.

[0187] Further, S211, using a predefined multi-time step sampling editing method, editing and guiding the object three-dimensional Gaussian model or the scene three-dimensional Gaussian model through a pre-trained two-dimensional Wenshengtu diffusion model, and optimizing the parameters of the object three-dimensional Gaussian model or the scene three-dimensional Gaussian model, specifically including:

[0188] θ represents the 3D model parameters, c represents the camera pose, and g(·) is the rendering process. The 3D model rendering image x0=g(θ,c) is denoted to obtain the noisy image Add noise to the image Input the two-dimensional text graph diffusion model φ to predict the corresponding prediction noise of the to-be-edited prompt text embedding The noisy image is calculated by the inversion method of the denoising diffusion implicit model Repeat this process until the mth noisy image is obtained. In this embodiment, the two-dimensional Wensheng graph diffusion model adopts the Stable Diffusion v2.1-base model.

[0189] Among them, the time step t i The sampling method is as follows:

[0190]

[0191] Where, T end Iter is the number of optimization iterations, random means taking random values ​​within the time interval to enhance the randomness of the optimization process and thus enhance the diversity of generation, and m is the number of divided time periods;

[0192] Add noise to the image Input two-dimensional Wensheng graph diffusion model φ prediction Prediction noise corresponding to the hint text embedding The parameters of the three-dimensional Gaussian model are optimized according to the following formula:

[0193]

[0194] In the formula It means that the multi-time step sampling editing loss function seeks the gradient of the three-dimensional Gaussian model parameter θ, represents the multi-time-step sampling editing loss function, y represents a detailed description of the input scene, and y e represents the text indication to be edited, w(t) is the value of i The formula of multi-time step sampling editing loss function is:

[0195]

[0196] Further, S22, sampling a set of camera poses according to a predefined camera sampling strategy, and rendering a set of two-dimensional images with the object three-dimensional Gaussian model or the scene three-dimensional Gaussian model, specifically including:

[0197] According to the camera sampling strategy described in step S210, the camera perspective is sampled in the scene or around the object. The indoor scene camera sampling strategy is random between strategy one and strategy two, and the outdoor scene camera sampling strategy is strategy two. The object camera sampling strategy is based on pre-configuration, and the camera perspective is sampled in a circular manner at different heights. The object 3D Gaussian model or the scene 3D Gaussian model is rendered into a 2D image using a 3D Gaussian rasterizer. Rendering is performed before the subsequent process starts to ensure the consistency of the supervision image in the reconstruction generation editing step.

[0198] Further, S23, using a predefined reconstruction-based generative editing method, adding noise and denoising the rendered image through a pre-trained two-dimensional Vincent diffusion model to obtain a pseudo-real image for reconstruction, and using the pseudo-real image to supervise and optimize the object three-dimensional Gaussian model or the scene three-dimensional Gaussian model, specifically including:

[0199] Render K images from different camera positions around the 3D model By rendering the image Add t time steps of noise to obtain We can predict pseudo-real images with reasonable textures using the following formula

[0200]

[0201] Where t represents the time step of adding noise, y represents the detailed description of the input scene, represents the noisy image calculated using the inversion method of the denoising diffusion implicit model, and Describes the relative size of the diffusion model noise and signal at time t.

[0202] And use the following formula to optimize the parameters of the object 3D Gaussian model or the scene 3D Gaussian model:

[0203]

[0204] In the formula represents the reconstruction loss function, g(θ,c i ) is a two-dimensional image rendered from the corresponding pseudo-real image camera position around the three-dimensional Gaussian model of the object or the three-dimensional Gaussian model of the scene during the reconstruction iteration process.

[0205] from Figure 3It can be seen that compared with other methods, the three-dimensional scene obtained by the present invention can maintain good scene integrity when performing camera sampling inside the scene, which plays an important role in improving the interactive experience in the metaverse space. At the same time, our method has higher generation efficiency.

[0206] from Figure 4 , Figure 5 It can be seen that the three-dimensional scene obtained by using the present invention has a high degree of scene-level consistency and good generation quality.

[0207] In step 2 of embodiment 1 of the present invention, when a high-quality 3D Gaussian model of an object corresponding to the indication text is generated by a 3D object generation method based on 3D Gaussian, the method adopted is consistent with the editing method of editing mode 2 of embodiment 2.

[0208] The above is only a preferred specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims

1. A three-dimensional scene generation method based on three-dimensional Gaussian, characterized in that: The following steps are involved: Step 1: Using a pre-trained large-scale language model, by applying a pre-defined prompt question-answering template, the text content specified by the user is expanded into an indication text of the objects contained in the corresponding scene and a detailed description of the scene; Step 2: Generate a 3D Gaussian model of the object corresponding to each indication text by using a 3D Gaussian-based 3D object generation method; Step 3: Based on the 3D Gaussian model of the object, use a predefined environment initialization method to initialize the environment 3D Gaussian model and the ground 3D Gaussian model of the scene; use a predefined 3D Gaussian point affine transformation method to combine the environment 3D Gaussian model, the ground 3D Gaussian model and the object 3D Gaussian model into a scene 3D Gaussian model according to the scene content layout specified by the user, and complete the initialization of the entire scene; Step 4, performing mid-term iterative optimization on the scene 3D Gaussian model to obtain the scene 3D Gaussian model after mid-term iterative optimization, specifically comprising the following steps: S41, using a predefined camera sampling strategy to sample the camera pose, and using a predefined rendering method to render a two-dimensional image of the three-dimensional Gaussian model of the scene in an iterative process to obtain a rendered image; S42, using a predefined multi-time step sampling method, guiding the three-dimensional content generation of the scene three-dimensional Gaussian model through a pre-trained two-dimensional Wensheng graph diffusion model, and optimizing the parameters of the scene three-dimensional Gaussian model; Step 5: Sample a set of camera poses according to a predefined camera sampling strategy, and render a set of two-dimensional images using the obtained set of camera poses to use the three-dimensional Gaussian model of the scene optimized after the mid-term iteration; Step 6: Use a predefined reconstruction generation method to add noise and denoise the two-dimensional image rendered in step 5 through a pre-trained two-dimensional Vincent diffusion model to obtain a pseudo-real image for reconstruction. Use the pseudo-real image to supervise and optimize the three-dimensional Gaussian model of the scene after mid-term iterative optimization to obtain the final three-dimensional Gaussian model of the scene.

2. The three-dimensional scene generation method based on three-dimensional Gaussian according to claim 1, characterized in that: In step 3, the object-based 3D Gaussian model uses a predefined environment initialization method to initialize the environment 3D Gaussian model and the ground 3D Gaussian model of the scene, specifically including: According to the different characteristics of indoor and outdoor scenes, two structures are used to initialize the environment Gaussian model and ground Gaussian model of the scene respectively; For indoor scenes, a cube is used for initialization to simulate the indoor ceiling, wall and floor, and adjacent faces have different initial grayscales. For outdoor scenes, a hemisphere or a sphere is used for initialization. A spherical surface is used to represent the distant view of an unbounded outdoor scene, and a circular plane is used to represent the ground. At the same time, an initialization color is assigned to the outdoor scene according to the detailed description of the scene. The initialization size of the environment is obtained after all objects in the scene content layout are transformed into the scene space, based on the bounding box boundary parameters of the object's 3D Gaussian model and the predefined scene size, to ensure that the object's 3D Gaussian model does not collide with the environment's 3D Gaussian model.

3. The three-dimensional scene generation method based on three-dimensional Gaussian according to claim 1, characterized in that: In step 3, the predefined 3D Gaussian point affine transformation method is used to combine the environment 3D Gaussian model, the ground 3D Gaussian model and the object 3D Gaussian model into a scene 3D Gaussian model according to the scene content layout specified by the user, and complete the initialization of the entire scene, which specifically includes: The scene content layout specified by the user includes the position, direction and size of each object in the scene, as well as the number of times each object needs to be placed repeatedly. For rendering in the subsequent optimization process, the object's 3D Gaussian model needs to be transformed from the object space to a unified scene space; According to the position, direction and size of the object in the specified scene content layout, the object's 3D Gaussian model is transformed into the scene space by the following formula: world(x)=r·s·obj i (x)+t,i=1,…,N; Among them, x represents the coordinate set of the three-dimensional Gaussian point in the object coordinate system, world(x) represents the transformation formula, t represents the translation parameter, r represents the rotation parameter, s represents the scaling parameter, and obj i (·) represents the parameters of the three-dimensional Gaussian points in the three-dimensional Gaussian model of the object; N represents the number of objects placed in the scene; For the rotation and scaling transformation of three-dimensional Gaussian points, the spherical harmonic coefficients and scaling coefficients need to be transformed; the scaling coefficient needs to be added to the logarithm of the scaling transformation multiple; the spherical harmonic coefficients need to be rotated through quaternion multiplication.

4. The three-dimensional scene generation method based on three-dimensional Gaussian according to claim 1, characterized in that: In step S41, the camera pose is sampled using a predefined camera sampling strategy, and a predefined rendering method is used to render a two-dimensional image of the three-dimensional Gaussian model of the scene in an iterative process, specifically including: The predefined rendering method specifically includes: According to the predefined rendering strategy, the scene 3D Gaussian model is rendered in different ranges, including: rendering only the environment; rendering the environment and all objects; rendering the environment and some objects; The predefined camera sampling strategy specifically includes: For indoor scenes, indoor camera sampling strategy 1 is: sampling from the edge of the environment to the center of the scene; indoor camera sampling strategy 2 is: sampling from the periphery of the object to the center of the object, or around a specified area; in the mid-term iteration process before the number of iterations is 70% of the total number of iterations, indoor camera sampling strategy 1 is used throughout the process; in the mid-term iteration process after the number of iterations is 70% of the total number of iterations, indoor camera sampling strategy 1 and indoor camera sampling strategy 2 are randomly applied; For outdoor scenes, the outdoor camera sampling strategy one is: pointing from the center of the environment to the outside of the scene; the outdoor camera sampling strategy two is: pointing in the same direction along a random diameter and sampling at different positions; in the mid-term iteration process before the number of iterations is 70% of the total number of iterations, the outdoor camera sampling strategy one is used throughout the first stage; in the mid-term iteration process after the number of iterations is 70% of the total number of iterations, the outdoor camera sampling strategy two is used throughout.

5. The three-dimensional scene generation method based on three-dimensional Gaussian according to claim 4, characterized in that: In step 5, sampling a set of camera poses according to a predefined camera sampling strategy, and rendering a set of two-dimensional images with the scene three-dimensional Gaussian model optimized after mid-term iteration by using the obtained set of camera poses, specifically includes: The camera perspective is sampled in the scene according to the camera sampling strategy of step S41. For indoor scenes, the camera sampling strategy is to randomly use indoor camera sampling strategy 1 and indoor camera sampling strategy 2. For outdoor scenes, the camera sampling strategy is outdoor camera sampling strategy 2. A three-dimensional Gaussian rasterizer is used to render the three-dimensional Gaussian model of the scene into a two-dimensional image.

6. The three-dimensional scene generation method based on three-dimensional Gaussian according to claim 1, characterized in that: In step S42, the predefined multi-time-step sampling method is used to guide the scene three-dimensional Gaussian model to generate three-dimensional content through a pre-trained two-dimensional Wensheng graph diffusion model, and the parameters of the scene three-dimensional Gaussian model are optimized, which specifically includes: θ represents the parameters of the scene's three-dimensional Gaussian model, c represents the camera's position, and g(·) represents the rendering process. The rendered image x0=g(θ,c) of the scene's three-dimensional Gaussian model is denoised to obtain a noisy image. Add noise to the image The prediction noise of the corresponding empty prompt text embedding in the input 2D text graph diffusion model φ The noisy image is calculated by the inversion method of the denoising diffusion implicit model Repeat the above process until the mth noisy image is obtained Among them, the time step t i The sampling method is as follows: Where, T end is a decreasing time step node, iter represents the number of optimization iterations, random represents a random value within the time period, and m is the number of divided time periods; Add noise to the image Input two-dimensional Wensheng graph diffusion model φ prediction Prediction noise corresponding to the hint text embedding The parameters of the scene's three-dimensional Gaussian model are optimized according to the following formula: In the formula It represents the multi-time-step sampling loss function to find the gradient of the parameter θ of the scene 3D Gaussian model. represents the multi-time step sampling loss function, y represents a detailed description of the input scene, and w(t) is the loss function for different time steps t. i The multi-time step sampling loss function formula is:

7. The three-dimensional scene generation method based on three-dimensional Gaussian according to claim 1, characterized in that: Step 6 specifically includes: Render K images from different camera positions around the 3D Gaussian model of the scene By in the image Add t time steps of noise to obtain the noisy image Predict a pseudo-real image with reasonable texture using the following formula Where t represents the time step of adding noise, y represents the detailed description of the input scene, represents the noisy image calculated using the inversion method of the denoising diffusion implicit model, and Describe the relative size of the diffusion model noise and signal at time t; And use the following formula to optimize the parameters of the scene's three-dimensional Gaussian model: In the formula, represents the reconstruction loss function, g(θ,c i ) is a 2D image rendered from the corresponding pseudo-real image camera position around the 3D Gaussian model of the scene during the reconstruction iteration.

8. A three-dimensional scene generation system based on three-dimensional Gaussian, characterized in that: include: The text expansion module uses a pre-trained large-scale language model to expand the user-specified text content into the corresponding scene object indication text and the detailed description of the scene by applying pre-defined prompt question and answer templates; A three-dimensional Gaussian model generation module generates a three-dimensional Gaussian model of an object corresponding to each indication text by using a three-dimensional object generation method based on three-dimensional Gaussian; The scene initialization module uses a predefined environment initialization method to initialize the environment 3D Gaussian model and the ground 3D Gaussian model of the scene based on the 3D Gaussian model of the object; uses a predefined 3D Gaussian point affine transformation method to combine the environment 3D Gaussian model, the ground 3D Gaussian model and the object 3D Gaussian model into a scene 3D Gaussian model according to the scene content layout specified by the user, thereby completing the initialization of the entire scene; The mid-term iterative optimization module performs mid-term iterative optimization on the scene three-dimensional Gaussian model to obtain the scene three-dimensional Gaussian model after mid-term iterative optimization, specifically including: using a predefined camera sampling strategy to sample the camera pose, using a predefined rendering method to render the scene three-dimensional Gaussian model as a two-dimensional image during the iteration process to obtain a rendered image; using a predefined multi-time step sampling method, using a pre-trained two-dimensional Vincent graph diffusion model to guide the three-dimensional content generation of the scene three-dimensional Gaussian model, and optimizing the parameters of the scene three-dimensional Gaussian model; A two-dimensional image rendering module samples a set of camera poses according to a predefined camera sampling strategy, and renders a set of two-dimensional images using the obtained set of camera poses to use the three-dimensional Gaussian model of the scene optimized after mid-term iteration; The supervised optimization module uses a predefined reconstruction generation method to add noise and denoise the two-dimensional image rendered in step five through a pre-trained two-dimensional Vincent diffusion model to obtain a pseudo-real image for reconstruction. The pseudo-real image is used to supervise the optimization of the scene three-dimensional Gaussian model after mid-term iterative optimization to obtain the final scene three-dimensional Gaussian model.

9. A 3D Gaussian-based 3D scene editing method, for editing a 3D Gaussian model of a scene generated by the 3D Gaussian-based 3D scene generation method according to any one of claims 1 to 7, specifically comprising the following steps: Step 1. Select the editing method. The editing methods include: Editing method 1: edit the position, direction, and size of the object; Editing method 2: Editing the properties and style of the object; Editing method three: Edit the properties and style of the scene. Step 2: Perform different editing operations according to the selected editing method: If editing method 1 is selected, the three-dimensional Gaussian model of the object is transformed using a predefined three-dimensional Gaussian point affine transformation method to obtain an editing result. If you select Edit Mode 2 or Edit Mode 3, perform the following operations: S21: Iteratively edit the object 3D Gaussian model or the scene 3D Gaussian model, specifically including the following steps: S210. When editing method two is selected, a two-dimensional image of the three-dimensional Gaussian model of the specified object is rendered through a randomly sampled camera perspective; when editing method three is selected, the camera pose is sampled through a predefined camera sampling strategy, and a predefined rendering method is used to render a two-dimensional image of the three-dimensional Gaussian model of the scene in an iterative process. S211, using a predefined multi-time step sampling editing method, editing and guiding the object 3D Gaussian model or the scene 3D Gaussian model through a pre-trained 2D Vincent graph diffusion model, and optimizing parameters of the object 3D Gaussian model or the scene 3D Gaussian model; S22, sampling a set of camera poses according to a predefined camera sampling strategy, and rendering a set of two-dimensional images with a three-dimensional Gaussian model of the object or a three-dimensional Gaussian model of the scene; S23. Use a predefined reconstruction-based generative editing method to add noise and denoise the rendered image through a pre-trained two-dimensional Vincent diffusion model to obtain a pseudo-real image for reconstruction, and use the pseudo-real image to supervise and optimize the three-dimensional Gaussian model of the object or the three-dimensional Gaussian model of the scene.

10. The three-dimensional scene editing method according to claim 9, characterized in that: If the editing method 1 is selected, the 3D Gaussian model of the object is transformed using a predefined 3D Gaussian point affine transformation method to obtain the editing result, which specifically includes: According to the current position, direction, size and target position, direction and size of the specified object, the relative transformation parameters are calculated to transform the 3D Gaussian model of the object: world(x)=r·s·obj i (x)+t,i=1,…,N Where x represents the coordinate set of the three-dimensional Gaussian point in the object coordinate system, t represents the relative translation parameter, r represents the relative rotation parameter, and s represents the relative scaling parameter. For the rotation and scaling transformation of the three-dimensional Gaussian point, the spherical harmonic coefficients and scaling coefficients of the three-dimensional Gaussian point also need to be transformed. The scaling coefficient needs to be added to the logarithm of the scaling transformation multiple, and the spherical harmonic coefficients need to be quaternion multiplied to complete the rotation; That is, the editing method 1 is completed and the editing result is obtained.

Citation Information

Cited By

  • Three-dimensional model data processing method and system, product, equipment and medium

    CN118864741A

  • Video processing method and device and storage medium

    CN119399341A

  • Offshore photovoltaic digital field area model rendering method and device and electronic equipment

    CN119478183A

  • Three-dimensional reconstruction method and device based on structured three-dimensional Gaussian representation

    CN119625169A

  • Three-dimensional reconstruction method and device for reconstructing three-dimensional human body from natural language description text

    CN119625181A