Story album generation method, device and electronic device

Generating story line information through user operation behavior, combined with multi-modal copywriting and music emotion models, solves the shortcomings of personalized story album generation in the existing technology, achieves copywriting and music that match user emotions, and improves user experience and albums of interactivity.

CN117290534BActive Publication Date: 2024-09-13CHINA MOBILE INTERNET CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311283302.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-09-28
Publication Date
2024-09-13
Estimated Expiration
2043-09-28

AI Technical Summary

Technical Problem

The existing technology is difficult to generate personalized story albums in real time based on the user's operating behavior and emotions, and lacks background music and explanatory copy that match the user's emotions, which affects the user experience.

Method used

The story line information is generated through the story line model based on the user's operation behavior, and combined with the multi-modal copy generation model and the music emotion classification model, explanatory copy and background music that match the user's emotions are generated to form a personalized story album.

Benefits of technology

It realizes real-time generation of encouraging copywriting and matching background music based on user emotions, improving the interactivity and fun of user experience and story albums.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117290534B
    Figure CN117290534B
Patent Text Reader

Abstract

The present disclosure provides a method, device and electronic device for generating a story album, which relates to artificial intelligence technology, and in particular to a method, device and electronic device for generating a story album. The specific technical scheme is: generating story main line information based on the story main line model according to the operation behavior information of the first object; generating explanatory copy information of the picture to be processed based on the multimodal copy generation model according to the story main line information and the picture to be processed; determining the corresponding background music according to the story main line information and the explanatory copy information; generating a story album according to the picture to be processed, the explanatory copy information and the background music, realizing the generation of a story album according to the dynamic data and album pictures released by the user, reflecting the emotional changes of the user and improving the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to an artificial intelligence technology, and more particularly to a method, device and electronic device for generating a story album. Background Art

[0002] With the development of cloud service technology and the limitations of mobile terminal storage, more and more users are transferring their personal data assets to cloud disks. In addition to providing users with intelligent and convenient asset management services, cloud disks have also spawned social interactive applications such as friend sharing and circles.

[0003] In the related art, a user can usually select a set of pictures, a template, and a soundtrack to be made into an album, and compose the album according to a pre-set combination rule. Summary of the invention

[0004] The present invention provides a method and device for generating a story album.

[0005] According to a first aspect of an embodiment of the present disclosure, a method for generating a story album is provided, comprising:

[0006] Generate storyline information based on the storyline model according to the operation behavior information of the first object;

[0007] According to the main storyline information and the pictures to be processed, the explanatory copy information of the pictures to be processed is generated based on the multimodal copy generation model;

[0008] Determine the corresponding background music based on the main storyline information and explanatory copy information;

[0009] Generate a story album based on the pictures to be processed, explanatory text information and background music.

[0010] According to a second aspect of an embodiment of the present disclosure, a device for generating a story album is provided, including:

[0011] A first generating module, configured to generate storyline information based on a storyline model according to the operation behavior information of the first object;

[0012] The second generation module is used to generate explanatory copy information of the picture to be processed based on the multimodal copy generation model according to the main story information and the picture to be processed;

[0013] A determination module is used to determine the corresponding background music according to the main story information and the explanatory copy information;

[0014] The third generation module is used to generate a story album based on the pictures to be processed, explanatory text information and background music.

[0015] According to a third aspect of an embodiment of the present disclosure, there is provided an electronic device, including:

[0016] at least one processor; and

[0017] a memory communicatively connected to at least one processor; wherein,

[0018] The memory stores instructions that can be executed by at least one processor, and the instructions are executed by at least one processor so that the at least one processor can execute the method for generating a story album described in the first aspect above.

[0019] According to a fourth aspect of an embodiment of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable a computer to execute the method for generating a story album described in the first aspect above.

[0020] According to a fifth aspect of an embodiment of the present disclosure, a computer program product is provided, comprising a computer program, wherein when the computer program is executed by a processor, the information processing method described in the first aspect is implemented.

[0021] The technical solution provided by the embodiments of the present disclosure may include the following beneficial effects: generating the main storyline information based on the main storyline model according to the operation behavior information of the first object, realizing the determination of the user's emotional information according to the user's operation behavior on the network platform, generating the main storyline information of the story album based on the user's emotional information, reflecting the user's emotional changes in the main storyline information, and improving the user experience. According to the main storyline information, the user's negative emotions can be discovered in time, so that according to the main storyline information and the pictures to be processed, the multimodal copy generation model can generate encouraging copy and explanatory copy information that can soothe the user. According to the main storyline information and the explanatory copy information, the background music that matches the user's emotions and the pictures to be processed can be determined, thereby improving the user experience.

[0022] 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

[0023] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0024] Figure 1 It is a flowchart of a method for generating a story album according to an embodiment of the present disclosure.

[0025] Figure 2 It is a flowchart of another method for generating a story album provided according to an embodiment of the present disclosure.

[0026] Figure 3It is a schematic diagram of a storyline model provided according to an embodiment of the present disclosure.

[0027] Figure 4 It is a schematic diagram of a multimodal fusion layer in a storyline model provided according to an embodiment of the present disclosure.

[0028] Figure 5 It is a flowchart of the training method of the storyline model provided by the embodiment of the present disclosure.

[0029] Figure 6 This is a flowchart of another method for generating a story album provided according to an embodiment of the present disclosure.

[0030] Figure 7 It is a schematic diagram of a multimodal copywriting generation model provided according to an embodiment of the present disclosure.

[0031] Figure 8 It is a flowchart of a training method for a multimodal copywriting generation model provided according to an embodiment of the present disclosure.

[0032] Fig. 9 It is a block diagram of a music emotion classification model based on metric learning provided according to an embodiment of the present disclosure.

[0033] Fig.10 This is a flowchart of another method for generating a story album provided according to an embodiment of the present disclosure.

[0034] Fig.11 It is a block diagram of a device for generating a story album according to an embodiment of the present disclosure.

[0035] Fig.12 is a block diagram of an electronic device provided according to an embodiment of the present disclosure. DETAILED DESCRIPTION

[0036] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Instead, they are merely examples of devices and methods consistent with some aspects of the present invention as detailed in the appended claims.

[0037] It should be noted that in the technical solution of the present disclosure, the collection, storage, use, processing, transmission, provision and disclosure of user personal information involved are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.

[0038] It should be noted that the application scenarios of the story album generation method provided by the embodiment of the present disclosure may include but are not limited to: generating a story album based on pictures in a terminal-side album application; generating a story album based on pictures in cloud storage.

[0039] Figure 1 It is a flowchart of a method for generating a story album according to an embodiment of the present disclosure. It should be noted that the method for generating a story album provided by an embodiment of the present disclosure can be applied to the device for generating a story album provided by an embodiment of the present disclosure. Exemplarily, the generating device can be configured on an electronic device.

[0040] like Figure 1 As shown, the method for generating the story album includes but is not limited to the following steps:

[0041] In step S101, main storyline information is generated based on a main storyline model according to operation behavior information of a first object.

[0042] As an example, the first object may be a user, or may be a terminal device held by the user (such as a mobile device such as a mobile phone or a tablet computer). For ease of description, the following description will be made by taking the first object as a user.

[0043] In some embodiments of the present disclosure, operation behavior information of the first object is obtained based on the unique identifier of the first object.

