4D content generation method, device, equipment, medium and computer program product

Through pre-trained language models and text-driven 3D generation algorithms, text descriptions of key states are extracted and 3D representations are generated, which solves the problem of insufficient quality and duration of 4D content generation and achieves high-quality 4D content generation.

CN118413715BActive Publication Date: 2024-09-27SHANDONG HAILIANG INFORMATION TECH RES INST
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202410882410.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-03
Publication Date
2024-09-27
Estimated Expiration
2044-07-03

AI Technical Summary

Technical Problem

Existing 4D content generation methods have shortcomings in generation quality and duration. In particular, the implicit generation method based on the video generation model has weak detail control capabilities, resulting in the generated 4D content being unable to effectively guarantee compliance with the text description, especially when generating Less effective with longer content.

Method used

A pre-trained language model is used to extract text descriptions of 4D content to obtain text descriptions of key states. 3D representations and key frames are generated through text-driven 3D generation algorithms, and high-quality 4D content is obtained through interpolation and optimization. Specific steps include: using a pre-trained language model to extract text descriptions of key states, constructing contextual hints and instances, generating initial 3D representations and offsets, and obtaining the final 4D content through iterative optimization.

Benefits of technology

Through fine-grained text description and 3D representation generation, the information input is enriched, the difficulty of long-term 4D content generation is simplified, the quality and duration of 4D content generation are significantly improved, and the generated content is consistent with the text description.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118413715B
    Figure CN118413715B
Patent Text Reader

Abstract

The present invention discloses a 4D content generation method, device, equipment, medium and computer program product, which relates to the field of 4D technology, including: extracting text descriptions of 4D content using a pre-trained language model to obtain text descriptions of several key states; generating corresponding 3D representations and key frames using a text-driven 3D generation algorithm based on the text descriptions of the key states; 3D representations are used to describe the shape, structure and properties of objects in three-dimensional space; interpolating key frames to obtain interpolated frames and corresponding 3D representations; optimizing the 3D representations corresponding to the key frames and the 3D representations corresponding to the interpolated frames to obtain 4D content. This method uses a pre-trained language model to obtain text descriptions of key states of dynamic content, which not only enriches single information input, but also simplifies the difficulty of the problem by decomposing long-term 4D content generation into the generation of multiple sub-segments, thereby improving the quality and duration of 4D content generation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of 4D technology, and in particular to a 4D content generation method, device, equipment, medium and computer program product. Background Art

[0002] 4D (Dimensions) refers to the addition of the time dimension to 3D, and 4D content generation refers to dynamic 3D content generation. 4D content generation allows 3D content to be rendered at any time and from any angle. Unlike image and video generation tasks, 4D content generation lacks relevant data sets, so conventional supervised learning methods cannot be used to train 4D content generation models. Currently, 4D content generation can be roughly divided into two categories: one is to perform non-rigid 4D reconstruction based on explicit video results obtained from video generation models. However, reconstructing 3D target objects from dynamic videos is a very challenging problem. One is to implicitly use video generation models to render a large number of videos from random camera perspectives so that the rendered videos can be recognized by the video generation model, thereby fitting the 4D content representation. This type of method greatly reduces the difficulty of 4D content generation through iterative optimization compared to the previous single reconstruction method. However, the implicit generation method based on the video generation model only relies on the overall discrimination ability of the video generation model to globally judge whether the generated video conforms to the text input description, so that the detail control ability is weak. Moreover, when generating 4D content over a long period of time, the effect is often poor due to the omission of details, and there is no guarantee that the 4D content that meets the text description condition input can be generated.

[0003] Therefore, how to improve the generation quality and duration of 4D content has become a technical problem that needs to be solved urgently by those skilled in the art. Summary of the invention

[0004] The purpose of the present invention is to provide a 4D content generation method, device, equipment, medium and computer program product, which can improve the quality and duration of 4D content generation.

[0005] In order to solve the above technical problems, the present invention provides a 4D content generation method, comprising:

[0006] Use the pre-trained language model to extract text descriptions of 4D content and obtain text descriptions of several key states;

[0007] According to the text description of the key state, a text-driven 3D generation algorithm is used to generate corresponding 3D representations and key frames; the 3D representation is used to describe the shape, structure and properties of an object in a three-dimensional space;

[0008] Interpolating the key frames to obtain interpolated frames and corresponding 3D representations;

[0009] The 3D representation corresponding to the key frame and the 3D representation corresponding to the interpolated frame are optimized to obtain 4D content.

[0010] In some embodiments, a pre-trained language model is used to extract text descriptions of 4D content, and text descriptions of several key states are obtained, including:

[0011] Construct contextual cues;

[0012] Construct an instance;

[0013] Inputting the contextual prompt and the instance into a pre-trained language model;

[0014] A question is asked to the pre-trained language model, and the pre-trained language model outputs a text description of several key states; the content of the question includes the text description of the 4D content.

[0015] In some embodiments, according to the text description of each key state, using a text-driven 3D generation algorithm to generate a corresponding 3D representation and a key frame includes:

[0016] According to the text description of the first key state, the corresponding initial 3D representation is obtained;

[0017] According to the text description of other key states, the 3D offsets corresponding to other key states are obtained;

[0018] Rendering a first key frame according to the initial 3D representation;

[0019] According to the initial 3D representation and the 3D offsets corresponding to the other key states, key frames corresponding to the other key states are rendered.

[0020] In some embodiments, according to the text description of the first key state, obtaining the corresponding initial 3D representation includes:

[0021] Randomly initialize the 3D Gaussian representation corresponding to the first key state; wherein the 3D Gaussian representation includes a 3D Gaussian static representation and a 3D Gaussian offset, and the 3D Gaussian offset in the 3D Gaussian representation corresponding to the first key state is zero and is not updated during training;

[0022] Rendering the 3D Gaussian representation to a 2D image according to a random camera perspective;

[0023] Adding random noise to the 2D image to obtain a noisy image;

[0024] Inputting the diffusion moment, the noisy image, and the vector obtained by encoding the text description of the first key state into an image generation pre-training model, and outputting the predicted noise from the image generation pre-training model;

[0025] The 3D Gaussian static representation in the 3D Gaussian representation is optimized according to the predicted noise and a first preset loss function until the number of iterations is reached to obtain the initial 3D representation.

[0026] In some embodiments, optimizing the 3D Gaussian representation according to the predicted noise and a first preset loss function comprises:

[0027] The 3D Gaussian representation is optimized according to the predicted noise and value distillation sampling loss function.

[0028] In some embodiments, the value distillation sampling loss function is ; represents the predicted noise, represents the image after adding noise, represents the diffusion time, A vector representing the encoding of the text description of the key state, represents random noise, Represents the rendered 2D image. represents the 3D representation to be optimized, Represents a random camera viewpoint.

