Video generation method and system, and related product

By segmenting video features into multiple pieces for parallel decoding, the problem of excessive GPU memory requirements of VAE decoders is solved, thereby improving video generation efficiency and saving costs.

WO2026242823A1PCT designated stage Publication Date: 2026-11-26HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2026/095306
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2025-05-23
Filing Date
2026-05-07
Publication Date
2026-11-26

AI Technical Summary

Technical Problem

Existing video generation models have high GPU memory requirements for VAE decoders when generating large or long videos, resulting in low video generation efficiency.

Method used

The video features to be decoded are divided into multiple feature segments, and these segments are assigned to multiple decoders for parallel decoding. By utilizing the collaborative work of multiple decoders, the efficiency of video generation is improved.

Benefits of technology

By using parallel decoding operations, computational losses are reduced, the continuity and integrity of video generation are improved, video generation costs are saved, and overall generation efficiency is increased.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2026095306_26112026_PF_FP_ABST
    Figure CN2026095306_26112026_PF_FP_ABST
Patent Text Reader

Abstract

The present application provides a video generation method and system, and a related product, which are capable of improving video generation efficiency. The method may be applied to a video generation system. The system comprises a decoding apparatus, the decoding apparatus comprising a first control module and a plurality of decoders, and the plurality of decoders being deployed on a plurality of first inference cards. In the specific implementation, the first control module obtains a video feature to be decoded, partitions the video feature into a plurality of feature shards, and allocates a corresponding feature shard to each decoder, so that each decoder decodes the allocated feature shard, and then concatenates decoded results of the plurality of decoders to obtain target video.
Need to check novelty before this filing date? Find Prior Art

Description

A video generation method, system, and related products

[0001] This application claims priority to Chinese Patent Application No. 202510683308.9, filed with the China National Intellectual Property Administration on May 23, 2025, entitled "A Video Generation Method, System and Related Products", the entire contents of which are incorporated herein by reference. Technical Field

[0002] This application relates to the field of cloud computing, and in particular to a video generation method, system, and related products. Background Technology

[0003] With the development of artificial intelligence generated content (AIGC) technology, video generation models have become a research hotspot. A video generation model can include an encoder, diffusion transformers (DiTs), and a variational auto-encoder (VAE) decoder. The encoder encodes the user's requirements for the generated video, the DiT generates video features that meet the user's expectations based on the encoded data generated by the encoder, and the VAE decoder decodes these video features into the final video output. Since the decoding operation performed by the VAE decoder on video features can only be completed on a single graphics processing unit (GPU), when the user expects to generate larger and longer videos, the VAE decoder's demand for GPU memory increases significantly, leading to a substantial increase in GPU memory usage and impacting video generation efficiency. Summary of the Invention

[0004] This application provides a video generation method, system, and related products that can improve video generation efficiency.

[0005] Firstly, this application provides a video generation method. This method can be applied to a video generation system, wherein the video generation system includes a decoding device, which includes a first control module and multiple decoders deployed on multiple first inference cards. Specifically, the first control module acquires the video features to be decoded, then divides the video features into multiple feature segments, assigns a corresponding feature segment to each decoder, so that each decoder decodes the assigned feature segment, and then concatenates the decoding results of the multiple decoders to obtain the target video.

[0006] In the technical solution provided in this application, the video generation system can allocate a portion of the video features to be decoded to multiple decoders through the first control module, so that each decoder only needs to decode a portion of the video features to be decoded, and multiple decoders can perform decoding operations in parallel, thereby improving the video generation efficiency.

[0007] In one possible implementation, the aforementioned multiple decoders include multiple VAE decoders.

[0008] In one possible implementation, the first control module can divide the video features to be decoded into multiple feature segments by the following steps: the first control module divides the video features into multiple feature segments according to a preset segment size, wherein there is overlapping data between adjacent feature segments in the multiple segmented segments.

[0009] Since the decoder may lose edge information of the feature segments during the decoding process, the above implementation method can reduce the computational loss caused by the decoding operation, so that the subsequently generated target video has continuity and integrity.

[0010] In one possible implementation, the preset fragment size is configured based on the memory usage of the first inference card and the decoder. This allows control over the size of the feature fragments, ensuring that the memory of the first inference card can support the decoding operations performed by the decoder.

[0011] In one possible implementation, the first control module is deployed on the inference card where each decoder resides. The first control module can then assign a corresponding feature slice to each decoder through the following steps: The first control module assigns a corresponding feature slice to each decoder based on the identifier of the inference card, where each inference card identifier corresponds to one feature slice. This allows each decoder to be assigned a different feature slice.

[0012] In one possible implementation, the video generation system further includes an encoding device and a diffusion device, wherein the encoding device includes a second control module and multiple encoders deployed on multiple second inference cards, and the diffusion device includes multiple diffusion models deployed on multiple third inference cards.

[0013] Therefore, before the first control module acquires the video features to be decoded, the method further includes: a second control module acquires descriptive information of the target video, which reflects the content that the target video needs to contain; the descriptive information is then divided into multiple information segments, and corresponding information segments are assigned to each encoder so that each encoder encodes the assigned information segments; the encoding results of multiple encoders are then concatenated to obtain the encoded data of the descriptive information. Subsequently, multiple diffusion models in the diffusion device generate video features to be decoded based on the encoded data of the descriptive information, wherein the generated video features conform to the requirements of the descriptive information.

[0014] In the above implementation, the encoding device can allocate a portion of the description information to be encoded to multiple encoders through the second control module, so that each encoder only needs to encode a portion of the description information to be encoded, and multiple encoders can perform encoding operations in parallel, thereby improving video generation efficiency.

[0015] In one possible implementation, the aforementioned multiple encoders include multiple VAE encoders, and the multiple diffusion models include multiple DiTs.

[0016] In one possible implementation, one or more of the first, second, and third inference cards can be different inference cards. The most cost-effective inference card can be selected and deployed based on the computational workload of the encoder, decoder, and diffusion model. This can save costs associated with video generation tasks.

[0017] In one possible implementation, the aforementioned multiple first inference cards, multiple second inference cards, and multiple third inference cards are deployed on one or more computing devices, and the specific deployment can be adaptively determined according to actual business needs and the resources of the computing devices (such as the type, model, and quantity of inference cards).

[0018] Secondly, this application provides a video generation system. The system includes a decoding device, which comprises a first control module and multiple decoders deployed on multiple first inference cards. Specifically, the first control module acquires video features to be decoded, segments these video features into multiple feature segments, and assigns the segmented feature segments to the multiple decoders. The decoders decode the feature segments assigned by the first control module. The first control module also concatenates the decoding results from the multiple decoders to obtain the target video.

[0019] In one possible implementation, the aforementioned multiple decoders include multiple VAE decoders.

[0020] In one possible implementation, the first control module is used to divide the video features to be decoded into multiple feature segments according to a preset segment size, wherein there is overlapping data between adjacent feature segments in the multiple segmented segments.

[0021] In one possible implementation, the aforementioned preset fragment size is based on the memory configuration of the first inference card and the memory usage of the decoder.

[0022] In one possible implementation, the first control module is deployed on the inference card where each decoder resides. The first control module is used to allocate a corresponding feature slice to each decoder according to the identifier of the inference card, wherein each identifier of the inference card corresponds to a feature slice.

