Video generation method, device, equipment, system and computer program product

The multi-modal large language model combines the dynamic elements of the image foreground and background to generate dynamic prompt information, which solves the time-consuming and labor-intensive problem of existing video generation technology and achieves fast, automatic, and high-quality video generation, which is suitable for Natural open-domain images improve generation efficiency and quality.

CN118555461BActive Publication Date: 2024-10-15ZHEJIANG TMALL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411025226.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-29
Publication Date
2024-10-15
Estimated Expiration
2044-07-29

AI Technical Summary

Technical Problem

Existing video generation technology is time-consuming, labor-intensive, costly, and cannot be effectively applied to all images in natural open domains. It lacks versatility and is difficult to achieve high-quality batch video generation.

Method used

A multi-modal large language model is used to train based on multi-modal samples. By obtaining preset dynamic elements in the foreground and background of the image, static and dynamic prompt information is determined, dynamic prompt information is generated, and rapid automatic video generation is achieved.

Benefits of technology

It reduces the difficulty and cost of video production, improves the efficiency and quality of video generation, the smoothness and rationality of dynamic effects, is suitable for any image in a natural open domain, and supports batch video generation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118555461B_ABST
    Figure CN118555461B_ABST
Patent Text Reader

Abstract

The embodiments of the present invention provide a video generation method, device, equipment, system and computer program product. The method includes: obtaining an image to be processed, the image to be processed includes an image foreground and an image background, the image background includes preset image elements that can generate dynamic effects; determining foreground information of the image foreground, and static prompt information of the image to be processed; inputting the static prompt information and the image to be processed into a multimodal large language model for expansion operation to obtain dynamic effect prompt information, the multimodal large language model is obtained by training based on multimodal samples; based on the image to be processed, the foreground information and the dynamic effect prompt information, a target video corresponding to the image to be processed is generated. In this embodiment, the target video can be generated quickly and automatically based on the image, which reduces the cost and technical threshold of video production operations, and because the target video is generated in combination with the dynamic effect prompt information, the fluency and rationality of the dynamic effect in the video are guaranteed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] With the continuous development of image processing technology, the application scope of image generation technology is becoming more and more extensive. For example, in today's highly competitive e-commerce market, creative short videos have become a major way to promote products. With their vivid visual effects and efficient information transmission capabilities, video content can significantly attract consumers' attention, which is conducive to improving product conversion rates.

[0003] However, in the traditional model, video production is a time-consuming and labor-intensive process, which often requires professional editing software and well-trained personnel, resulting in high production costs. Therefore, the production of high-quality product videos faces dual challenges in terms of cost and technology. Summary of the invention

[0004] The embodiments of the present invention provide a video generation method, apparatus, device, system and computer program product, which can quickly and automatically generate dynamic videos based on images, thereby reducing the difficulty and cost of video production.

[0005] In a first aspect, an embodiment of the present invention provides a video generation method, including:

[0006] Acquire an image to be processed, wherein the image to be processed includes an image foreground and an image background, and the image background includes preset image elements capable of generating dynamic effects;

[0007] Determining foreground information of the image foreground and static prompt information of the image to be processed;

[0008] Inputting the static prompt information and the image to be processed into a multimodal large language model for expansion operation to obtain dynamic prompt information, wherein the multimodal large language model is obtained by training based on multimodal samples;

[0009] Based on the image to be processed, the foreground information and the motion effect prompt information, a target video corresponding to the image to be processed is generated.

[0010] In a second aspect, an embodiment of the present invention provides a video generating device, including:

[0011] A first acquisition module, used to acquire an image to be processed, wherein the image to be processed includes an image foreground and an image background, and the image background includes preset image elements capable of generating a dynamic effect;

[0012] A first determination module, used to determine foreground information of the image foreground and static prompt information of the image to be processed;

[0013] A first expansion module is used to input the static prompt information and the image to be processed into a multimodal large language model for expansion operation to obtain dynamic prompt information, wherein the multimodal large language model is obtained by training based on multimodal samples;

[0014] The first processing module is used to generate a target video corresponding to the image to be processed based on the image to be processed, the foreground information and the motion effect prompt information.

[0015] In a third aspect, an embodiment of the present invention provides an electronic device, comprising: a memory and a processor; wherein the memory is used to store one or more computer instructions, wherein the one or more computer instructions, when executed by the processor, implement the video generation method in the above-mentioned first aspect.

[0016] In a fourth aspect, an embodiment of the present invention provides a computer storage medium for storing a computer program, wherein the computer program enables a computer to implement the video generation method in the first aspect when executed.

[0017] In a fifth aspect, an embodiment of the present invention provides a computer program product, comprising: a computer-readable storage medium storing computer instructions, which, when executed by one or more processors, causes the one or more processors to execute the steps in the video generation method shown in the first aspect above.

[0018] In a sixth aspect, an embodiment of the present invention provides a video generation system, including:

[0019] An e-commerce platform is used to obtain an image to be processed, wherein the image to be processed includes an image foreground and an image background, wherein the image background includes preset image elements capable of generating dynamic effects; determine foreground information of the image foreground, and static prompt information corresponding to the image background; input the static prompt information and the image to be processed into a multimodal large language model for expansion operation to obtain the dynamic effect prompt information, wherein the multimodal large language model is obtained by training based on multimodal samples; based on the image to be processed, the foreground information and the dynamic effect prompt information, generate a target video corresponding to the image to be processed;

[0020] A media platform is used to play the target video.

[0021] The video generation method, apparatus, device, system and computer program product provided in the present embodiment obtain the image to be processed, determine the foreground information of the image foreground and the static prompt information of the image to be processed, and then perform an expansion operation on the static prompt information based on the image to be processed to obtain the dynamic prompt information, and perform a video generation operation based on the image to be processed, the foreground information and the dynamic prompt information to obtain the target video corresponding to the image to be processed. This effectively realizes the ability to quickly and automatically generate the target video, thereby reducing the cost and technical threshold required for video production. In addition, compared with the effect of the target video generated based on the static prompt information, the dynamic effect generated in the target video generated based on the dynamic prompt information is more fluid and reasonable, thereby effectively ensuring the quality and effect of the video generation operation, and further improving the practicality of the method. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0023] Figure 1 A schematic diagram of a scene of a video generation method provided by an embodiment of the present invention;

[0024] Figure 2 A schematic diagram of a flow chart of a video generation method provided by an embodiment of the present invention;

[0025] Figure 3 A schematic diagram of a process for inputting the image coding feature, the foreground coding feature and the motion effect prompt information into a video generation model to generate the target video provided in an embodiment of the present invention;

[0026] Figure 4 A schematic diagram of a process for generating a target video corresponding to the image to be processed based on the image to be processed, the foreground information and the motion effect prompt information provided in an embodiment of the present invention;

[0027] Figure 5 A schematic diagram of a flow chart of another video generation method provided by an embodiment of the present invention;

[0028] Figure 6 Schematic diagram of a video generation method provided by an application embodiment of the present invention Figure 1 ;

[0029] Figure 7Schematic diagram of a video generation method provided by an application embodiment of the present invention Figure 2 ;

[0030] Figure 8 A schematic diagram of the structure of a video generating device provided by an embodiment of the present invention;

[0031] Fig. 9 For Figure 8 A schematic diagram of the structure of an electronic device corresponding to the video generating device provided in the embodiment is shown;

[0032] Fig.10 A schematic diagram of the structure of a video generation system provided by an embodiment of the present invention. DETAILED DESCRIPTION

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

[0034] The terms used in the embodiments of the present invention are only for the purpose of describing specific embodiments, and are not intended to limit the present invention. The singular forms "a", "an", and "the" used in the embodiments of the present invention and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings, and "multiple" generally includes at least two, but does not exclude the situation of including at least one.

[0035] It should be understood that the term "and / or" used in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.

[0036] As used herein, the words "if" and "if" may be interpreted as "at the time of" or "when" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrases "if it is determined" or "if (stated condition or event) is detected" may be interpreted as "when it is determined" or "in response to determining" or "when detecting (stated condition or event)" or "in response to detecting (stated condition or event)", depending on the context.

[0037] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a product or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such a product or system. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the product or system including the elements.

[0038] In addition, the step sequence in the following method embodiments is only an example and not a strict limitation.

[0039] Definition of terms:

[0040] The diffusion model is a deep learning model used to generate multimedia content such as images and videos, which can be obtained by learning and training sample data.

[0041] Edge detection (Canny) is an algorithm for detecting edge information of an image, which can be used for at least one of the following tasks: image segmentation, image recognition, object detection, etc.

[0042] Generative AI: Artificial intelligence Generated Content, referred to as AIGC, is used to generate various types of content such as text, images, audio, video, etc. through artificial intelligence technology.

[0043] Variational Auto-Encoder: VAE is used to learn the complex probability distribution of input data by encoding the input data into a potential representation space and sampling from it to generate new data.

[0044] In order to facilitate understanding of the specific implementation process and implementation effect of the video generation method, device, equipment, system and computer program product in this embodiment, the relevant technology is briefly described below:

[0045] With the rapid development of e-commerce technology, content marketing in e-commerce platforms has gradually shown a diversified trend. Among them, video content has gradually become an important way to promote products due to its rich information transmission capabilities and high interactivity. For example, creative short videos can significantly attract consumers' attention on e-commerce platforms with their vivid visual effects and efficient information transmission capabilities, increase consumers' participation and willingness to buy, and effectively improve product conversion rates. This has led to an exponential growth in the demand for video data driven by e-commerce platforms and social media.

[0046] Moreover, with consumers' increasing reliance on high-quality visual experience in their purchasing decisions, as well as the advancement of artificial intelligence (AIGC) technology and the trend of e-commerce platform contentization, the production and demand of video creativity is expected to continue to explode. At present, for most merchants on e-commerce platforms, they usually have a large amount of image materials but lack sufficient video materials. If static images can be efficiently converted into dynamic videos, this can greatly enrich the video material library on e-commerce platforms.