[0029] In some embodiments, according to the text description of other key states, obtaining the 3D offset corresponding to other key states includes:

[0030] Randomly initialize 3D Gaussian representations of other key states; wherein the 3D Gaussian representation includes a 3D Gaussian static representation and a 3D Gaussian offset;

[0031] Rendering the 3D Gaussian representation to a 2D image according to a random camera perspective;

[0032] Adding random noise to the 2D image to obtain a noisy image;

[0033] Inputting the vector obtained by encoding the noisy image and the text description of other key states into the image generation pre-training model, and outputting the predicted noise from the image generation pre-training model;

[0034] The 3D Gaussian offset in the 3D Gaussian representation is optimized according to the predicted noise and the second preset loss function until the number of iterations is reached to obtain the 3D offsets corresponding to other key states.

[0035] In some embodiments, optimizing the 3D Gaussian offset in the 3D Gaussian representation according to the predicted noise and a second preset loss function comprises:

[0036] The 3D Gaussian offset in the 3D Gaussian representation is optimized according to the predicted noise and a second preset loss function; the second preset loss function is a weighted sum of a value distillation sampling loss function and a subject consistency loss function.

[0037] In some embodiments, the subject consistency loss function is ; Indicates the first key frame, 3D representation The rendered keyframes are Represents the feature representation of the i-th layer of the network.

[0038] In some embodiments, interpolating the key frame to obtain an interpolated frame and a corresponding 3D representation includes:

[0039] The key frames are interpolated using the video difference pre-training model to obtain several interpolated frames;

[0040] Interpolating an interpolated 3D offset according to the 3D representations corresponding to the two preceding and succeeding key frames;

[0041] The interpolated 3D offset is optimized according to the interpolated frame and a third preset loss function to obtain a 3D representation corresponding to the interpolated frame.

[0042] In some embodiments, interpolating an interpolated 3D offset according to the 3D representations corresponding to the two preceding and succeeding key frames comprises:

[0043] according to Get the interpolated 3D offset; represents the interpolated 3D offset, Indicates the 3D offset in the 3D representation corresponding to the previous keyframe, Indicates the 3D offset in the 3D representation corresponding to the next keyframe, Represents the interpolation coefficient.

[0044] In some embodiments, optimizing the interpolated 3D offset according to the interpolated frame and a third preset loss function includes:

[0045] The interpolated 3D offset is optimized according to the interpolated frame, an image rendered according to the interpolated 3D offset, and a root mean square error loss function.

[0046] In some embodiments, the root mean square error loss function is ; represents an image rendered according to the interpolated 3D offset, Represents an interpolated frame.

[0047] In some embodiments, optimizing the 3D representation of the key frame and the 3D representation corresponding to the interpolated frame to obtain the 4D content includes:

[0048] Render the 3D Gaussian representations corresponding to each key frame and interpolation frame into a 2D image according to a random camera perspective;

[0049] Adding random noise to each of the 2D images to obtain a noisy image;

[0050] Inputting the diffusion moment, each of the noisy images, and the vector obtained by encoding the text description of the 4D content into a video generation pre-training model, and the video generation pre-training model outputs the predicted noise;

[0051] The 3D Gaussian representation is optimized according to the predicted noise and a fourth preset loss function until the number of iterations is reached to obtain 4D content.

[0052] In some embodiments, optimizing the 3D Gaussian representation according to the predicted noise and a fourth preset loss function comprises:

[0053] The 3D Gaussian representation is optimized according to the predicted noise and value distillation sampling loss function.

[0054] In some embodiments, before rendering the 3D Gaussian representations corresponding to each key frame and the interpolated frame to the 2D image according to the random camera perspective, the method further includes:

[0055] The 3D offsets in the 3D representations corresponding to the key frames other than the first key frame and the interpolated frames are optimized for a preset number of iterations.

[0056] In order to solve the above technical problems, the present invention further provides a 4D content generating device, comprising:

[0057] An extraction module is used to extract text descriptions of 4D content using a pre-trained language model to obtain text descriptions of several key states;

[0058] A generation module, used to generate corresponding 3D representations and key frames according to the text description of the key state; the 3D representation is used to describe the shape, structure and properties of an object in a three-dimensional space;

[0059] An interpolation module, used for interpolating the key frame to obtain an interpolated frame and a corresponding 3D representation;

[0060] The optimization module is used to optimize the 3D representation corresponding to the key frame and the 3D representation corresponding to the interpolation frame to obtain 4D content.

[0061] In order to solve the above technical problems, the present invention further provides a 4D content generating device, comprising:

[0062] Memory for storing computer programs;

[0063] A processor is used to implement the steps of the 4D content generation method as described above when executing the computer program.

[0064] In order to solve the above technical problem, the present invention further provides a medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the 4D content generation method as described above are implemented.

[0065] To solve the above technical problem, the present invention further provides a computer program product, including a computer program / instruction, which implements the steps of the 4D content generation method as described above when executed by a processor.

[0066] The 4D content generation method provided by the present invention comprises: extracting text descriptions of the text descriptions of the 4D content by using a pre-trained language model to obtain text descriptions of several key states; generating corresponding 3D representations and key frames by using a text-driven 3D generation algorithm according to the text descriptions of the key states; interpolating the key frames to obtain interpolated frames and corresponding 3D representations; optimizing the 3D representations corresponding to the key frames and the 3D representations corresponding to the interpolated frames to obtain 4D content.

[0067] It can be seen that the 4D content generation method provided by the present invention extracts the text description of the key states of the text description of the 4D content input by the user based on the pre-trained language model to obtain a fine-grained text description of the key states. According to the text description of each key state, a text-driven 3D generation algorithm is used to obtain the 3D representation and key frames corresponding to each key state; the key frames are interpolated, and finally the 3D representation of all frames is optimized to obtain the final high-quality 4D content. This method not only enriches the single information input by obtaining the text description of the key states of dynamic content with the help of a pre-trained language model, but also simplifies the difficulty of the problem by breaking down the long-term 4D content generation into the generation of multiple sub-segments, which can improve the quality and duration of 4D content generation.

[0068] The 4D content generation device, equipment, medium and computer program product provided by the present invention all have the above-mentioned technical effects. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0070] Figure 1 A schematic diagram of a flow chart of a 4D content generation method provided by an embodiment of the present invention;

[0071] Figure 2 A schematic diagram of extracting key state text descriptions and generating key frames based on a pre-trained language model provided by an embodiment of the present invention;

[0072] Figure 3 A schematic diagram of a text-driven 3D Gaussian generation algorithm provided by an embodiment of the present invention;

[0073] Figure 4 A schematic diagram of a key frame difference based on a video difference pre-training model provided by an embodiment of the present invention;

[0074] Figure 5 A schematic diagram of optimizing 3D representation of all frames of a pre-trained model generated based on video provided by an embodiment of the present invention;