[0023] In one possible implementation, the video generation system further includes an encoding device and a diffusion device. The encoding device includes a second control module and multiple encoders deployed on multiple second inference cards. The diffusion device includes multiple diffusion models deployed on multiple third inference cards. The second control module acquires descriptive information of the target video, reflecting the content the target video needs to contain; it then divides the descriptive information into multiple information segments and assigns these segments to the multiple encoders. The encoders encode the information segments assigned by the second control module. The second control module also concatenates the encoding results from the multiple encoders to obtain encoded data of the descriptive information. The multiple diffusion models in the diffusion device generate video features to be decoded based on the encoded data of the descriptive information, wherein the generated video features conform to the requirements of the descriptive information.

[0024] In one possible implementation, the aforementioned multiple encoders include multiple VAE encoders, and the multiple diffusion models include multiple DiTs.

[0025] In one possible implementation, one or more of the first reasoning card, the second reasoning card, and the third reasoning card are different reasoning cards.

[0026] In one possible implementation, the aforementioned plurality of first inference cards, plurality of second inference cards, and plurality of third inference cards are deployed on one or more computing devices.

[0027] Thirdly, this application provides a computing device. The computing device includes a memory and a plurality of processors, wherein the plurality of processors are configured to execute instructions stored in the memory to cause the computing device to perform some or all of the methods described in the first aspect and any implementation thereof.

[0028] Fourthly, this application provides a computing device cluster. The computing device cluster includes at least one computing device, each computing device including multiple processors and a memory. The multiple processors of the at least one computing device are used to execute instructions stored in the memory of the at least one computing device, causing the computing device cluster to perform some or all of the methods described in the first aspect and any implementation thereof.

[0029] Fifthly, this application provides a computer program product containing instructions. This computer program product may be a software or program product containing instructions that can run on a computing device or be stored on any usable medium. When the computer program product is run on a computing device, it causes the computing device to perform some or all of the methods described in the first aspect and any implementation thereof.

[0030] Sixthly, this application provides a computer-readable storage medium. The computer storage medium includes computer program instructions that, when executed by a computing device, cause the computing device to perform some or all of the methods described in the first aspect and any implementation thereof. Attached Figure Description

[0031] Figure 1 is a schematic diagram of a video generation scenario provided in this application;

[0032] Figure 2 is a schematic diagram of a deployment method for a video generation system provided in this application;

[0033] Figure 3 is a schematic diagram of the structure of a video generation system provided in this application;

[0034] Figure 4 is a schematic diagram of another video generation system provided in this application;

[0035] Figure 5 is a structural schematic diagram of another video generation system provided in this application;

[0036] Figure 6 is a flowchart illustrating a video generation method provided in this application;

[0037] Figure 7 is a schematic diagram of the structure of a computing device provided in this application;

[0038] Figure 8 is a schematic diagram of the structure of a computing device cluster provided in this application;

[0039] Figure 9 is a schematic diagram of another computing device cluster provided in this application. Detailed Implementation

[0040] To improve video generation efficiency, this application provides a video generation method. This method divides the video features to be decoded into multiple feature segments and assigns these feature segments to multiple decoders (such as VAE decoders). The multiple decoders then decode their respective assigned feature segments in parallel. Finally, the decoding results from the multiple decoders are concatenated to obtain a complete video. Therefore, this application provides a scheme for decoding video features into video in parallel using multiple decoders, thus improving video generation efficiency.

[0041] The technical solution provided in this application will be described below with reference to the accompanying drawings.

[0042] Referring to Figure 1, Figure 1 illustrates a video generation scenario to which this application applies. As shown in Figure 1, the scenario includes a client 100 and a video generation system 200, wherein the client 100 and the video generation system 200 are connected via a network, which can be a wide area network or a local area network.

[0043] Client 100 is used to enable interaction between the user and video generation system 200. Specifically, the user can send a video generation request to video generation system 200 through client 100, instructing video generation system 200 to automatically generate a target video that meets the user's requirements. Similarly, after video generation system 200 generates the target video, the user can also view the target video through client 100. In specific implementation, client 100 can be software or application (APP) deployed on terminal devices, such as World Wide Web (web) clients, APP clients, cloud management platform consoles, etc. The terminal devices here include one or more of the following: smartphones, tablets, laptops, desktops, augmented reality (AR) devices, virtual reality (VR) devices, wearable devices, handheld processing devices, smart conferencing devices, smart advertising devices, smart home appliances, etc.

[0044] The video generation system 200 receives a video generation request sent by the client 100 and generates a target video based on the description information of the target video carried in the request. Specifically, the video generation system 200 can be deployed on a single computing device or a cluster of computing devices consisting of multiple computing devices. These computing devices can be servers, such as central servers or edge servers in a cloud data center, or local servers in a local data center, or terminal devices such as desktop computers or laptops.

[0045] As one possible implementation, as shown in Figure 2, the client 100 is deployed on a user-controlled terminal device, and the video generation system 200 is deployed in a data center. In this case, the video generation system 200 can be provided to the user as a cloud service based on the basic resources (including computing resources, storage resources, and network resources) provided by the data center. Specifically, the user registers an account on the cloud management platform through the client 100, logs in to the cloud management platform with the account, and purchases the aforementioned cloud services on the cloud management platform. After successful purchase, the user can send a video generation request to the video generation system 200 through the client 100. Subsequently, the video generation system 200 will automatically generate a target video that meets the user's requirements based on the video generation request sent by the client 100, and display the target video to the user through the client 100.

[0046] It is understood that Figure 2 is merely an illustrative example of the possible deployment methods of the client 100 and the video generation system 200. In practical applications, the client 100 and the video generation system 200 can also be deployed in other ways in combination with specific application scenarios and business needs, which is not limited in this application.

[0047] Next, the video generation system 200 will be further introduced with reference to Figure 3.

[0048] Referring to Figure 3, which exemplarily illustrates the structural diagram of the video generation system 200, it is worth noting that, in addition to the division shown in Figure 3, the structure of the video generation system 200 can also be divided in other ways. For example, the video generation system 200 can be divided into more or fewer functional modules. However, for ease of description, the following embodiments are described using the division shown in Figure 3. As shown in Figure 3, the video generation system 200 includes an encoding device 201, a diffusion device 202, and a decoding device 203.

[0049] (1) Encoding device 201

[0050] The encoding device 201 is used to obtain the description information of the target video carried in the video generation request, encode the description information of the target video, and send the encoded description information to the diffusion device 202.

[0051] In a specific implementation, the encoding device 201 includes one or more encoders. These encoders can be existing encoders in the industry, such as Transformer-based encoders or VAE encoders. It is worth noting that the encoders in the encoding device 201 can be selected based on specific application scenarios and business requirements. For example, when the description information of the target video is represented in text form, the encoder can be a text encoder capable of encoding text information (such as a Transformer-based encoder). When the description information of the target video is represented in image form, the encoder can be an image encoder capable of encoding images (such as a VAE encoder).

[0052] When the encoding device 201 includes multiple encoders, these multiple encoders can be deployed on multiple inference cards. The inference cards can be hardware acceleration cards designed specifically for video generation tasks, mainly used to efficiently perform video generation inference tasks on trained models, such as GPUs, neural network processing units (NPUs) or tensor processing units (TPUs).

[0053] As one possible implementation, when the encoding device 201 includes multiple encoders (which can be VAE encoders), it may also include a first control module. The first control module instructs the multiple encoders to collaboratively encode the descriptive information of the target video. Specifically, the first control module can divide the descriptive information of the target video into multiple information segments and assign these segments to multiple encoders. The encoders then encode their assigned segments to generate multiple encoded information segments. Finally, the first control module concatenates these encoded information segments to obtain the encoded descriptive information. In a specific implementation, the first control module can be deployed on the inference card where each encoder is located, or it can be deployed on the central processing unit (CPU) of the computing device where the encoding device 201 is located.