[0047] However, current video production is a time-consuming and labor-intensive process that often requires professional editing software and well-trained personnel, resulting in high production costs. Compared with traditional graphic content, the production of high-quality videos not only has high technical barriers, but also is relatively more expensive, including professional skills, equipment and time investment. These factors limit the mass production of video content and cannot guarantee the quality of mass-produced video content.

[0048] Related technology 1 provides a method for generating video from images. The method can focus on certain specific image domains or some simple natural scenes or objects for video generation operations, where certain specific image domains may include: human faces, human body postures, etc., and some simple natural scenes or objects may include: clouds, water flow, handwritten letters, simple graffiti, etc., and then use traditional generation models (such as: generative adversarial networks (GANs), variational autoencoders (VAEs), etc.) to make the images move. However, the disadvantage of this method is that it can only be applied to specific images, not to all images in natural open domains, and is not universal.

[0049] Related technology 2 provides a method for generating video from an image, which can generate video frame by frame based on an autoregressive model in an autoregressive manner. The disadvantages of this method are: high computational cost and long video generation time.

[0050] In order to solve the above technical problems, this embodiment provides a video generation method, device, equipment, system and computer program product. Figure 1As shown, the execution subject of the video generation method can be a video generation device 200, and the video generation device 200 can be implemented as a local server, a server in the cloud, or a preset device. In the case where the video generation device 200 is implemented as a server in the cloud, the video generation method can be executed in the cloud, and several computing nodes (cloud servers) can be deployed in the cloud, and each computing node has computing, storage and other processing resources. In the cloud, multiple computing nodes can be organized to provide a certain service. Of course, a computing node can also provide one or more services. The way to provide the service in the cloud can be to provide a service interface to the outside, and the user calls the service interface to use the corresponding service. The service interface includes a software development kit (Software Development Kit, referred to as SDK), an application programming interface (Application Programming Interface, referred to as API), and the like.

[0051] The video generation device 200 is connected to the client 100 in communication, wherein the client 100 is used for users to apply, obtain video generation requests, and then start the video generation device 200 to perform video generation operations based on the video generation requests. The above-mentioned client 100 can be any computing device with a certain data transmission capability. In specific implementation, the client 100 can be a mobile phone, a personal computer PC, a tablet computer, a setting application, etc. In addition, the basic structure of the client 100 may include: at least one processor. The number of processors depends on the configuration and type of the client. The client 100 may also include a memory, which may be volatile, such as a random access memory (RAM), or non-volatile, such as a read-only memory (ROM), flash memory, etc., or may include both types. The memory usually stores an operating system (OS), one or more application programs, and may also store program data, etc. In addition to the processing unit and the memory, the client 100 also includes some basic configurations, such as a network card chip, an IO bus, a display component, and some peripheral devices. Optionally, some peripheral devices may include, for example, a keyboard, a mouse, an input pen, a printer, etc. Other peripheral devices are well known in the art and will not be described in detail here.

[0052] The video generation device 200 refers to a device that can provide video generation operations in a network virtual environment, and generally refers to a device that uses the network to perform information planning and video generation operations. In physical implementation, the video generation device 200 can be any device that can provide computing services and can perform corresponding video generation operations, for example: it can be a cluster server, a conventional server, a cloud server, a cloud host, a virtual center, etc. The composition of the video generation device 200 mainly includes a processor, a hard disk, a memory, a system bus, etc., which is similar to a general computer architecture.

[0053] In the above embodiment, the client 100 is connected to the video generating device 200 through a network, and the network connection can be a wireless or wired network connection. If the client 100 can be connected to the video generating device 200 through communication, the network standard of the mobile network can be any one of 2G (GSM), 2.5G (GPRS), 3G (WCDMA, TD-SCDMA, CDMA2000, UTMS), 4G (LTE), 4G+ (LTE+), WiMax, 5G, 6G, etc.

[0054] In the embodiment of the present application, the client 100 is used by the user to generate a video generation request, wherein the video generation request can be generated by a human-computer interaction operation or a voice interaction operation. After obtaining the video generation request, the video generation request can be sent to the video generation device 200, so that the video generation device 200 can perform a corresponding video generation operation based on the video generation request.

[0055] The video generation device 200 is used to obtain a video generation request sent by the client 100, and then obtain an image to be processed based on the video generation request, wherein the image to be processed includes an image foreground and an image background, and the image background includes preset image elements that can generate dynamic effects, and the preset image elements may include at least one of the following: flowers, blue sky, white clouds, streams, silk, etc.

[0056] After acquiring the image to be processed, the image to be processed can be analyzed and processed to determine the foreground information of the image foreground and the static prompt information corresponding to the image to be processed, wherein the foreground information is used to describe the object to be displayed in the foreground of the image, which may include detail information and visual information of the object to be displayed. In some instances, the foreground information may include at least one of the following: edge detection information and mask information; and the static prompt information corresponding to the image to be processed may include at least one of the following: static description information of the image foreground and static description information of the image background.

[0057] In order to accurately generate a video with dynamic effects, the static prompt information and the image to be processed can be input into the multimodal large language model for expansion operation to obtain the dynamic prompt information, wherein the multimodal large language model is trained based on multimodal samples. After obtaining the image to be processed, foreground information and dynamic prompt information, the image to be processed, foreground information and dynamic prompt information can be analyzed and processed to generate a target video corresponding to the image to be processed, which effectively ensures the quality and efficiency of generating the target video.

[0058] In the present embodiment, it is effectively realized that a target video with dynamic effects can be quickly and automatically generated based on the image to be processed, thereby reducing the cost and technical threshold required for video production. In addition, since the target video is generated in combination with dynamic effect prompt information, compared with the solution of generating the target video based on static prompt information, it can effectively improve the smoothness and rationality of the dynamic effects generated in the target video, thereby effectively ensuring the quality and effect of the video generation operation.

[0059] Some embodiments of the present invention are described in detail below in conjunction with the accompanying drawings. In the case where there is no conflict between the embodiments, the following embodiments and the features in the embodiments can be combined with each other. In addition, the step sequence in the following method embodiments is only an example and not a strict limitation.

[0060] Figure 2 A schematic diagram of a video generation method provided by an embodiment of the present invention; Figure 2 As shown, this embodiment provides a video generation method, the execution subject of the method is a video generation device, specifically, the video generation device can be implemented as software, or a combination of software and hardware. When the video generation device is implemented as hardware, it can be various electronic devices that can implement video generation operations, including but not limited to personal computers, servers, databases, etc. When the video generation device is implemented as software, it can be installed in the above-mentioned electronic devices. Based on the above-mentioned video generation device, the video generation operation can be implemented. Specifically, the video generation method may include:

[0061] Step S201: obtaining an image to be processed, wherein the image to be processed includes an image foreground and an image background, and the image background includes preset image elements that can generate dynamic effects.

[0062] Step S202: Determine foreground information of the image foreground and static prompt information of the image to be processed.

[0063] Step S203: input the static prompt information and the image to be processed into a multimodal large language model for expansion operation to obtain dynamic prompt information, wherein the multimodal large language model is trained based on multimodal samples.

[0064] Step S204: Based on the image to be processed, the foreground information and the motion effect prompt information, a target video corresponding to the image to be processed is generated.

[0065] The specific implementation process and effects of each of the above steps are described in detail below:

[0066] Step S201: obtaining an image to be processed, wherein the image to be processed includes an image foreground and an image background, and the image background includes preset image elements that can generate dynamic effects.

[0067] When the user has a need to generate a video, the video generation device can obtain the image to be processed. The image to be processed can be in any of the following formats: an uncompressed or processed image format (RAW), an image format that supports a transparent background (PNG), a lossless compressed image format (BMP), a normal image format (JPEG), etc.

[0068] Furthermore, the obtained image to be processed may include an image foreground and an image background. The image foreground may include one or more objects to be displayed. The objects to be displayed are different in different application scenarios. For example, when the image to be processed is a person image, the object to be displayed is a person; when the image to be processed is a commodity image, the object to be displayed may be a commodity, and the commodity may include at least one of the following: mobile phones, headphones, micro single-lens cameras, hiking shoes, down jackets, etc.; when the image to be processed is an animal image, the object to be displayed may be an animal; when the image to be processed is a building image, the object to be displayed may be a building, etc. This is only for illustration and no specific limitation is imposed.

[0069] As for the image background in the image to be processed, it must include preset image elements that can generate dynamic effects. The preset image elements may include at least one of the following: flowers, blue sky, white clouds, streams, silk, eyes, etc. In different application scenarios, the image background of the image to be processed may include different preset image elements. This is only for illustration without specific limitation.

[0070] In addition, this embodiment does not limit the specific method for obtaining the image to be processed. In some instances, the image to be processed can be stored in a preset device. In this case, obtaining the image to be processed can include: determining a preset device that is communicatively connected to the video generating device; and obtaining the image to be processed by actively or passively accessing the preset device.

[0071] In other instances, the image to be processed can be obtained not only by accessing a preset device, but also by performing a background replacement operation on the original image. In this case, obtaining the image to be processed may include: obtaining the original image, which includes an image foreground; determining an image background that matches the image foreground; and generating the image to be processed based on the image foreground and the image background.

[0072] Among them, in order to accurately obtain the image to be processed with an image background suitable for generating a dynamic effect video, the original image can be obtained first, and the original image includes an image foreground and an image background. Since the image background in the original image may not be suitable for generating dynamic effects relative to the image foreground, for example: the image background includes interference information corresponding to the image foreground, or the image background does not include preset image elements that can generate dynamic effects. At this time, in order to accurately obtain the image to be processed, an image background that is compatible with the image foreground can be determined. In some instances, the image background can be determined by analyzing and processing the image foreground based on preset rules or preset algorithms. At this time, determining the image background that is compatible with the image foreground can include: obtaining multiple candidate image backgrounds; determining the degree of fitness between each candidate image background and the image foreground using preset rules or preset algorithms; and determining the candidate image background with the highest degree of fitness as the image background that is compatible with the image foreground.