[0075] Figure 6 A schematic diagram of a 4D content generating device provided by an embodiment of the present invention;

[0076] Figure 7 A schematic diagram of a 4D content generating device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0077] The core of the present invention is to provide a 4D content generation method, device, equipment, medium and computer program product, which can improve the quality and duration of 4D content generation.

[0078] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are 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.

[0079] Please refer to Figure 1 , Figure 1 A schematic diagram of a 4D content generation method provided by an embodiment of the present invention, referring to Figure 1 As shown, the method includes:

[0080] S101: extracting text descriptions of the 4D content using a pre-trained language model to obtain text descriptions of several key states.

[0081] A pre-trained language model is a neural network model that is pre-trained on large-scale text data to learn the statistical laws and semantic information of language, so that the model can understand and generate natural language. Pre-trained language models usually use the Transformer architecture and are pre-trained through unsupervised learning to capture the contextual information and semantic representation of text sequences. Pre-trained language models can use any of the GPT series models (such as GPT-3, ChatGPT, GPT-4), Palm, LLama, Claude, and other models.

[0082] The pre-trained language model has a powerful reasoning ability and can obtain accurate and reasonable results based on the input text reasoning. This embodiment uses the pre-trained language model to reason about the text description of the 4D content input by the user to obtain multiple key states contained in the text description of the 4D content and a fine-grained text description of each key state. The pre-trained language model can be GPT-4, etc.

[0083] In some embodiments, a pre-trained language model is used to extract text descriptions of 4D content, and text descriptions of several key states are obtained, including:

[0084] Construct contextual cues;

[0085] Construct an instance;

[0086] Inputting the contextual prompt and the instance into a pre-trained language model;

[0087] A question is issued to the pre-trained language model, and the pre-trained language model outputs a text description of several key states; the content of the question includes the text description of the 4D content.

[0088] The purpose of constructing contextual prompts is to make the pre-trained language model understand the task requirements. In the face of the task of generating key states of 4D content in this embodiment, the constructed contextual prompts can be: "Assuming that you are a video creator, you can design a large number of text descriptions of key states that match the simple text description given by the user, and you can provide a detailed description for each key state, requiring the main body of all key state text descriptions to have temporal continuity."

[0089] The purpose of constructing an instance is to facilitate the pre-trained language model to understand the task, and to output the corresponding results in the format specified by the user. For example, the constructed instance can be: "Assuming that the text input by the user is "A kitten lying down suddenly jumped up and pounced on the teddy bear next to it", then a qualified output is: [{'Key state 1': 'A kitten lying down, with a teddy bear next to it'}, {'Key state 2': 'A kitten standing up, with a teddy bear next to it'}, {'Key state 3': 'A kitten pounced on the teddy bear'}]. ".

[0090] Input contextual prompts and examples into the pre-trained language model. The pre-trained language model is then able to split the text description of the 4D content into multiple text descriptions of key states. Ask the pre-trained language model questions, including the text description of the 4D content. For example, the question is: "What should be output for 'a monkey picked up the water cup on the table and drank a sip of water'?" Among them, a monkey picked up the water cup on the table and drank a sip of water is the text description of the 4D content. Based on the question, the pre-trained language model outputs the inference result, which is the text description of several key states.

[0091] S102: Generate corresponding 3D representation and key frames using a text-driven 3D generation algorithm according to the text description of the key state; the 3D representation is used to describe the shape, structure and properties of an object in a three-dimensional space.

[0092] After extracting the text descriptions of multiple key states, a text-driven 3D generation algorithm is used to generate the corresponding 3D representation and 2D images, i.e. key frames, according to the text descriptions of each key state. 3D representation, i.e. three-dimensional representation, is a method for describing the shape, structure, and properties of objects in three-dimensional space. Common three-dimensional representation methods include point cloud, mesh, voxel, implicit expression, neural radiation field, and three-dimensional Gaussian function. Point cloud is a collection of discrete points, suitable for capturing the details of surface shape. Mesh consists of connected patches and can be used to represent surface shape and topological structure. Voxel divides space into cubic cells and is suitable for representing volume data. Implicit expression describes the boundary or surface of an object based on a function. Neural radiation field uses deep learning to model the radiation intensity of a scene. Three-dimensional Gaussian function is a mathematical function used to represent probability distribution in three-dimensional space.

[0093] In some embodiments, according to the text description of each key state, using a text-driven 3D generation algorithm to generate a corresponding 3D representation and a key frame includes:

[0094] According to the text description of the first key state, the corresponding initial 3D representation is obtained;

[0095] According to the text description of other key states, the 3D offsets corresponding to other key states are obtained;

[0096] Rendering a first key frame according to the initial 3D representation;

[0097] According to the initial 3D representation and the 3D offsets corresponding to the other key states, key frames corresponding to the other key states are rendered.

[0098] In order to avoid inconsistencies in the main body of the content at different times, this embodiment adopts an initial 3D representation combined with a 3D offset representation method. Specifically, for the text description of the first key state, a corresponding 3D representation, namely the initial 3D representation, is generated, and for the text descriptions of other key states, only a 3D offset is generated. Based on the initial 3D representation, the first key frame is rendered. Based on the initial 3D representation combined with the 3D offsets corresponding to other key states, key frames corresponding to other key states are rendered.

[0099] For example, refer to Figure 2 As shown, for the text description of the first key state, key state 1, a corresponding 3D representation, i.e., the initial 3D representation, is generated. According to the initial 3D representation, the first key frame, i.e., key frame 1, is rendered. According to the initial 3D representation combined with the 3D offset corresponding to key state 2, the key frame of key state 2, i.e., key frame 2, is rendered. According to the initial 3D representation combined with the 3D offset corresponding to key state 3, the key frame of key state 3, i.e., key frame 3, is rendered. Similarly, according to the initial 3D representation combined with the 3D offset corresponding to key state K, the key frame of key state K, i.e., key frame K, is rendered.

[0100] In some embodiments, obtaining the corresponding initial 3D representation according to the text description of the first key state includes:

[0101] Randomly initialize the 3D Gaussian representation corresponding to the first key state; wherein the 3D Gaussian representation includes a 3D Gaussian static representation and a 3D Gaussian offset, and the 3D Gaussian offset in the 3D Gaussian representation corresponding to the first key state is zero and is not updated during training;

[0102] Rendering the 3D Gaussian representation to a 2D image according to a random camera perspective;

[0103] Adding random noise to the 2D image to obtain a noisy image;

[0104] Inputting the diffusion moment, the noisy image, and the vector obtained by encoding the text description of the first key state into an image generation pre-training model, and outputting the predicted noise from the image generation pre-training model;

[0105] The 3D Gaussian static representation in the 3D Gaussian representation is optimized according to the predicted noise and a first preset loss function until the number of iterations is reached to obtain the initial 3D representation.