[0054] (2) Diffusion device 202

[0055] The diffusion device 202 is used to receive the encoded description information sent by the encoding device 201, generate video features of the target video based on the encoded description information, and send the video features of the target video to the decoding device 203.

[0056] In a specific implementation, the diffusion device 202 includes an acquisition module and one or more diffusion models. These diffusion models can be existing diffusion models in the industry. For ease of description, the following embodiments use the DiT model as an example. Optionally, when the diffusion device 202 includes multiple diffusion models, it may also include a splicing module.

[0057] The acquisition module generates initial video features, and the diffusion model denoises the initial video features based on the encoded description information to generate the video features of the target video. Specifically, when the diffusion device 202 includes only one diffusion model, the video features of the target video can be generated solely by that diffusion model. When the diffusion device 202 includes multiple diffusion models, the multiple diffusion models need to collaboratively generate the video features of the target video. That is, each diffusion model acquires a portion of the initial video features, then denoises the acquired initial video features based on the encoded description information to obtain denoised video features. Finally, the stitching module stitches together the denoised video features generated by the multiple diffusion models to obtain the video features of the target video.

[0058] As one possible implementation, the acquisition module can be deployed on the CPU of the computing device where the diffusion device 202 is located. The diffusion model can be deployed on the inference card of the aforementioned computing device, wherein when the diffusion device 202 includes multiple diffusion models, these multiple diffusion models can be deployed on multiple inference cards. The splicing module can be deployed on the inference card where a certain diffusion model is located.

[0059] (3) Decoding device 203

[0060] The decoding device 203 is used to receive the video features of the target video sent by the diffusion device 202, and decode the video features of the target video to generate a target video that meets the user requirements (i.e., the description information of the target video).

[0061] In a specific implementation, the decoding device 203 includes one or more decoders (Figure 3 shows multiple decoders). These decoders can be existing decoders in the industry; for ease of description, the following embodiments use a VAE decoder as an example. When the decoding device 203 includes multiple decoders, it may also include a second control module. The second control module is used to instruct the multiple decoders to collaboratively decode the video features of the target video. Specifically, the second control module can segment the video features of the target video into multiple feature segments and assign these segments to multiple decoders. Then, the multiple decoders decode the assigned feature segments to generate multiple video segments, which are then stitched together by the second control module to obtain the target video. In a specific implementation, the second control module can be deployed on the inference card where each decoder is located, or on the CPU of the computing device where the decoding device 203 is located.

[0062] The above content is merely an example of a design concept for the encoding device 201, the diffusion device 202, and the decoding device 203. In practical applications, the encoding device 201, the diffusion device 202, and the decoding device 203 need to be designed in conjunction with specific application scenarios and business requirements.

[0063] For example, when the user expects the target video to be long and large in size, the encoding device 201, diffusion device 202, and decoding device 203 in the video generation system 200 can be seen in Figure 4. As shown in Figure 4, the encoding device 201 includes a first control module and multiple encoders (the encoders here can be VAE encoders), the diffusion device 202 includes an acquisition module, multiple diffusion models, and a stitching module, and the decoding device 203 includes a second control module and multiple decoders. In the video generation system 200 shown in Figure 4, the encoding device 201, diffusion device 202, and decoding device 203 can all implement distributed inference, improving the generation efficiency of the target video.

[0064] Optionally, taking an encoder in the encoding device 201, a diffusion model in the diffusion device 202, and a decoder in the decoding device 203 as examples, one or more of the above three can be deployed on the same inference card or on multiple inference cards. Furthermore, when one or more of the above three are deployed on multiple inference cards, these inference cards can be of the same type or model, or different; specifically, a more cost-effective inference card can be selected for deployment based on the computational workload.

[0065] Optionally, one or more of the multiple encoders in the encoding device 201, the multiple diffusion models in the diffusion device 202, and the multiple decoders in the decoding device 203 can be deployed on the inference card of the same computing device or on the inference cards of different computing devices. The specific deployment can be combined with business needs and computing device resources (such as the type, model and quantity of inference cards).

[0066] In another implementation, the encoding device 201, diffusion device 202, and decoding device 203 in the video generation system 200 can also be seen in Figure 5. Unlike Figure 4, the encoding device 201 in Figure 5 only includes multiple encoders (the encoders here can be text encoders, such as Transformer-based encoders). Each encoder is used to encode the description information of the target video, and the encoders in the encoding device 201 and the diffusion model in the diffusion device 202 are deployed on the same inference card. In this way, after the encoder generates the encoded description information, it can directly send the encoded description information to the diffusion model, reducing the resources consumed by data transmission.

[0067] The video generation system 200 shown in Figures 4 and 5 can be applied to different business scenarios. For example, when the encoding computation of the target video's descriptive information (such as images, audio, video, etc.) is large, the video generation system 200 shown in Figure 4 can be selected; when the encoding computation of the target video's descriptive information (such as text) is small, the video generation system 200 shown in Figure 5 can be selected.

[0068] It should also be noted that the encoding device 201, the diffusion device 202, and the decoding device 203 can all be implemented in software or in hardware. For example, the implementation of the encoding device 201 will be described below. Similarly, the implementations of the diffusion device 202 and the decoding device 203 can refer to the implementation of the encoding device 201.

[0069] As an example of a software functional unit, the encoding device 201 may include code running on a computing instance. The computing instance may include at least one of a physical host (computing device), a virtual machine, and a container. Further, the aforementioned computing instance may be one or more. For example, the encoding device 201 may include code running on multiple hosts / virtual machines / containers. It should be noted that the multiple hosts / virtual machines / containers used to run the code may be distributed in the same region or in different regions. Further, the multiple hosts / virtual machines / containers used to run the code may be distributed in the same availability zone (AZ) or in different AZs, each AZ including one or more geographically proximate data centers. Typically, a region may include multiple AZs.

[0070] Similarly, multiple hosts / virtual machines / containers used to run this code can be distributed within the same Virtual Private Cloud (VPC) or across multiple VPCs. Typically, a VPC is set up within a region. Communication between two VPCs within the same region, as well as between VPCs in different regions, requires a communication gateway to be set up within each VPC to enable interconnection between VPCs.

[0071] As an example of a hardware functional unit, the encoding device 201 may include at least one computing device, such as a server. Alternatively, the encoding device 201 may also be a device implemented using an application-specific integrated circuit (ASIC) or a programmable logic device (PLD). The PLD may be implemented using a complex programmable logical device (CPLD), a field-programmable gate array (FPGA), generic array logic (GAL), or any combination thereof.

[0072] The encoding device 201 includes multiple computing devices that can be distributed in the same region or in different regions. Similarly, the A module includes multiple computing devices that can be distributed in the same Availability Zone (AZ) or in different AZs. Likewise, the encoding device 201 includes multiple computing devices that can be distributed in the same Virtual Private Cloud (VPC) or in multiple VPCs. These multiple computing devices can be any combination of computing devices such as servers, ASICs, PLDs, CPLDs, FPGAs, and GALs.

[0073] Next, the process of the video generation system 200 generating the target video will be further described with reference to Figure 6. As shown in Figure 6, the process includes the following steps:

[0074] Step 101: Client 100 sends a video generation request to video generation system 200, wherein the video generation request includes description information of the target video.

[0075] The video generation request instructs the video generation system 200 to generate the target video based on the target video's description information. The target video's description information reflects the content the user expects the target video to contain. Specifically, the target video's description information can be represented in one or more forms, such as text, images, audio, or video. For ease of understanding, the following example illustrates this: Suppose the user expects the target video to show "an orange cat lazily lying on the sofa, suddenly rolling over and starting to play." The user can represent this description as "an orange cat rolling around on the sofa" using one or more forms, such as text, images, audio, or video.

[0076] Step 102: The encoding device 201 encodes the description information of the target video to generate encoded description information.

[0077] After receiving a video generation request, the video generation system 200 parses the request to obtain the description information of the target video, and then sends the description information to the encoding device 201. Upon receiving the description information, the encoding device 201 encodes the description information to convert it into machine-understandable and processable coded description information.

[0078] The following explanation of this step will be based on the encoding device 201 shown in Figures 4 and 5.

[0079] (1) The encoding device 201 in Figure 4 includes a first control module and multiple encoders, assuming these encoders are encoder 1, encoder 2, ..., encoder m, where m is an integer greater than 1. The encoding device 201 can encode the descriptive information of the target video through the following sub-steps:

[0080] Step ①: The first control module segments the description information of the target video to obtain m information segments.

[0081] The first control module is configured with a first segmentation strategy, which indicates how to segment the description information of the target video. Therefore, the first control module can segment the description information of the target video according to the first segmentation strategy to divide the description information of the target video into m information segments, namely information segment 1, information segment 2, ..., information segment m.

[0082] More specifically, the first segmentation strategy includes a first segment size, which indicates the segmentation granularity, i.e., the size of the information segments. The first segment size can be set by the user or configured by the first control module based on the memory of the inference card where the encoder resides and the encoder's memory usage, to ensure that the inference card's memory size does not become a bottleneck for encoding computation. Therefore, the first control module can segment the description information of the target video into m information segments according to the first segment size in the first segmentation strategy.

[0083] Optionally, the first segmentation strategy also includes segmentation dimensions, which include a temporal dimension and / or a spatial dimension. The temporal dimension refers to the temporal order of the frames contained in the description information of the target video, and the spatial dimension refers to the height and width of the frames contained in the description information of the target video. Therefore, the first control module can segment the description information of the target video into m information segments according to the segmentation dimensions indicated by the first segmentation strategy and the first segment size.

[0084] Furthermore, to reduce the computational loss caused by the encoding operation, the first segmentation strategy also includes a first overlapping region size. This size indicates how much overlapping data should exist between adjacent information segments obtained from the segmentation. The first overlapping region size can be set by the user or by the first control module based on specific application scenarios and business requirements. Based on the size of the first overlapping region, the first control module can overlap and share data at the edges of adjacent information segments during segmentation, ensuring that there is overlapping data between adjacent information segments among the m segmented information segments. For example, assuming the description information of the target video is represented by an image, and the first overlapping region size is 500 pixels, then the first control module can ensure that there are 300 overlapping pixels between adjacent information segments when segmenting this image.

[0085] Step ②: The first control module distributes m information slices to m encoders.

[0086] The first control module can distribute m information fragments to m encoders in any of the following ways:

[0087] Method a: When the first control module is deployed on the CPU of the computing device where the encoding device 201 is located, the first control module divides the description information of the target video into m information segments, and then sends information segment 1, information segment 2, ..., information segment m to encoder 1, encoder 2, ..., encoder m respectively. Correspondingly, encoder 1 receives information segment 1, encoder 2 receives information segment 2, ..., encoder m receives information segment m.

[0088] Method b: When the first control module is deployed on the inference card where each encoder is located, for the first control module on each inference card, after dividing the description information of the target video into m information segments, the corresponding information segment can be determined according to the identifier of the inference card, and then the determined information segment is sent to the corresponding encoder.

[0089] For example, suppose the inference cards containing encoders 1, 2, ..., m are inference card 1, inference card 2, ..., inference card m, respectively. The first control module on inference card 1, after dividing the description information of the target video into m segments, determines segment 1 based on the identifier of inference card 1 and then sends segment 1 to encoder 1. Similarly, the first control module on inference card 2, after dividing the description information of the target video into m segments, determines segment 2 based on the identifier of inference card 2 and then sends segment 2 to encoder 2. And so on, the first control module on inference card m, after dividing the description information of the target video into m segments, determines segment m based on the identifier of inference card m and then sends segment m to encoder m.

[0090] Step ③: Each of the m encoders encodes its assigned information segment, resulting in m encoded information segments.

[0091] Specifically, encoder 1 encodes information segment 1 to obtain encoded information segment 1; encoder 2 encodes information segment 2 to obtain encoded information segment 2; ...; encoder m encodes information segment m to obtain encoded information segment m.

[0092] Taking encoder 1 as an example, encoder 1 can encode information slice 1 through the following steps: encoder 1 performs feature extraction operation on information slice 1 to obtain the features of information slice 1, and then performs downsampling operation on the features of information slice 1 to compress the dimension of the features of information slice 1 to obtain encoded information slice 1.

[0093] For example, encoder 1 may include convolutional layers, pooling layers, and fully connected layers. The convolutional layers are used to extract features from information slice 1, while the pooling and fully connected layers are used to downsample the features of information slice 1. Specifically, encoder 1 can perform convolution calculations on information slice 1 based on one or more convolutional kernels in the convolutional layers to extract features from information slice 1. Then, it can perform pooling processing on information slice 1 based on the pooling layer to reduce the dimensionality of the features. Finally, it can further compress the output of the pooling layer based on the fully connected layer, thereby obtaining the encoded information slice 1.

[0094] It is understood that the above example only introduces one possible encoder 1. In practical applications, encoder 1 can also have other structures. Correspondingly, the encoding operations performed by encoder 1 on information fragment 1 will also be different. For the sake of brevity, they will not be described in detail here.

[0095] Similarly, the process of other encoders (i.e., encoder 2, ..., encoder m) encoding the assigned information segments can be referred to as the process of encoder 1 encoding information segment 1. For the sake of brevity, it will not be described in detail here.

[0096] As one possible implementation, m encoders can encode the assigned information slices in parallel. Here, parallelism means that the m encoders perform the encoding operation simultaneously, rather than performing the encoding operation one after another in sequence.

[0097] Step 4: The first control module acquires m coded information fragments.

[0098] The first control module can obtain m coded information fragments through any of the following methods:

[0099] Method a: When the first control module is deployed on the CPU of the computing device where the encoding device 201 is located, encoder 1 generates encoded information fragment 1 and sends it to the first control module; encoder 2 generates encoded information fragment 2 and sends it to the first control module; ...; encoder m generates encoded information fragment m and sends it to the first control module. Thus, the first control module can obtain encoded information fragment 1, encoded information fragment 2, ..., encoded information fragment m.

[0100] In method b, when the first control module is deployed on the inference card where each encoder is located, m encoded information fragments can be obtained by the first control module on one inference card.

[0101] Continuing with the example above, assuming the first control module on inference card 1 acquires m encoded information fragments, the acquisition process is as follows: After encoder 1 generates encoded information fragment 1, it sends encoded information fragment 1 to the local first control module; after encoder 2 generates encoded information fragment 2, it sends encoded information fragment 2 to the first control module on inference card 1; ...; after encoder m generates encoded information fragment m, it sends encoded information fragment m to the first control module on inference card 1. Therefore, the first control module on inference card 1 can acquire encoded information fragment 1, encoded information fragment 2, ..., encoded information fragment m.