[0073] In other instances, the image background can be determined not only by analyzing and processing the image foreground through preset rules or preset algorithms, but also by human interactive operations. In this case, determining the image background that matches the image foreground may include: obtaining multiple alternative background templates for generating a target video; determining a target background template in response to a selection operation input by the user for any of the alternative background templates; and generating an image background that matches the image foreground based on the target background template.

[0074] Specifically, multiple alternative background templates for generating a target video are pre-configured, and different alternative background templates may correspond to different background generation styles. In order to generate an image background that matches the image foreground and meets the user's video generation needs, multiple alternative background templates for generating the target video may be obtained first, and the multiple alternative background templates may be displayed through a display interface. The user may input a selection operation for any alternative background template as required. In response to the selection operation input by the user for any alternative background template, a target background template for generating the target video may be determined, and then an image background matching the image foreground may be generated based on the target background template, thereby effectively ensuring the accuracy and reliability of the image background generation.

[0075] Step S202: Determine foreground information of the image foreground and static prompt information of the image to be processed.

[0076] In order to accurately generate a target video with dynamic effects based on the image to be processed and ensure the fidelity of the image foreground in the target video, after obtaining the image to be processed, the image foreground of the image to be processed can also be analyzed and processed to determine the foreground information of the image foreground, and the foreground information can include at least one of the following: edge detection information and mask information; at this time, determining the foreground information of the image foreground can include: performing edge detection on the image foreground to obtain edge detection information of the image foreground; and / or determining the object to be displayed included in the image foreground, and obtaining the mask information of the object to be displayed.

[0077] Specifically, when the foreground information includes edge detection information, after the image to be processed is obtained, an edge detection operation can be performed on the image foreground of the image to be processed, and edge detection information of the image foreground can be obtained. The edge detection information is used to identify relevant information around the foreground image.

[0078] When the foreground information includes mask information of the object to be displayed, after the image to be processed is obtained, the object to be displayed included in the foreground of the image can be determined, and then a mask detection operation can be performed on the object to be displayed, so as to obtain the mask information of the object to be displayed, and the mask information is used to identify the object to be displayed. For example, when the object to be displayed is a commodity, the mask information of the commodity is used to identify the position of the commodity in the image, so that when a video is generated based on the foreground information in the image to be processed, the specific position of the commodity in the video frame can be determined, which is conducive to ensuring the rationality of video generation and the effect of commodity display.

[0079] In addition, in order to ensure the rationality and smoothness of the dynamic effects generated in the target video, in addition to determining the static prompt information of the image to be processed, after obtaining the image to be processed, it is necessary not only to determine the foreground information of the image foreground, but also to determine the static prompt information of the image to be processed. The static prompt information can be static information used to describe the image to be processed, which may include: foreground description information for describing the image foreground, background description information for describing the image background, and so on.

[0080] In some instances, static prompt information can be obtained through human interactive operations. In this case, determining the static prompt information of the image to be processed may include: displaying an information configuration page of the image to be processed; obtaining the information configuration operation entered by the user in the information configuration page; and obtaining the static prompt information of the image to be processed based on the information configuration operation.

[0081] In some other instances, static prompt information can be obtained not only through human interaction, but also through analyzing and processing the image to be processed by a pre-trained machine learning model. At this time, determining the static prompt information of the image to be processed can include: obtaining a machine learning model for visual analysis of the image to be processed; using the machine learning model to analyze and process the image to be processed to obtain the static prompt information of the image to be processed, which effectively ensures the flexibility and reliability of determining the static prompt information.

[0082] Step S203: input the static prompt information and the image to be processed into a multimodal large language model for expansion operation to obtain dynamic prompt information, wherein the multimodal large language model is trained based on multimodal samples.

[0083] Since the static prompt information can only statically describe the image content in the image to be processed, it cannot reflect or identify the dynamic effect of the target video generated based on the image to be processed. In order to ensure the rationality and smoothness of the dynamic effect in the target video, after obtaining the static prompt information, the static prompt information can be expanded to obtain the dynamic prompt information corresponding to the static prompt information.

[0084] Specifically, a multimodal large language model for implementing information expansion operations is pre-configured. The multimodal large language model can be trained based on multimodal samples. After obtaining the static prompt information, the static prompt information and the image to be processed can be input into the multimodal large language model for expansion operations, so that the dynamic prompt information output by the multimodal large language model can be obtained.

[0085] For example, when the static prompt information corresponding to the image to be processed is "clouds", after the expansion operation is performed through the multimodal large language model, the obtained dynamic prompt information may be "floating clouds"; when the static prompt information corresponding to the image to be processed is "creek", after the expansion operation is performed through the multimodal large language model, the obtained dynamic prompt information may be "flowing stream", and so on.

[0086] It should be noted that for the multimodal large language model, it can correspond to a task description template for implementing the extended task. After obtaining the image to be processed and the static prompt information, the corresponding position of the task description template can be updated based on the image to be processed and the static prompt information to obtain the rewritten task description information. For example: the task description template is: "You are a designer. Your task is to generate a picture animation video based on the input "picture" and "text description". The "text description" needs to reasonably describe the elements and actions in the animation video. Please expand the input "text description" according to this task description to meet the task requirements; the generated "animation prompt information" must be fluent in language and within 100 words."

[0087] After obtaining the rewritten task description information, the rewritten task description information can be input into the multimodal large language model. The multimodal large language model will update the static prompt information based on the input image to be processed to make it have more dynamic elements and realize the extended operation of the prompt information, so as to obtain the dynamic effect prompt information. Then, the dynamic effect prompt information can be used to generate a target video with dynamic effects. Compared with the dynamic effects included in the target video generated by using pure static prompt information, the dynamic effects in the target video generated by using the dynamic effect prompt information are more smooth and the movements are more reasonable.

[0088] Step S204: Based on the image to be processed, the foreground information and the motion effect prompt information, a target video corresponding to the image to be processed is generated.

[0089] After obtaining the image to be processed, foreground information and motion effect prompt information, the image to be processed, foreground information and motion effect prompt information can be analyzed and processed to generate a target video corresponding to the image to be processed. In some instances, the target video can be obtained by analyzing and processing the image to be processed, foreground information and motion effect prompt information based on a pre-trained diffusion model. At this time, based on the image to be processed, foreground information and motion effect prompt information, generating a target video corresponding to the image to be processed can include: encoding the image to be processed to obtain image coding features of the image to be processed; encoding the foreground information to obtain foreground coding features of the foreground information; inputting the image coding features, foreground coding features and motion effect prompt information into a video generation model to generate a target video, wherein the video generation model is obtained based on video sample training.

[0090] Among them, the pre-trained diffusion model may include: an encoder, a conditional network model and a video generation model. After the diffusion model obtains the image to be processed, the encoder can be used to encode the image to be processed to obtain the image coding features of the image to be processed. Similarly, after obtaining the foreground information, the conditional network model can be used to encode the foreground information to obtain the foreground coding features of the foreground information. Then, the image coding features, foreground coding features and motion effect prompt information can be input into the video generation model, so as to obtain the target video output by the video generation model, thereby effectively ensuring the accuracy and reliability of determining the target video.

[0091] The video generation method provided in the present embodiment obtains the image to be processed, determines the foreground information of the image foreground and the static prompt information of the image to be processed, and then can perform an expansion operation on the static prompt information based on the image to be processed to obtain the dynamic prompt information, and perform a video generation operation based on the image to be processed, the foreground information and the dynamic prompt information to generate a target video corresponding to the image to be processed. This effectively realizes the ability to quickly and automatically generate the target video, thereby reducing the cost and technical threshold of video production. At the same time, the method can realize the batch generation operation of dynamic effect videos, thereby solving the problem of low video generation efficiency. In addition, compared with the effect of the target video generated based on the static prompt information, the dynamic effect generated in the target video generated based on the dynamic prompt information is more fluid and reasonable, thereby effectively ensuring the quality and effect of video generation, and further improving the practicality of the method.

[0092] Figure 3 FIG. 1 is a flow chart of inputting image coding features, foreground coding features and motion effect prompt information into a video generation model to generate a target video according to an embodiment of the present invention; based on the above embodiment, referring to FIG. Figure 3 As shown, for the target video, it can not only be generated by directly analyzing and processing the image coding features, foreground coding features and motion effect prompt information using the video generation model, but also can be generated by combining the sampled video noise used to identify the duration of the target video. At this time, the image coding features, foreground coding features and motion effect prompt information are input into the video generation model, and the generation of the target video may include:

[0093] Step S301: obtaining sampled video noise for identifying the duration of a target video, wherein the sampled video noise includes a plurality of video frames to be denoised.

[0094] In order to accurately ensure the stability and reliability of target video generation, sampled video noise can be obtained to identify the duration of the target video. The specific method of obtaining the sampled video noise is similar to the specific method of obtaining the image to be processed. Please refer to the above statements for details, which will not be repeated here.

[0095] The obtained sampled video noise may be noise information satisfying Gaussian distribution, and the obtained sampled video noise may include multiple video frames to be denoised for identifying the duration of the target video. For example, when the sampled video noise includes 16 video frames to be denoised, the generated target video also includes 16 video frames; when the sampled video noise includes 24 video frames to be denoised, the generated target video also includes 24 video frames; when the sampled video noise includes 32 video frames to be denoised, the generated target video also includes 32 video frames.

[0096] Step S302: Determine video frame features corresponding to each of a plurality of video frames to be denoised.