[0106] There are many ways to represent 3D data, including point cloud, mesh, neural radiation field, 3D Gaussian, etc. Among them, 3D Gaussian has the advantages of strong 3D expression ability and fast rendering speed. Therefore, in this embodiment, the 3D representation method adopts the 3D Gaussian representation method. 3D Gaussian refers to the use of a series of Gaussian kernels to represent 3D data. Each Gaussian kernel can be represented by some parameters, including a center , a rotation variable , a scale variable , some additional parameters include opacity value Color characteristics used for rendering .

[0107] In order to be compatible with the generation of 3D offsets corresponding to other key states, this embodiment defines static 3D representation and dynamic 3D offset, and only optimizes the 3D Gaussian static representation for the first key frame, and only optimizes the 3D Gaussian offset for other key frames. In order to improve the quality of 3D generation, this embodiment adopts an implicit 4D generation method based on an image generation pre-training model.

[0108] Specifically, Represents the 3D Gaussian static representation corresponding to the key state, represents the 3D Gaussian offset corresponding to the key state. Let the 3D to be optimized be The initial critical state moment, i.e., the moment corresponding to the first critical state, is taken as the benchmark, i.e. 0, only the 3D Gaussian static representation needs to be optimized For other key states, in order to ensure that the main body of the entire 4D content remains consistent, If it is 0, only the 3D Gaussian offset corresponding to other key states needs to be optimized .

[0109] refer to Figure 3 As shown, for the first key state, the 3D Gaussian representation of the first key state is randomly initialized ; Among them, setting is 0 and is not updated during training. Follow random camera angles Rendering to 2D Image For 2D images Add random noise , get the image after adding noise . The diffusion time t, the image after adding noise , and the encoded vector of the text description of the first key state Input image to generate pre-trained model , and the predicted noise is The image generation pre-training model can be a Stable Diffusion model, etc. The 3D Gaussian representation of the first key state is obtained by optimizing the predicted noise and the preset loss function. , repeatedly represent the 3D Gaussian Follow random camera angles Rendering to 2D Image And subsequent steps until the number of iterations is reached and the iteration is completed. The 3D Gaussian representation obtained at this time is The final 3D representation of the first key state.

[0110] In some embodiments, optimizing the 3D Gaussian representation according to the predicted noise and a first preset loss function comprises:

[0111] The 3D Gaussian representation is optimized according to the predicted noise and value distillation sampling loss function.

[0112] Among them, in some embodiments, the value distillation sampling loss function is ; represents the predicted noise, represents the image after adding noise, represents the diffusion time, A vector representing the encoding of the text description of the key state, represents random noise, Represents the rendered 2D image. represents the 3D representation to be optimized, Represents a random camera viewpoint.

[0113] This embodiment adopts the Score Distillation Sampling (SDS) optimization method to optimize the 3D representation based on the image generation pre-trained model. The preset loss function is the SDS loss function, i.e., the value distillation sampling loss function. For the first key state, the 3D Gaussian representation of the first key state is randomly initialized. ; Among them, setting is 0 and is not updated during training. Follow random camera angles Rendering to 2D Image For 2D images Add random noise , get the image after adding noise . The diffusion time t, the image after adding noise , and the encoded vector of the text description of the first key state Input image to generate pre-trained model , and the predicted noise is .based on Perform gradient backpropagation to optimize the 3D Gaussian representation of the first key state , repeatedly represent the 3D Gaussian Follow random camera angles Rendering to 2D Image And subsequent steps until the number of iterations is reached and the iteration is completed. The 3D Gaussian representation obtained at this time is The final 3D representation of the first key state.

[0114] In some embodiments, according to the text description of other key states, obtaining the 3D offset corresponding to other key states includes:

[0115] Randomly initialize 3D Gaussian representations of other key states; wherein the 3D Gaussian representation includes a 3D Gaussian static representation and a 3D Gaussian offset;

[0116] Rendering the 3D Gaussian representation to a 2D image according to a random camera perspective;

[0117] Adding random noise to the 2D image to obtain a noisy image;

[0118] Inputting the vector obtained by encoding the noisy image and the text description of other key states into the image generation pre-training model, and outputting the predicted noise from the image generation pre-training model;

[0119] The 3D Gaussian offset in the 3D Gaussian representation is optimized according to the predicted noise and the second preset loss function until the number of iterations is reached to obtain the 3D offsets corresponding to other key states.

[0120] 3D representation for other key states , only optimize Specifically, for other key states, the 3D Gaussian representations of other key states are randomly initialized . Represent the 3D Gaussian Follow random camera angles Rendering to 2D Image For 2D images Add random noise , get the image after adding noise . The diffusion time t, the image after adding noise , and other key state text descriptions encoded vectors Input image to generate pre-trained model , and the predicted noise is . Based on the predicted noise and the preset loss function, the 3D Gaussian representation of other key states is obtained. , repeatedly represent the 3D Gaussian Follow random camera angles Rendering to 2D Image And subsequent steps until the number of iterations is reached and the iteration is completed. The 3D Gaussian representation obtained at this time is The final 3D representation of other key states. is the final 3D offset.

[0121] In some embodiments, optimizing the 3D Gaussian offset in the 3D Gaussian representation according to the predicted noise and a second preset loss function comprises:

[0122] The 3D Gaussian offset in the 3D Gaussian representation is optimized according to the predicted noise and a second preset loss function; the second preset loss function is a weighted sum of a value distillation sampling loss function and a subject consistency loss function.

[0123] Among them, in some embodiments, the subject consistency loss function is ; Indicates the first key frame, 3D representation The rendered keyframes are Represents the feature representation of the i-th layer of the network.

[0124] In order to enhance the supervision of the subject consistency of other key states, this embodiment adds a subject consistency loss function based on the SDS loss function, uses a pre-trained convolutional neural network (such as a VGG network) to extract high-dimensional features of the image, and compares the difference between the generated image and the reference image for supervision. Specifically, let Represents the feature representation of the intermediate layer of the network for the input image x, and the first key state 3D representation The first key frame rendered, other key states 3D representation The rendered image is , the subject consistency loss function is By introducing the subject consistency loss function, the 3D offset of other key states can be effectively supervised to ensure the consistency of the subject of the optimized 4D content. The representation of the value distillation sampling loss function can refer to the above embodiment and will not be repeated here.

[0125] For other key states, the training loss function is ,in, and The value can be adjusted dynamically according to the training situation.

[0126] S103: interpolating the key frame to obtain an interpolated frame and a corresponding 3D representation.

[0127] After generating 3D representations of T key states and rendering to obtain key frames, it is necessary to generate other frames that meet the required frame rate. In this embodiment, other frames that meet the required frame rate are generated by interpolating the generated key frames to obtain interpolated frames and corresponding 3D representations.