[0044] As a possible implementation method, the mobile phone number of the first object can be used as the unique identifier of the first object. Based on the mobile phone number of the first object, the dynamic data published by the account corresponding to the mobile phone number on multiple network platforms within the first time period is obtained, and the dynamic data published by the first object is determined as the operation behavior information of the first object. The operation behavior information of the first object may include but is not limited to at least one of the following: short video dynamic information, graphic dynamic information, and text dynamic information.

[0045] Optionally, the operation behavior information may be multimodal information. In some embodiments, the operation behavior information of the first object may be converted into multimodal information, and the multimodal information may be predicted using a main story line model to obtain corresponding main story line information.

[0046] It should be noted that, in some embodiments, the main storyline model has pre-learned the mapping relationship between the multimodal features corresponding to the operation behavior information and the main storyline information. The main storyline information can be generated by inputting the multimodal information into the main storyline model for prediction. The main storyline information may include but is not limited to emotion label information and target label information.

[0047] Optionally, in some embodiments, the above-mentioned emotion tag information may include but is not limited to at least one of the following: 'happy', 'good', 'angry', 'sad', 'fear', 'hate', and 'shock'.

[0048] For example, the operation behavior information of the first object at T time points is obtained, and the operation behavior information is predicted and processed using the main story line model to obtain the main story line information output by the main story line model. The main story line information includes emotional label information and target label information. For example, the emotional label information can be obtained by [e1, e2, e3, …, e T ] means that the target label information can be expressed by [y1,y2,y3,…,y T ] represents. Among them, e T is the emotion label predicted based on the operation behavior information of the first object at the Tth moment; T is the target label predicted based on the operation behavior information of the first object at the Tth moment.

[0049] In step S102, according to the storyline information and the picture to be processed, explanatory text information of the picture to be processed is generated based on a multimodal text generation model.

[0050] It should be noted that, in some embodiments, the above-mentioned to-be-processed pictures may be pictures selected by the user, for example, pictures selected by the user from an album application (such as an album application on a terminal) or a cloud disk album.

[0051] In some embodiments, the above-mentioned pictures to be processed may be pictures selected from a photo album application or a cloud disk album based on the main storyline information.

[0052] Optionally, based on the main story information, two types of story albums to be processed can be generated, wherein the two story albums are character emotion albums and theme emotion albums.

[0053] As a possible implementation method, the specific method of obtaining the pictures to be processed in the character emotion album can be as follows: perform face recognition and clustering processing on the picture set to be processed, obtain pictures of different characters in the picture set to be processed, and determine the picture of the first object among the pictures of different characters as the picture to be processed.

[0054] For example, all pictures containing faces in the to-be-processed picture set are determined through a face recognition algorithm; all pictures containing faces in the to-be-processed picture set are deduplicated and filtered to obtain a processed picture set; clustering is performed based on the processed picture set to obtain multiple face clustering results; pictures of different characters are determined based on the multiple face clustering results and the main storyline information; and the picture of the first object among the pictures of different characters is determined as the to-be-processed picture.

[0055] As another possible implementation method, the specific method of obtaining the pictures to be processed in the theme emotional album can be as follows: determine the theme of the story based on the correlation between the target label information in the main storyline information and the theme, and perform text recognition and content recognition on the picture set to be processed to obtain the target label information of each picture in the picture set to be processed, and determine the pictures to be processed from the picture set to be processed based on the target label information of each picture and the story theme.

[0056] For example, the theme of the story is determined based on the correlation between the target label in the main story information and the theme; the processed picture set is obtained based on deduplication filtering processing on the picture set to be processed; the target label information of each picture in the picture set to be processed is obtained based on text and content recognition processing on the processed picture set; based on the target label information of each picture in the picture set to be processed and the story theme, multiple highly relevant pictures in the picture set to be processed are obtained; based on the multiple highly relevant pictures, emotion type prediction is performed to obtain emotion labels of the multiple highly relevant pictures; based on the emotion labels of the multiple highly relevant pictures and the main story information, the multiple highly relevant pictures are sorted, and the sorted pictures are determined as the pictures to be processed.

[0057] Optionally, in some embodiments, the picture to be processed may be a single picture or multiple pictures.

[0058] As a possible implementation method, when the image to be processed is a single image, the emotion label information, the target label information and the image are input into a multimodal text generation model to generate explanatory text information for the image.

[0059] As another possible implementation, when there are multiple pictures to be processed, for each picture, the emotion label information, the target label information and the picture are input into the multimodal text generation model to generate the explanatory text information of the picture. Optionally, the explanatory text information of multiple pictures in the pictures to be processed is sorted, and the sorted text information is used as the explanatory text information of the story album.

[0060] It should be noted that, in some embodiments, the multimodal text generation model has learned the mapping relationship between the main story information and the pictures to be processed, and the explanatory text information of the pictures to be processed.

[0061] In some embodiments, taking the example that the main storyline information may include emotional label information and target label information, based on a multimodal text generation model, the emotional label information and the target label information are spliced ​​and processed, and feature extraction is performed on the spliced ​​text to obtain contextual features of the text information; feature extraction is performed on the image to be processed to obtain corresponding visual features, and explanatory text information of the image to be processed is generated according to the contextual features and visual features of the text information.

[0062] In step S103, the corresponding background music is determined according to the main story information and the explanatory text information.

[0063] In some embodiments of the present disclosure, the music library of the first object is determined based on the music preference of the first object; and the corresponding background music is determined based on the music library of the first object, the main storyline information and the explanatory copy information.

[0064] As a possible implementation method, the music preference of the first object is obtained; based on the music preference of the first object, analysis and processing are performed to obtain music of similar style; based on the music preference of the first object and the music of similar style, the music library of the first object is determined.

[0065] In some embodiments of the present disclosure, a specific implementation method for determining the corresponding background music based on the music library of the first object, the main story information, and the explanatory text information may be as follows: performing beat detection processing on each piece of music in the music library of the first object to obtain multiple music clips; performing emotion type classification processing based on the multiple music clips to obtain music emotion label information; performing similarity comparison processing based on the main story information and the music emotion label information to obtain a set of music clips; and determining the set of music clips as background music.

[0066] As a possible implementation method, each piece of music in the music library of the first object is segmented by a beat detection algorithm to obtain multiple music clips; a music emotion classification model based on metric learning is used to classify the emotion types of multiple music clips to obtain music emotion label information.

[0067] Optionally, based on the length of the emotion tag information in the main story information and the music emotion tag information, music emotion tag information of the same length as the main story information is determined. Similarity comparison processing is performed based on the emotion tag information in the main story information and the music emotion tag information of the same length to obtain a set of music clips.

[0068] As an example, based on the similarity comparison processing results of the emotional tag information in the main story information and the emotional tag information of music of equal length, the set of music clips with the highest similarity is determined as background music. The similarity comparison result can be calculated by the following formula (1):

[0069]

[0070] Among them, d(x,y) is the Euclidean distance between the emotional label information in the main story information and the music emotional label information; x is the emotional label information in the main story information; y is the music emotional label information; x i is the emotional label corresponding to the i-th moment in the emotional label information in the main story information; y i is the emotion label corresponding to the ith music clip in the music emotion label information; T is the length of the emotion label information in the main story information, which is also the length of the music emotion label information.

[0071] In step S104, a story album is generated based on the pictures to be processed, the explanatory text information and the background music.