[0097] After a plurality of video frames to be denoised are acquired, encoding processing may be performed on each of the video frames to be denoised to determine video frame features corresponding to each of the plurality of video frames to be denoised.

[0098] Step S303: Based on the foreground information and the motion effect prompt information, guide the video generation model to fuse the image coding features with the features of each video frame to obtain multiple denoised video frames.

[0099] After obtaining the foreground information and the motion effect prompt information, the video generation model can be guided to fuse the image coding features with the features of each video frame based on the foreground information and the motion effect prompt information, so as to obtain multiple denoised video frames. In some instances, the foreground information and the motion effect prompt information can be used as guiding information to fuse the image coding features with the features of each video frame. Specifically, the video generation model can fuse the image coding features with the features of each video frame using the foreground information and the motion effect prompt information as guiding information, so as to obtain multiple denoised video frames output by the video generation model.

[0100] In other instances, not only can the foreground information and the motion effect prompt information be used as guiding information to fuse the image coding features with the features of each video frame, but the noise intensity can also be combined to achieve the fusion operation of the image coding features with the features of each video frame. At this time, based on the foreground information and the motion effect prompt information, guiding the video generation model to fuse the image coding features with the features of each video frame to obtain multiple denoised video frames may include: obtaining the noise intensity for performing multiple denoising processes on each video frame to be denoised; determining a first weight of the image to be processed and a second weight of each video frame to be denoised based on the noise intensity; based on the foreground information, the motion effect prompt information, the first weight and the second weight, guiding the video generation model to perform weighted fusion of the image coding features with the features of each video frame to obtain multiple denoised video frames.

[0101] Specifically, in order to accurately fuse the image coding features with the features of each video frame, the noise intensity used for performing multiple denoising processes on each video frame to be denoised can be obtained first. , noise intensity For in time The noise intensity of the step, The value of is 0-1000. In actual use, The value of can be 800, at which time the image can be denoised by t=800 steps, so that each denoised video frame contains the relevant information of the given image to be processed. The method of obtaining the noise intensity is similar to the method of obtaining the image to be processed, and the details can be referred to the above statement, which will not be repeated here.

[0102] After obtaining the noise intensity for performing multiple denoising processes on each video frame to be denoised, the noise intensity can be analyzed to determine a first weight of the image to be processed and a second weight of each video frame to be denoised, wherein the first weight is positively correlated with the noise intensity and the second weight is negatively correlated with the noise intensity. When , the first weight of the image to be processed can be , the second weight of each video frame to be denoised can be , which effectively ensures the accuracy and reliability of determining the first weight and the second weight.

[0103] After obtaining the first weight of the image to be processed and the second weight of each video frame to be denoised Afterwards, based on the foreground information, the motion effect prompt information, the first weight, and the second weight, the video generation model can be guided to perform weighted fusion of the image coding features and the features of each video frame, so that a plurality of denoised video frames can be stably obtained. Specifically, a plurality of denoised video frames can be obtained by the following formula:

[0104] ;

[0105] in, That is, the image encoding feature (or latent variable) of the image to be processed. For in time The noise intensity of the step, This is the denoised video frame after the “pad image”. The video frame features of each video frame to be denoised may be specifically implemented as Gaussian noise. After the above fusion operation, the generated denoised video frame may be closer to the image to be processed.

[0106] Step S304: Generate a target video based on the multiple denoised video frames.

[0107] After obtaining multiple denoised video frames, the multiple denoised video frames can be analyzed and processed, and specifically, the multiple denoised video frames can be decoded, so that a target video with a dynamic effect can be generated, which effectively ensures the accuracy and reliability of the generation of the target video.

[0108] In this embodiment, by obtaining sampled video noise for identifying the duration of the target video, the video frame features corresponding to each of the multiple video frames to be denoised are determined, and then the video generation model is guided to fuse the image coding features with the features of each video frame based on the foreground information and the motion effect prompt information to obtain multiple denoised video frames, and the target video is generated based on the multiple denoised video frames. This effectively ensures the quality and effect of generating the target video, and further improves the practicability of the method.

[0109] Figure 4 A schematic diagram of a process for generating a target video corresponding to an image to be processed based on the image to be processed, foreground information and motion effect prompt information provided in an embodiment of the present invention; on the basis of the above embodiment, refer to the attached Figure 4 As shown, the target video can be generated not only by the video generation model, but also by directly analyzing and processing the image to be processed, the foreground information and the motion effect prompt information. At this time, in this embodiment, generating a target video corresponding to the image to be processed based on the image to be processed, the foreground information and the motion effect prompt information may include:

[0110] Step S401: obtaining sampled video noise for identifying the duration of a target video, wherein the sampled video noise includes a plurality of video frames to be denoised.

[0111] Step S402: Determine a first weight of the image to be processed and a second weight of each video frame to be denoised.

[0112] Among them, determining the first weight of the image to be processed and the second weight of each video frame to be denoised may include: determining the noise intensity used for performing multiple denoising processes on each video frame to be denoised; determining the first weight of the image to be processed and the second weight of each video frame to be denoised based on the noise intensity, the first weight is positively correlated with the noise intensity, and the second weight is negatively correlated with the noise intensity.

[0113] Specifically, the specific implementation method of step S401-step S402 in this embodiment is similar to the method of obtaining the "sampled video noise" in step S303 in the above embodiment and the specific determination method of the "first weight of the image to be processed and the second weight of each video frame to be denoised". Please refer to the above statements for details and will not be repeated here.

[0114] Step S403: Based on the foreground information, the motion effect prompt information, the first weight and the second weight, the image to be processed and each video frame to be denoised are fused to obtain a plurality of denoised video frames.

[0115] For example, when the noise intensity is When , the first weight of the image to be processed can be , the second weight of each video frame to be denoised can be , after obtaining the first weight of the image to be processed and the second weight of each video frame to be denoised Afterwards, based on the foreground information, the motion effect prompt information, the first weight, and the second weight, the video generation model can be guided to perform weighted fusion of the image coding features and the features of each video frame, so that a plurality of denoised video frames can be stably obtained. Specifically, a plurality of denoised video frames can be obtained by the following formula:

[0116] ;

[0117] in, It can encode features (or latent variables) for the image to be processed. For in time The noise intensity of the step, This is the denoised video frame after the “pad image”. The value of is 0-1000. In actual use, the image is denoised with t=800 steps of noise. The video frame features of each video frame to be denoised can be specifically implemented as Gaussian noise. After the above operation, each frame of the video noise can include the information of the image to be processed, so that the generated denoised video frame is closer to the image to be processed.

[0118] Step S404: Generate a target video based on the multiple denoised video frames.

[0119] In this embodiment, by obtaining the sampled video noise for identifying the duration of the target video, the first weight of the image to be processed and the second weight of each video frame to be denoised are determined, and then the image to be processed and each video frame to be denoised are fused based on the foreground information, the motion effect prompt information, the first weight and the second weight to obtain a plurality of denoised video frames, and the target video is generated based on the plurality of denoised video frames. This effectively realizes the video fusion operation using a preset algorithm, which not only ensures the quality and effect of the target video generation, but also further improves the flexibility and reliability of the method.

[0120] Figure 5 A flowchart of another video generation method provided by an embodiment of the present invention; based on any of the above embodiments, refer to the attached Figure 5 As shown, after obtaining multiple denoised video frames, in order to ensure the quality and effect of target video generation, noise correction may be performed on the denoised video frames. At this time, the method in this embodiment may further include:

[0121] Step S501: obtaining predicted image noises corresponding to a plurality of denoised video frames.

[0122] Since a noise fusion operation is required in the process of generating a target video based on the image to be processed, and since there will be prediction deviations in the image noise predicted during the noise fusion operation, the errors will reduce the fidelity of the target video. In order to alleviate the impact of the prediction deviation on the target video, after obtaining multiple denoised video frames, noise prediction can be performed on each denoised video frame to obtain the predicted image noise corresponding to each of the multiple denoised videos; in some instances, the noise prediction operation can be obtained by analyzing and processing multiple denoised video frames using a preset detection algorithm or video generation model. Those skilled in the art can flexibly select the specific implementation method of noise prediction according to the application scenario, which will not be described in detail here.

[0123] Step S502: Based on the image to be processed and the predicted image noises corresponding to the multiple denoised video frames, respectively, determine the noise prediction deviations corresponding to the multiple denoised video frames.

[0124] After obtaining the predicted image noise corresponding to each of the multiple denoised video frames, the image to be processed and the predicted image noise corresponding to each of the multiple denoised video frames may be analyzed and processed to determine the noise prediction deviations corresponding to each of the multiple denoised video frames.

[0125] In some instances, the noise prediction deviation can be determined by a pre-trained machine learning model. In this case, based on the predicted image noise corresponding to the image to be processed and the multiple denoised video frames, determining the noise prediction deviation corresponding to each of the multiple denoised video frames can include: obtaining a pre-trained machine learning model, inputting the predicted image noise corresponding to the image to be processed and the multiple denoised videos into the machine learning model, and then obtaining the noise prediction deviation output by the machine learning model.

[0126] In some other instances, the actual image noise of the image to be processed can be obtained by detection, and the multiple denoised video frames include the denoised video frame corresponding to the image to be processed. Therefore, the noise prediction deviations corresponding to each of the multiple denoised video frames can be determined in combination with the actual image noise of the image to be processed. At this time, based on the image to be processed and the predicted image noise corresponding to each of the multiple denoised video frames, determining the noise prediction deviations corresponding to each of the multiple denoised video frames can include: obtaining the actual image noise of the image to be processed; determining the first video frame corresponding to the image to be processed among the multiple denoised video frames; and determining the noise prediction deviations corresponding to each of the multiple denoised video frames based on the actual image noise and the predicted image noise of the first video frame.