[0128] In some embodiments, interpolating the key frame to obtain an interpolated frame and a corresponding 3D representation includes:

[0129] The key frames are interpolated using the video difference pre-training model to obtain several interpolated frames;

[0130] Interpolating an interpolated 3D offset according to the 3D representations corresponding to the two preceding and succeeding key frames;

[0131] The interpolated 3D offset is optimized according to the interpolated frame and a third preset loss function to obtain a 3D representation corresponding to the interpolated frame.

[0132] refer to Figure 4 As shown, in order to ensure high quality and improve the generation speed, this embodiment adopts an interpolation strategy based on key frame interpolation of a video interpolation pre-training model and 3D representation based on key states. Specifically, the key frames are interpolated using the video interpolation pre-training model to obtain multiple interpolation frames. Taking the RIFE video interpolation pre-training model as an example, assuming that K-2 interpolation frames need to be inserted between the 1st key frame and the Kth key frame, the 1st key frame, the Kth key frame and the interpolation coefficient can be Input into the RIFE video interpolation pre-trained model to obtain K-2 interpolated frames.

[0133] in, .

[0134] Interpolation is performed based on the 3D offsets corresponding to the two key frames before and after to obtain an interpolated 3D offset, wherein the 3D offset corresponding to the first key frame is 0. The interpolated 3D offset is optimized according to the interpolated frame and the third loss function to obtain a 3D representation corresponding to the interpolated frame.

[0135] In some embodiments, interpolating an interpolated 3D offset according to 3D representations corresponding to two previous and next key frames includes:

[0136] according to Get the interpolated 3D offset; represents the interpolated 3D offset, Indicates the 3D offset in the 3D representation corresponding to the previous keyframe, Indicates the 3D offset in the 3D representation corresponding to the next keyframe, Indicates the interpolation coefficient. int_k is the serial number of the kth interpolation frame.

[0137] Interpolate the 3D offsets corresponding to the first key frame and the second key frame, then key_1 takes 1, key_2 takes 2, and int_k takes 2. It indicates the 3D offset corresponding to the first key frame. ,and is 0. It represents the 3D offset corresponding to the second key frame , It represents the interpolated 3D offset obtained by interpolating the 3D offsets corresponding to the first key frame and the second key frame.

[0138] In some embodiments, optimizing the interpolated 3D offset according to the interpolated frame and a third preset loss function includes:

[0139] The interpolated 3D offset is optimized according to the interpolated frame, an image rendered according to the interpolated 3D offset, and a root mean square error loss function.

[0140] In some embodiments, the root mean square error loss function is ; represents the kth image rendered according to the interpolated 3D offset, represents the kth interpolation frame. K-2 represents the interpolation to obtain K-2 interpolation frames.

[0141] In order to optimize the 3D offset obtained by interpolation, that is, the interpolated 3D offset, and better utilize the interpolated frame obtained by the video interpolation pre-training model, this embodiment introduces a mean square error (MSE) loss function to optimize the interpolated 3D offset, so as to minimize the difference between the image rendered thereby and the interpolated frame image.

[0142] S104: Optimizing the 3D representation of the key frame and the 3D representation corresponding to the interpolation frame to obtain 4D content.

[0143] After obtaining the 3D representations corresponding to all key frames and interpolated frames, in order to improve the continuity of the entire 4D content, the video generation pre-training model is used to optimize the 3D representations corresponding to the key frames and interpolated frames to obtain 4D content, that is, dynamic 3D content.

[0144] In some embodiments, optimizing the 3D representation of the key frame and the 3D representation corresponding to the interpolated frame to obtain the 4D content includes:

[0145] Render the 3D Gaussian representations corresponding to each key frame and interpolation frame into a 2D image according to a random camera perspective;

[0146] Adding random noise to each of the 2D images to obtain a noisy image;

[0147] Inputting the diffusion moment, each of the noisy images, and the vector obtained by encoding the text description of the 4D content into a video generation pre-training model, and the video generation pre-training model outputs the predicted noise;

[0148] The 3D Gaussian representation is optimized according to the predicted noise and a fourth preset loss function until the number of iterations is reached to obtain 4D content.

[0149] refer to Figure 5 As shown, the 3D Gaussian representation of each key frame and interpolation frame is calculated according to the random camera perspective. Rendering to 2D Image For 2D images Add random noise , get the image after adding noise . The diffusion time t, the image after adding noise , and the vector obtained by encoding the text description of the 4D content The input video is used to generate a pre-trained model and obtain the predicted noise. The 3D Gaussian representation of each key frame and interpolated frame is optimized according to the predicted noise and the preset loss function until the number of iterations is reached and the iteration is completed to obtain a high-quality 4D representation with sufficient frame rate.

[0150] In some embodiments, optimizing the 3D Gaussian representation according to the predicted noise and a fourth preset loss function comprises:

[0151] The 3D Gaussian representation is optimized according to the predicted noise and value distillation sampling loss function.

[0152] For the representation of the value distillation sampling loss function, please refer to the above embodiment and will not be repeated here.

[0153] In some embodiments, before rendering the 3D Gaussian representations of each key frame and the interpolated frame to a 2D image according to a random camera perspective, the method further includes:

[0154] The 3D offsets in the 3D representations corresponding to the key frames other than the first key frame and the interpolated frames are optimized for a preset number of iterations.

[0155] In order to further improve the overall 4D content generation effect, before rendering the 3D Gaussian representation of each key frame and interpolation frame to a 2D image according to a random camera perspective, the embodiment fine-tunes the 3D offset in the 3D representation corresponding to the key frames and interpolation frames other than the first key frame, that is, the 3D offset in the 3D representation corresponding to the key frames and interpolation frames other than the first key frame is optimized for a preset number of iterations. After optimization, the 3D Gaussian representation of each key frame and interpolation frame is rendered to a 2D image according to a random camera perspective. The method for optimizing the 3D offset in the 3D representation corresponding to the key frames and interpolation frames other than the first key frame can refer to the above embodiment and will not be repeated here.

[0156] In summary, the 4D content generation method provided by the present invention extracts the text description of the key states of the text description of the 4D content input by the user based on the pre-trained language model to obtain a fine-grained text description of the key states. According to the text description of each key state, a text-driven 3D generation algorithm is used to obtain the 3D representation and key frames corresponding to each key state; the key frames are interpolated, and finally the 3D representation of all frames is optimized to obtain the final high-quality 4D content. This method not only enriches the single information input by obtaining the text description of the key states of dynamic content with the help of a pre-trained language model, but also simplifies the difficulty of the problem by breaking down the long-term 4D content generation into the generation of multiple sub-segments, and can improve the quality and duration of 4D content generation.