[0072] As a possible implementation method, the character emotion story album is obtained by adding corresponding explanatory text information and background music to the to-be-processed pictures in the character emotion album.

[0073] As another possible implementation method, the theme emotion album is obtained by adding corresponding explanatory text information and background music to the pictures to be processed in the theme emotion album.

[0074] In the embodiments of the present disclosure, the main storyline information is generated based on the main storyline model according to the operation behavior information of the first object, so that the user's emotional information is determined according to the user's operation behavior on the network platform, and the main storyline information of the story album is generated based on the user's emotional information. The user's emotional changes are reflected in the main storyline information, thereby improving the user experience. According to the main storyline information, the user's negative emotions can be discovered in time, so that according to the main storyline information and the pictures to be processed, the multimodal copy generation model can generate encouraging copy and explanatory copy information that can soothe the user. According to the main storyline information and the explanatory copy information, the background music that matches the user's emotions and the pictures to be processed can be determined, thereby improving the user experience.

[0075] Figure 2 FIG. 1 is a flowchart of another method for generating a story album according to an embodiment of the present disclosure. Figure 2 As shown, the method for generating the story album includes but is not limited to the following steps:

[0076] In step S201, the operation behavior information of the first object is converted into multimodal information.

[0077] In some embodiments of the present disclosure, operation behavior information of the first object is obtained based on the unique identifier of the first object.

[0078] As a possible implementation method, the mobile phone number of the first object can be used as the unique identifier of the first object. Based on the mobile phone number of the first object, the dynamic data published by the account corresponding to the mobile phone number on multiple network platforms within the first time period is obtained, and the dynamic data published by the first object is determined as the operation behavior information of the first object. The operation behavior information of the first object may include but is not limited to at least one of the following: short video dynamic information, graphic dynamic information, and text dynamic information.

[0079] It should be noted that, optionally, short video dynamic information includes three modal information of visual picture set, text set and audio; picture and text dynamic information includes two modal information of visual picture set and text set; text dynamic information includes one modal information of text set.

[0080] As an example, the operation behavior information of the first object is transformed to obtain multimodal information. The multimodal information of the first object can be obtained by (X v ,X t ,X a ) represents. Among them, X v is the modal information of the visual picture set; X t is the modal information of the text set; X a is the audio modal information. If one or some modal information is missing in the multimodal information, X miss For example, the multimodal information of short video dynamic information can be expressed as (X v ,X t ,X a ); The multimodal information of graphic and text dynamic information can be expressed as The multimodal information of text dynamic information can be expressed as

[0081] In step S202, based on the story main line model, the modal features of each modal information in the multimodal information are extracted, and based on the modal features of each modal information, the spatiotemporal fusion features of each modal information in the multimodal information are extracted, and according to the modal features of each modal information and the spatiotemporal fusion features of each modal information, the story main line information is generated.

[0082] In some embodiments, Figure 3 As shown, the network structure of the main story model may include a unimodal encoding layer, a multimodal fusion layer, an invariant feature encoding layer and a label prediction layer, and the main story model may also include a label text encoder.

[0083] Among them, Figure 3As shown, the unimodal encoding layer includes a text encoder, a video encoder and an audio encoder, which are mainly used to convert the operation behavior information of the first object into multimodal information. For example, the visual encoder can be a CSwinTransformer visual encoder, a WavLM-large speech encoder and a DeBerta V3 base text encoder.

[0084] The multimodal fusion layer mainly includes a unimodal self-attention layer corresponding to multiple modalities, a temporal cross-modal fusion layer corresponding to multiple modalities, and a spatial cross-modal fusion layer corresponding to multiple modalities.

[0085] Among them, the unimodal self-attention layer can be used to extract the modal features of each modal information in the multimodal information; the temporal cross-modal fusion layer may include a unimodal temporal cross-modal self-attention layer, an Adapter layer and an additive normalization layer, which is mainly used to extract the temporal fusion features of each sample modal information in the sample multimodal information based on the modal features of each sample modal information; the spatiotemporal cross-modal fusion layer may include a unimodal spatial cross-modal self-attention layer, an Adapter layer and an additive normalization layer, which is mainly used to extract the spatiotemporal fusion features of each sample modal information in the sample multimodal information based on the modal features of each sample modal information.

[0086] The invariant feature encoder layer mainly includes convolutional layers, fully connected layers and DROPOUT layers, which are used to map the spatiotemporal fusion features of each modal information to a shared subspace to obtain high-level features of each modal information; the high-level features of each modal information are fused to obtain modality-invariant features.

[0087] The label prediction layer is used to obtain sample operation behavior information and sample label information corresponding to the sample operation behavior information, and determine the model loss value based on the storyline prediction information and the sample label information.

[0088] The label text encoder is mainly used to convert sample label information into real sample values ​​for loss function calculation.

[0089] In some embodiments of the present disclosure, the operation behavior information of the first object is converted into multimodal information through a single-modal coding layer, and the multimodal information output by the single-modal coding layer is used as the input of the multimodal fusion layer. The spatiotemporal fusion features of each modal information in the multimodal information are extracted through the multimodal fusion layer.

[0090] like Figure 4As shown in the figure, the unimodal self-attention layer in the multimodal fusion layer mainly includes a normalization layer, a self-attention layer, and an additive normalization layer; the temporal cross-modal fusion layer in the multimodal fusion layer mainly includes a unimodal temporal cross-modal self-attention layer, an Adapter layer, and an additive normalization layer; the spatial cross-modal fusion layer in the multimodal fusion layer mainly includes a unimodal spatial cross-modal self-attention layer, an Adapter layer, and an additive normalization layer.

[0091] Optionally, in some embodiments, based on the unimodal self-attention layer in the multimodal fusion layer, the modal features of the modal information are normalized for each modality to obtain normalized modal features; self-attention processing is performed based on the normalized modal features to obtain modal features after self-attention processing; and the modal features after self-attention processing are added and normalized to the modal features to obtain self-attention features of each modal information.

[0092] Optionally, the self-attention features of each modal information are fused to obtain the self-attention fusion features of the multimodal information; in the temporal cross-modal fusion layer in the multimodal fusion layer, temporal cross-modal self-attention processing is performed based on the self-attention fusion features of the multimodal information, and the non-Adapter layer parameters in the main story model are fixed through the Adapter layer to extract the temporal features of each modal information in the multimodal information; for each modality, the temporal features based on the modal information and the self-attention features of the modal information are added and normalized to obtain the added normalized temporal features; the added normalized temporal features of each modal information are fused to obtain the temporal fusion features of the multimodal information. For example, Figure 4 As shown, Figure 4 What is shown is an example of the self-attention fusion feature of multimodal information as the input of the text temporal cross-modal fusion layer, and the text temporal cross-modal fusion layer performs corresponding processing to obtain the temporal features corresponding to the text modality. It can be understood that the self-attention fusion feature of multimodal information should also be used as the input of the visual temporal cross-modal fusion layer, and the self-attention fusion feature of multimodal information is processed accordingly in the visual temporal cross-modal fusion layer to obtain the temporal features corresponding to the visual modality. The self-attention fusion feature of multimodal information should also be used as the input of the audio temporal cross-modal fusion layer, and the self-attention fusion feature of multimodal information is processed accordingly in the audio temporal cross-modal fusion layer to obtain the temporal features corresponding to the audio modality. The temporal features corresponding to the text modality, the temporal features corresponding to the visual modality, and the temporal features corresponding to the audio modality are fused to obtain the temporal fusion features of the above-mentioned multimodal information.

