Multimedia resource generation method and device, electronic equipment and storage medium
The click prediction model predicts the click-through rate and exposure of material template matching pairs, and automatically selects high-quality material template matching pairs, which solves the problem in the existing technology that users need to manually match materials and templates, and improves the efficiency and effectiveness of multimedia resource generation. quality.
Patent Information
- Application Number
- CN202410833794.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-25
- Publication Date
- 2024-09-10
AI Technical Summary
In the existing technology, users need to manually select matching materials and templates from a large number of templates and materials, resulting in low video generation efficiency and cumbersome operations.
The click prediction model performs feature processing on material template matching pairs to predict their click-through rate and exposure, and automatically selects material template matching pairs with a click-through rate higher than the threshold to generate multimedia resources to improve generation efficiency and quality.
It realizes automated multimedia resource generation, improves generation efficiency and quality, and reduces the tediousness of user operations.
Smart Images

Figure CN118632087A
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to a multimedia resource generation method, device, electronic device and storage medium. Background Art
[0002] With the development of Internet technology, more and more users are sharing their own videos on short video platforms. In order to improve the efficiency of video generation, short video platforms provide a large number of templates and materials for users to choose from, so that they can generate videos with one click. At present, in the process of video generation, how to select matching materials and templates to improve video quality is a technical problem that needs to be solved.
[0003] In the related art, a manual matching method is usually used to determine the matching materials and templates. This method requires the user to select a template that he or she subjectively considers to be more beautiful and more compatible from multiple templates based on the content and color of the material as the template that matches the material.
[0004] However, in the above scheme, the manual matching method requires the user to select mutually matching materials and templates from a large number of templates and materials, which is a cumbersome operation and results in low video generation efficiency. Summary of the invention
[0005] The present disclosure provides a multimedia resource generation method, device, electronic device and storage medium, which can automatically select material template matching pairs with a click rate higher than a click rate threshold to generate multimedia resources, which not only improves the generation efficiency of multimedia resources, but also realizes the optimization of materials and templates during the generation process, thereby improving the generation quality of multimedia resources. The technical solution of the present disclosure is as follows:
[0006] According to one aspect of an embodiment of the present disclosure, a method for generating multimedia resources is provided, including:
[0007] In response to an input operation of resource information in a multimedia generation page, a plurality of material template matching pairs and the resource information are processed to obtain a plurality of predicted click-through rates, the plurality of predicted click-through rates corresponding to the plurality of material template matching pairs one by one, the resource information being used to indicate a resource type of a multimedia resource to be generated and an object for display, the material template matching pair including any material and any template, and the predicted click-through rate being a predicted click-through rate of a multimedia resource generated based on the material template matching pair;
[0008] Based on the multiple predicted click-through rates, determining at least one first material template matching pair from the multiple material template matching pairs, wherein the predicted click-through rate corresponding to the first material template matching pair is greater than a click-through rate threshold;
[0009] A multimedia resource is generated based on the at least one first material template matching pair.
[0010] According to another aspect of an embodiment of the present disclosure, there is provided a multimedia resource generating device, including:
[0011] a processing unit configured to, in response to an input operation of resource information in a multimedia generation page, process a plurality of material template matching pairs and the resource information to obtain a plurality of predicted click-through rates, wherein the plurality of predicted click-through rates correspond to the plurality of material template matching pairs one by one, the resource information is used to indicate a resource type of a multimedia resource to be generated and an object for display, the material template matching pair includes any material and any template, and the predicted click-through rate is a predicted click-through rate of a multimedia resource generated based on the material template matching pair;
[0012] A determining unit is configured to determine at least one first material template matching pair from the multiple material template matching pairs based on the multiple predicted click-through rates, wherein the predicted click-through rate corresponding to the first material template matching pair is greater than a click-through rate threshold;
[0013] The generating unit is configured to generate multimedia resources based on the at least one first material template matching pair.
[0014] In some embodiments, the processing unit includes:
[0015] a first processing subunit configured to process, for any material template matching pair, the material template matching pair and the resource information through a feature processing module in a click prediction model to obtain a first fusion feature, wherein the first fusion feature includes a material feature and a template feature of the material template matching pair and a resource feature of the resource information, and the click prediction model is used to predict a click rate of a multimedia resource;
[0016] The second processing sub-unit is configured to process the first fusion feature through the exposure prediction module in the click prediction model to obtain the predicted exposure corresponding to the material template matching pair, where the predicted exposure is the predicted exposure of the multimedia resource generated based on the material template matching pair;
[0017] The third processing sub-unit is configured to process the predicted exposure and the first fusion feature through the feature processing module and the click prediction module in the click prediction model to obtain the predicted click rate corresponding to the material template matching pair.
[0018] In some embodiments, the first processing sub-unit is configured to perform feature extraction on the material template matching pair and the resource information respectively through the feature extraction layer in the feature processing module to obtain the material features, template features of the material template matching pair and the resource features of the resource information; to splice the material features, the template features and the resource features through the feature splicing layer in the feature processing module to obtain the splicing features; and to fully connect the splicing features through the fully connected layer in the feature processing module to obtain the first fusion features.
[0019] In some embodiments, the second processing sub-unit is configured to divide the prediction task of the exposure prediction module based on a plurality of preset exposure intervals to obtain a plurality of prediction sub-tasks corresponding one-to-one to the plurality of exposure intervals, the prediction task being used to predict the predicted exposure corresponding to any material template matching pair, the prediction sub-task being used to predict the probability that the predicted exposure corresponding to any material template matching pair belongs to the exposure interval corresponding to the prediction sub-task; the first fusion feature is processed respectively by the plurality of expert networks in the exposure prediction module to obtain a plurality of processing results output by the plurality of expert networks; for any prediction sub-task, the plurality of processing results output by the plurality of expert networks are weightedly summed by the gating network corresponding to the prediction sub-task in the exposure prediction module to obtain the exposure prediction result of the prediction sub-task, the exposure prediction result being used to indicate the probability that the predicted exposure corresponding to the material template matching pair belongs to the exposure interval corresponding to the prediction task; based on the exposure prediction results of the plurality of prediction sub-tasks, the predicted exposure corresponding to the material template matching pair is determined.
[0020] In some embodiments, the second processing sub-unit is configured to determine, for any prediction sub-task, a mean exposure value corresponding to the prediction sub-task based on the exposure value interval corresponding to the prediction sub-task, wherein the mean exposure value is the middle value of the exposure value interval; multiply the mean exposure value by the probability indicated by the exposure prediction result to obtain the exposure value corresponding to the prediction sub-task; and determine the sum of multiple exposure values corresponding to the multiple prediction sub-tasks as the predicted exposure value corresponding to the material template matching pair.
[0021] In some embodiments, the third processing sub-unit is configured to process the predicted exposure and the first fusion feature through the feature processing module in the click prediction model to obtain a second fusion feature, where the second fusion feature includes the exposure feature of the predicted exposure and the first fusion feature; process the second fusion feature respectively through multiple expert networks in the click prediction module to obtain multiple processing results output by the multiple expert networks; and perform weighted summation on the multiple processing results output by the multiple expert networks through the gating network in the click prediction module to obtain the predicted click-through rate corresponding to the material template matching pair.
[0022] In some embodiments, the apparatus further comprises:
[0023] An acquisition unit, configured to acquire a plurality of sample multimedia resources and tag information of the plurality of sample multimedia resources, wherein the tag information is used to indicate a real exposure amount and a real click rate of the sample multimedia resources;
[0024] The training unit is configured to perform a first-stage training on the click prediction model based on the multiple first sample multimedia resources, the actual exposure of the multiple first sample multimedia resources, and the actual click-through rate of the multiple first sample multimedia resources to obtain a first click prediction model, wherein the first sample multimedia resource is any sample multimedia resource among the multiple sample multimedia resources, and the first-stage training is used to learn the influence of the actual exposure of the multimedia resource on the click-through rate of the multimedia resource; based on the predicted exposure of the multiple second sample multimedia resources, the multiple second sample multimedia resources, and the actual click-through rate of the multiple second sample multimedia resources by the first click prediction model, perform a second-stage training on the first click prediction model to obtain a second click prediction model, wherein the second sample multimedia resource is any sample multimedia resource among the multiple sample multimedia resources except the first sample multimedia resource, and the second-stage training is used to learn the influence of the predicted exposure of the multimedia resource on the click-through rate of the multimedia resource.
[0025] In some embodiments, the generation unit is configured to fill the material in the at least one first material template matching pair into the template in the first material template matching pair to obtain the multimedia resource when the number of the at least one first material template matching pair is 1; determine a plurality of second material template matching pairs from the plurality of first material template matching pairs when the number of the at least one first material template matching pair is multiple, and the plurality of second material template matching pairs are material template matching pairs with the same templates; fill the plurality of materials in the plurality of second material template matching pairs into the template in the second material template matching pair to obtain the multimedia resource.
[0026] According to another aspect of an embodiment of the present disclosure, there is provided an electronic device, the electronic device comprising:
[0027] one or more processors;
[0028] A memory for storing program codes executable by the processor;
[0029] The processor is configured to execute the program code to implement the multimedia resource generation method.
[0030] According to another aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided. When a program code in the computer-readable storage medium is executed by a processor of an electronic device, the electronic device is enabled to execute the above-mentioned multimedia resource generation method.
[0031] According to another aspect of an embodiment of the present disclosure, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the above-mentioned multimedia resource generation method is implemented.
[0032] The disclosed embodiments provide a method for generating multimedia resources. By acquiring resource information of the multimedia resources to be generated, an electronic device can process multiple material template matching pairs and the resource information for generating multimedia resources to predict the click rate of the multimedia resources generated based on each material template matching pair, and then automatically select material template matching pairs with a click rate higher than a click rate threshold to generate multimedia resources. This not only improves the generation efficiency of multimedia resources, but also realizes the optimization of materials and templates during the generation process, thereby improving the generation quality of multimedia resources.
[0033] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] The drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the description are used to explain the principles of the present disclosure, and do not constitute improper limitations on the present disclosure.
[0035] Figure 1 It is a schematic diagram of an implementation environment of a multimedia resource generation method according to an exemplary embodiment.
[0036] Figure 2 The figure is a flowchart of a multimedia resource generating method according to an exemplary embodiment.
[0037] Figure 3 The figure is a flowchart of another multimedia resource generating method according to an exemplary embodiment.
[0038] Figure 4 The figure is a schematic diagram of the structure of a click prediction model according to an exemplary embodiment.
[0039] Figure 5 It is a block diagram of a multimedia resource generating device according to an exemplary embodiment.
[0040] Figure 6 It is a block diagram of another multimedia resource generating device according to an exemplary embodiment.
[0041] Figure 7 It is a block diagram of a terminal according to an exemplary embodiment.
[0042] Figure 8 It is a block diagram of a server according to an exemplary embodiment. DETAILED DESCRIPTION
[0043] In order to enable ordinary persons in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings.
[0044] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0045] It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, stored data, displayed data, etc.) and signals involved in this disclosure are all authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions. For example, the material features, template features, label information of sample multimedia resources, etc. involved in this disclosure are all obtained with full authorization.
[0046] Figure 1 FIG. 1 is a schematic diagram of an implementation environment of a multimedia resource generation method according to an exemplary embodiment. Figure 1 , the implementation environment specifically includes: a terminal 101 and a server 102.
[0047] The terminal 101 may be at least one of a smart phone, a smart watch, a desktop computer, a laptop computer, an MP3 player (Moving Picture Experts Group Audio Layer III), an MP4 player (Moving Picture Experts Group Audio Layer IV), and a laptop computer. An application for generating multimedia resources may be installed and run on the terminal 101, and a user may log in to the application through the terminal 101 to obtain the services provided by the application. The application is associated with the server 102, and the server 102 provides background services. The terminal 101 may be connected to the server 102 via a wireless network or a wired network.
[0048] The terminal 101 may generally refer to one of a plurality of terminals. This embodiment is only illustrated by taking the terminal 101 as an example. Those skilled in the art may know that the number of the above terminals may be more or less. For example, the above terminals may be only a few, or the above terminals may be dozens or hundreds, or a greater number. The embodiment of the present disclosure does not limit the number and device type of the terminals.
[0049] The server 102 may be at least one of a single server, multiple servers, a cloud computing platform, and a virtualization center. The server 102 may be connected to the terminal 101 and other terminals via a wireless network or a wired network. Optionally, the number of the above servers may be more or less, which is not limited in the embodiments of the present disclosure. Of course, the server 102 may also include other functional servers to provide more comprehensive and diversified services.
[0050] Figure 2 is a flowchart of a multimedia resource generation method according to an exemplary embodiment. Figure 2 As shown, the method is performed by an electronic device and includes the following steps:
[0051] In step S201, in response to the input operation of resource information in the multimedia generation page, the electronic device processes multiple material template matching pairs and resource information to obtain multiple predicted click-through rates, and the multiple predicted click-through rates correspond one-to-one to the multiple material template matching pairs. The resource information is used to indicate the resource type of the multimedia resource to be generated and the object for display. The material template matching pair includes any material and any template. The predicted click-through rate is the predicted click-through rate of the multimedia resource generated based on the material template matching pair.
[0052] In an embodiment of the present disclosure, an electronic device runs an application that supports a multimedia generation function. The application can be any application in an electronic device, such as a video application, a social application, an information application, etc., and the embodiment of the present disclosure does not limit this. During the operation of the application, the electronic device can display a multimedia generation page in the application for the user to generate multimedia resources. Accordingly, in response to the user's input operation of resource information in the multimedia generation page, the electronic device can process multiple material matching pairs for generating multimedia resources and the resource information input by the user to obtain multiple predicted click-through rates, that is, to obtain the click-through rates of multimedia resources generated based on multiple material template matching pairs. Among them, the resource information is the resource information of the multimedia resources to be generated by the user, which is used to indicate the resource type of the multimedia resources to be generated and the objects for display of the multimedia resources to be generated. The resource type can be video, picture, text, etc., and the object can be a commodity, service, animal, person, etc., and the embodiment of the present disclosure does not limit this.
[0053] In step S202, the electronic device determines at least one first material template matching pair from multiple material template matching pairs based on multiple predicted click rates, and the predicted click rate corresponding to the first material template matching pair is greater than a click rate threshold.
[0054] In the disclosed embodiment, for any material template matching pair, the higher the predicted click rate corresponding to the material template matching pair, the higher the click rate of the multimedia resource generated based on the material template matching pair predicted by the electronic device, that is, the higher the generation quality of the multimedia resource generated based on the material template matching pair. Therefore, in order to improve the generation quality of multimedia resources in the process of generating multimedia resources based on the material template provided by the video generation page, the electronic device can determine at least one material template matching pair whose predicted click rate is greater than the click rate threshold from the multiple material template matching pairs based on the multiple predicted click rates corresponding to the multiple material template matching pairs, that is, the first material template matching pair.
[0055] In step S203, the electronic device generates multimedia resources based on at least one first material template matching pair.
[0056] In the embodiment of the present disclosure, each material template matching pair includes a material and a template. The material can be a video, picture, text, audio, etc., and the template can be a video template or a picture template, which is not limited in the embodiment of the present disclosure. The electronic device can generate corresponding multimedia resources based on any material template matching pair. Accordingly, after selecting at least one first material template matching pair with a predicted click-through rate higher than a click-through rate threshold from multiple material template matching pairs, the electronic device can generate multimedia resources based on the material and template in the at least one first material template matching pair.
[0057] The disclosed embodiments provide a method for generating multimedia resources. By acquiring resource information of the multimedia resources to be generated, an electronic device can process multiple material template matching pairs and the resource information for generating multimedia resources to predict the click rate of the multimedia resources generated based on each material template matching pair, and then automatically select material template matching pairs with a click rate higher than a click rate threshold to generate multimedia resources. This not only improves the generation efficiency of multimedia resources, but also realizes the optimization of materials and templates during the generation process, thereby improving the generation quality of multimedia resources.
[0058] In some embodiments, multiple material template matching pairs and resource information are processed to obtain multiple predicted click rates, including:
[0059] For any material template matching pair, the material template matching pair and resource information are processed by a feature processing module in the click prediction model to obtain a first fusion feature, the first fusion feature including a material feature of the material template matching pair, a template feature and a resource feature of the resource information, and the click prediction model is used to predict the click rate of the multimedia resource;
[0060] By processing the first fusion feature through the exposure prediction module in the click prediction model, a predicted exposure corresponding to the material template matching pair is obtained, where the predicted exposure is the predicted exposure of the multimedia resource generated based on the material template matching pair;
[0061] The predicted exposure amount and the first fusion feature are processed through the feature processing module and the click prediction module in the click prediction model to obtain the predicted click rate corresponding to the material template matching pair.
[0062] In the disclosed embodiment, the electronic device can predict the click-through rate of the multimedia resource based on the predicted exposure of the multimedia resource, thereby improving the accuracy of the predicted click-through rate, enabling the electronic device to more accurately determine the material template matching pairs used to generate the multimedia resource, thereby improving the generation quality of the multimedia resource.
[0063] In some embodiments, the feature processing module in the click prediction model processes the material template matching pair and the resource information to obtain the first fusion feature, including:
[0064] Through the feature extraction layer in the feature processing module, feature extraction is performed on the material template matching pair and the resource information respectively to obtain the material feature and template feature of the material template matching pair and the resource feature of the resource information;
[0065] Through the feature splicing layer in the feature processing module, the material features, template features and resource features are spliced to obtain splicing features;
[0066] The concatenated features are fully connected through the fully connected layer in the feature processing module to obtain the first fusion feature.
[0067] In the disclosed embodiment, a first fusion feature integrating all features is obtained by performing a series of processes such as feature extraction, feature splicing, feature fusion, and feature conversion on the material template matching pairs and resource information. This can improve the accuracy of the predicted click-through rate obtained by subsequent processing of the first fusion feature, thereby more accurately determining the material template matching pairs used to generate multimedia resources and improving the generation quality of multimedia resources.
[0068] In some embodiments, the first fusion feature is processed by an exposure prediction module in the click prediction model to obtain a predicted exposure corresponding to the material template matching pair, including:
[0069] Based on a plurality of preset exposure intervals, the prediction tasks of the exposure prediction module are divided to obtain a plurality of prediction subtasks corresponding to the plurality of exposure intervals. The prediction tasks are used to predict the predicted exposure corresponding to any material template matching pair, and the prediction subtasks are used to predict the probability that the predicted exposure corresponding to any material template matching pair belongs to the exposure interval corresponding to the prediction subtask.
[0070] The first fusion feature is processed respectively by multiple expert networks in the exposure prediction module to obtain multiple processing results output by the multiple expert networks;
[0071] For any prediction subtask, a weighted sum is performed on multiple processing results output by multiple expert networks through the gating network corresponding to the prediction subtask in the exposure prediction module to obtain an exposure prediction result of the prediction subtask. The exposure prediction result is used to indicate the probability that the predicted exposure corresponding to the material template matching pair belongs to the exposure interval corresponding to the prediction task;
[0072] Based on the exposure prediction results of the multiple prediction subtasks, the predicted exposure corresponding to the material template matching pair is determined.
[0073] In the embodiment of the present disclosure, by dividing the prediction task of the exposure prediction module into multiple prediction sub-tasks according to multiple exposure intervals, the probability that the predicted exposure corresponding to the material template matching pair belongs to different exposure intervals can be predicted respectively, and then the exposure prediction results of multiple prediction sub-tasks can be combined to obtain the final predicted exposure, thereby avoiding the influence of the long-tail characteristics of the exposure data on the exposure prediction, improving the accuracy of the predicted exposure, and further improving the accuracy of the predicted click-through rate determined based on the predicted exposure.
[0074] In some embodiments, based on the exposure prediction results of the plurality of prediction subtasks, determining the predicted exposure corresponding to the material template matching pair includes:
[0075] For any prediction subtask, based on the exposure interval corresponding to the prediction subtask, determine the exposure mean corresponding to the prediction subtask, where the exposure mean is the middle value of the exposure interval;
[0076] Multiply the exposure mean and the probability indicated by the exposure prediction result to obtain the exposure corresponding to the prediction subtask;
[0077] The sum of the multiple exposure amounts corresponding to the multiple prediction subtasks is determined as the predicted exposure amount corresponding to the material template matching pair.
[0078] In the disclosed embodiment, by comprehensively processing the exposure prediction results of multiple prediction subtasks, the predicted exposure amount predicted by the electronic device can be an exposure amount obtained by comprehensively considering the probability that the predicted exposure amount belongs to multiple exposure amount intervals, thereby improving the accuracy of the predicted exposure amount and further improving the accuracy of the predicted click-through rate determined based on the predicted exposure amount.
[0079] In some embodiments, the predicted exposure amount and the first fusion feature are processed by the feature processing module and the click prediction module in the click prediction model to obtain the predicted click rate corresponding to the material template matching pair, including:
[0080] By clicking on the feature processing module in the prediction model, the predicted exposure and the first fusion feature are processed to obtain a second fusion feature, where the second fusion feature includes the exposure feature of the predicted exposure and the first fusion feature;
[0081] The second fusion feature is processed respectively by multiple expert networks in the click prediction module to obtain multiple processing results output by the multiple expert networks;
[0082] Through the gating network in the click prediction module, multiple processing results output by multiple expert networks are weighted and summed to obtain the predicted click rate corresponding to the material template matching pair.
[0083] In the embodiment of the present disclosure, by processing the exposure feature of the predicted exposure and the first fusion feature to obtain a comprehensive exposure feature and a second fusion feature of the first fusion feature, the electronic device can take into account the predicted exposure of the multimedia resource when predicting the click-through rate of the multimedia resource, thereby improving the accuracy of the predicted click-through rate, enabling the electronic device to more accurately determine the material template matching pairs used to generate the multimedia resource, thereby improving the generation quality of the multimedia resource.
[0084] In some embodiments, the training process of the click prediction model includes:
[0085] Acquire multiple sample multimedia resources and label information of the multiple sample multimedia resources, where the label information is used to indicate the actual exposure amount and actual click rate of the sample multimedia resources;
[0086] Based on multiple first sample multimedia resources, the actual exposure amounts of the multiple first sample multimedia resources, and the actual click-through rates of the multiple first sample multimedia resources, a first-stage training is performed on the click prediction model to obtain a first click prediction model, wherein the first sample multimedia resource is any sample multimedia resource among the multiple sample multimedia resources, and the first-stage training is used to learn the influence of the actual exposure amount of the multimedia resource on the click-through rate of the multimedia resource;
[0087] Based on the first click prediction model's predicted exposure of multiple second sample multimedia resources, multiple second sample multimedia resources, and actual click-through rates of multiple second sample multimedia resources, the first click prediction model is trained in the second stage to obtain a second click prediction model. The second sample multimedia resource is any sample multimedia resource among the multiple sample multimedia resources except the first sample multimedia resource. The second stage training is used to learn the impact of the predicted exposure of the multimedia resource on the click-through rate of the multimedia resource.
[0088] In the disclosed embodiment, by using the actual exposure of multiple first sample multimedia resources to train the click prediction module in the click prediction model in the early stage of training, the click prediction model can quickly learn the impact of the actual exposure of multimedia resources on the click rate of multimedia resources, that is, even if the click prediction model has the ability to predict the click rate of multimedia resources based on the actual exposure. By using the click prediction module to train the click prediction module in the click prediction model with the predicted exposure of multiple second sample multimedia resources in the late stage of training, the click prediction model can learn the impact of the predicted exposure of multimedia resources on the click rate of multimedia resources, that is, even if the click prediction model has the ability to predict the click rate of multimedia resources based on the predicted exposure, so that the click prediction module can predict the click rate of multimedia resources according to the predicted exposure of unexposed multimedia resources in the inference stage, thereby improving the accuracy of the click prediction module in the inference stage.
[0089] In some embodiments, generating a multimedia resource based on at least one first material template matching pair includes:
[0090] When the number of at least one first material template matching pair is 1, fill the material in the first material template matching pair into the template in the first material template matching pair to obtain a multimedia resource;
[0091] In the case that the number of at least one first material template matching pair is plural, determining a plurality of second material template matching pairs from the plurality of first material template matching pairs, wherein the plurality of second material template matching pairs are material template matching pairs having the same template;
[0092] Fill multiple materials in multiple second material template matching pairs into the template in the second material template matching pair to obtain multimedia resources.
[0093] In the embodiment of the present disclosure, by filling multiple materials in a material template matching pair with the same template into a template to generate multimedia resources when there is a material template matching pair with the same template in at least one first material template matching pair, the material richness of the multimedia resources can be improved and the generation quality of the multimedia resources can be enhanced.
[0094] Above Figure 2 The basic process of the present disclosure is shown below. The solution provided by the present disclosure is further described based on a specific implementation method. Figure 3 is a flowchart of another multimedia resource generation method according to an exemplary embodiment. The method is executed by an electronic device, see Figure 3 , the method comprising:
[0095] In step S301, in response to the input operation of resource information in the multimedia generation page, for any material template matching pair among multiple material template matching pairs, the material template matching pair and the resource information are processed by the feature processing module in the click prediction model to obtain a first fusion feature, the resource information is used to indicate the resource type of the multimedia resource to be generated and the object for display, the material template matching pair includes any material and any template, the first fusion feature includes the material features of the material template matching pair, the template features and the resource features of the resource information, and the click prediction model is used to predict the click rate of the multimedia resource.
[0096] In an embodiment of the present disclosure, an electronic device runs an application that supports a multimedia generation function. During the operation of the application, the electronic device can display a multimedia generation page in the application for the user to generate multimedia resources. The multimedia generation page displays multiple materials and multiple templates. The multiple materials include videos, pictures, texts, audios, etc., and the multiple templates include video templates and picture templates. Optionally, any of the multiple materials can be a material uploaded by any user in the application, or a material obtained by the application from the network, which is not limited in the embodiment of the present disclosure.
[0097] In order to solve the technical problem that the operation process of selecting mutually matching materials and templates from a large number of templates and materials to generate multimedia resources in the prior art is relatively cumbersome, resulting in low efficiency in generating multimedia resources, in the embodiment of the present disclosure, the electronic device can intelligently match multiple materials and multiple templates provided by the multimedia generation page according to the resource information input by the user, so as to automatically select materials and templates that meet the user's requirements and match each other as the materials and templates used by the multimedia resources to be generated. Before determining the materials and templates used to generate the multimedia resources to be generated, the electronic device can randomly match the multiple materials and multiple templates provided by the multimedia generation page in advance to obtain multiple material template matching pairs, each material template matching pair including a material and a template. Accordingly, after the user inputs the resource information on the multimedia generation page, for any material template matching pair, the electronic device can process the material template matching pair and the resource information through a click prediction model used to predict the click rate of the multimedia resource, and obtain the predicted click rate corresponding to the material template matching pair, that is, obtain the click rate of the multimedia resource generated based on the material template matching pair. The resource information is the resource information of the multimedia resource to be generated by the user, and is used to indicate the resource type of the multimedia resource to be generated and the object for display of the multimedia resource to be generated. The resource type can be video, picture, text, etc., and the object can be a commodity, service, animal, person, etc., which is not limited in the embodiment of the present disclosure. The click rate of the multimedia resource is used to indicate the number of times the multimedia resource is clicked after exposure.
[0098] The click prediction model includes a feature processing module, an exposure prediction module, and a click rate prediction module. Accordingly, in the process of processing the material template matching pair and resource information through the click prediction model, the electronic device can first process the input material template matching pair and resource information through the feature processing module in the click prediction model to obtain a first fusion feature containing all features. Among them, all features include material features of the material template matching pair, template features, and resource features of the resource information.
[0099] In some embodiments, the feature processing module in the click prediction model includes a feature extraction layer, a feature concatenation layer, and a fully connected layer. Accordingly, the electronic device processes the material template matching pair and resource information through the feature processing module, as shown in the following steps (1)-(3).
[0100] (1) The electronic device extracts features from the material template matching pair and the resource information through the feature extraction layer in the feature processing module, and obtains the material features, template features and resource features of the material template matching pair. The feature extraction layer is used to extract features from the input content and obtain multiple feature vectors (embedding vectors) to describe various features of the input content in a high-dimensional space. Accordingly, the electronic device can extract features from the material, template and input resource information in the material template matching pair through the feature extraction layer, and obtain material features, template features and resource features in a high-dimensional space. The material features include visual features, text features and attribute features of the material. The visual features of the material may be features of the cover image of the material. The text features may be features of the title and text of the material, such as keywords and themes in the title and text. The attribute features may be features of the attribute information of the material, such as the category, upload time and upload author of the material. The template features include visual features, category features and historical conversion rate features of the template. The visual features of the template may be features of the picture or video frame of the template. The category features may be features of the category information of the template, such as the type and audience of the template. The historical conversion rate feature is the conversion rate of the template applied in the historical multimedia resources. The conversion rate of the multimedia resources is used to indicate the number of conversion behaviors after the multimedia resources are exposed. The conversion behavior can be clicking on the link in the multimedia resources, visiting the page to which the link jumps, purchasing the goods displayed by the multimedia resources, etc. The resource features of the resource information include type features and object features. The type feature is the feature of the resource type of the multimedia resources to be generated, and the object feature is the feature of the object used to display the multimedia resources to be generated, such as object category, object identifier, etc.
[0101] Optionally, the feature extraction layer includes a CLIP model (a multimodal model) for extracting text features and visual features of the input content.
[0102] Optionally, the material characteristics also include consumption characteristics and quality characteristics of the material. The consumption characteristics include characteristics such as the click-through rate and the number of likes of the material. The quality characteristics are used to indicate the quality score of the material, which can reflect the quality level of the material.
[0103] (2) The electronic device splices the material features, template features and resource features through the feature splicing layer in the feature processing module to obtain a spliced feature. The feature splicing layer is used to mechanically splice multiple feature vectors extracted by the feature extraction layer to obtain a spliced feature vector. Accordingly, the electronic device can horizontally splice the material features, template features and resource features through the feature splicing layer to obtain a spliced feature including the material features, template features and resource features.
[0104] (3) The electronic device fully connects the spliced features through the fully connected layer in the feature processing module to obtain a first fused feature. The fully connected layer is used to fuse and transform the spliced feature vectors to improve the expression ability of the feature vectors. Accordingly, the electronic device can fuse the spliced features through the fully connected layer, and map the fused features from the high-dimensional space to the low-dimensional space to obtain the first fused feature. A first fused feature that integrates all features is obtained by performing a series of processing such as feature extraction, feature splicing, feature fusion, and feature conversion on the material template matching pair and resource information, which can improve the accuracy of the predicted click-through rate obtained by the subsequent processing of the first fused feature, thereby being able to more accurately determine the material template matching pair used to generate multimedia resources and improve the generation quality of multimedia resources.
[0105] In step S302, the first fusion feature is processed by clicking on the exposure prediction module in the prediction model to obtain the predicted exposure corresponding to the material template matching pair, where the predicted exposure is the predicted exposure of the multimedia resource generated based on the material template matching pair.
[0106] In the disclosed embodiment, the exposure prediction module is used to predict the predicted exposure corresponding to the material template matching pair. The predicted exposure is the predicted exposure of the multimedia resource generated based on the material template matching pair. After the feature processing module in the click prediction model performs feature processing on the input material template matching pair and resource information, the electronic device can continue to process the first fusion feature obtained by the feature processing through the exposure prediction module in the click prediction model to obtain the predicted exposure corresponding to the material template matching pair.
[0107] In some embodiments, the exposure prediction module in the click prediction model includes multiple expert networks and multiple gated networks. Accordingly, the process of the electronic device processing the first fusion feature through the exposure prediction module can be seen in the following steps (1)-(4).
[0108] (1) The electronic device divides the prediction task of the exposure prediction module based on a plurality of preset exposure intervals to obtain a plurality of prediction subtasks corresponding to the plurality of exposure intervals. The prediction task is used to predict the predicted exposure corresponding to any material template matching pair, and the prediction subtask is used to predict the probability that the predicted exposure corresponding to any material template matching pair belongs to the exposure interval corresponding to the prediction subtask. The exposure ranges corresponding to the plurality of exposure intervals are independent of each other and do not overlap with each other. For example, the exposure range corresponding to the first exposure interval is less than 10,000, and the exposure range corresponding to the second exposure interval is greater than 10,000 and less than 20,000. Since the exposure data of multimedia resources has a relatively obvious long-tail characteristic, that is, only a small number of multimedia resources have a high exposure, while most multimedia resources have a low exposure. Therefore, in order to prevent the exposure prediction module from over-focusing on the head data in the exposure data and ignoring the long-tail data when predicting the exposure, resulting in an inaccurate exposure prediction, the electronic device can perform bucket processing on the exposure, that is, the electronic device can divide the exposure into a plurality of buckets, each bucket representing a different exposure interval. Correspondingly, the electronic device can divide the prediction task of the exposure prediction module into multiple prediction subtasks based on multiple exposure intervals corresponding to multiple buckets, each prediction subtask corresponding to an exposure interval, which is used to predict the probability that the exposure of the multimedia resource generated based on the material template matching pair belongs to the exposure interval corresponding to the prediction subtask.
[0109] (2) The electronic device processes the first fused features respectively through multiple expert networks in the exposure prediction module to obtain multiple processing results output by the multiple expert networks. The multiple expert networks are used to learn features that are useful for the prediction task of the exposure prediction module. Each expert network focuses on learning features in a certain aspect. For example, one expert network focuses on learning visual features, and the other expert network focuses on learning text features. Accordingly, the electronic device can input the first fused features into multiple expert networks respectively, and the multiple expert networks process the first fused features respectively to focus on learning features of the first fused features in different aspects.
[0110] (3) For any prediction subtask, the electronic device performs weighted summation on multiple processing results output by multiple expert networks through the gating network corresponding to the prediction subtask in the exposure prediction module to obtain the exposure prediction result of the prediction subtask, and the exposure prediction result is used to indicate the probability that the predicted exposure corresponding to the material template match belongs to the exposure interval corresponding to the prediction task. Each prediction subtask corresponds to a gating network, which is used to control the contribution of the output result of each expert network to the prediction result of the preset subtask. Accordingly, the electronic device can perform weighted summation on multiple processing results output by multiple expert networks after learning the first fusion feature through the gating network corresponding to any prediction subtask to obtain the exposure prediction result of the prediction subtask.
[0111] For example, the prediction task includes three prediction subtasks, and the exposure prediction module includes three expert networks and three gating networks. For any prediction subtask, the weights of the gating networks corresponding to the prediction subtask are 0.1, 0.2, and 0.7, respectively, which means that the output results of the three expert networks contribute 0.1, 0.2, and 0.7 to the prediction result of the prediction subtask. Accordingly, the electronic device can perform weighted summation on the output results of the three expert networks based on the above weights to obtain the prediction result of the prediction subtask.
[0112] (4) The electronic device determines the predicted exposure corresponding to the material template matching pair based on the exposure prediction results of multiple prediction subtasks. The exposure prediction results of multiple prediction subtasks are used to indicate the probability that the exposure of the multimedia resource generated based on the material template matching pair belongs to multiple exposure intervals. For example, the probability that the exposure of the multimedia resource generated based on the material template matching pair belongs to the first exposure interval is 0.1, the probability that it belongs to the second exposure area is 0.3, and the probability that it belongs to the third exposure interval is 0.7. Therefore, the electronic device can obtain the final prediction result of the prediction task, that is, the exposure of the multimedia resource generated based on the material template matching pair, based on the probability that the exposure of the multimedia resource generated based on the material template matching pair belongs to multiple exposure intervals and the exposure ranges corresponding to the multiple exposure intervals. By dividing the prediction task of the exposure prediction module into multiple prediction sub-tasks according to multiple exposure intervals, it is possible to predict the probability that the predicted exposure corresponding to the material template match belongs to different exposure intervals, and then the exposure prediction results of multiple prediction sub-tasks can be combined to obtain the final predicted exposure, thereby avoiding the influence of the long-tail characteristics of the exposure data on the exposure prediction, improving the accuracy of the predicted exposure, and further improving the accuracy of the predicted click-through rate determined based on the predicted exposure.
[0113] In some embodiments, for any prediction subtask, the electronic device determines the exposure mean corresponding to the prediction subtask based on the exposure interval corresponding to the prediction subtask, and the exposure mean is the middle value of the exposure interval; then, the electronic device multiplies the exposure mean and the probability indicated by the exposure prediction result to obtain the exposure corresponding to the prediction subtask; finally, the electronic device determines the sum of multiple exposures corresponding to multiple prediction subtasks as the predicted exposure corresponding to the material template matching pair. Among them, the exposure mean corresponding to each prediction subtask is used to reflect the average exposure represented by the exposure interval, that is, the exposure mean can represent the exposure level of the exposure interval. If the exposure interval corresponding to the prediction subtask is (0, 10), the exposure mean corresponding to the prediction subtask is 50,000. Since the exposure prediction result of each prediction subtask is used to indicate the probability that the predicted exposure belongs to each exposure interval, it can be regarded as the probability that the predicted exposure is each exposure mean. Therefore, the electronic device can determine the exposure corresponding to any prediction subtask as the product of the probability indicated by the exposure prediction result corresponding to the prediction subtask and the exposure mean corresponding to the prediction subtask, and then can obtain the exposure of the multimedia resource generated based on the material template matching pair by summing the exposure corresponding to multiple prediction subtasks. By comprehensively processing the exposure prediction results of multiple prediction subtasks, the predicted exposure predicted by the electronic device can be the exposure obtained by comprehensively considering the probability that the predicted exposure belongs to multiple exposure intervals, thereby improving the accuracy of the predicted exposure and further improving the accuracy of the predicted click-through rate determined based on the predicted exposure.
[0114] In step S303, the predicted exposure amount and the first fusion feature are processed by the feature processing module and the click prediction module in the click prediction model to obtain the predicted click rate corresponding to the material template matching pair. The predicted click rate is the predicted click rate of the multimedia resource generated based on the material template matching pair.
[0115] In the disclosed embodiment, the click-through rate of a multimedia resource is related to the exposure of the multimedia resource. For example, the greater the exposure of the multimedia resource, the more times the multimedia resource is likely to be clicked after exposure, and the higher the click-through rate. Therefore, in the process of predicting the click-through rate of a multimedia resource generated based on a material template matching pair, the electronic device can process the exposure of the multimedia resource generated based on the material template matching and the first fusion feature containing all features predicted by the exposure prediction module through the feature processing module and the click prediction module in the click prediction model, and obtain the predicted click-through rate corresponding to the material template matching pair. By executing the above steps 301-303, the electronic device can predict the click-through rate of the multimedia resource based on the predicted exposure of the multimedia resource, thereby improving the accuracy of the predicted click-through rate, so that the electronic device can more accurately determine the material template matching pair used to generate the multimedia resource, and improve the generation quality of the multimedia resource.
[0116] In some embodiments, the click prediction module in the click prediction model also includes an expert network and a gated network. Accordingly, the process in which the electronic device processes the predicted exposure and the first fusion feature through the feature processing module and the click prediction module includes: the electronic device processes the predicted exposure and the first fusion feature through the feature processing module in the click prediction model to obtain a second fusion feature, and the second fusion feature includes the exposure feature of the predicted exposure and the first fusion feature; then, the electronic device processes the second fusion feature through multiple expert networks in the click prediction module, respectively, to obtain multiple processing results output by multiple expert networks; finally, the electronic device performs weighted summation on the multiple processing results output by multiple expert networks through the gated network in the click prediction module to obtain the predicted click rate corresponding to the material template matching pair. Among them, the electronic device can splice the exposure feature of the predicted exposure and the first fusion feature through the feature splicing layer in the feature processing module to obtain a splicing feature including the first fusion feature and the exposure feature. Then the electronic device can fuse and transform the splicing feature through the fully connected layer in the feature processing module to obtain the second fusion feature. The model structure included in the click prediction module is the same as that of the exposure prediction module, and both are composed of an expert network and a gating network. Therefore, after the electronic device inputs the second fusion feature into the click prediction module, the multiple expert networks in the click prediction module can process the second fusion feature respectively to focus on learning the features of the second fusion feature in different aspects. The gating network in the click prediction module can perform weighted summation on the multiple processing results output by the multiple expert networks after learning the second fusion feature, and obtain the prediction result of the click prediction module, that is, the predicted click-through rate corresponding to the material template matching pair. By processing the exposure feature of the predicted exposure and the first fusion feature to obtain a comprehensive exposure feature and a second fusion feature of the first fusion feature, the electronic device can take into account the predicted exposure of the multimedia resource when predicting the click-through rate of the multimedia resource, thereby improving the accuracy of the predicted click-through rate, so that the electronic device can more accurately determine the material template matching pair used to generate the multimedia resource, and improve the generation quality of the multimedia resource.
[0117] In some embodiments, the process of training a click prediction model by an electronic device includes the following steps (1)-(3).
[0118] (1) The electronic device obtains multiple sample multimedia resources and label information of the multiple sample multimedia resources, and the label information is used to indicate the real exposure and real click rate of the sample multimedia resources. The sample multimedia resources are multimedia resources that have been exposed and generated based on any material template matching pair. Therefore, the electronic device can obtain the real exposure and real click rate of the sample multimedia resources in the historical time period, that is, the label information of the sample multimedia resources. The sample multimedia resources can be various types of multimedia works, such as video works, graphic works, etc., which are limited in the embodiments of the present disclosure.
[0119] (2) The electronic device performs a first-stage training on a click prediction model based on multiple first sample multimedia resources, the actual exposure of the multiple first sample multimedia resources, and the actual click-through rates of the multiple first sample multimedia resources to obtain a first click prediction model. The first sample multimedia resource is any sample multimedia resource among the multiple sample multimedia resources. The first-stage training is used to learn the impact of the actual exposure of the multimedia resource on the click-through rate of the multimedia resource.
[0120] In an embodiment of the present disclosure, during the first stage training process, the electronic device can simultaneously train the exposure prediction module and the click prediction module in the click prediction model. Wherein, when training the exposure prediction module, the electronic device can train the exposure prediction module based on multiple first sample multimedia resources and the actual exposure of multiple first sample multimedia resources. That is, the electronic device can process multiple first sample multimedia resources through the exposure prediction module to obtain the predicted exposure of multiple first sample multimedia resources. Then the electronic device can determine the exposure loss of the click prediction model based on the predicted exposure and the actual exposure of the multiple first sample multimedia resources, and the exposure loss is used to indicate the difference between the predicted exposure and the actual exposure. When training the click prediction module, the electronic device can train the click prediction module based on multiple first sample multimedia resources, the actual exposure of multiple first sample multimedia resources, and the actual click-through rate of multiple first sample multimedia resources. That is, the electronic device can process multiple first sample multimedia resources and the actual exposure of multiple first sample multimedia resources through the click prediction module to obtain the predicted click-through rate of multiple first sample multimedia resources. Then, the electronic device can determine the click rate loss of the click prediction model based on the predicted click rates and the actual click rates of the multiple first sample multimedia resources, and the click rate loss is used to indicate the difference between the predicted click rate and the actual click rate. Finally, the electronic device can sum the exposure loss and the click rate loss to obtain the training loss of the click prediction model, and then update the model parameters of the click prediction model based on the training loss to obtain the first click prediction model.
[0121] (3) The electronic device performs second-stage training on the first click prediction model based on the predicted exposure of the multiple second sample multimedia resources, the multiple second sample multimedia resources, and the actual click rates of the multiple second sample multimedia resources by the first click prediction model to obtain a second click prediction model. The second sample multimedia resource is any sample multimedia resource among the multiple sample multimedia resources except the first sample multimedia resource. The second-stage training is used to learn the influence of the predicted exposure of the multimedia resource on the click rate of the multimedia resource.
[0122] In the embodiment of the present disclosure, since the first click prediction module obtained by the first stage training already has the ability to predict the exposure of multimedia resources and the ability to predict the click rate of multimedia resources based on the actual exposure. Therefore, during the second stage training process, the electronic device can predict multiple second sample multimedia resources based on the first click prediction model to obtain the predicted exposure of multiple second sample multimedia resources, and then can train the first click prediction model based on multiple second sample multimedia resources, the predicted exposure of multiple second sample multimedia resources and the actual click rate of multiple second sample multimedia resources. Among them, the training process of the exposure prediction module in the first click prediction model is the same as the first stage training, and the present disclosure will not repeat it here. When training the click prediction module in the first click prediction model, the electronic device can process multiple second sample multimedia resources and the predicted exposure of multiple second sample multimedia resources through the click prediction module to obtain the predicted click rate of multiple second sample multimedia resources. Then the electronic device can determine the click rate loss of the click prediction model based on the predicted click rate and the actual click rate of multiple second sample multimedia resources. Finally, the electronic device can determine the sum of the click rate loss and the exposure loss obtained by training the exposure prediction module in the first click prediction model as the training loss of the first click prediction model, and then update the model parameters of the first click prediction model based on the training loss to obtain the second click prediction model. By using the real exposure of multiple first sample multimedia resources to train the click prediction module in the click prediction model in the early stage of training, the click prediction model can quickly learn the impact of the real exposure of the multimedia resources on the click rate of the multimedia resources, that is, the click prediction model has the ability to predict the click rate of the multimedia resources based on the real exposure. By using the click prediction module to train the click prediction module in the click prediction model with the predicted exposure of multiple second sample multimedia resources in the late stage of training, the click prediction model can learn the impact of the predicted exposure of the multimedia resources on the click rate of the multimedia resources, that is, the click prediction model has the ability to predict the click rate of the multimedia resources based on the predicted exposure, so that the click prediction module can predict the click rate of the multimedia resources according to the predicted exposure of the unexposed multimedia resources in the inference stage, thereby improving the accuracy of the click prediction module in the inference stage.
[0123] For example, Figure 4 FIG. 1 is a schematic diagram showing a structure of a click prediction model according to an exemplary embodiment. Figure 4As shown, the click prediction module includes a feature processing module, an exposure prediction module and a click prediction module. The feature processing module includes a feature extraction layer, a feature splicing layer and a fully connected layer. The feature extraction layer is used to extract features from the input material template matching pair and resource information to obtain material features, template features and resource features of the material template matching pair. Among them, the material features include material features including visual features, text features, attribute features, consumption features and quality features of the material. Template features include visual features, category features and historical conversion rate features of the template. Resource features include type features and object features. The feature splicing layer is used to splice material features, template features and resource features to obtain a splicing feature. The fully connected layer is used to fuse and transform the splicing features to obtain a first fused feature including material features, template features and resource features. The exposure prediction module is used to generate the exposure of multimedia resources based on the material template matching pair, and includes multiple expert networks and multiple gated networks. Multiple expert networks are used to process the input first fused features to learn features useful for the prediction task of the exposure prediction module. Multiple gating networks correspond one-to-one to multiple prediction subtasks of the exposure prediction module. Figure 4 As shown, the gated network 1 is used to perform weighted summation on the n processing results output by the expert networks 1-n after learning the first fusion feature, and obtain the exposure prediction result of the prediction subtask corresponding to the gated network 1, that is, the exposure prediction result of the prediction subtask corresponding to the exposure interval of 0-10% exposure. The electronic device can process the exposure prediction results of multiple prediction subtasks to obtain the final exposure prediction result, that is, the exposure of the multimedia resource generated based on the material template matching pair. The feature processing module can also process the exposure prediction result and the first fusion feature to obtain the second fusion feature. The structural type of the click prediction module and the exposure prediction module includes multiple expert networks and a gated network. Multiple expert networks are used to process the input second fusion feature to learn features that are useful for the prediction task of the click prediction module. The gated network is used to perform weighted summation on the multiple processing results output by the multiple expert networks after learning the second fusion feature, and obtain the prediction result of the click prediction module, that is, the predicted click rate corresponding to the material template matching pair. When training the click prediction model, the electronic device can train multiple prediction subtasks in the exposure prediction module, and can predict the exposure quantum loss corresponding to multiple subtasks, that is, Figure 4 The electronic device can sum up multiple exposure quantum losses to obtain the exposure loss of the click prediction model. When the electronic device trains the click prediction module, it can obtain the click rate loss of the click prediction model. Finally, the electronic device can sum up the exposure loss and the click rate loss to obtain the total loss, that is, the training loss of the click prediction model.
[0124] In step S304, based on the multiple predicted click-through rates, at least one first material template matching pair is determined from the multiple material template matching pairs, and the predicted click-through rate corresponding to the first material template matching pair is greater than the click-through rate threshold.
[0125] In the disclosed embodiment, for any material template matching pair, the higher the predicted click rate corresponding to the material template matching pair, the higher the click rate of the multimedia resource generated based on the material template matching pair predicted by the electronic device, that is, the higher the generation quality of the multimedia resource generated based on the material template matching pair. Therefore, in order to improve the generation quality of multimedia resources in the process of generating multimedia resources based on the material template provided by the video generation page, the electronic device can determine at least one material template matching pair whose predicted click rate is greater than the click rate threshold from the multiple material template matching pairs based on the multiple predicted click rates corresponding to the multiple material template matching pairs, that is, the first material template matching pair.
[0126] In step S305, multimedia resources are generated based on at least one first material template matching pair.
[0127] In the disclosed embodiment, each material-template matching pair includes a material and a template. The electronic device can generate corresponding multimedia resources based on any material-template matching pair. Accordingly, after selecting at least one first material-template matching pair with a predicted click-through rate higher than a click-through rate threshold from multiple material-template matching pairs, the electronic device can generate multimedia resources based on the material and template in at least one first material-template matching pair. Optionally, the electronic device can display the multimedia resources generated based on the first material-template matching pair on a multimedia generation page, so that the user can view the generation effect of the multimedia resources.
[0128] In some embodiments, the number of at least one first material template matching pair may be 1 or more. Accordingly, when the number of at least one first material template matching pair is 1, the electronic device can generate multimedia resources through the following solution 1. When the number of at least one first material template matching pair is more than one, the electronic device can generate multimedia resources through the following solution 2.
[0129] Solution 1: When the number of at least one first material template matching pair is 1, the electronic device can fill the material in the first material template matching pair into the template in the first material template matching pair to obtain the multimedia resource.
[0130] Solution 2: When there are multiple first material template matching pairs, the electronic device determines multiple second material template matching pairs from the multiple first material template matching pairs, and the multiple second material template matching pairs are material template matching pairs with the same template; then, the electronic device can fill multiple materials in the multiple second material template matching pairs into the template in the second material template matching pair to obtain multimedia resources. When there are material template matching pairs with the same template in at least one first material template matching pair, filling multiple materials in the material template matching pairs with the same template into the template to generate multimedia resources can improve the material richness of multimedia resources and enhance the generation quality of multimedia resources.
[0131] Optionally, when there are multiple first material template matching pairs, the electronic device can also determine a first material template matching pair with the highest predicted click rate from multiple first material template matching pairs, and then generate multimedia resources based on the first material template matching pair.
[0132] The disclosed embodiments provide a method for generating multimedia resources. By acquiring resource information of the multimedia resources to be generated, an electronic device can process multiple material template matching pairs and the resource information for generating multimedia resources to predict the click rate of the multimedia resources generated based on each material template matching pair, and then automatically select material template matching pairs with a click rate higher than a click rate threshold to generate multimedia resources. This not only improves the generation efficiency of multimedia resources, but also realizes the optimization of materials and templates during the generation process, thereby improving the generation quality of multimedia resources.
[0133] All the above optional technical solutions can be arbitrarily combined to form optional embodiments of the present disclosure, and will not be described in detail here.
[0134] Figure 5 is a block diagram of a multimedia resource generation device according to an exemplary embodiment. Figure 5 The device includes: a processing unit 501, a determining unit 502 and a generating unit 503.
[0135] The processing unit 501 is configured to, in response to an input operation of resource information in a multimedia generation page, process a plurality of material template matching pairs and resource information to obtain a plurality of predicted click-through rates, wherein the plurality of predicted click-through rates correspond to a plurality of material template matching pairs one by one, the resource information is used to indicate a resource type of a multimedia resource to be generated and an object for display, the material template matching pair includes any material and any template, and the predicted click-through rate is a predicted click-through rate of a multimedia resource generated based on the material template matching pair;
[0136] The determining unit 502 is configured to determine at least one first material template matching pair from the multiple material template matching pairs based on the multiple predicted click-through rates, wherein the predicted click-through rate corresponding to the first material template matching pair is greater than a click-through rate threshold;
[0137] The generating unit 503 is configured to generate multimedia resources based on at least one first material template matching pair.
[0138] In some embodiments, Figure 6 is a block diagram of another multimedia resource generation device according to an exemplary embodiment. Figure 6 , the processing unit 501 includes:
[0139] The first processing subunit 601 is configured to process the material template matching pair and the resource information through the feature processing module in the click prediction model for any material template matching pair to obtain a first fusion feature, where the first fusion feature includes the material feature and the template feature of the material template matching pair and the resource feature of the resource information, and the click prediction model is used to predict the click rate of the multimedia resource;
[0140] The second processing sub-unit 602 is configured to process the first fusion feature through the exposure prediction module in the click prediction model to obtain the predicted exposure corresponding to the material template matching pair, where the predicted exposure is the predicted exposure of the multimedia resource generated based on the material template matching pair;
[0141] The third processing sub-unit 603 is configured to process the predicted exposure and the first fusion feature through the feature processing module and the click prediction module in the click prediction model to obtain the predicted click rate corresponding to the material template matching pair.
[0142] In some embodiments, the first processing sub-unit 601 is configured to perform feature extraction on the material template matching pair and the resource information respectively through the feature extraction layer in the feature processing module to obtain the material features, template features of the material template matching pair and the resource features of the resource information; to splice the material features, template features and resource features through the feature splicing layer in the feature processing module to obtain the splicing features; and to fully connect the splicing features through the fully connected layer in the feature processing module to obtain the first fusion feature.
[0143] In some embodiments, the second processing sub-unit 602 is configured to divide the prediction task of the exposure prediction module based on a plurality of preset exposure intervals to obtain a plurality of prediction sub-tasks corresponding one-to-one to the plurality of exposure intervals, the prediction task being used to predict the predicted exposure corresponding to any material template matching pair, and the prediction sub-task being used to predict the probability that the predicted exposure corresponding to any material template matching pair belongs to the exposure interval corresponding to the prediction sub-task; the first fusion feature is processed respectively by the plurality of expert networks in the exposure prediction module to obtain a plurality of processing results output by the plurality of expert networks; for any prediction sub-task, the plurality of processing results output by the plurality of expert networks are weightedly summed by the gating network corresponding to the prediction sub-task in the exposure prediction module to obtain the exposure prediction result of the prediction sub-task, the exposure prediction result being used to indicate the probability that the predicted exposure corresponding to the material template matching pair belongs to the exposure interval corresponding to the prediction task; based on the exposure prediction results of the plurality of prediction sub-tasks, the predicted exposure corresponding to the material template matching pair is determined.
[0144] In some embodiments, the second processing sub-unit 602 is configured to determine, for any prediction sub-task, a mean exposure value corresponding to the prediction sub-task based on the exposure value interval corresponding to the prediction sub-task, where the mean exposure value is the middle value of the exposure value interval; multiply the mean exposure value by the probability indicated by the exposure prediction result to obtain the exposure value corresponding to the prediction sub-task; and determine the sum of multiple exposure values corresponding to multiple prediction sub-tasks as the predicted exposure value corresponding to the material template matching pair.
[0145] In some embodiments, the third processing sub-unit 603 is configured to process the predicted exposure and the first fusion feature through the feature processing module in the click prediction model to obtain a second fusion feature, where the second fusion feature includes the exposure feature of the predicted exposure and the first fusion feature; process the second fusion feature respectively through multiple expert networks in the click prediction module to obtain multiple processing results output by multiple expert networks; and perform weighted summation on the multiple processing results output by the multiple expert networks through the gating network in the click prediction module to obtain the predicted click-through rate corresponding to the material template matching pair.
[0146] In some embodiments, see Figure 6 , the device further comprises:
[0147] An acquisition unit 504 is configured to acquire a plurality of sample multimedia resources and label information of the plurality of sample multimedia resources, where the label information is used to indicate a real exposure amount and a real click rate of the sample multimedia resources;
[0148] The training unit 505 is configured to perform a first-stage training on the click prediction model based on multiple first sample multimedia resources, the actual exposure of the multiple first sample multimedia resources, and the actual click-through rates of the multiple first sample multimedia resources to obtain a first click prediction model, where the first sample multimedia resource is any sample multimedia resource among the multiple sample multimedia resources, and the first-stage training is used to learn the influence of the actual exposure of the multimedia resource on the click-through rate of the multimedia resource; perform a second-stage training on the first click prediction model based on the predicted exposure of multiple second sample multimedia resources, the multiple second sample multimedia resources, and the actual click-through rates of the multiple second sample multimedia resources using the first click prediction model to obtain a second click prediction model, where the second sample multimedia resource is any sample multimedia resource among the multiple sample multimedia resources except the first sample multimedia resource, and the second-stage training is used to learn the influence of the predicted exposure of the multimedia resource on the click-through rate of the multimedia resource.
[0149] In some embodiments, the generation unit 503 is configured to fill the material in the first material template matching pair into the template in the first material template matching pair to obtain multimedia resources when the number of at least one first material template matching pair is 1; determine multiple second material template matching pairs from the multiple first material template matching pairs when the number of at least one first material template matching pair is multiple, and the multiple second material template matching pairs are material template matching pairs with the same templates; fill multiple materials in the multiple second material template matching pairs into the template in the second material template matching pair to obtain multimedia resources.
[0150] The disclosed embodiments provide a multimedia resource generation device, which can enable an electronic device to process multiple material template matching pairs and the resource information for generating multimedia resources by acquiring resource information of the multimedia resources to be generated, so as to predict the click rate of the multimedia resources generated based on each material template matching pair, and then automatically select the material template matching pairs with a click rate higher than a click rate threshold to generate the multimedia resources, which not only improves the generation efficiency of the multimedia resources, but also realizes the optimization of materials and templates in the generation process, thereby improving the generation quality of the multimedia resources.
[0151] It should be noted that the multimedia resource generation device provided in the above embodiment only uses the division of the above functional units as an example when running an application. In actual applications, the above functions can be assigned to different functional units as needed, that is, the internal structure of the electronic device is divided into different functional units to complete all or part of the functions described above. In addition, the multimedia resource generation device provided in the above embodiment belongs to the same concept as the multimedia resource generation method embodiment. The specific implementation process is detailed in the method embodiment and will not be repeated here.
[0152] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0153] When an electronic device is provided as a terminal, Figure 7 is a block diagram of a terminal according to an exemplary embodiment. Figure 7 The structure block diagram of a terminal 700 provided by an exemplary embodiment of the present disclosure is shown. The terminal 700 may be: a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III), an MP4 player (Moving Picture Experts Group Audio Layer IV), a laptop computer or a desktop computer. The terminal 700 may also be called a user device, a portable terminal, a laptop terminal, a desktop terminal or other names.
[0154] Typically, the terminal 700 includes a processor 701 and a memory 702 .
[0155] The processor 701 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 701 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 701 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 701 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 701 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.
[0156] The memory 702 may include one or more computer-readable storage media, which may be non-transitory. The memory 702 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 702 is used to store at least one program code, which is used to be executed by the processor 701 to implement the multimedia resource generation method provided in the method embodiment of the present disclosure.
[0157] In some embodiments, the terminal 700 may further optionally include: a peripheral device interface 703 and at least one peripheral device. The processor 701, the memory 702 and the peripheral device interface 703 may be connected via a bus or a signal line. Each peripheral device may be connected to the peripheral device interface 703 via a bus, a signal line or a circuit board. Specifically, the peripheral device includes: at least one of a radio frequency circuit 704, a display screen 705, a camera assembly 706, an audio circuit 707, a positioning assembly 708 and a power supply 709.
[0158] The peripheral device interface 703 may be used to connect at least one peripheral device related to I / O (Input / Output) to the processor 701 and the memory 702. In some embodiments, the processor 701, the memory 702, and the peripheral device interface 703 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 701, the memory 702, and the peripheral device interface 703 may be implemented on a separate chip or circuit board, which is not limited in this embodiment.
[0159] The radio frequency circuit 704 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuit 704 communicates with communication networks and other communication devices through electromagnetic signals. The radio frequency circuit 704 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals into electrical signals. Optionally, the radio frequency circuit 704 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, and the like. The radio frequency circuit 704 can communicate with other terminals through at least one wireless communication protocol. The wireless communication protocol includes, but is not limited to: a metropolitan area network, various generations of mobile communication networks (2G, 3G, 4G and 5G), a wireless local area network and / or a WiFi (Wireless Fidelity) network. In some embodiments, the radio frequency circuit 704 may also include circuits related to NFC (Near Field Communication), which is not limited in the present disclosure.
[0160] The display screen 705 is used to display the UI (User Interface). The UI may include graphics, text, icons, videos and any combination thereof. When the display screen 705 is a touch display screen, the display screen 705 also has the ability to collect touch signals on the surface or above the surface of the display screen 705. The touch signal can be input to the processor 701 as a control signal for processing. At this time, the display screen 705 can also be used to provide virtual buttons and / or virtual keyboards, also known as soft buttons and / or soft keyboards. In some embodiments, the display screen 705 can be one, and the front panel of the terminal 700 is set; in other embodiments, the display screen 705 can be at least two, which are respectively set on different surfaces of the terminal 700 or are folded; in some other embodiments, the display screen 705 can be a flexible display screen, which is set on the curved surface or folded surface of the terminal 700. Even, the display screen 705 can also be set to a non-rectangular irregular shape, that is, a special-shaped screen. The display screen 705 can be made of materials such as LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode, organic light-emitting diode).
[0161] The camera assembly 706 is used to capture images or videos. Optionally, the camera assembly 706 includes a front camera and a rear camera. Typically, the front camera is arranged on the front panel of the terminal, and the rear camera is arranged on the back of the terminal. In some embodiments, there are at least two rear cameras, which are any one of a main camera, a depth of field camera, a wide-angle camera, and a telephoto camera, so as to realize the fusion of the main camera and the depth of field camera to realize the background blur function, the fusion of the main camera and the wide-angle camera to realize panoramic shooting and VR (Virtual Reality) shooting function or other fusion shooting functions. In some embodiments, the camera assembly 706 may also include a flash. The flash can be a monochrome temperature flash or a dual-color temperature flash. A dual-color temperature flash refers to a combination of a warm light flash and a cold light flash, which can be used for light compensation at different color temperatures.
[0162] The audio circuit 707 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, and convert the sound waves into electrical signals and input them into the processor 701 for processing, or input them into the radio frequency circuit 704 to achieve voice communication. For the purpose of stereo acquisition or noise reduction, there may be multiple microphones, which are respectively arranged at different parts of the terminal 700. The microphone may also be an array microphone or an omnidirectional acquisition microphone. The speaker is used to convert the electrical signal from the processor 701 or the radio frequency circuit 704 into sound waves. The speaker may be a traditional film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can not only convert the electrical signal into sound waves audible to humans, but also convert the electrical signal into sound waves inaudible to humans for purposes such as ranging. In some embodiments, the audio circuit 707 may also include a headphone jack.
[0163] The power supply 708 is used to power various components in the terminal 700. The power supply 708 can be an alternating current, a direct current, a disposable battery, or a rechargeable battery. When the power supply 708 includes a rechargeable battery, the rechargeable battery can support wired charging or wireless charging. The rechargeable battery can also be used to support fast charging technology.
[0164] In some embodiments, the terminal 700 further includes one or more sensors 709 , including but not limited to: an acceleration sensor 710 , a gyroscope sensor 711 , a pressure sensor 712 , an optical sensor 713 , and a proximity sensor 714 .
[0165] The acceleration sensor 710 can detect the magnitude of acceleration on the three coordinate axes of the coordinate system established by the terminal 700. For example, the acceleration sensor 710 can be used to detect the components of gravity acceleration on the three coordinate axes. The processor 701 can control the display screen 705 to display the user interface in a horizontal view or a vertical view according to the gravity acceleration signal collected by the acceleration sensor 710. The acceleration sensor 710 can also be used to collect motion data of games or users.
[0166] The gyro sensor 711 can detect the body direction and rotation angle of the terminal 700, and the gyro sensor 711 can cooperate with the acceleration sensor 710 to collect the user's 3D actions on the terminal 700. The processor 701 can implement the following functions based on the data collected by the gyro sensor 711: motion sensing (such as changing the UI according to the user's tilt operation), image stabilization during shooting, game control, and inertial navigation.
[0167] The pressure sensor 712 can be set on the side frame of the terminal 700 and / or the lower layer of the display screen 705. When the pressure sensor 712 is set on the side frame of the terminal 700, it can detect the user's holding signal of the terminal 700, and the processor 701 performs left and right hand recognition or shortcut operation according to the holding signal collected by the pressure sensor 712. When the pressure sensor 712 is set on the lower layer of the display screen 705, the processor 701 controls the operability controls on the UI interface according to the user's pressure operation on the display screen 705. The operability controls include at least one of a button control, a scroll bar control, an icon control, and a menu control.
[0168] The optical sensor 713 is used to collect the ambient light intensity. In one embodiment, the processor 701 can control the display brightness of the display screen 705 according to the ambient light intensity collected by the optical sensor 713. Optionally, when the ambient light intensity is high, the display brightness of the display screen 705 is increased; when the ambient light intensity is low, the display brightness of the display screen 705 is reduced. In another embodiment, the processor 701 can also dynamically adjust the shooting parameters of the camera assembly 706 according to the ambient light intensity collected by the optical sensor 713.
[0169] The proximity sensor 714, also called a distance sensor, is disposed on the front panel of the terminal 700. The proximity sensor 714 is used to collect the distance between the user and the front of the terminal 700. In one embodiment, when the proximity sensor 714 detects that the distance between the user and the front of the terminal 700 is gradually decreasing, the processor 701 controls the display screen 705 to switch from the screen-on state to the screen-off state; when the proximity sensor 714 detects that the distance between the user and the front of the terminal 700 is gradually increasing, the processor 701 controls the display screen 705 to switch from the screen-off state to the screen-on state.
[0170] Those skilled in the art will understand that Figure 7 The structure shown in the figure does not constitute a limitation on the terminal 700, and the terminal 700 may include more or less components than those shown in the figure, or combine some components, or adopt a different component arrangement.
[0171] When the electronic device is provided as a server, Figure 8This is a block diagram of a server according to an exemplary embodiment. The server 800 may have relatively large differences due to different configurations or performances, and may include one or more processors (Central Processing Units, CPU) 801 and one or more memories 802, wherein the memory 802 stores at least one program code, and the at least one program code is loaded and executed by the processor 801 to implement the multimedia resource generation method provided by the above-mentioned various method embodiments. Of course, the server may also have components such as a wired or wireless network interface, a keyboard, and an input and output interface for input and output. The server 800 may also include other components for implementing device functions, which will not be described in detail here.
[0172] In an exemplary embodiment, a computer-readable storage medium including instructions is also provided, such as a memory 702 or a memory 802 including instructions, and the instructions can be executed by the processor 701 of the terminal 700 or the processor 801 of the server 800 to complete the above-mentioned multimedia resource generation method. Optionally, the computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0173] A computer program product includes a computer program, which, when executed by a processor, implements the above-mentioned multimedia resource generation method or the above-mentioned resource promotion method.
[0174] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0175] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A method for generating multimedia resources, It is characterized in that The method comprises: In response to an input operation of resource information in a multimedia generation page, a plurality of material template matching pairs and the resource information are processed to obtain a plurality of predicted click-through rates, the plurality of predicted click-through rates corresponding to the plurality of material template matching pairs one by one, the resource information being used to indicate a resource type of a multimedia resource to be generated and an object for display, the material template matching pair including any material and any template, and the predicted click-through rate being a predicted click-through rate of a multimedia resource generated based on the material template matching pair; Based on the multiple predicted click-through rates, determining at least one first material template matching pair from the multiple material template matching pairs, wherein the predicted click-through rate corresponding to the first material template matching pair is greater than a click-through rate threshold; A multimedia resource is generated based on the at least one first material template matching pair.
2. The multimedia resource generation method according to claim 1, It is characterized in that The processing of the plurality of material template matching pairs and the resource information to obtain a plurality of predicted click rates includes: For any material template matching pair, the material template matching pair and the resource information are processed by a feature processing module in a click prediction model to obtain a first fusion feature, wherein the first fusion feature includes a material feature and a template feature of the material template matching pair and a resource feature of the resource information, and the click prediction model is used to predict the click rate of the multimedia resource; The first fusion feature is processed by the exposure prediction module in the click prediction model to obtain the predicted exposure corresponding to the material template matching pair, where the predicted exposure is the predicted exposure of the multimedia resource generated based on the material template matching pair; The predicted exposure amount and the first fusion feature are processed by the feature processing module and the click prediction module in the click prediction model to obtain the predicted click rate corresponding to the material template matching pair.
3. The multimedia resource generation method according to claim 2, It is characterized in that The feature processing module in the click prediction model processes the material template matching pair and the resource information to obtain a first fusion feature, including: Through the feature extraction layer in the feature processing module, feature extraction is performed on the material template matching pair and the resource information respectively to obtain material features and template features of the material template matching pair and resource features of the resource information; The material feature, the template feature and the resource feature are spliced through the feature splicing layer in the feature processing module to obtain a splicing feature; The concatenated features are fully connected through the fully connected layer in the feature processing module to obtain the first fusion feature.
4. The multimedia resource generation method according to claim 2, It is characterized in that The step of processing the first fusion feature through the exposure prediction module in the click prediction model to obtain the predicted exposure corresponding to the material template matching pair includes: Based on a plurality of preset exposure intervals, the prediction task of the exposure prediction module is divided to obtain a plurality of prediction subtasks corresponding to the plurality of exposure intervals one by one, the prediction task is used to predict the predicted exposure corresponding to any material template matching pair, and the prediction subtask is used to predict the probability that the predicted exposure corresponding to any material template matching pair belongs to the exposure interval corresponding to the prediction subtask; The first fusion feature is processed respectively by multiple expert networks in the exposure prediction module to obtain multiple processing results output by the multiple expert networks; For any prediction subtask, a weighted sum is performed on multiple processing results output by the multiple expert networks through the gating network corresponding to the prediction subtask in the exposure prediction module to obtain an exposure prediction result of the prediction subtask, wherein the exposure prediction result is used to indicate the probability that the predicted exposure corresponding to the material template matching pair belongs to the exposure interval corresponding to the prediction task; Based on the exposure prediction results of the multiple prediction subtasks, the predicted exposure corresponding to the material template matching pair is determined.
5. The multimedia resource generation method according to claim 4, It is characterized in that The step of determining the predicted exposure amount corresponding to the material template matching pair based on the exposure amount prediction results of the plurality of prediction subtasks includes: For any prediction subtask, based on the exposure interval corresponding to the prediction subtask, determine the exposure mean corresponding to the prediction subtask, where the exposure mean is the middle value of the exposure interval; Multiplying the exposure mean and the probability indicated by the exposure prediction result to obtain the exposure corresponding to the prediction subtask; The sum of the multiple exposure amounts corresponding to the multiple prediction subtasks is determined as the predicted exposure amount corresponding to the material template matching pair.
6. The multimedia resource generation method according to claim 2, It is characterized in that The predicted exposure amount and the first fusion feature are processed by the feature processing module and the click prediction module in the click prediction model to obtain the predicted click rate corresponding to the material template matching pair, including: The predicted exposure amount and the first fused feature are processed by a feature processing module in the click prediction model to obtain a second fused feature, where the second fused feature includes the exposure amount feature of the predicted exposure amount and the first fused feature; The second fusion features are processed respectively by multiple expert networks in the click prediction module to obtain multiple processing results output by the multiple expert networks; The gated network in the click prediction module performs weighted summation on the multiple processing results output by the multiple expert networks to obtain the predicted click rate corresponding to the material template matching pair.
7. The method for generating multimedia resources according to any one of claims 2 to 6, It is characterized in that The training process of the click prediction model includes: Acquire multiple sample multimedia resources and tag information of the multiple sample multimedia resources, where the tag information is used to indicate real exposure and real click rate of the sample multimedia resources; Based on the multiple first sample multimedia resources, the actual exposure amounts of the multiple first sample multimedia resources, and the actual click-through rates of the multiple first sample multimedia resources, the click prediction model is trained in the first stage to obtain a first click prediction model, wherein the first sample multimedia resource is any sample multimedia resource among the multiple sample multimedia resources, and the first stage training is used to learn the influence of the actual exposure amount of the multimedia resource on the click-through rate of the multimedia resource; Based on the predicted exposure of the multiple second sample multimedia resources, the multiple second sample multimedia resources and the actual click-through rate of the multiple second sample multimedia resources by the first click prediction model, the first click prediction model is trained in the second stage to obtain a second click prediction model. The second sample multimedia resource is any sample multimedia resource among the multiple sample multimedia resources except the first sample multimedia resource. The second stage training is used to learn the influence of the predicted exposure of multimedia resources on the click-through rate of multimedia resources.
8. The multimedia resource generation method according to claim 1, It is characterized in that The generating multimedia resource based on the at least one first material template matching pair includes: In a case where the number of the at least one first material template matching pair is 1, filling the material in the first material template matching pair into the template in the first material template matching pair to obtain the multimedia resource; In the case that the number of the at least one first material template matching pair is plural, determining a plurality of second material template matching pairs from the plurality of first material template matching pairs, the plurality of second material template matching pairs being material template matching pairs with the same template; Fill the plurality of materials in the plurality of second material template matching pairs into the template in the second material template matching pair to obtain the multimedia resource.
9. A multimedia resource generating device, It is characterized in that The device comprises: a processing unit configured to, in response to an input operation of resource information in a multimedia generation page, process a plurality of material template matching pairs and the resource information to obtain a plurality of predicted click-through rates, wherein the plurality of predicted click-through rates correspond to the plurality of material template matching pairs one by one, the resource information is used to indicate a resource type of a multimedia resource to be generated and an object for display, the material template matching pair includes any material and any template, and the predicted click-through rate is a predicted click-through rate of a multimedia resource generated based on the material template matching pair; A determining unit is configured to determine at least one first material template matching pair from the multiple material template matching pairs based on the multiple predicted click rates, wherein the predicted click rate corresponding to the first material template matching pair is greater than a click rate threshold; The generating unit is configured to generate multimedia resources based on the at least one first material template matching pair.
10. An electronic device, It is characterized in that The electronic device comprises: one or more processors; a memory for storing program code executable by the processor; The processor is configured to execute the program code to implement the multimedia resource generation method according to any one of claims 1 to 8.
11. A computer-readable storage medium, It is characterized in that When the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the multimedia resource generating method as described in any one of claims 1 to 8.
12. A computer program product comprising a computer program, It is characterized in that When the computer program is executed by a processor, the multimedia resource generation method according to any one of claims 1 to 8 is implemented.
Citation Information
Cited By
Intelligent processing method and system for new media data
CN120929617A