[0127] Specifically, after acquiring the image to be processed, the image to be processed can be analyzed and processed using a preset noise detection algorithm to obtain the actual image noise of the image to be processed, and then the first video frame corresponding to the image to be processed can be determined from multiple denoised video frames, and then the actual image noise and the predicted image noise of the first video frame can be analyzed and processed to determine the noise prediction deviations corresponding to each of the multiple denoised video frames.

[0128] In some instances, determining the noise prediction deviation corresponding to each of the multiple denoised video frames based on the actual image noise and the predicted image noise of the first video frame may include: determining the noise difference between the actual image noise and the predicted image noise (actual image noise - predicted image noise, or predicted image noise - actual image noise) as the noise prediction deviation of the first video frame; and then determining the noise prediction deviation corresponding to each of the multiple denoised video frames based on the noise prediction deviation of the first video frame.

[0129] In some examples, for multiple denoised video frames, when the noise prediction deviations of each denoised video frame are the same, the noise prediction deviation of the first video frame can be directly determined as the noise prediction deviation corresponding to each of the multiple denoised video frames. When the noise prediction deviations of each denoised video frame in the multiple denoised video frames are different, the noise prediction deviation of the first video frame can be analyzed and processed to determine the noise prediction deviation corresponding to each of the multiple denoised video frames. For the convenience of expression and understanding, the multiple denoised video frames at this time may include multiple second video frames located after the first video frame; based on the actual image noise and the predicted image noise of the first video frame, determining the noise prediction deviation corresponding to each of the multiple denoised video frames may include: determining the first noise prediction deviation based on the actual image noise and the predicted image noise of the first video frame; determining the correction coefficient corresponding to each of the multiple denoised video frames; based on the correction coefficient and the first noise prediction deviation, determining the second noise prediction deviation corresponding to each of the multiple second video frames.

[0130] For multiple denoised video frames, since the next denoised video frame needs to be obtained by iterative processing based on the analysis and processing results of the previous denoised video frame, at this time, if the previous denoised video frame has a certain noise prediction deviation, then the noise prediction deviation corresponding to the next denoised video frame will be superimposed on the noise prediction deviation of the previous denoised video frame. Therefore, it can be seen that multiple denoised video frames often correspond to different noise prediction deviations. In order to accurately obtain the noise prediction deviations corresponding to each of the multiple denoised video frames, the actual image noise and the predicted image noise of the first video frame can be processed first to obtain a first noise prediction deviation, which can be actual image noise-predicted image noise, or the first noise prediction deviation can be predicted image noise-actual image noise.

[0131] In addition, since different second video frames may correspond to different degrees of correction, in order to accurately determine the second noise prediction deviations corresponding to each of the multiple second video frames, the correction coefficients corresponding to each of the multiple denoised video frames may be determined. In some instances, the correction coefficients may be obtained through human-computer interaction, or the correction coefficients may be stored in a preset area. In this case, the correction coefficients corresponding to each of the multiple denoised video frames may be obtained by accessing the preset area.

[0132] In other instances, the correction coefficients corresponding to each of the multiple denoised video frames can be determined based on the frame distance between the first video frame and the second video frame. In this case, determining the correction coefficients corresponding to each of the multiple denoised video frames can include: obtaining the frame distances between the multiple second video frames and the first video frame; and determining the correction coefficients corresponding to each of the multiple denoised video frames based on the frame distances, wherein the correction coefficients of the second video frames are positively correlated with the frame distance.

[0133] Specifically, since different denoised video frames correspond to different correction coefficients, and the correction coefficient is related to the frame distance between the first video frame and the second video frame, in order to accurately determine the correction coefficients of multiple denoised video frames, the frame distances between the multiple second video frames and the first video frame can be obtained first. For example, the multiple denoised video frames include video frame 1, video frame 2, video frame 3, video frame 4, and video frame 5, the above-mentioned video frame 1 is the first video frame, and the above-mentioned video frame 2, video frame 3, video frame 4, and video frame 5 are multiple second video frames. Then, based on the temporal relationship between the multiple denoised video frames, the frame distances between the multiple second video frames and the first video frame can be determined, including: frame distance 1 (video frame 2-video frame 1=1), frame distance 2 (video frame 3-video frame 1=2), frame distance 3 (video frame 4-video frame 1=3), and frame distance 4 (video frame 5-video frame 1=4).

[0134] After obtaining the frame distance, the frame distance between each second video frame and the first video frame can be analyzed and processed to determine the correction coefficients corresponding to each of the multiple denoised video frames. In some instances, the first video frame is a denoised video frame corresponding to the image to be processed among the multiple denoised video frames, and the actual image noise of the image to be processed can be detected and obtained. Therefore, the noise prediction deviation corresponding to the obtained first video frame can be directly obtained without any correction, and the correction coefficients of other second video frames are positively correlated with the frame distance, that is, the greater the frame distance between the second video frame and the first video frame, the greater the correction coefficient corresponding to the second video frame. In this way, after the noise of the second video frame is corrected by the correction coefficient, the multiple second video frames can be made as similar or close to the first video frame as possible, which is beneficial to ensure the fidelity and smoothness of the target video.

[0135] For example 1, different correction methods correspond to different correction coefficients. When the correction method is a product correction method (i.e., correction amount = correction coefficient * noise prediction deviation), the obtained correction coefficient can be a value greater than or equal to 1. At this time, the correction coefficient corresponding to the first video frame is 1, and the correction coefficient corresponding to the second video frame is greater than 1, and is positively correlated with the frame distance. For example: after multiple denoising video frames include video frame 1, video frame 2, video frame 3, video frame 4, and video frame 5, the above-mentioned video frame 1 is the first video frame, and the above-mentioned video frame 2, video frame 3, video frame 4, and video frame 5 are multiple second video frames. The correction coefficient corresponding to video frame 1 is 1, the correction coefficient corresponding to video frame 2 can be 1.11, the correction coefficient corresponding to video frame 3 can be 1.13, the correction coefficient corresponding to video frame 4 can be 1.16, and the correction coefficient corresponding to video frame 5 can be 1.19, and so on.

[0136] Example 2: When the correction method is an additive correction method (i.e., correction amount = correction coefficient + noise prediction deviation), the correction coefficient obtained can be a value greater than or equal to 0. At this time, the correction coefficient corresponding to the first video frame is 0, and the correction coefficient corresponding to the second video frame is greater than 0, and is positively correlated with the frame distance. For example: after multiple denoising video frames include video frame 1, video frame 2, video frame 3, video frame 4, and video frame 5, the above-mentioned video frame 1 is the first video frame, and the above-mentioned video frame 2, video frame 3, video frame 4, and video frame 5 are multiple second video frames. The correction coefficient corresponding to video frame 1 is 0, the correction coefficient corresponding to video frame 2 can be 0.11, the correction coefficient corresponding to video frame 3 can be 0.13, the correction coefficient corresponding to video frame 4 can be 0.16, and the correction coefficient corresponding to video frame 5 can be 0.19, and so on.

[0137] Example 3, when the correction method is a correction method of a mixture of addition and multiplication (i.e., correction amount = noise prediction deviation + correction coefficient * noise prediction deviation), the obtained correction coefficient can be a value greater than or equal to 0 and less than or equal to 1. At this time, the correction coefficient corresponding to the first video frame is 0, and the correction coefficient corresponding to the second video frame is greater than 0 and less than or equal to 1, and is positively correlated with the frame distance. For example: when multiple denoised video frames include video frame 1, video frame 2, video frame 3, video frame 4, and video frame 5, the above-mentioned video frame 1 is the first video frame, and the above-mentioned video frame 2, video frame 3, video frame 4, and video frame 5 are multiple second video frames, the correction coefficient corresponding to video frame 1 is 0, the correction coefficient corresponding to video frame 2 can be 0.31, the correction coefficient corresponding to video frame 3 can be 0.41, the correction coefficient corresponding to video frame 4 can be 0.52, the correction coefficient corresponding to video frame 5 can be 0.63, and so on.

[0138] Through the above method, the correction coefficients corresponding to each of the multiple denoised video frames can be obtained flexibly and stably; after obtaining the first noise prediction deviation and the correction coefficients corresponding to each of the multiple denoised video frames, the correction coefficient and the first noise prediction deviation can be analyzed and processed to determine the second noise prediction deviation corresponding to each of the multiple denoised video frames. In some instances, the second noise prediction deviation can be the correction coefficient*noise prediction deviation, or the second noise prediction deviation can be the correction coefficient+noise prediction deviation, or the second noise prediction deviation can be the noise prediction deviation+noise prediction deviation*correction coefficient.

[0139] Step S503: correcting the predicted image noise corresponding to each of the plurality of denoised video frames based on the noise prediction deviation to obtain a plurality of corrected video frames.

[0140] After obtaining the noise prediction deviation (including the first noise prediction deviation and multiple second noise prediction deviations), the predicted image noise corresponding to each of the multiple denoised video frames can be corrected based on the noise prediction deviation. In some instances, the sum of the noise prediction deviation and the predicted image noise corresponding to each of the multiple denoised video frames can be determined as multiple corrected video frames, thereby obtaining multiple corrected video frames that have undergone noise correction operations, and then generating a target video based on the multiple corrected video frames, thereby ensuring the fidelity and smoothness of the target video.

[0141] It should be noted that during the noise correction process, users can flexibly adjust and configure the correction coefficients of multiple denoised video frames. This allows for regulation and trade-offs between motion and fidelity for the target video, further ensuring that the generated target video can meet the user's flexibility needs.

[0142] In this embodiment, the predicted image noise corresponding to each of the multiple denoised video frames is obtained, and then the noise prediction deviation corresponding to each of the multiple denoised video frames is determined based on the image to be processed and the predicted image noise corresponding to each of the multiple denoised video frames, and the predicted image noise corresponding to each of the multiple denoised video frames is corrected based on the noise prediction deviation to obtain multiple corrected video frames, thereby effectively implementing the noise correction operation on the multiple denoised video frames. In this way, when a target video is generated based on the multiple corrected video frames, the fidelity and smoothness of the target video can be effectively guaranteed, and the stability and reliability of the method are further improved.