[0093] It is worth noting that in order to achieve feature fusion, the self-attention features of each modal information are optionally transformed in dimension to obtain self-attention features of the same dimension for each modal information; based on the self-attention features of the same dimension for each modal information, fusion processing is performed to obtain self-attention fusion features of multimodal information. For example, the data dimension of the self-attention features of each modal information is l×(N+1)×D. Among them, L is the time series length of the self-attention feature; N is the number of image blocks or the length of the sentence; D is the feature dimension. The self-attention feature dimension of each modal information is transformed into (N+1)×l×D to obtain self-attention features of the same dimension for each modal information.

[0094] Optionally, the time series features after the addition and normalization of each modal information are transformed in latitude to obtain the time series features of the same latitude of each modal information; based on the time series features of the same latitude of each modal information, fusion processing is performed to obtain the time series fusion features of the multimodal information. For example, the data latitude of the time series features after the addition and normalization of each modal information is (N+1)×L×D. The dimension of the time series features after the addition and normalization of each modal information is transformed to L×(N+1)×D to obtain the time series features of the same latitude of each modal information.

[0095] Optionally, based on the spatial cross-modal fusion layer in the multimodal fusion layer, the temporal fusion features are subjected to spatial cross-modal self-attention processing, and the non-Adapter layer parameters in the storyline model are fixed through the Adapter layer to extract the spatial features of each modal information in the multimodal information; for each modality, the spatial features of the modal information and the temporal fusion features of the multimodal information are added and normalized to obtain the added normalized spatiotemporal features; the added normalized spatiotemporal features are fused to obtain the spatiotemporal fusion features of the multimodal information. For example, Figure 4 As shown, Figure 4 What is shown is an example of using the temporal fusion features of multimodal information as the input of the text space cross-modal fusion layer, where the temporal fusion features of the multimodal information are processed accordingly to obtain the temporal and spatial features corresponding to the text modality. It can be understood that the temporal fusion features of multimodal information should also be used as the input of the visual space cross-modal fusion layer, where the temporal fusion features of the multimodal information are processed accordingly to obtain the temporal and spatial features corresponding to the visual modality. The temporal fusion features of multimodal information should also be used as the input of the audio space cross-modal fusion layer, where the temporal fusion features of the multimodal information are processed accordingly to obtain the temporal and spatial features corresponding to the audio modality. The temporal and spatial features corresponding to the text modality, the temporal and spatial features corresponding to the visual modality, and the temporal and spatial features corresponding to the audio modality are fused to obtain the temporal and spatial fusion features of the multimodal information mentioned above.

[0096] In some embodiments of the present disclosure, the modal features of each modal information are fused through the invariant feature encoding layer in the storyline model to obtain a first fused feature; the spatiotemporal fusion features of each modal information are mapped to a shared subspace to obtain a high-level feature of each modal information.

[0097] Optionally, based on the invariant feature encoding layer in the storyline model, the spatiotemporal fusion features of each modal information are mapped to a shared subspace through a distance constraint method of center distance difference to obtain high-level features of each modal information; the high-level features of each modal information are fused to obtain modal invariant features.

[0098] For example, Figure 3 As shown, the visual image modality feature x v , text modality feature x t , audio modal features x a The fusion process is performed to obtain the first fusion feature h. For example, the fusion process can be to combine the visual image modality feature x v , text modality feature x t , audio modal features are spliced; for example, the fusion process can be to combine the visual image modal features x v , text modality feature x t , and audio modal features are processed by dimensional addition. The spatiotemporal fusion features of visual image modal information, the spatiotemporal fusion features of text modal information, and the spatiotemporal fusion features of audio modal information are mapped to the shared subspace respectively to obtain the high-level features H of the visual image modality v , high-level features of text modality H t , high-level features of audio modality H a ; The high-level features H of the visual image modality v , high-level features of text modality H t , high-level features of audio modality H a The fusion process is performed to obtain the modality-invariant feature H. For example, the fusion process can be to combine the high-level feature H of the visual image modality v , high-level features of text modality H t , high-level features of audio modality H a For example, the fusion process can be to combine the high-level features H of the visual image modality v , high-level features of text modality H t , high-level features of audio modality H a Perform latitudinal addition processing, etc. Perform latitudinal addition processing on the first fused feature h and the modal invariant feature H. For example, the fusion processing may be to concatenate the first fused feature h and the modal invariant feature H; for another example, the fusion processing may be to perform latitudinal addition processing on the first fused feature h and the modal invariant feature H, etc.

[0099] In some embodiments of the present disclosure, the high-level features of each modal information are fused based on the label prediction layer in the main story model to obtain a modal invariant feature; the first fused feature and the modal invariant feature are fused to obtain a second fused feature; and a prediction process is performed based on the second fused feature to generate the main story information.

[0100] Optionally, prediction processing is performed based on the second fusion feature to obtain emotion labels and target label information at multiple moments. Emotion labels at multiple moments are processed in series to obtain emotion label information. Story mainline information is generated based on the emotion label information and target label information.

[0101] In step S203, explanatory text information of the picture to be processed is generated based on a multimodal text generation model according to the storyline information and the picture to be processed.

[0102] In the embodiments of the present disclosure, step S203 may be implemented in any manner in the embodiments of the present disclosure, and the embodiments of the present disclosure do not limit this and will not be described in detail.

[0103] In step S204, the corresponding background music is determined according to the main story information and the explanatory text information.

[0104] In the embodiments of the present disclosure, step S204 may be implemented in any manner in the embodiments of the present disclosure, and the embodiments of the present disclosure do not limit this and will not be described in detail.

[0105] In step S205, a story album is generated based on the pictures to be processed, the explanatory text information and the background music.

[0106] In the embodiments of the present disclosure, step S205 may be implemented in any manner in the embodiments of the present disclosure, and the embodiments of the present disclosure do not limit this and will not be described in detail.

[0107] In an embodiment of the present disclosure, based on a storyline model, modal features of each modal information in multimodal information are extracted, and based on the modal features of each modal information, spatiotemporal fusion features of each modal information in multimodal information are extracted, and based on the modal features of each modal information and the spatiotemporal fusion features of each modal information, storyline information is generated, thereby realizing the mining of low-frequency emotional data and improving the robustness of multimodal joint representation.

[0108] Figure 5 FIG. 1 is a flow chart of a method for training a storyline model provided by an embodiment of the present disclosure. Figure 3 As shown, the training method includes the following steps:

[0109] In step S501, sample operation behavior information and sample label information corresponding to the sample operation behavior information are obtained, wherein the sample label information is represented in the form of a text prompt.

[0110] It should be noted that, unlike the previous use of classification loss functions to predict sentiment labels and target labels, the present disclosure uses text prompts to learn sentiment labels and target labels. The sample label information is represented by a text prompt: A cute puppy sitting on the green grass with its tongue sticking out expresses a happy emotion. 'Grass' and 'puppy' are target labels, and 'happy' is a sentiment label.

[0111] In step S502, the sample operation behavior information is converted into sample multimodal information.