[0102] Step 5: The first control module splices together the m coded information segments to obtain the coded description information.

[0103] In specific implementation, the first control module can splice together m pieces of encoded information according to the segmentation dimension indicated by the first segmentation strategy to obtain encoded description information.

[0104] As can be seen from step ① above, when the first control module segments the description information of the target video, there may be overlapping data between adjacent information segments in the m segments obtained from the segmentation. In this case, there may also be overlapping data between adjacent encoded information segments in the m encoded information segments obtained from the encoding of the m information segments. Therefore, the first control module also needs to consider the size of the overlapping data between adjacent encoded information segments when splicing the m encoded information segments. Specifically, the first control module determines the position information of the overlapping data between adjacent information segments according to the size of the first overlapping area indicated by the first segmentation strategy. Here, the position information of the overlapping data is used to characterize the position of the overlapping data in the information segments. Then, based on the position information of the overlapping data between adjacent information segments, the position information of the overlapping data between the corresponding adjacent encoded information segments is determined, thereby obtaining the overlapping data between adjacent encoded information segments. After that, the first control module processes the overlapping data between adjacent encoded information segments (such as weighted average calculation or self-attention calculation), and then splices the processed encoded information segments according to the segmentation dimension indicated by the first segmentation strategy to obtain the encoded description information.

[0105] (2) The encoding device 201 in Figure 5 includes multiple encoders, which are assumed to be encoder 1, encoder 2, ..., encoder m. Since the encoding device 201 is typically used to encode text information, which has a relatively low computational load, and each encoder encodes the description information of the target video, the following description will be based on the encoding process of encoder 1 for the description information (text information) of the target video:

[0106] Encoder 1 first splits the descriptive information of the target video into multiple words (also known as "tokens"), and then converts the resulting words into corresponding word vectors, where word vectors are used to represent the semantic features of the words. Next, Encoder 1 analyzes the contextual relationships between the word vectors, generating multiple context-related word vectors, and then aggregates these multiple context-related word vectors to obtain the encoded descriptive information.

[0107] For example, encoder 1 may include a preprocessing layer and a Transformer layer. The preprocessing layer is used to split the descriptive information of the target video into multiple words. For each word, it is converted into a word vector, and a position vector is added to the corresponding word vector based on the word's position in the target video's descriptive information. The multiple word vectors are then concatenated based on their position vectors to obtain a continuous vector sequence, which includes multiple word vectors and their corresponding position vectors. This vector sequence is then sent to the Transformer layer. The Transformer layer receives the vector sequence output by the preprocessing layer, calculates the contextual relationships between the word vectors in the sequence, dynamically adjusts each word vector based on the determined contextual relationships, and then aggregates the adjusted word vectors to obtain the encoded descriptive information.

[0108] It is understood that the above example only introduces one possible encoder 1. In practical applications, encoder 1 can also have other structures. Correspondingly, the encoding operations performed by encoder 1 on the description information of the target video will also be different. For the sake of brevity, they will not be introduced in detail here.

[0109] Similarly, the process by which other encoders (i.e., encoder 2, ..., encoder m) encode the descriptive information of the target video can be referred to the process by which encoder 1 encodes the descriptive information of the target video. For the sake of brevity, it will not be described in detail here.

[0110] Step 103: The encoding device 201 sends the encoding description information to the diffusion device 202.

[0111] Step 104: The diffusion device 202 generates video features of the target video based on the encoded description information.

[0112] After receiving the encoded description information, the diffusion device 202 denoises the initial video features according to the encoded description information to gradually correct the noise in the initial video features and generate the video features of the target video.

[0113] As mentioned above, the diffusion device 202 includes an acquisition module and a diffusion model. Optionally, when the diffusion device 202 includes multiple diffusion models, it also includes a stitching module. Therefore, the following two examples further illustrate the process by which the diffusion device 202 generates video features of the target video.

[0114] (1) The diffusion device 202 includes an acquisition module, multiple diffusion models, and a stitching module. Assume that the multiple diffusion models are diffusion model 1, diffusion model 2, ..., diffusion model n, where n is an integer greater than 1. The diffusion device 202 can generate video features of the target video through the following sub-steps:

[0115] Step ①: The acquisition module obtains the initial video features.

[0116] In specific implementation, the acquisition module can acquire initial video features in one or more of the following ways: randomly sampling from a Gaussian distribution; using user-provided video features as initial video features; adding noise to user-provided video features; or using default video features pre-stored in the acquisition module as initial video features. This application does not limit the scope of this method.

[0117] Step ②: Each of the n diffusion models obtains a portion of the initial video features (hereinafter referred to as "initial video feature slices").

[0118] Each diffusion model is configured with a second segmentation strategy, which includes a segmentation dimension and a second slice size. The segmentation dimension includes one or more of the following: a temporal dimension (i.e., the temporal order of the frames contained in the initial video features), a spatial dimension (i.e., the height and width of the frames contained in the initial video features), and a channel dimension (i.e., the number of channels of the frames contained in the initial video features). The second slice size indicates the segmentation granularity, i.e., the size of the initial video feature slices. The second segmentation strategy can be set by the user or by the diffusion model in combination with specific application scenarios and business requirements.

[0119] Therefore, each of the n diffusion models can extract a portion of the initial video features from the acquisition module according to the segmentation dimension and the second slice size in the second segmentation strategy. For ease of description, the portion of the initial video features acquired by diffusion model 1 is referred to as "initial video feature slice 1", the portion of the initial video features acquired by diffusion model 2 is referred to as "initial video feature slice 2", and so on, and the portion of the initial video features acquired by diffusion model n is referred to as "initial video feature slice n".

[0120] Step ③: Each of the n diffusion models denoises the acquired initial video feature slices according to the encoded description information, resulting in n target video feature slices.

[0121] Specifically, diffusion model 1 denoises the initial video feature segment 1 according to the encoded description information to obtain the target video feature segment 1; diffusion model 2 denoises the initial video feature segment 2 according to the encoded description information to obtain the target video feature segment 2; ...; diffusion model n denoises the initial video feature segment n according to the encoded description information to obtain the target video feature segment n.

[0122] Taking diffusion model 1 as an example, diffusion model 1 can denoise the initial video feature segment 1 through the following steps: diffusion model 1 receives the initial video feature segments (i.e., initial video feature segment 2, ..., initial video feature segment n) obtained by other diffusion models, and then denoises the initial video feature segment 1 according to the encoded description information and other initial video feature segments to obtain the target video feature segment 1.

[0123] For example, diffusion model 1 includes a preprocessing layer and a Transformer layer. The preprocessing layer adds spatiotemporal location information to the initial video feature slice 1 and other initial video feature slices. For instance, it generates unique location information for each frame and pixel within each initial video feature slice to reflect the temporal relationship between different frames and the spatial structure of each frame. It also aligns the dimensions of the encoded description information with the dimensions of the multiple initial video feature slices and inputs the aligned encoded description information and the multiple initial video feature slices into the Transformer layer. The Transformer layer receives the encoded description information output from the preprocessing layer and the multiple initial video feature slices. Based on an attention mechanism, it injects the encoded description information into the denoising process of the initial video feature slice 1 and, combined with the intra-frame and inter-frame dependencies contained in the initial video feature slice 1 and other initial video feature slices, denoises the initial video feature slice 1 to generate the target video feature slice 1.