[0157] The present invention also provides a 4D content generation device, and the device described below can be referred to in correspondence with the method described above. Figure 6 , Figure 6 A schematic diagram of a 4D content generation device provided by an embodiment of the present invention, combined with Figure 6 As shown, the device comprises:

[0158] An extraction module 10 is used to extract text descriptions of the 4D content using a pre-trained language model to obtain text descriptions of several key states;

[0159] A generation module 20, for generating corresponding 3D representations and key frames using a text-driven 3D generation algorithm according to the text description of the key state; the 3D representation is used to describe the shape, structure and properties of an object in a three-dimensional space;

[0160] An interpolation module 30, configured to interpolate the key frames to obtain interpolated frames and corresponding 3D representations;

[0161] The optimization module 40 is used to optimize the 3D representation corresponding to the key frame and the 3D representation corresponding to the interpolation frame to obtain 4D content.

[0162] Based on the above embodiment, as a specific implementation, the extraction module 10 includes:

[0163] A first construction unit is used to construct a context prompt;

[0164] A second construction unit is used to construct an instance;

[0165] An input unit, configured to input the contextual prompt and the instance into a pre-trained language model;

[0166] A questioning unit is used to ask questions to the pre-trained language model, and the pre-trained language model outputs text descriptions of several key states; the content of the question includes the text description of the 4D content.

[0167] Based on the above embodiment, as a specific implementation, the generation module 20 includes:

[0168] A first generating unit, configured to obtain a corresponding initial 3D representation according to a text description of a first key state;

[0169] A second generating unit is used to obtain 3D offsets corresponding to other key states according to text descriptions of other key states;

[0170] A first rendering unit, configured to render a first key frame according to the initial 3D representation;

[0171] The second rendering unit is used to render key frames corresponding to other key states according to the initial 3D representation and the 3D offsets corresponding to other key states.

[0172] Based on the above embodiment, as a specific implementation manner, the first generating unit includes:

[0173] A first initialization subunit is used to randomly initialize the 3D Gaussian representation corresponding to the first key state; wherein the 3D Gaussian representation includes a 3D Gaussian static representation and a 3D Gaussian offset, and the 3D Gaussian offset in the 3D Gaussian representation corresponding to the first key state is zero and is not updated during training;

[0174] A first rendering subunit, configured to render the 3D Gaussian representation into a 2D image according to a random camera perspective;

[0175] A first adding subunit is used to add random noise to the 2D image to obtain a noisy image;

[0176] A first input subunit is used to input a vector obtained by encoding the diffusion moment, the noisy image, and the text description of the first key state into an image generation pre-training model, and the image generation pre-training model outputs predicted noise;

[0177] The first optimization subunit is used to optimize the 3D Gaussian static representation in the 3D Gaussian representation according to the predicted noise and a first preset loss function until the number of iterations is reached to obtain the initial 3D representation.

[0178] Based on the above embodiment, as a specific implementation mode, the first optimization subunit is specifically used for:

[0179] The 3D Gaussian representation is optimized according to the predicted noise and value distillation sampling loss function.

[0180] Based on the above embodiment, as a specific implementation method, the value distillation sampling loss function is: ; represents the predicted noise, represents the image after adding noise, represents the diffusion time, A vector representing the encoding of the text description of the key state, represents random noise, Represents the rendered 2D image. represents the 3D representation to be optimized, Represents a random camera viewpoint.

[0181] Based on the above embodiment, as a specific implementation manner, the second generation unit includes:

[0182] A second initialization subunit, used for second random initialization of 3D Gaussian representations of other key states; wherein the 3D Gaussian representation includes a 3D Gaussian static representation and a 3D Gaussian offset;

[0183] A second rendering subunit, configured to render the 3D Gaussian representation into a 2D image according to a random camera perspective;

[0184] A second adding subunit is used to add random noise to the 2D image to obtain a noisy image;

[0185] A second input subunit is used to input the vector obtained by encoding the noisy image and the text description of other key states into the image generation pre-training model, and the image generation pre-training model outputs the predicted noise;

[0186] The second optimization subunit is used to optimize the 3D Gaussian offset in the 3D Gaussian representation according to the predicted noise and a second preset loss function until the number of iterations is reached to obtain the 3D offset corresponding to other key states.

[0187] Based on the above embodiment, as a specific implementation mode, the second optimization subunit is specifically used for:

[0188] The 3D Gaussian offset in the 3D Gaussian representation is optimized according to the predicted noise and a second preset loss function; the second preset loss function is a weighted sum of a value distillation sampling loss function and a subject consistency loss function.

[0189] Based on the above embodiment, as a specific implementation method, the subject consistency loss function is: ; Indicates the first key frame, 3D representation The rendered keyframes are Represents the feature representation of the i-th layer of the network.

[0190] Based on the above embodiment, as a specific implementation, the interpolation module 30 includes:

[0191] A first interpolation unit, configured to interpolate key frames using a video difference pre-training model to obtain a plurality of interpolation frames;

[0192] A second interpolation unit, configured to interpolate an interpolated 3D offset according to 3D representations corresponding to the two preceding and succeeding key frames;

[0193] The first optimization unit is used to optimize the interpolated 3D offset according to the interpolated frame and a third preset loss function to obtain a 3D representation corresponding to the interpolated frame.

[0194] Based on the above embodiment, as a specific implementation manner, the second interpolation unit is specifically used for:

[0195] according to Get the interpolated 3D offset; represents the interpolated 3D offset, Indicates the 3D offset in the 3D representation corresponding to the previous keyframe, Indicates the 3D offset in the 3D representation corresponding to the next keyframe, Represents the interpolation coefficient.

[0196] Based on the above embodiment, as a specific implementation mode, the optimization unit is specifically used for:

[0197] The interpolated 3D offset is optimized according to the interpolated frame, an image rendered according to the interpolated 3D offset, and a root mean square error loss function.

[0198] Based on the above embodiment, as a specific implementation method, the root mean square error loss function is: ; represents an image rendered according to the interpolated 3D offset, Represents an interpolated frame.

[0199] Based on the above embodiment, as a specific implementation, the optimization module 40 includes:

[0200] A rendering unit, used for rendering the 3D Gaussian representation corresponding to each key frame and the interpolation frame into a 2D image according to a random camera perspective;

[0201] An adding unit, used for adding random noise to each of the 2D images to obtain a noisy image;

[0202] An input unit, used for inputting the diffusion moment, each of the noisy images and the vector obtained by encoding the text description of the 4D content into a video generation pre-training model, and the video generation pre-training model outputs the predicted noise;

[0203] The second optimization unit is used to optimize the 3D Gaussian representation according to the predicted noise and a fourth preset loss function until the number of iterations is reached to obtain 4D content.

[0204] Based on the above embodiment, as a specific implementation mode, the second optimization unit is specifically used for:

[0205] The 3D Gaussian representation is optimized according to the predicted noise and value distillation sampling loss function.