[0112] In the embodiment of the present disclosure, the implementation of step S502 is similar to the implementation of step 201 above, that is, the implementation of step 501 can be used to convert the sample operation behavior information into sample multimodal information, which will not be repeated here.

[0113] In step S503, the sample multimodal information is input into the initial model of the storyline model.

[0114] In step S504, based on the initial model, the modal features of each sample modal information in the sample multimodal information are extracted, and based on the modal features of each sample modal information, the spatiotemporal fusion features of each sample modal information in the sample multimodal information are extracted, and according to the modal features of each sample modal information and the spatiotemporal fusion features of each sample modal information, the main storyline prediction information is generated.

[0115] In an embodiment of the present disclosure, the implementation method of step S504 is similar to the implementation method of the above-mentioned step 202, that is, the implementation method of step 202 can be used to extract the modal features of each sample modal information in the sample multimodal information based on the initial model, and extract the spatiotemporal fusion features of each sample modal information in the sample multimodal information based on the modal features of each sample modal information, and generate the main storyline prediction information according to the modal features of each sample modal information and the spatiotemporal fusion features of each sample modal information, which will not be repeated here.

[0116] In step S505, the model loss value is determined based on the storyline prediction information and the sample label information.

[0117] Optionally, the model loss value may be calculated based on a preset loss function combined with the storyline prediction information and the sample label information. The loss function may be a cross entropy loss function or other loss functions, which are not limited in this disclosure and will not be described in detail.

[0118] In step S506, the initial model is trained according to the model loss value to obtain a trained storyline model.

[0119] In the embodiments of the present disclosure, the multi-task label prediction problem is reconstructed into a fill-in-the-blank problem through text prompts, which keeps the consistency of downstream tasks and pre-training objectives, and improves the generalization and practicality of the storyline model.

[0120] Figure 6 FIG. 1 is a flowchart of another method for generating a story album according to an embodiment of the present disclosure. Figure 5 As shown, the method for generating the story album includes but is not limited to the following steps:

[0121] In step S601, main storyline information is generated based on a main storyline model according to the operation behavior information of the first object.

[0122] In the embodiments of the present disclosure, step S601 may be implemented in any manner in the embodiments of the present disclosure, and the embodiments of the present disclosure do not limit this and will not be described in detail.

[0123] In step S602, the emotion label information, the target label information and the image to be processed are input into a multimodal copywriting generation model.

[0124] In the embodiments of the present disclosure, step S602 may be implemented in any manner in the embodiments of the present disclosure, and the embodiments of the present disclosure do not limit this and will not be described in detail.

[0125] In step S603, based on the multimodal copywriting generation model, the visual vector of the image to be processed is extracted, and the visual vector is subjected to deep separable convolution and multi-head attention operations to obtain multi-scale visual features of the image to be processed.

[0126] Optional, Figure 7 is a schematic diagram of a multimodal copywriting generation model provided according to an embodiment of the present disclosure. Figure 7 As shown, the multimodal copywriting generation model includes an embedding vector layer, an encoding layer, a decoding layer and a generation layer.

[0127] Among them, the embedded vector layer can be used in a multimodal copywriting generation model to extract the visual vector of the image to be processed.

[0128] The encoding layer can be used to perform deep separable convolution and multi-head attention operations on the visual vector to obtain multi-scale visual features of the image to be processed. The encoding layer mainly includes the visual encoder and the text encoder.

[0129] The decoding layer can be used in a multimodal copywriting generation model to concatenate the sentiment tag information and the target tag information, extract text features based on the concatenated text information combined with the position information of the sentiment tag words and the target tag words, obtain a text vector, and encode the text vector to obtain the contextual features of the text information.

[0130] The generation layer can be used to generate explanatory copy information for the image to be processed based on the multimodal copy generation model by combining the contextual features of visual features and text information.

[0131] In some embodiments of the present disclosure, an image feature extraction process is performed on the image to be processed based on the embedding vector layer in the multimodal copywriting generation model to extract the visual vector of the image to be processed. For example, the image feature extraction process is performed using a pre-trained ResNet network.

[0132] Optionally, the visual encoder of the encoding layer in the multimodal copywriting generation model performs deep separable convolution and multi-head attention operations on the visual vector to obtain multi-scale visual features of the image to be processed. For example, the multi-scale visual features of the image to be processed are extracted through the deep separable convolution layer and the multi-head self-attention network layer of the visual encoder.

[0133] In step S604, based on the multimodal text generation model, the sentiment tag information and the target tag information are spliced, and text features are extracted based on the spliced ​​text information combined with the position information of the sentiment tag words and the target tag words to obtain a text vector, and the text vector is encoded to obtain the contextual features of the text information.

[0134] In some embodiments of the present disclosure, based on the embedding vector layer in the multimodal copywriting generation model, the sentiment tag information and the target tag information are concatenated, and text features are extracted based on the concatenated text information combined with the position information of the sentiment tag words and the target tag words to obtain a text vector. For example, the text feature extraction process is performed using a pre-trained BERT network.

[0135] Optionally, a text encoder based on an encoding layer in a multimodal copywriting generation model encodes the text vector to obtain context features of the text information. For example, the text vector is encoded by a GRU gated recurrent layer and a Transformer layer in the text encoder.

[0136] In step S605, the explanatory text information of the image to be processed is generated based on the multimodal text generation model combined with the contextual features of the visual features and the text information.

[0137] In some embodiments of the present disclosure, a decoding layer in a multimodal copywriting generation model performs weighted fusion processing on visual features and contextual features of text information to obtain fused features, and decodes the fused features to obtain vocabulary distribution probabilities and key vocabulary distribution information.

[0138] In some embodiments of the present disclosure, based on the generation layer in the multimodal text generation model, explanatory text information of the image to be processed is generated according to the vocabulary distribution probability and the key vocabulary distribution information.

[0139] In step S606, the corresponding background music is determined according to the main story information and the explanatory text information.

[0140] In the embodiments of the present disclosure, step S606 may be implemented in any manner in the embodiments of the present disclosure, and the embodiments of the present disclosure do not limit this and will not be described in detail.

[0141] In step S607, a story album is generated based on the pictures to be processed, the explanatory text information and the background music.

[0142] In the embodiments of the present disclosure, step S607 may be implemented in any manner in the embodiments of the present disclosure, and the embodiments of the present disclosure do not limit this and will not be described in detail.

[0143] In the embodiments of the present disclosure, explanatory text information is generated for the pictures to be processed based on the emotion label information, target label information and the pictures to be processed, thereby increasing the interactivity and fun of the story album.

[0144] Optional, Figure 8 FIG. 1 is a flowchart of a method for training a multimodal copywriting generation model according to an embodiment of the present disclosure. Figure 8 As shown, the training method of the multimodal copywriting generation model includes the following steps:

[0145] In step S801, sample emotion label information, sample target label information and sample pictures are obtained, and text label information corresponding to the sample emotion label information, sample target label information and sample pictures is obtained.

[0146] In step S802, sample emotion label information, sample target label information and sample images are input into an initial model of a multimodal copywriting generation model.

[0147] In step S803, based on the initial model, a sample visual vector of the sample image is extracted, and a deep separable convolution and multi-head attention operation is performed on the sample visual vector to obtain multi-scale sample visual features of the sample image.