[0124] It is understood that the above example only introduces one possible diffusion model 1. In practical applications, diffusion model 1 may also have other structures. Correspondingly, the denoising process performed by diffusion model 1 on the initial video feature slice 1 will also be different. For the sake of brevity, it will not be elaborated here.

[0125] Similarly, the process of other diffusion models (i.e., diffusion model 2, ..., diffusion model n) denoising the acquired initial video feature slices can refer to the process of diffusion model 1 denoising the initial video feature slice 1. For the sake of brevity, it will not be described in detail here.

[0126] Step 4: The stitching module stitches together the n target video features to obtain the video features of the target video.

[0127] After diffusion model 1 generates target video feature segment 1, it sends target video feature segment 1 to the stitching module; after diffusion model 2 generates target video feature segment 2, it sends target video feature segment 2 to the stitching module; ...; after diffusion model n generates target video feature segment n, it sends target video feature segment n to the stitching module. Thus, the stitching module can obtain target video feature segment 1, target video feature segment 2, ..., target video feature segment n, and then stitch these n target video feature segments together according to the stitching dimension indicated by the second stitching strategy to obtain the video features of the target video.

[0128] (2) The diffusion device 202 includes an acquisition module and a diffusion model. The diffusion device 202 generates video features of the target video through the following steps: the acquisition module acquires initial video features, then the diffusion model obtains the initial video features from the acquisition module, and denoises the initial video features according to the encoded description information to obtain the video features of the target video. It can be understood that the denoising process of the initial video features by the diffusion model here can refer to the denoising process of the initial video feature slice 1 by the diffusion model 1 in step ③ above. For simplicity, it will not be elaborated here.

[0129] Step 105: The diffusion device 202 sends the video features of the target video to the decoding device 203.

[0130] Step 106: Decoding device 203 decodes the video features of the target video to obtain the target video.

[0131] As mentioned above, the decoding device 203 includes a second control module and multiple decoders, assuming these decoders are decoder 1, decoder 2, ..., decoder p, where p is an integer greater than 1. The decoding device 203 can decode the video features of the target video through the following sub-steps:

[0132] Step ①: The second control module segments the video features of the target video to obtain p feature segments.

[0133] The second control module is configured with a third segmentation strategy, which indicates how to segment the video features of the target video. Therefore, the second control module can segment the video features of the target video according to the third segmentation strategy to divide the video features of the target video into p feature segments, namely feature segment 1, feature segment 2, ..., feature segment p.

[0134] More specifically, the third segmentation strategy includes a third slice size, which indicates the segmentation granularity, i.e., the size of the feature slices. The third slice size can be set by the user or configured by the second control module based on the memory of the inference card where the decoder resides and the decoder's memory usage, ensuring that the inference card's memory size does not become a bottleneck for decoding computation. Therefore, the second control module can segment the video features of the target video into p feature slices according to the third slice size in the third segmentation strategy.

[0135] Optionally, the third segmentation strategy also includes segmentation dimensions, which include temporal and / or spatial dimensions. The temporal dimension refers to the temporal order of the frames contained in the video features of the target video, and the spatial dimension refers to the height and width of the frames contained in the video features of the target video. Therefore, the third control module can segment the video features of the target video into p feature slices according to the segmentation dimensions indicated by the third segmentation strategy and the third slice size.

[0136] Furthermore, to reduce the computational loss caused by the decoding operation, the third segmentation strategy also includes a second overlapping region size. This second overlapping region size indicates how much overlapping data should exist between adjacent feature segments obtained from the segmentation. The second overlapping region size can be set by the user or by the second control module based on specific application scenarios and business requirements. Based on the size of the second overlapping region, the second control module can overlap and share data at the edges of adjacent feature segments during segmentation, ensuring that there is overlapping data between adjacent feature segments among the p segmented features.

[0137] Step ②: The second control module assigns p feature slices to p decoders.

[0138] The second control module can allocate p information fragments to p decoders in any of the following ways:

[0139] Method a: When the second control module is deployed on the CPU of the computing device where the decoding device 203 is located, the second control module divides the video features of the target video into p feature segments, and then sends feature segment 1, feature segment 2, ..., feature segment p to decoder 1, decoder 2, ..., decoder p respectively. Correspondingly, decoder 1 receives feature segment 1, decoder 2 receives feature segment 2, ..., decoder p receives feature segment p.

[0140] Method b: When the second control module is deployed on the inference card where each decoder is located, for the second control module on each inference card, after dividing the video features of the target video into p feature segments, the corresponding feature segment can be determined according to the identifier of the inference card, and then the determined feature segment can be sent to the corresponding decoder.

[0141] For example, suppose the inference cards containing decoder 1, decoder 2, ..., decoder p are inference card 1, inference card 2, ..., inference card p, respectively. After the second control module on inference card 1 divides the video features of the target video into p feature segments, it determines feature segment 1 based on the identifier of inference card 1, and then sends feature segment 1 to decoder 1. Similarly, after the second control module on inference card 2 divides the video features of the target video into p feature segments, it determines feature segment 2 based on the identifier of inference card 2, and then sends feature segment 2 to decoder 1. And so on, after the second control module on inference card m divides the video features of the target video into p feature segments, it determines feature segment p based on the identifier of inference card p, and then sends feature segment p to decoder p.

[0142] Step ③: Each of the p decoders decodes the assigned feature segments to obtain p video segments.

[0143] Specifically, decoder 1 decodes feature segment 1 to obtain video segment 1; decoder 2 decodes feature segment 2 to obtain video segment 2; ..., decoder p decodes feature segment p to obtain video segment p.

[0144] Taking decoder 1 as an example, decoder 1 can decode feature segment 1 through the following steps: decoder 1 performs an upsampling operation on feature segment 1 to expand the feature image in feature segment 1 into a feature image that meets the user's requirements, thereby obtaining the target video.

[0145] For example, decoder 1 includes upsampling layers and convolutional layers, wherein the upsampling layers include k 3D deconvolutional layers, where k is an integer greater than 1. In the specific implementation:

[0146] The upsampling layer is used to perform multiple deconvolution calculations on the feature images in feature slice 1 based on multiple 3D deconvolution layers, so as to gradually expand the low-resolution, small-size feature images in feature slice 1 into high-resolution, large-size feature images. Here, high resolution and large size are the resolution and size that the user expects the target video to have, respectively. Taking a feature image in feature slice 1 (hereinafter referred to as "feature image 1") as an example, the upsampling layer is further described as follows: The first 3D deconvolution layer in the upsampling layer inserts blank elements between the elements of feature image 1. The blank elements can be 0 or other specified values, and the number of blank elements inserted can be determined by the stride of the deconvolution (i.e., the upsampling factor). For example, when the stride of the deconvolution is 2, one blank element can be inserted between the elements of feature image 1. When the stride of the deconvolution is 3, two blank elements can be inserted between the elements of feature image 1, thereby expanding the size of feature image 1. Then, a convolution operation is performed on the expanded feature image 1 to generate feature image 2. Next, the second 3D deconvolution layer in the upsampling layer inserts blank elements between the elements of feature image 2, and then performs a convolution operation on the expanded feature image 2 to generate feature image 3. This process continues until the k-th 3D deconvolution layer in the upsampling layer inserts blank elements between the elements of feature image k, and then performs a convolution operation on the expanded feature image k to generate a feature image that meets the user's requirements.