[0143] For specific applications, refer to the attached Figure 6 As shown, taking the commodity images in the e-commerce field as the images to be processed as an example, in response to the growing demand for video content on e-commerce platforms and the urgent demand for efficient video creative production by merchants in related technologies, this application embodiment provides an e-commerce dynamic video generation method based on a diffusion model. This method can automatically convert static commodity images into highly attractive short videos, significantly reducing the cost and technical threshold of merchants in video content production. Specifically, the execution subject of this method can be a video generation system, which can be embedded in an e-commerce platform. The video generation method implemented based on the video generation system may include:

[0144] Step 1: Get the product image to be processed.

[0145] Step 2: Replace the background of the product image to obtain an updated image.

[0146] After the product image is input into the video generation system, the video generation system can extract the image foreground of the input product image. Specifically, the foreground segmentation algorithm can be used to extract the precise image foreground, which includes the product to be displayed. Since the original image background of the product image may not be suitable for generating video information with dynamic effects, for example, the background information in the original image is often messy and contains more static elements (such as tables, chairs, static spaces, and other elements that cannot produce dynamic effects). In order to ensure that the generated target video has a more reasonable dynamic effect and smoothness, the background information in the product image can be extracted using the AIGC capability. Generate again. Specifically, a new background corresponding to the image foreground can be generated according to a preset background template or a preset algorithm. The generated new background is a new background that is more suitable for displaying dynamic effects in the video. The new background may include preset image elements that are easy to produce dynamic effects. The preset image elements may include at least one of the following: flowers, blue sky, white clouds, streams, silk, etc., thereby effectively realizing the background replacement operation of the product image, and then the product to be displayed can be placed in the above-mentioned new background to obtain an updated image including the new background, thereby ensuring that the product to be displayed is highlighted in the target video and removing redundant information that may interfere with the generation of dynamic effects.

[0147] Step 3: Determine the static prompt information of the updated image.

[0148] After acquiring the updated image, the updated image can be analyzed and processed by an image recognition model or a machine learning model to determine the static prompt information of the updated image. The static prompt information is used to describe the image content included in the updated image. Specifically, it may include description information of the image foreground, description information of the image background, etc. For example, the obtained static prompt information may include: tables and chairs, static spaces and other elements that cannot produce dynamic effects, etc., and the obtained static prompt information can be displayed in different font colors, font sizes, and font shadows.

[0149] Step 4: Expand the static prompt information to obtain the dynamic prompt information of the updated image.

[0150] In order to ensure that the generated video motion effects are reasonable and natural, the static prompt information of the updated image after background replacement can be expanded. Specifically, the static prompt information and the image to be processed can be input into the multimodal large language model for expansion operation to obtain motion effect prompt information, wherein the multimodal large language model is trained based on multimodal samples, so as to obtain motion effect prompt information that is more in line with the video content, thereby providing a more descriptive guidance for the creation of motion effect videos, which in turn helps to optimize the dynamic range and rationality of subsequently generated videos.

[0151] Step 5: Extract foreground information of the image foreground in the product image.

[0152] Among them, the foreground information may include: edge detection information and mask information. Since the original product image retains important visual information (especially product details), in order to ensure the fidelity of the product to be displayed in the generated video, the edge detection information and mask information of the image foreground can be extracted. Specifically, the canny edge detection information of the product foreground in the product image and the mask information of the product to be displayed can be extracted as a guiding signal for the subsequent generation of video motion effects, thereby improving the fidelity of the product generated by the motion effect and ensuring the authenticity of the product to be displayed in the generated motion effect video and the clarity of the details.

[0153] Step 6: Generate a target video corresponding to the product image based on the updated image, foreground information, and motion prompt information.

[0154] Among them, a diffusion model for realizing video generation operation is pre-trained, and the preprocessing results obtained in the above steps (including: updated image, foreground information and motion effect prompt information) can be used as input of the diffusion model, so that the diffusion model can generate a target video corresponding to the product image based on the updated image, foreground information and motion effect prompt information. The target video can be a motion effect short video with dynamic effects.

[0155] For details, please refer to the attached Figure 7 As shown, the diffusion model may include: an image coding sub-model, a conditional coding sub-model and a video generation sub-model (which may be implemented as a UNet model). First, the image content in the updated image may be encoded by the image coding sub-model to obtain image coding features; secondly, the foreground information (edge ​​detection information and mask information) may be encoded by the conditional coding sub-model to obtain foreground coding features; then, the image coding features, foreground coding features and motion effect prompt information may be input into a pre-trained video generation sub-model. The above-mentioned video generation sub-model is obtained by training with large-scale video data samples. It may generate multiple video frames according to the input image coding features, foreground coding features and motion effect prompt information. The multiple video frames may be video signals generated by several diffusion operations. After obtaining the multiple video frames, the multiple video frames may be decoded by a variational encoder (VAE), so as to generate a target video with dynamic effects corresponding to the product image.

[0156] Furthermore, in order to improve the fidelity of the generated target video, in the process of using the video generation sub-model to generate the target video, a "pad map + noise correction" generation strategy can be used to generate multiple video frames. Specifically, the sampled video noise used to identify the duration of the target video can be obtained first, and the sampled video noise includes multiple video frames to be denoised; determine the video frame features corresponding to each of the multiple video frames to be denoised; and then guide the video generation sub-model to fuse the image coding features with the features of each video frame based on the foreground information and the motion effect prompt information, so that the encoded image coding features can be "padded" into each sampled video noise (using the forward denoising process of the diffusion model, denoising T steps), and multiple denoised video frames are obtained. The image padding operation is realized through the above operation, which can ensure that the overall style and layout of the generated target video are consistent with the given product image.

[0157] For the obtained sampled video noise, it can identify the duration of the target video. For example, when the sampled video noise includes 16 frames, the generated target video can include 16 video frames; when the sampled video noise includes 32 frames, the generated target video can include 32 video frames. It should be noted that when the user wants to generate a final video of 32 frames, and the target video of 16 frames is generated by the above video generation operation, in order to meet the user's video requirements and ensure the smoothness of the target video, the video interpolation technology can be used to interpolate the above 16-frame target video to output a final video of 32 frames. This can not only meet the user's video generation needs, but also make the video playback smoother, which is conducive to ensuring the user's viewing experience.

[0158] In addition, considering that model training often has certain prediction errors, in the process of video generation, the model prediction noise used will always have deviations, and the existing deviations will reduce the fidelity of the generated target video. In order to alleviate the error accumulation of the model in the process of video generation, a "noise correction" operation can be performed on each denoised video frame. Specifically, the real noise of the updated image can be obtained first, and then the video generation sub-model can be used to perform noise estimation operations on multiple denoised video frames to obtain the predicted noise of multiple denoised video frames. The real noise of the updated image and the predicted noise of the first video frame corresponding to the updated image are used to obtain the noise prediction deviation corresponding to the updated image.

[0159] Then, multiple second video frames located after the first video frame and included in the multiple denoised video frames are determined, and frame distances between the multiple second video frames and the first video frame are obtained. Correction coefficients corresponding to each of the multiple second video frames are determined based on the frame distances, wherein the correction coefficients of the second video frames are positively correlated with the frame distances. Then, second noise prediction deviations corresponding to each of the multiple second video frames are determined based on the correction coefficients and the first noise prediction deviations. Then, noise correction can be performed on the multiple second video frames based on the second noise prediction deviations. This not only eliminates the noise error of the first video frame in the target video, making the first video frame in the target video fully fidelity, but also the remaining second video frames will be consistent with the first video frame in terms of timing content, further ensuring the smoothness and fidelity of the target video generation.

[0160] It should be noted that during the noise correction process, the user can flexibly adjust the correction coefficients corresponding to multiple second video frames according to the needs of the application scenario or design requirements. This allows the user to regulate and balance the dynamic effect and fidelity of the target video, further improving the flexibility and reliability of the method.

[0161] The technical solution provided by this application embodiment can intelligently and efficiently automatically convert product images into highly attractive, high-quality dynamic effect videos. Experiments have shown that this solution can provide merchants with a simple, low-cost and high-quality video content generation method, which is expected to create significant commercial value in the e-commerce field. Specifically, this solution can achieve the following effects:

[0162] (1) The diffusion model is selected as the baseline model for video generation. It can be applied to any image in a natural open domain. Based on understanding the background content of the product image and extracting a variety of control information, it can ensure the generation of smooth and natural e-commerce dynamic effect videos, which not only helps Baoheng to have a better visual experience for consumers, but also helps to enhance the market competitiveness of products.

[0163] (2) The product content (foreground information) in the product image is extracted, which may include canny edge detection images, product masks and other information. In the process of guiding the diffusion model to generate video through the conditional control network, the product foreground information can be kept unchanged, and only the image background is animated, thereby achieving precise control of the dynamic effects in the generated target video, that is, the area control and product retention can be well achieved, thus ensuring the retention and enhancement of the visual focus of the product; in addition, in the process of using foreground information to guide the diffusion model to generate video, the integrity of the product foreground content in the video generation process is guaranteed, and at the same time, a dynamic effect coordinated with the image background is generated.

[0164] (3) The “timing module” introduced into the video generation sub-model enables the video generation model to generate dynamic effects and maintain the timing consistency between frames. In addition, the system has the ability to batch and automate, which significantly reduces the time and cost investment in video production and improves the efficiency of video generation. At the same time, relying on the pre-trained large-scale video generation model, it customizes fascinating video content for different product types and marketing scenarios, thereby enhancing the attractiveness and conversion rate of the target video.