[0148] In an embodiment of the present disclosure, the implementation method of step S803 is similar to the implementation method of the above-mentioned step 603, that is, the implementation method of step 603 can be used to extract the sample visual vector of the sample image based on the initial model, and perform deep separable convolution and multi-head attention operations on the sample visual vector to obtain multi-scale sample visual features of the sample image, which will not be repeated here.

[0149] In step S804, based on the initial model, the sample sentiment label information and the sample target label information are spliced, and text feature extraction is performed based on the spliced ​​sample text information combined with the position information of the sentiment label words and the target label words to obtain a sample text vector, and the sample text vector is encoded to obtain the contextual features of the sample text information.

[0150] In an embodiment of the present disclosure, the implementation method of step S804 is similar to the implementation method of the above-mentioned step 604, that is, the implementation method of step 604 can be used to implement the splicing processing of the sample sentiment label information and the sample target label information based on the initial model, and perform text feature extraction based on the spliced ​​sample text information combined with the position information of the sentiment label words and the target label words to obtain the sample text vector, and perform encoding operations on the sample text vector to obtain the contextual features of the sample text information, which will not be repeated here.

[0151] In step S805, prediction processing is performed based on the initial model in combination with the visual sample features and the context features of the sample text information to obtain the explanatory text prediction information of the sample image.

[0152] In an embodiment of the present disclosure, the implementation method of step S805 is similar to the implementation method of the above-mentioned step 605, that is, the implementation method of step 605 can be used to implement prediction processing based on the initial model combined with the contextual features of the visual sample and the sample text information to obtain the explanatory text prediction information of the sample image, which will not be repeated here.

[0153] In step S806, the initial model is trained based on the explanatory text prediction information and the text label information to obtain a trained multimodal text generation model.

[0154] Fig. 9 is a block diagram of a music emotion classification model based on metric learning provided according to an embodiment of the present disclosure. Fig. 9 Let's give an example. Fig. 9 As shown in the figure, the music emotion classification model based on metric learning mainly includes a feature extraction layer, a bidirectional long short-term memory network layer, an attention layer, and a prediction classification layer.

[0155] The feature extraction layer can be used to construct a music clip triplet based on the music clip, the prediction result positive sample, and the prediction result negative sample. Feature extraction processing is performed based on the music clip triplet to obtain the short-time Fourier transform, spectrogram, and Mel spectrum features of the music clip.

[0156] The bidirectional long short-term memory network layer can be used to input the short-time Fourier transform, spectrogram and Mel spectrum features of the music clip into the bidirectional long short-term memory network layer to extract bidirectional semantic dependency information.

[0157] The attention layer can be used to perform attention learning based on bidirectional semantic dependency information to obtain the contribution weights of different signals in the music clip.

[0158] The prediction classification layer can be used to calculate the loss function based on the contribution weights of different signals and determine the predicted emotional label of the music clip.

[0159] Fig.10 FIG. 1 is a flowchart of another method for generating a story album according to an embodiment of the present disclosure. Fig.10 As shown, the method for generating the story album includes but is not limited to the following steps:

[0160] In step S1001, main story line information is generated based on a main story line model according to operation behavior information of a first object.

[0161] In the embodiments of the present disclosure, step S1001 may be implemented in any manner in the embodiments of the present disclosure, and the embodiments of the present disclosure do not limit this and will not be described in detail.

[0162] In step S1002, according to the storyline information and the picture to be processed, explanatory text information of the picture to be processed is generated based on a multimodal text generation model.

[0163] In the embodiments of the present disclosure, step S1002 may be implemented in any manner in the embodiments of the present disclosure, and the embodiments of the present disclosure do not limit this and will not be described in detail.

[0164] In step S1003, the corresponding background music is determined according to the main story information and the explanatory text information.

[0165] In the embodiments of the present disclosure, step S1003 may be implemented in any manner in the embodiments of the present disclosure, and the embodiments of the present disclosure do not limit this and will not be described in detail.

[0166] In step S1004, a story album is generated based on the pictures to be processed, the explanatory text information and the background music.

[0167] In the embodiments of the present disclosure, step S1004 may be implemented in any manner in the embodiments of the present disclosure, and the embodiments of the present disclosure do not limit this and will not be described in detail.

[0168] In step S1005, the friend information of the first object is determined.

[0169] In some embodiments of the present disclosure, a first friend list of a first object is determined based on pictures of different people in a picture set to be processed, and friend information of the first object is obtained based on the first friend list.

[0170] In some embodiments of the present disclosure, a second friend list of the first object is determined based on the interactive friends of the first object on the network platform; and the friend information of the first object is obtained based on the second friend list of the first object.

[0171] In some embodiments of the present disclosure, in some embodiments of the present disclosure, a first friend list of a first object is determined based on pictures of different people in a picture set to be processed, and a second friend list of the first object is determined based on the interactive friends of the first object on a network platform, and the first friend list of the first object and the second friend list of the first object are merged to obtain the friend information of the first object.

[0172] In step S1006, based on the friend information, the story album is shared with the shared object, and the shared object is assigned operation authority.

[0173] In some embodiments of the present disclosure, the operating permissions that may be assigned to the shared object include, but are not limited to: editing permission and deleting permission.

[0174] As a possible implementation method, a sharing group is created based on friend information; the story album is shared to the sharing group, and operation permissions are assigned to friends in the sharing group.

[0175] In the embodiments of the present disclosure, the story album is shared with the shared objects based on the friend information, and the shared objects are assigned operation permissions, which enhances the social attributes of the story album and further improves the interactivity and fun of the story album.

[0176] Fig.11 is a block diagram of a device for generating a story album according to an embodiment of the present disclosure. Fig.11 As shown, the generating device includes a first generating module 1101 , a second generating module 1102 , a determining module 1103 and a third generating module 1104 .

[0177] The first generating module 1101 is used to generate the main story line information based on the main story line model according to the operation behavior information of the first object.

[0178] The second generation module 1102 is used to generate explanatory text information for the picture to be processed based on the multimodal text generation model according to the story main line information and the picture to be processed.

[0179] The determination module 1103 is used to determine the corresponding background music according to the main story information and the explanatory copy information.

[0180] The third generating module 1104 is used to generate a story album according to the pictures to be processed, the explanatory text information and the background music.

[0181] As an example, the first generation module 1101 can also be used to: convert the operation behavior information of the first object into multimodal information; based on the story main line model, extract the modal features of each modal information in the multimodal information, and extract the spatiotemporal fusion features of each modal information in the multimodal information based on the modal features of each modal information, and generate the story main line information according to the modal features of each modal information and the spatiotemporal fusion features of each modal information.

[0182] As an example, the first generation module 1101 can also be used to: perform self-attention processing on the modal features of each modal information to obtain the self-attention features of each modal information; fuse the self-attention features of each modal information to obtain the self-attention fusion features of multimodal information; extract the time series features of each modal information in the multimodal information based on the self-attention fusion features of the multimodal information; fuse the time series features of each modal information to obtain the time series fusion features of the multimodal information; perform single-modal space cross-modal fusion processing based on the time series fusion features to obtain the spatiotemporal fusion features of each modal information.

[0183] As an example, the first generation module 1101 can also be used to: fuse the modal features of each modal information to obtain a first fused feature; map the spatiotemporal fusion features of each modal information to a shared subspace to obtain a high-level feature of each modal information; fuse the high-level features of each modal information to obtain a modal invariant feature; fuse the first fused feature and the modal invariant feature to obtain a second fused feature; perform prediction processing based on the second fused feature to generate the main story information.