[0147] Convolutional layers are used to perform convolution calculations on the output of upsampling layers to expand the number of channels of the feature image output by the upsampling layer to the number of channels desired by the user, thereby obtaining the target video.

[0148] It is understood that the above example only introduces one possible decoder 1. In practical applications, decoder 1 can also have other structures. Correspondingly, the decoding operation performed by decoder 1 on feature segment 1 will also be different. For the sake of brevity, it will not be introduced in detail here.

[0149] Similarly, the process of other decoders (i.e., decoder 2, ..., decoder p) decoding the assigned feature segments can be referred to as the process of decoder 1 decoding feature segment 1. For the sake of brevity, it will not be described in detail here.

[0150] As one possible implementation, p decoders can decode the assigned feature segments in parallel. Here, parallelism means that the p encoders perform the encoding operations simultaneously, rather than performing the encoding operations one after another in sequence.

[0151] Step 4: The second control module acquires p video segments.

[0152] The second control module can obtain p video segments through any of the following methods:

[0153] Method a: When the second control module is deployed on the CPU of the computing device where the decoding device 203 is located, after decoder 1 generates video segment 1, it sends video segment 1 to the second control module; after decoder 2 generates video segment 2, it sends video segment 2 to the second control module; ...; after decoder p generates video segment p, it sends video segment p to the second control module. Thus, the second control module can obtain video segment 1, video segment 2, ..., video segment p.

[0154] In method b, when the second control module is deployed on the inference card where each decoder is located, p video segments can be obtained by the second control module on one inference card.

[0155] Continuing with the example above, assuming the second control module on inference card 1 obtains p video segments, the acquisition process is as follows: After decoder 1 generates video segment 1, it sends video segment 1 to the local second control module; after decoder 2 generates video segment 2, it sends video segment 2 to the second control module on inference card 1; ...; after decoder p generates video segment p, it sends video segment p to the second control module on inference card 1. Therefore, the second control module on inference card 1 can obtain video segment 1, video segment 2, ..., video segment p.

[0156] Step 5: The second control module splices the p video segments to obtain the target video.

[0157] In practice, the second control module can stitch together the acquired p video segments according to the segmentation dimension indicated by the second segmentation strategy to obtain the target video.

[0158] As can be seen from step ① above, when the second control module segments the video features of the target video, there may be overlapping data between adjacent feature segments in the p feature segments obtained from the segmentation. In this case, there may also be overlapping data between adjacent video segments in the p video segments obtained by encoding the p feature segments. Therefore, the second control module also needs to consider the size of the overlapping data between adjacent video segments when splicing the p video segments. Specifically, the second control module determines the position information of the overlapping data between adjacent feature segments in the p feature segments according to the size of the second overlapping region indicated by the third segmentation strategy. Here, the position information of the overlapping data is used to characterize the position of the overlapping data in the feature segments. Then, based on the position information of the overlapping data between adjacent feature segments, the position information of the overlapping data between the corresponding adjacent video segments is determined, thereby obtaining the overlapping data between adjacent video segments. After that, the second control module processes the overlapping data between adjacent video segments (such as weighted average calculation or self-attention calculation), and then splices the processed video segments according to the segmentation dimension indicated by the third segmentation strategy to obtain the target video.

[0159] It is understood that steps ① to ⑤ above only describe one possible implementation of the decoding device 203 decoding the video features of the target video. In practical applications, the decoding device 203 may also have other structures, and correspondingly, the process of decoding the video features of the target video by the decoding device 203 will also differ. For example, when the decoding device 203 includes only one decoder, the decoding device 203 can directly input the video features of the target video into the decoder, and after processing by the decoder, the target video can be obtained.

[0160] Step 107: The video generation system 200 sends the target video to the client 100.

[0161] The video generation system 200 can send the target video to the client 100 via a network. Correspondingly, after receiving the target video sent by the video generation system 200, the client 100 parses the target video and loads the video content, allowing the user to view the target video generated by the video generation system 200 through the client 100.

[0162] As can be seen from the video generation method described in steps 101 to 106 above, the video generation system 200 can generate target videos that meet user requirements. Furthermore, during the generation of the target video, one or more of the encoding device 201, diffusion device 202, and decoding device 203 in the video generation system 200 can perform inference tasks in a distributed manner, improving the generation efficiency of the target video. On the other hand, the encoder, diffusion model, and decoder used in the video generation system 200 are flexibly deployed and can be deployed on more cost-effective inference cards, saving computational costs.

[0163] This application also provides a computing device. The computing device can be a server, such as a server in a cloud data center, an edge server, or a local server in a local data center, or a terminal device such as a desktop computer, a laptop computer, or a smartphone.

[0164] Referring to Figure 7, which exemplarily illustrates a schematic diagram of a computing device, the computing device 300 includes a bus 301, multiple processors 302, a memory 303, and a communication interface 304. The processors 302, the memory 303, and the communication interface 304 communicate via the bus 301. It should be understood that this application does not limit the number of memories 303 in the computing device 300; that is, the computing device 300 may include one or more memories 303, but for ease of description, Figure 7 only shows one memory 303. The various parts of the computing device 300 will be described in detail below.

[0165] Bus 301 can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. Buses can be categorized as address buses, data buses, control buses, etc. For ease of representation, only one line is used in Figure 7, but this does not mean that the computing device 300 has only one bus or one type of bus. Bus 301 can include pathways for transmitting information between various components of the computing device 300 (e.g., processor 302, memory 303, and communication interface 304).

[0166] Processor 302 may include any one or more processors such as CPU, GPU, NPU, microprocessor (MP), or digital signal processor (DSP).

[0167] Memory 303 may include volatile memory, such as random access memory (RAM). Memory 303 may also include non-volatile memory, such as solid-state drive (SSD), flash memory, read-only memory (ROM), or hard disk drive (HDD).

[0168] The memory 303 stores executable code. The processor 302 executes the code stored in the memory 303 to implement the functions of the encoding device 201, the diffusion device 202, and the decoding device 203, respectively, thereby implementing the video generation method described above. That is to say, the memory 303 stores instructions for executing the video generation method described above.

[0169] The communication interface 304 uses transceiver modules such as, but not limited to, network interface cards and transceivers to enable communication between the computing device 300 and other devices or communication networks. For example, the computing device 300 can communicate with the client 100 through the communication interface 304 to obtain video generation requests and send target videos to the client 100.

[0170] It should be understood that the computing device 300 provided according to this application can correspond to the video generation system 200 described above, and the functions of each component in the computing device 300 are respectively to implement the corresponding processes of each step in the method shown in Figure 6. For the sake of brevity, they will not be described in detail here.

[0171] This application also provides a computing device cluster. The computing device cluster includes at least one computing device, which may be a server, such as a central server in a cloud data center, an edge server, or a local server in a local data center. In some embodiments, the computing device in the computing device cluster may also be a terminal device such as a desktop computer, a laptop computer, or a smartphone.

[0172] Referring to Figure 8, which exemplarily illustrates a schematic diagram of a computing device cluster, the computing device cluster includes at least one computing device 300. The memory 303 of one or more computing devices 300 in the computing device cluster may store identical instructions for executing the video generation method described above.

[0173] In some possible implementations, the memory 303 of one or more computing devices 300 in the computing device cluster may also store partial instructions for executing the video generation method described above. In other words, a combination of one or more computing devices 300 can jointly execute the instructions of the video generation method described above.