[0165] (4) The “pad image + noise correction” design strategy is introduced to increase the supervision information of the image and alleviate the error accumulation problem caused by the model in the denoising process, thereby effectively improving the fidelity of video generation. In addition, this scheme does not require additional training. Based on the existing video animation module and combined with a specific reasoning strategy, it can generate videos from images, further improving the scope of application and flexibility of this method.

[0166] In general, this method not only greatly reduces the time and cost required for video production, but also ensures the quality and attractiveness of the video content. When this method is used to generate videos for product images, it will promote changes in the way product videos are produced on e-commerce platforms, thereby effectively providing merchants with a new, efficient and cost-saving means of product promotion, further improving the practicality of the solution.

[0167] Figure 8 A schematic diagram of the structure of a video generation device provided by an embodiment of the present invention; Figure 8 As shown, this embodiment provides a video generation device, which is used to perform the above Figure 2 The video generation method shown, the video generation device may include:

[0168] A first acquisition module 11 is used to acquire an image to be processed, wherein the image to be processed includes an image foreground and an image background, and the image background includes preset image elements that can generate dynamic effects;

[0169] A first determination module 12, used to determine foreground information of the image foreground and static prompt information of the image background;

[0170] The first expansion module 13 is used to input the static prompt information and the image to be processed into the multimodal large language model for expansion operation to obtain dynamic prompt information, wherein the multimodal large language model is obtained by training based on multimodal samples;

[0171] The first processing module 14 is used to generate a target video corresponding to the image to be processed based on the image to be processed, foreground information and motion effect prompt information.

[0172] In some examples, when the first acquisition module 11 acquires the image to be processed, the first acquisition module 11 is used to: acquire the original image, which includes an image foreground; determine an image background that matches the image foreground; and generate the image to be processed based on the image foreground and the image background.

[0173] In some instances, the first acquisition module 11 determines an image background that matches the image foreground. In some instances, the first acquisition module 11 acquires multiple alternative background templates for generating a target video; in response to a selection operation input by the user for any of the alternative background templates, determines a target background template; and based on the target background template, generates an image background that matches the image foreground.

[0174] In some instances, the foreground information includes at least one of the following: edge detection information and mask information; when the first determination module 12 determines the foreground information of the image foreground, the first determination module 12 is used to: perform edge detection on the image foreground to obtain edge detection information of the image foreground; and / or determine the objects to be displayed included in the image foreground and obtain mask information of the objects to be displayed.

[0175] In some instances, when the first processing module 14 generates a target video corresponding to the image to be processed based on the image to be processed, foreground information and motion prompt information, the first processing module 14 is used to: encode the image to be processed to obtain image coding features of the image to be processed; encode the foreground information to obtain foreground coding features of the foreground information; input the image coding features, foreground coding features and motion prompt information into a video generation model to generate a target video, wherein the video generation model is obtained based on video sample training.

[0176] In some instances, when the first processing module 14 inputs the image coding features, foreground coding features, and motion effect prompt information into the video generation model to generate a target video, the first processing module 14 is used to: obtain sampled video noise for identifying the duration of the target video, the sampled video noise including multiple video frames to be denoised; determine the video frame features corresponding to each of the multiple video frames to be denoised; based on the foreground information and the motion effect prompt information, guide the video generation model to fuse the image coding features with each video frame feature to obtain multiple denoised video frames; and generate the target video based on the multiple denoised video frames.

[0177] In some instances, when the first processing module 14 guides the video generation model to fuse the image coding features and the features of each video frame based on the foreground information and the motion effect prompt information to obtain multiple denoised video frames, the first processing module 14 is used to: obtain the noise intensity for performing multiple denoising processes on each video frame to be denoised; determine the first weight of the image to be processed and the second weight of each video frame to be denoised based on the noise intensity; and guide the video generation model to perform weighted fusion of the image coding features and the features of each video frame based on the foreground information, the motion effect prompt information, the first weight and the second weight to obtain multiple denoised video frames.

[0178] In some instances, when the first processing module 14 generates a target video corresponding to the image to be processed based on the image to be processed, foreground information and motion effect prompt information, the first processing module 14 is used to: obtain sampled video noise for identifying the duration of the target video, the sampled video noise including multiple video frames to be denoised; determine a first weight of the image to be processed and a second weight of each video frame to be denoised; fuse the image to be processed with each video frame to be denoised based on the foreground information, the motion effect prompt information, the first weight and the second weight to obtain multiple denoised video frames; and generate a target video based on the multiple denoised video frames.

[0179] In some instances, when the first processing module 14 determines the first weight of the image to be processed and the second weight of each video frame to be denoised, the first processing module 14 is used to: determine the noise intensity for performing multiple denoising processes on each video frame to be denoised; determine the first weight of the image to be processed and the second weight of each video frame to be denoised based on the noise intensity, the first weight is positively correlated with the noise intensity, and the second weight is negatively correlated with the noise intensity.

[0180] In some examples, after obtaining a plurality of denoised video frames, the first acquisition module 11 and the first processing module 14 in this embodiment are used to perform the following steps:

[0181] A first acquisition module 11 is used to acquire predicted image noises corresponding to each of a plurality of denoised video frames;

[0182] A first determination module 12 is used to determine the noise prediction deviation corresponding to each of the plurality of denoised video frames based on the image to be processed and the predicted image noise corresponding to each of the plurality of denoised video frames;

[0183] The first processing module 14 is used to correct the predicted image noise corresponding to each of the plurality of denoised video frames based on the noise prediction deviation to obtain a plurality of corrected video frames.

[0184] In some instances, when the first determination module 12 determines the noise prediction deviation corresponding to each of the multiple denoised video frames based on the image to be processed and the predicted image noise corresponding to each of the multiple denoised video frames, the first determination module 12 is used to perform: obtaining the actual image noise of the image to be processed; determining, among the multiple denoised video frames, the first video frame corresponding to the image to be processed; and determining the noise prediction deviation corresponding to each of the multiple denoised video frames based on the actual image noise and the predicted image noise of the first video frame.

[0185] In some instances, the multiple denoised video frames include multiple second video frames located after the first video frame; when the first determination module 12 determines the noise prediction deviations corresponding to each of the multiple denoised video frames based on the actual image noise and the predicted image noise of the first video frame, the first determination module 12 is used to perform: determining the first noise prediction deviation based on the actual image noise and the predicted image noise of the first video frame; determining the correction coefficient corresponding to each of the multiple denoised video frames; and determining the second noise prediction deviation corresponding to each of the multiple second video frames based on the correction coefficient and the first noise prediction deviation.

[0186] In some instances, when the first determination module 12 determines the correction coefficients corresponding to each of the multiple denoised video frames, the first determination module 12 is used to perform: obtaining the frame distances between the multiple second video frames and the first video frame; based on the frame distances, determining the correction coefficients corresponding to each of the multiple denoised video frames, wherein the correction coefficients of the second video frames are positively correlated with the frame distance.

[0187] Figure 8 The device shown can perform Figure 1-Figure 7 For the method of the embodiment shown in the figure, the part not described in detail in this embodiment can be referred to Figure 1-Figure 7 The implementation process and technical effects of this technical solution refer to Figure 1-Figure 7 The description in the illustrated embodiment will not be repeated here.

[0188] In one possible design, Figure 8 The structure of the video generating device shown can be implemented as an electronic device, which can be a controller, a personal computer, a server, or other devices. Fig. 9 As shown, the electronic device may include: a first processor 21 and a first memory 22. The first memory 22 is used to store the corresponding electronic device to execute the above Figure 1-Figure 7 The program of the video generating method provided in the illustrated embodiment, the first processor 21 is configured to execute the program stored in the first memory 22 .

[0189] The program includes one or more computer instructions, wherein the one or more computer instructions can implement the following steps when executed by the first processor 21: obtaining an image to be processed, wherein the image to be processed includes an image foreground and an image background, wherein the image background includes preset image elements that can generate dynamic effects; determining foreground information of the image foreground, and static prompt information of the image to be processed; inputting the static prompt information and the image to be processed into a multimodal large language model for expansion operation to obtain dynamic prompt information, wherein the multimodal large language model is obtained by training based on multimodal samples; generating a target video corresponding to the image to be processed based on the image to be processed, the foreground information and the dynamic prompt information.

[0190] Furthermore, the first processor 21 is also used to execute the aforementioned Figure 1-Figure 7 All or part of the steps in the illustrated embodiments.

[0191] The structure of the electronic device may further include a first communication interface 23 for the electronic device to communicate with other devices or a communication network.

[0192] In addition, an embodiment of the present invention provides a computer storage medium for storing computer software instructions used by electronic devices, which includes instructions for executing the above Figure 1-Figure 7 The procedures involved in the video generation method in the illustrated embodiment.

[0193] In addition, an embodiment of the present invention provides a computer program product, including: a computer-readable storage medium storing computer instructions, when the computer instructions are executed by one or more processors, causing the one or more processors to execute the above Figure 1-Figure 7 The steps in the video generation method in the method embodiment are shown.

[0194] Fig.10 A schematic diagram of the structure of a video generation system provided by an embodiment of the present invention; Fig.10 As shown, this embodiment provides a video generation system 300, which can perform the above Figure 2 The video generation method shown, specifically, the video generation system 300 may include:

[0195] The e-commerce platform 301 is used to obtain an image to be processed, wherein the image to be processed includes an image foreground and an image background, wherein the image background includes preset image elements capable of generating dynamic effects; determine foreground information of the image foreground, and static prompt information corresponding to the image background; input the static prompt information and the image to be processed into a multimodal large language model for expansion operation to obtain dynamic effect prompt information, wherein the multimodal large language model is obtained by training based on multimodal samples; generate a target video corresponding to the image to be processed based on the image to be processed, the foreground information, and the dynamic effect prompt information;

[0196] The media platform 302 is used to play the target video.