[0184] As an example, the second generation module 1102 can also be used to: input the emotion label information, the target label information and the image to be processed into a multimodal text generation model; based on the multimodal text generation model, extract the visual vector of the image to be processed, and perform deep separable convolution and multi-head attention operations on the visual vector to obtain multi-scale visual features of the image to be processed; based on the multimodal text generation model, splice the emotion label information and the target label information, and extract text features based on the spliced ​​text information combined with the position information of the emotion label words and the target label words to obtain a text vector, and encode the text vector to obtain the contextual features of the text information; based on the multimodal text generation model, combine the visual features and the contextual features of the text information to generate explanatory text information for the image to be processed.

[0185] As an example, the second generation module 1102 can also be used for: based on a multimodal copy generation model, weighted fusion processing is performed on the visual features and the contextual features of the text information to obtain fusion features, and the fusion features are decoded to obtain vocabulary distribution probabilities and key vocabulary distribution information, and according to the vocabulary distribution probabilities and key vocabulary distribution information, explanatory copy information for the image to be processed is generated.

[0186] As an example, the second generation module 1102 can also be used to: perform face recognition and clustering processing on the picture set to be processed, obtain pictures of different characters in the picture set to be processed, and determine the picture of the first object in the pictures of different characters as the picture to be processed; determine the story theme according to the correlation between the target label information in the main storyline information and the theme, and perform text recognition and content recognition on the picture set to be processed to obtain the target label information of each picture in the picture set to be processed, and determine the picture to be processed from the picture set to be processed based on the target label information of each picture and the story theme.

[0187] As an example, the third generation module 1104 can also be used to: determine the friend information of the first object; based on the friend information, share the story album with the shared object, and assign operation permissions to the shared object; wherein the operation permissions include at least one of the following: viewing permission; editing permission.

[0188] Optionally, the generating device may further include: a first training module 1105 and a second training module 1106 .

[0189] As an example, the first training module 1105 can be used to: obtain sample operation behavior information and sample label information corresponding to the sample operation behavior information, wherein the sample label information is represented in the style of a text prompt; convert the sample operation behavior information into sample multimodal information; input the sample multimodal information into the initial model of the main story model; based on the initial model, extract the modal features of each of the sample modal information in the sample multimodal information, and extract the spatiotemporal fusion features of each of the sample modal information in the sample multimodal information based on the modal features of each of the sample modal information, and generate the main story prediction information according to the modal features of each of the sample modal information and the spatiotemporal fusion features of each of the sample modal information; determine the model loss value based on the main story prediction information and the sample label information; train the initial model according to the model loss value to obtain the trained main story model.

[0190] As an example, the second training module 1106 can be used to: obtain sample emotion label information, sample target label information and sample pictures, and obtain text label information corresponding to the sample emotion label information, sample target label information and sample pictures; input the sample emotion label information, sample target label information and sample pictures into the initial model of the multimodal text generation model; based on the initial model, extract the sample visual vector of the sample picture, and perform deep separable convolution and multi-head attention operations on the sample visual vector to obtain multi-scale sample visual features of the sample picture; based on the initial model, splice the sample emotion label information and the sample target label information, and extract text features based on the spliced ​​sample text information combined with the position information of the emotion label words and the target label words to obtain the sample text vector, and encode the sample text vector to obtain the contextual features of the sample text information; perform prediction processing based on the initial model combined with the visual sample features and the contextual features of the sample text information to obtain the explanatory text prediction information of the sample picture; train the initial model based on the explanatory text prediction information and the text label information to obtain a trained multimodal text generation model.

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

[0192] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device and a readable storage medium.

[0193] like Fig.12, is a block diagram of an electronic device provided according to an embodiment of the present disclosure. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.

[0194] like Fig.12 As shown, the electronic device includes: one or more processors 1201, memory 1202, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses, and can be installed on a common mainboard or installed in other ways as needed. The processor can process instructions executed in the electronic device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as a display device coupled to the interface). In other embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple electronic devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Fig.12 A processor 1201 is taken as an example.

[0195] The memory 1202 is a non-transitory computer-readable storage medium provided by the present disclosure. The memory stores instructions executable by at least one processor to enable the at least one processor to execute the method for generating a story album provided by the present disclosure. The non-transitory computer-readable storage medium of the present disclosure stores computer instructions, which are used to enable a computer to execute the method for generating a story album provided by the present disclosure.

[0196] The memory 1202 is a non-transient computer-readable storage medium that can be used to store non-transient software programs, non-transient computer executable programs and modules, such as program instructions / modules corresponding to the method for generating a story album in the embodiment of the present disclosure (for example, Fig.11 The processor 1201 executes various functional applications and data processing of the server by running the non-transient software programs, instructions and modules stored in the memory 1202, that is, the method for generating the story album in the above method embodiment is implemented.

[0197] The memory 1202 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the electronic device, etc. In addition, the memory 1202 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory 1202 may optionally include a memory remotely arranged relative to the processor 1201, and these remote memories may be connected to the electronic device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0198] The electronic device may further include: an input device 1203 and an output device 1204. The processor 1201, the memory 1202, the input device 1203 and the output device 1204 may be connected via a bus or other means. Fig.12 The example of connecting through bus is taken in the following.

[0199] The input device 1203 can receive input digital or character information, and generate key signal input related to the user settings and function control of the electronic device, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, an indicator rod, one or more mouse buttons, a track ball, a joystick and other input devices. The output device Y04 may include a display device, an auxiliary lighting device (e.g., an LED) and a tactile feedback device (e.g., a vibration motor), etc. The display device may include, but is not limited to, a liquid crystal display (LCD), a light emitting diode (LED) display and a plasma display. In some embodiments, the display device may be a touch screen.

[0200] According to a fifth aspect of an embodiment of the present disclosure, a computer program product is provided, comprising a computer program, wherein when the computer program is executed by a processor, the information processing method described in the first aspect is implemented.

[0201] Various implementations of the systems and techniques described herein can be realized in digital electronic circuit systems, integrated circuit systems, dedicated ASICs (application specific integrated circuits), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0202] These computer programs (also referred to as programs, software, software applications, or code) include machine instructions for programmable processors and can be implemented using high-level procedural and / or object-oriented programming languages, and / or assembly / machine languages. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, device, and / or means (e.g., disk, optical disk, memory, programmable logic device (PLD)) for providing machine instructions and / or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal for providing machine instructions and / or data to a programmable processor.

[0203] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0204] The systems and techniques described herein can be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), the Internet, and a blockchain network.

[0205] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship between the client and the server is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services ("Virtual Private Server", or "VPS" for short). The server may also be a server of a distributed system, or a server combined with a blockchain.

[0206] Those skilled in the art will readily appreciate other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses or adaptations of the present invention that follow the general principles of the present invention and include common knowledge or customary techniques in the art that are not disclosed in this disclosure. The specification and examples are to be considered exemplary only, and the true scope and spirit of the present invention are indicated by the following claims.

[0207] It should be understood that the present invention is not limited to the exact construction that has 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 invention is limited only by the appended claims.

Claims