[0174] It should be noted that the memory 303 of different computing devices 300 in the computing device cluster can store different instructions, which are used to execute some functions of the video generation system 200. That is, the instructions stored in the memory 303 of different computing devices 300 can realize the function of at least one module of the encoding device 201, the diffusion device 202 and the decoding device 203.

[0175] In some possible implementations, one or more computing devices 300 in a computing device cluster can be connected via a network, such as a wide area network (WAN) or a local area network (LAN). Figure 9 illustrates one possible implementation, where computing devices 300A and 300B are connected via a network. Specifically, they are connected to the network through communication interfaces in computing devices 300A and 300B. In this implementation, the memory 303 in computing device 300A stores instructions for implementing the functions of the encoding device 201 and the diffusion device 202, and the memories 303 in computing device 300B both store instructions for implementing the functions of the decoding device 203.

[0176] The connection method between computing devices 300 in the computing device cluster shown in Figure 9 can be considered as follows: considering that the video generation method provided in this application requires the decoding device 203 to perform a large amount of computation, the function of the decoding device 203 is to be performed by the computing device 300B.

[0177] It should be understood that the functions of computing device 300A shown in Figure 9 can also be performed by multiple computing devices 300. Similarly, the functions of computing device 300B can also be performed by multiple computing devices 300.

[0178] It should also be understood that the computing device cluster provided in this application can correspond to the video generation system 200 described above, and the functions of each component in the computing device cluster are respectively to implement the corresponding processes of each step in the method shown in Figure 3. For the sake of brevity, they will not be described in detail here.

[0179] This application also provides a computer program product containing instructions. This computer program product may be a software or program product containing instructions that can run on a computing device or be stored on any available medium. When the computer program product is run on a computing device, it causes the computing device to perform the video generation method described above.

[0180] This application also provides a computer-readable storage medium. The computer-readable storage medium can be any available medium capable of being stored by a computing device, or a data storage device such as a data center containing one or more available media. The available media can be magnetic media (e.g., floppy disks, hard disks, magnetic tapes), optical media (e.g., DVDs), or semiconductor media (e.g., solid-state drives). The computer-readable storage medium includes instructions that instruct a computing device to perform the video generation method described above.

[0181] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit it. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the protection scope of the technical solutions of the embodiments of this application.

Claims

1. A video generation method, characterized in that, The video generation system includes a decoding device, which includes a first control module and multiple decoders, the multiple decoders being deployed on multiple first inference cards. The method includes: The first control module acquires the video features to be decoded; The first control module divides the video features into multiple feature segments and assigns a corresponding feature segment to each decoder, so that each decoder can decode the assigned feature segment. The first control module splices the decoding results of the multiple decoders to obtain the target video.

2. The method according to claim 1, characterized in that, The plurality of decoders includes a plurality of variational encoder (VAE) decoders.

3. The method according to claim 2, characterized in that, The first control module divides the video features into multiple feature segments, including: The first control module divides the video features into multiple feature segments according to a preset segment size, wherein there is overlapping data between adjacent feature segments.

4. The method according to claim 3, characterized in that, The preset fragment size is configured based on the memory of the first inference card and the memory usage of the decoder.

5. The method according to any one of claims 1 to 4, characterized in that, The first control module is deployed on the inference card where each decoder is located; The first control module assigns corresponding feature slices to each decoder, including: The first control module allocates a corresponding feature slice to each decoder according to the identifier of the inference card, wherein each inference card identifier corresponds to a feature slice.

6. The method according to any one of claims 1 to 5, characterized in that, The video generation system further includes an encoding device and a diffusion device. The encoding device includes a second control module and multiple encoders, which are deployed on multiple second inference cards. The diffusion device includes multiple diffusion models, which are deployed on multiple third inference cards. Before the first control module acquires the video features to be decoded, the method further includes: The second control module acquires the description information of the target video, which reflects the content that the target video needs to contain; The second control module divides the description information into multiple information segments and assigns a corresponding information segment to each encoder so that each encoder encodes the assigned information segment. The second control module concatenates the encoding results of the multiple encoders to obtain the encoded data of the description information; The multiple diffusion models in the diffusion device generate video features that meet the requirements of the description information based on the encoded data of the description information.

7. The method according to claim 6, characterized in that, The plurality of encoders includes a plurality of VAE encoders, and the plurality of diffusion models includes a plurality of diffusion transformers (DiT).

8. The method according to claim 6 or 7, characterized in that, One or more of the first inference card, the second inference card, and the third inference card are different inference cards.

9. The method according to any one of claims 6 to 8, characterized in that, The plurality of first inference cards, the plurality of second inference cards, and the plurality of third inference cards are deployed on one or more computing devices.

10. A video generation system, characterized in that, The device includes a decoding unit, which comprises a first control module and multiple decoders, the multiple decoders being deployed on multiple first inference cards; The first control module is used to acquire the video features to be decoded, divide the video features into multiple feature segments, and assign the multiple feature segments to the multiple decoders; The decoder is used to decode the feature segments allocated by the first control module; The first control module is also used to splice the decoding results of the multiple decoders to obtain the target video.

11. The system according to claim 10, characterized in that, The plurality of decoders includes a plurality of variational encoder (VAE) decoders.

12. The system according to claim 11, characterized in that, The first control module is used to divide the video features into multiple feature segments according to a preset segment size, wherein there is overlapping data between adjacent feature segments in the multiple feature segments.

13. The system according to claim 12, characterized in that, The preset fragment size is configured based on the memory of the first inference card and the memory usage of the decoder.

14. The system according to any one of claims 10 to 13, characterized in that, The first control module is deployed on the inference card where each decoder is located; The first control module is used to allocate a corresponding feature slice to each decoder according to the identifier of the inference card, wherein each inference card identifier corresponds to a feature slice.

15. The system according to any one of claims 10 to 14, characterized in that, The video generation system further includes an encoding device and a diffusion device. The encoding device includes a second control module and multiple encoders, which are deployed on multiple second inference cards. The diffusion device includes multiple diffusion models, which are deployed on multiple third inference cards. The second control module is used to acquire the description information of the target video, wherein the description information is used to reflect the content that the target video needs to contain; the description information of the target video is divided into multiple information segments, and the multiple information segments are assigned to the multiple encoders; The encoder is used to encode the information segments allocated by the second control module; The second control module is further configured to concatenate the encoding results of the multiple encoders to obtain the encoded data of the description information; The diffusion model is used to generate video features that conform to the requirements of the description information based on the encoded data of the description information.

16. The system of claim 15, wherein the plurality of encoders comprises a plurality of VAE encoders, and the plurality of diffusion models comprises a plurality of diffusion converters (DiT).

17. The system according to claim 15 or 16, characterized in that, One or more of the first inference card, the second inference card, and the third inference card are different inference cards.

18. The system according to any one of claims 15 to 17, characterized in that, The plurality of first inference cards, the plurality of second inference cards, and the plurality of third inference cards are deployed on one or more computing devices.

19. A computing device cluster, characterized in that, It includes at least one computing device, each computing device including memory and multiple processors; The processor of the at least one computing device is configured to execute instructions stored in the memory of the at least one computing device to cause the cluster of computing devices to perform the method as described in any one of claims 1 to 9.

20. A computer-readable storage medium, characterized in that, It includes computer program instructions, which, when executed by a computing device, cause the computing device to perform the method as described in any one of claims 1 to 9.

21. A computer program product containing instructions, characterized in that, When the instruction is executed by the computing device cluster, the computing device cluster causes the computing device cluster to perform the method as described in any one of claims 1 to 9.