[0206] Based on the above embodiment, as a specific implementation, the optimization module 40 further includes:

[0207] The third optimization unit is used to optimize the 3D offsets in the 3D representations corresponding to the key frames and interpolation frames except the first key frame for a preset number of iterations before rendering the 3D Gaussian representations corresponding to the key frames and interpolation frames to the 2D image according to the random camera perspective.

[0208] The 4D content generation device provided by the present invention extracts the text description of the key states of the text description of the 4D content input by the user based on the pre-trained language model to obtain a fine-grained text description of the key states. According to the text description of each key state, a text-driven 3D generation algorithm is used to obtain the 3D representation and key frames corresponding to each key state; the key frames are interpolated, and finally the 3D representation of all frames is optimized to obtain the final high-quality 4D content. The device obtains the text description of the key states of dynamic content with the help of a pre-trained language model, which not only enriches the single information input, but also simplifies the difficulty of the problem by breaking down the long-term 4D content generation into the generation of multiple sub-segments, and can improve the quality and duration of 4D content generation.

[0209] The present invention also provides a 4D content generation device, referring to Figure 7 As shown, the device includes a memory 1 and a processor 2 .

[0210] Memory 1, used for storing computer programs;

[0211] Processor 2 is used to execute the computer program to implement the following steps:

[0212] Use the pre-trained language model to extract text descriptions of 4D content and obtain text descriptions of several key states;

[0213] According to the text description of each of the key states, a text-driven 3D generation algorithm is used to generate a corresponding 3D representation and key frames; the 3D representation is used to describe the shape, structure and properties of an object in a three-dimensional space;

[0214] Interpolating the key frames to obtain interpolated frames and corresponding 3D representations;

[0215] The 3D representation corresponding to the key frame and the 3D representation corresponding to the interpolated frame are optimized to obtain 4D content.

[0216] For an introduction to the device provided by the present invention, please refer to the above method embodiment, and the present invention will not be elaborated here.

[0217] The 4D content generation device provided by the present invention extracts the text description of the key states of the text description of the 4D content input by the user based on the pre-trained language model to obtain a fine-grained text description of the key states. According to the text description of each key state, a text-driven 3D generation algorithm is used to obtain the 3D representation and key frames corresponding to each key state; the key frames are interpolated, and finally the 3D representation of all frames is optimized to obtain the final high-quality 4D content. The device obtains the text description of the key states of dynamic content with the help of a pre-trained language model, which not only enriches the single information input, but also simplifies the difficulty of the problem by breaking down the long-term 4D content generation into the generation of multiple sub-segments, and can improve the quality and duration of 4D content generation.

[0218] The present invention also provides a medium, on which a computer program is stored. When the computer program is executed by a processor, the following steps can be implemented:

[0219] Use the pre-trained language model to extract text descriptions of 4D content and obtain text descriptions of several key states;

[0220] According to the text description of each of the key states, a text-driven 3D generation algorithm is used to generate a corresponding 3D representation and key frames; the 3D representation is used to describe the shape, structure and properties of an object in a three-dimensional space;

[0221] Interpolating the key frames to obtain interpolated frames and corresponding 3D representations;

[0222] The 3D representation corresponding to the key frame and the 3D representation corresponding to the interpolated frame are optimized to obtain 4D content.

[0223] The medium may include: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.

[0224] For an introduction to the medium provided by the present invention, please refer to the above method embodiment, and the present invention will not be elaborated here.

[0225] The medium provided by the present invention extracts the text description of the key states of the text description of the 4D content input by the user based on the pre-trained language model to obtain a fine-grained text description of the key states. According to the text description of each key state, a text-driven 3D generation algorithm is used to obtain the 3D representation and key frames corresponding to each key state; the key frames are interpolated, and finally the 3D representation of all frames is optimized to obtain the final high-quality 4D content. By using a pre-trained language model to obtain the text description of the key states of dynamic content, not only the single information input is enriched, but also the difficulty of the problem is simplified by breaking down the long-term 4D content generation into the generation of multiple sub-segments, which can improve the quality and duration of 4D content generation.

[0226] The present invention also provides a computer program product, comprising a computer program / instruction, which implements the following steps when executed by a processor:

[0227] Use the pre-trained language model to extract text descriptions of 4D content and obtain text descriptions of several key states;

[0228] According to the text description of each of the key states, a text-driven 3D generation algorithm is used to generate a corresponding 3D representation and key frames; the 3D representation is used to describe the shape, structure and properties of an object in a three-dimensional space;

[0229] Interpolating the key frames to obtain interpolated frames and corresponding 3D representations;

[0230] The 3D representation corresponding to the key frame and the 3D representation corresponding to the interpolated frame are optimized to obtain 4D content.

[0231] The computer program product provided by the present invention extracts the text description of the key states of the text description of the 4D content input by the user based on the pre-trained language model to obtain a fine-grained text description of the key states. According to the text description of each key state, a text-driven 3D generation algorithm is used to obtain the 3D representation and key frames corresponding to each key state; the key frames are interpolated, and finally the 3D representation of all frames is optimized to obtain the final high-quality 4D content. By obtaining the text description of the key states of dynamic content with the help of a pre-trained language model, not only the single information input is enriched, but also the difficulty of the problem is simplified by breaking down the long-term 4D content generation into the generation of multiple sub-segments, which can improve the quality and duration of 4D content generation.

[0232] The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other. For the devices, equipment and media disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the description is relatively simple, and the relevant parts can be referred to the method part description.

[0233] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0234] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0235] The above is a detailed introduction to the 4D content generation method, device, equipment, medium and computer program product provided by the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method and core ideas of the present invention. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present invention, the present invention can also be improved and modified, and these improvements and modifications also fall within the scope of protection of the present invention.

Claims

1. A 4D content generation method, characterized in that: include: Use the pre-trained language model to extract text descriptions of 4D content and obtain text descriptions of several key states; According to the text description of the key state, a text-driven 3D generation algorithm is used to generate corresponding 3D representations and key frames; the 3D representation is used to describe the shape, structure and properties of an object in a three-dimensional space; Interpolating the key frames to obtain interpolated frames and corresponding 3D representations; Optimizing the 3D representation corresponding to the key frame and the 3D representation corresponding to the interpolated frame to obtain 4D content; According to the text description of the key state, a text-driven 3D generation algorithm is used to generate corresponding 3D representations and key frames, including: According to the text description of the first key state, the corresponding initial 3D representation is obtained; According to the text description of other key states, the 3D offsets corresponding to other key states are obtained; Rendering a first key frame according to the initial 3D representation; Rendering key frames corresponding to other key states according to the initial 3D representation and 3D offsets corresponding to other key states; According to the text description of other key states, the 3D offsets corresponding to other key states include: Randomly initialize 3D Gaussian representations of other key states; wherein the 3D Gaussian representation includes a 3D Gaussian static representation and a 3D Gaussian offset; Rendering the 3D Gaussian representation to a 2D image according to a random camera perspective; Adding random noise to the 2D image to obtain a noisy image; Inputting the vector obtained by encoding the noisy image and the text description of other key states into the image generation pre-training model, and outputting the predicted noise from the image generation pre-training model; Optimizing the 3D Gaussian offset in the 3D Gaussian representation according to the predicted noise and a second preset loss function until the number of iterations is reached to obtain 3D offsets corresponding to other key states; Optimizing the 3D Gaussian offset in the 3D Gaussian representation according to the predicted noise and the second preset loss function includes: The 3D Gaussian offset in the 3D Gaussian representation is optimized according to the predicted noise and a second preset loss function; the second preset loss function is a weighted sum of a value distillation sampling loss function and a subject consistency loss function; the subject consistency loss function is ; Indicates the first key frame, 3D representation The rendered keyframes are Represents the feature representation of the i-th layer of the network.