1. A method for generating a story album, characterized in that: include: Generate storyline information according to the operation behavior information of the first object and the storyline model; According to the storyline information and the picture to be processed, generating explanatory copy information of the picture to be processed based on a multimodal copy generation model; Determining corresponding background music according to the main story information and the explanatory copy information; Generate a story album according to the pictures to be processed, the explanatory copy information and the background music; The storyline information includes emotion label information and target label information; The step of generating explanatory text information of the picture to be processed based on the storyline information and the picture to be processed and based on a multimodal text generation model includes: Inputting the emotion label information, the target label information and the image to be processed into the multimodal copywriting generation model; Based on the multimodal copywriting generation model, extract the visual vector of the image to be processed, and perform depth-separable convolution and multi-head attention operations on the visual vector to obtain multi-scale visual features of the image to be processed; Based on the multimodal copywriting generation model, the emotion tag information and the target tag information are spliced, and text features are extracted based on the spliced ​​text information combined with the position information of the emotion tag word and the target tag word to obtain a text vector, and the text vector is encoded to obtain the context feature of the text information; Based on the multimodal copy generation model combined with the visual features and the context features of the text information, explanatory copy information of the image to be processed is generated.

2. The method according to claim 1, characterized in that The generating the main story line information according to the operation behavior information of the first object and the main story line model includes: converting the operation behavior information of the first object into multimodal information; Based on the main storyline model, the modal features of each modal information in the multimodal information are extracted, and based on the modal features of each modal information, the spatiotemporal fusion features of each modal information in the multimodal information are extracted, and the main storyline information is generated according to the modal features of each modal information and the spatiotemporal fusion features of each modal information.

3. The method according to claim 2, characterized in that The extracting the spatiotemporal fusion features of each modal information in the multimodal information based on the modal features of each modal information includes: Performing self-attention processing on the modal features of each modal information to obtain a self-attention feature of each modal information; The self-attention features of each of the modal information are fused to obtain the self-attention fusion features of the multimodal information; Extracting the temporal features of each modal information in the multimodal information based on the self-attention fusion features of the multimodal information; Fusing the temporal features of each of the modal information to obtain temporal fusion features of the multimodal information; Based on the temporal fusion features, single-modal spatial cross-modal fusion processing is performed to obtain the spatiotemporal fusion features of each modal information.

4. The method according to claim 2, characterized in that The generating the story main line information according to the modal features of each modal information and the spatiotemporal fusion features of each modal information includes: Fusing the modal features of each modal information to obtain a first fused feature; Mapping the spatiotemporal fusion features of each of the modal information to a shared subspace to obtain high-level features of each of the modal information; The high-level features of each modal information are fused to obtain modal invariant features; fusing the first fused feature and the modality invariant feature to obtain a second fused feature; Prediction processing is performed based on the second fusion feature to generate the main storyline information.

5. The method according to any one of claims 1 to 4, characterized in that The storyline model is pre-trained in the following way: Acquire sample operation behavior information and sample label information corresponding to the sample operation behavior information, wherein the sample label information is represented in the style of a text prompt; Converting the sample operation behavior information into sample multimodal information; Inputting the sample multimodal information into the initial model of the storyline model; Based on the initial model, extracting the modal features of each sample modal information in the sample multimodal information, and extracting the spatiotemporal fusion features of each sample modal information in the sample multimodal information based on the modal features of each sample modal information, and generating the main storyline prediction information according to the modal features of each sample modal information and the spatiotemporal fusion features of each sample modal information; Determining a model loss value based on the storyline prediction information and the sample label information; The initial model is trained according to the model loss value to obtain the trained main storyline model.

6. The method according to claim 1, characterized in that The multimodal text generation model combines the visual features and the context features of the text information to generate explanatory text information for the image to be processed, including: Based on the multimodal copy generation model, the visual features and the context features of the text information are weightedly fused to obtain fused features, and the fused features are decoded to obtain vocabulary distribution probabilities and key vocabulary distribution information, and based on the vocabulary distribution probabilities and the key vocabulary distribution information, the explanatory copy information of the image to be processed is generated.

7. The method according to any one of claims 1 and 6, characterized in that: The multimodal copywriting generation model is pre-trained in the following way: Obtain sample emotion label information, sample target label information and sample pictures, and obtain text label information corresponding to the sample emotion label information, sample target label information and sample pictures; Inputting the sample emotion label information, the sample target label information and the sample image into an initial model of the multimodal copywriting generation model; Based on the initial model, extracting a sample visual vector of the sample image, and performing depth-separable convolution and multi-head attention operations on the sample visual vector to obtain multi-scale sample visual features of the sample image; Based on the initial model, the sample sentiment label information and the sample target label information are spliced, and based on the spliced ​​sample text information combined with the position information of the sentiment label word and the target label word, text feature extraction is performed to obtain a sample text vector, and the sample text vector is encoded to obtain context features of the sample text information; Performing prediction processing based on the initial model combined with the sample visual features and the context features of the sample text information to obtain the explanatory text prediction information of the sample image; The initial model is trained based on the explanatory text prediction information and the text label information to obtain the trained multimodal text generation model.

8. The method according to claim 1, characterized in that The method further comprises at least one of the following: Performing face recognition and clustering processing on the picture set to be processed to obtain pictures of different persons in the picture set to be processed, and determining the picture of the first object among the pictures of different persons as the picture to be processed; According to the correlation between the target label information in the main storyline information and the theme, the story theme is determined, and text recognition and content recognition are performed on the set of pictures to be processed to obtain the target label information of each picture in the set of pictures to be processed, and the pictures to be processed are determined from the set of pictures to be processed based on the target label information of each picture and the story theme.

9. The method according to claim 1, characterized in that The method further comprises: Determining friend information of the first object; Based on the friend information, the story album is shared with the shared object, and operation permissions are assigned to the shared object; wherein the operation permissions include at least one of the following: viewing permission; editing permission.

10. A device for generating a story album, characterized in that: include: A first generating module, used for generating story main line information according to the operation behavior information of the first object and the story main line model; A second generation module is used to generate explanatory copy information of the picture to be processed based on the story main line information and the picture to be processed and based on a multimodal copy generation model; A determination module, used to determine corresponding background music according to the storyline information and the explanatory copy information; A third generating module is used to generate a story album according to the to-be-processed pictures, the explanatory copy information and the background music; The storyline information includes emotion label information and target label information; The step of generating explanatory text information of the picture to be processed based on the storyline information and the picture to be processed and based on a multimodal text generation model includes: Inputting the emotion label information, the target label information and the image to be processed into the multimodal copywriting generation model; Based on the multimodal copywriting generation model, extract the visual vector of the image to be processed, and perform depth-separable convolution and multi-head attention operations on the visual vector to obtain multi-scale visual features of the image to be processed; Based on the multimodal copywriting generation model, the emotion tag information and the target tag information are spliced, and text features are extracted based on the spliced ​​text information combined with the position information of the emotion tag word and the target tag word to obtain a text vector, and the text vector is encoded to obtain the context feature of the text information; Based on the multimodal copy generation model combined with the visual features and the context features of the text information, explanatory copy information of the image to be processed is generated.

11. An electronic device, characterized in that: include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the method for generating a story album according to any one of claims 1-9.

12. A non-transitory computer-readable storage medium storing computer instructions, characterized in that: The computer instructions are used to enable the computer to execute the method for generating a story album according to any one of claims 1-9.