[0197] The video generation system 300 shown in this embodiment can execute Figure 1-Figure 7 For the method of the embodiment shown in the figure, the part not described in detail in this embodiment can be referred to Figure 1-Figure 7 The implementation process and technical effects of this technical solution refer to Figure 1-Figure 7 The description in the illustrated embodiment will not be repeated here.

[0198] The video generation system 300 provided in this embodiment can obtain the image to be processed through the e-commerce platform 301, and then determine the foreground information of the image foreground and the static prompt information corresponding to the image background, and then input the static prompt information and the image to be processed into the multimodal large language model for expansion operation to obtain the dynamic prompt information; and generate a target video corresponding to the image to be processed based on the image to be processed, the foreground information and the dynamic prompt information. After obtaining the target video, the target video including the video content can be played through the media platform 302, thereby achieving the purpose of automatically converting the image to be processed into a target video with a specific dynamic effect, reducing the cost and technical threshold in video content production, and then achieving the technical effect of improving the generation efficiency of the video, and solving the technical problem of low generation efficiency of the video.

[0199] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0200] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, i.e., they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Those of ordinary skill in the art may understand and implement it without creative effort.

[0201] Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by adding a necessary general hardware platform, and of course can also be implemented by combining hardware and software. Based on such an understanding, the above technical solution can essentially or in other words be embodied in the form of a computer product, and the present invention can be implemented in the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0202] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable device to generate a machine, so that the instructions executed by the processor of the computer or other programmable device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0203] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable device to work in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 These computer program instructions can also be loaded onto a computer or other programmable device so that a series of operation steps are executed on the computer or other programmable device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable device provide the functions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps of the functions specified in the blocks or multiple blocks. In a typical configuration, the computing device includes one or more processors (CPU), input / output interfaces, network interfaces and memory. The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.

[0204] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0205] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A video generation method, characterized in that: include: Acquire an image to be processed, wherein the image to be processed includes an image foreground and an image background, and the image background includes preset image elements capable of generating dynamic effects; Determining foreground information of the image foreground and static prompt information of the image to be processed; Inputting the static prompt information and the image to be processed into a multimodal large language model for expansion operation to obtain dynamic prompt information, wherein the multimodal large language model is obtained by training based on multimodal samples, and the expansion operation refers to an update operation performed by the multimodal large language model on the static prompt information based on the image to be processed; Based on the image to be processed, the foreground information and the motion effect prompt information, generating a target video corresponding to the image to be processed; Wherein, based on the image to be processed, the foreground information and the motion effect prompt information, generating a target video corresponding to the image to be processed includes: Acquire a sampled video noise for identifying the duration of the target video, wherein the sampled video noise includes a plurality of video frames to be denoised; Determining a first weight of the image to be processed and a second weight of each video frame to be denoised; Based on the foreground information, the motion effect prompt information, the first weight, and the second weight, the image to be processed is merged with each video frame to be denoised to obtain a plurality of denoised video frames; The target video is generated based on the multiple denoised video frames.

2. The method according to claim 1, characterized in that Get the image to be processed, including: Acquire an original image, wherein the original image includes the image foreground; Determining an image background that matches the image foreground; The image to be processed is generated based on the image foreground and the image background.

3. The method according to claim 2, characterized in that Determining an image background that matches the image foreground includes: Acquire multiple candidate background templates for generating a target video; In response to a selection operation input by a user for any candidate background template, determining a target background template; Based on the target background template, an image background that matches the image foreground is generated.

4. The method according to claim 1, characterized in that Based on the image to be processed, the foreground information and the motion effect prompt information, generating a target video corresponding to the image to be processed, including: Performing encoding processing on the image to be processed to obtain image encoding features of the image to be processed; Performing encoding processing on the foreground information to obtain a foreground encoding feature of the foreground information; The image coding features, the foreground coding features and the motion effect prompt information are input into a video generation model to generate the target video, wherein the video generation model is obtained by training based on video samples.

5. The method according to claim 4, characterized in that Inputting the image coding feature, the foreground coding feature and the motion effect prompt information into a video generation model to generate the target video, including: Acquire a sampled video noise for identifying the duration of the target video, wherein the sampled video noise includes a plurality of video frames to be denoised; Determine video frame features corresponding to each of the plurality of video frames to be denoised; Based on the foreground information and the motion effect prompt information, guiding the video generation model to fuse the image coding features with features of each video frame to obtain a plurality of denoised video frames; The target video is generated based on the multiple denoised video frames.

6. The method according to claim 5, characterized in that Based on the foreground information and the motion effect prompt information, guiding the video generation model to fuse the image coding features and each video frame feature to obtain a plurality of denoised video frames, including: Obtaining noise intensity for performing multiple denoising processes on each video frame to be denoised; Determine a first weight of the image to be processed and a second weight of each video frame to be denoised based on the noise intensity; Based on the foreground information, the motion effect prompt information, the first weight and the second weight, the video generation model is guided to perform weighted fusion on the image coding features and the features of each video frame to obtain multiple denoised video frames.

7. The method according to claim 1, characterized in that Determining a first weight of the image to be processed and a second weight of each video frame to be denoised includes: Determining the noise intensity for performing multiple denoising processes on each of the video frames to be denoised; A first weight of the image to be processed and a second weight of each video frame to be denoised are determined based on the noise intensity, wherein the first weight is positively correlated with the noise intensity, and the second weight is negatively correlated with the noise intensity.

8. The method according to any one of claims 6 to 7, characterized in that: After obtaining a plurality of denoised video frames, the method further includes: Obtain predicted image noise corresponding to each of a plurality of denoised video frames; Determine the noise prediction deviation corresponding to each of the plurality of denoised video frames based on the image to be processed and the predicted image noise corresponding to each of the plurality of denoised video frames; Based on the noise prediction deviation, the predicted image noise corresponding to each of the multiple denoised video frames is corrected to obtain multiple corrected video frames.

9. The method according to claim 8, characterized in that Determining noise prediction deviations corresponding to each of the plurality of denoised video frames based on the image to be processed and the predicted image noises corresponding to each of the plurality of denoised video frames includes: Acquiring actual image noise of the image to be processed; Determining a first video frame corresponding to the image to be processed among a plurality of denoised video frames; Based on the actual image noise and the predicted image noise of the first video frame, noise prediction deviations corresponding to each of a plurality of denoised video frames are determined.

10. The method according to claim 9, characterized in that The multiple denoised video frames include multiple second video frames located after the first video frame; based on the actual image noise and the predicted image noise of the first video frame, determining the noise prediction deviations corresponding to each of the multiple denoised video frames, including: Determining a first noise prediction deviation based on the actual image noise and the predicted image noise of the first video frame; Determine the correction coefficients corresponding to each of the plurality of denoised video frames; Based on the correction coefficient and the first noise prediction deviation, a second noise prediction deviation corresponding to each of the plurality of second video frames is determined.

11. The method according to claim 10, characterized in that Determine the correction coefficients corresponding to each of the multiple denoised video frames, including: Acquire frame distances between a plurality of second video frames and the first video frame; Based on the frame distance, correction coefficients corresponding to each of the plurality of denoised video frames are determined, wherein the correction coefficient of the second video frame is positively correlated with the frame distance.

12. A video generating device, characterized in that: include: A first acquisition module, used to acquire an image to be processed, wherein the image to be processed includes an image foreground and an image background, and the image background includes preset image elements capable of generating a dynamic effect; A first determining module, used to determine foreground information of the image foreground and static prompt information of the image background; A first expansion module is used to input the static prompt information and the image to be processed into a multimodal large language model for expansion operation to obtain dynamic prompt information, wherein the multimodal large language model is obtained by training based on multimodal samples, and the expansion operation refers to the update operation of the static prompt information by the multimodal large language model based on the image to be processed; A first processing module, configured to generate a target video corresponding to the image to be processed based on the image to be processed, the foreground information and the motion effect prompt information; The first processing module is also used to obtain sampled video noise for identifying the duration of the target video, wherein the sampled video noise includes multiple video frames to be denoised; determine a first weight of the image to be processed and a second weight of each video frame to be denoised; based on the foreground information, the motion effect prompt information, the first weight and the second weight, fuse the image to be processed with each video frame to be denoised to obtain multiple denoised video frames; and generate the target video based on the multiple denoised video frames.

13. An electronic device, characterized in that: include: A memory, a processor; wherein the memory is used to store one or more computer instructions, wherein the one or more computer instructions, when executed by the processor, implement the method as described in any one of claims 1-11.

14. A video generation system, characterized in that: include: The e-commerce platform is used to obtain an image to be processed, wherein the image to be processed includes an image foreground and an image background, and the image background includes a preset image element capable of generating a dynamic effect; Determine foreground information of the foreground of the image and static prompt information corresponding to the background of the image; input the static prompt information and the image to be processed into a multimodal large language model for expansion operation to obtain dynamic prompt information, wherein the multimodal large language model is trained based on multimodal samples, and the expansion operation refers to the update operation of the static prompt information by the multimodal large language model based on the image to be processed; based on the image to be processed, the foreground information and the dynamic prompt information, generate a target video corresponding to the image to be processed; A media platform, used for playing the target video; The e-commerce platform is also used to obtain sampled video noise for identifying the duration of the target video, wherein the sampled video noise includes multiple video frames to be denoised; determine a first weight of the image to be processed and a second weight of each video frame to be denoised; based on the foreground information, the motion effect prompt information, the first weight and the second weight, the image to be processed is merged with each video frame to be denoised to obtain multiple denoised video frames; and based on the multiple denoised video frames, the target video is generated.

15. A computer storage medium, characterized in that: Used to store a computer program, which enables a computer to implement the method of any one of claims 1 to 11 when executed by the computer.

16. A computer program product, characterized in that include: A computer program, when executed by a processor of an electronic device, causes the processor to execute the steps of any one of the methods of claims 1-11.