2. The 4D content generation method according to claim 1, characterized in that: The pre-trained language model is used to extract the text description of the 4D content, and the text descriptions of several key states are obtained, including: Construct contextual cues; Construct an instance; Inputting the contextual prompt and the instance into a pre-trained language model; A question is asked to the pre-trained language model, and the pre-trained language model outputs a text description of several key states; the content of the question includes the text description of the 4D content.

3. The 4D content generation method according to claim 1, characterized in that: According to the text description of the first key state, the corresponding initial 3D representation includes: Randomly initialize the 3D Gaussian representation corresponding to the first key state; wherein the 3D Gaussian representation includes a 3D Gaussian static representation and a 3D Gaussian offset, and the 3D Gaussian offset in the 3D Gaussian representation corresponding to the first key state is zero and is not updated during training; Rendering the 3D Gaussian representation to a 2D image according to a random camera perspective; Adding random noise to the 2D image to obtain a noisy image; Inputting the diffusion moment, the noisy image, and the vector obtained by encoding the text description of the first key state into an image generation pre-training model, and outputting the predicted noise from the image generation pre-training model; The 3D Gaussian static representation in the 3D Gaussian representation is optimized according to the predicted noise and a first preset loss function until the number of iterations is reached to obtain the initial 3D representation.

4. The 4D content generation method according to claim 3, characterized in that: Optimizing the 3D Gaussian representation according to the predicted noise and a first preset loss function includes: The 3D Gaussian representation is optimized according to the predicted noise and value distillation sampling loss function.

5. The 4D content generation method according to claim 4, characterized in that: The value distillation sampling loss function is ; represents the predicted noise, represents the image after adding noise, represents the diffusion time, A vector representing the encoding of the text description of the key state, represents random noise, Represents the rendered 2D image. represents the 3D representation to be optimized, Represents a random camera viewpoint.

6. The 4D content generation method according to claim 1, characterized in that: Interpolating the key frame to obtain an interpolated frame and a corresponding 3D representation includes: The key frames are interpolated using the video difference pre-training model to obtain several interpolated frames; Interpolating an interpolated 3D offset according to the 3D representations corresponding to the two preceding and succeeding key frames; The interpolated 3D offset is optimized according to the interpolated frame and a third preset loss function to obtain a 3D representation corresponding to the interpolated frame.

7. The 4D content generation method according to claim 6, characterized in that: According to the 3D representations corresponding to the two key frames before and after, the interpolated 3D offset includes: according to Get the interpolated 3D offset; represents the interpolated 3D offset, Indicates the 3D offset in the 3D representation corresponding to the previous keyframe, Indicates the 3D offset in the 3D representation corresponding to the next keyframe, Represents the interpolation coefficient.

8. The 4D content generation method according to claim 6, characterized in that: Optimizing the interpolated 3D offset according to the interpolated frame and the third preset loss function includes: The interpolated 3D offset is optimized according to the interpolated frame, an image rendered according to the interpolated 3D offset, and a root mean square error loss function.

9. The 4D content generation method according to claim 8, characterized in that: The root mean square error loss function is ; represents an image rendered according to the interpolated 3D offset, Represents an interpolated frame.

10. The 4D content generation method according to claim 1, characterized in that: The 3D representation of the key frame and the 3D representation corresponding to the interpolated frame are optimized to obtain 4D content including: Render the 3D Gaussian representations corresponding to each key frame and interpolation frame into a 2D image according to a random camera perspective; Adding random noise to each of the 2D images to obtain a noisy image; Inputting the diffusion moment, each of the noisy images, and the vector obtained by encoding the text description of the 4D content into a video generation pre-training model, and the video generation pre-training model outputs the predicted noise; The 3D Gaussian representation is optimized according to the predicted noise and a fourth preset loss function until the number of iterations is reached to obtain 4D content.

11. The 4D content generation method according to claim 10, characterized in that: Optimizing the 3D Gaussian representation according to the predicted noise and a fourth preset loss function includes: The 3D Gaussian representation is optimized according to the predicted noise and value distillation sampling loss function.

12. The 4D content generation method according to claim 10, characterized in that: Before rendering the 3D Gaussian representations corresponding to each key frame and the interpolation frame to a 2D image according to a random camera perspective, the following steps are also included: The 3D offsets in the 3D representations corresponding to the key frames other than the first key frame and the interpolated frames are optimized for a preset number of iterations.

13. A 4D content generating device, characterized in that: The steps for implementing the 4D content generation method according to claim 1 include: An extraction module is used to extract text descriptions of 4D content using a pre-trained language model to obtain text descriptions of several key states; A generation module, for generating corresponding 3D representations and key frames using a text-driven 3D generation algorithm according to the text description of the key state; the 3D representation is used to describe the shape, structure and properties of an object in a three-dimensional space; An interpolation module, used for interpolating the key frame to obtain an interpolated frame and a corresponding 3D representation; The optimization module is used to optimize the 3D representation corresponding to the key frame and the 3D representation corresponding to the interpolation frame to obtain 4D content.

14. A 4D content generating device, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the steps of the 4D content generation method according to any one of claims 1 to 12 when executing the computer program.

15. A medium, characterized in that The medium stores a computer program, and when the computer program is executed by a processor, the steps of the 4D content generation method according to any one of claims 1 to 12 are implemented.

16. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the steps of the 4D content generation method according to any one of claims 1 to 12 are implemented.

Citation Information

Patent Citations

  • Three-dimensional content generation model training method and device based on pre-training language model

    CN116910572A

  • Text-based three-dimensional modeling method, image rendering method and device

    CN116958423A

  • Customized multi-subject text video method, device, equipment and medium

    CN117496020A

  • Text video generation method and system based on potential diffusion model

    CN117729370A

  • Systems and methods for machine content generation

    US20230252224A1