Multi-modal fusion learning-based intelligent image-text manuscript generation method

Through multi-modal fusion learning and deep learning algorithms, combined with layout and visual perception models, the problem of flexibility and scalability of image and text synthesis in the existing technology is solved, and an overall visually coordinated, standardized and beautiful image and text is generated. , meets complex needs and improves creative inspiration.

CN118568659APending Publication Date: 2024-08-30ZHEJIANG UNIVERSITY OF MEDIA AND COMMUNICATIONS
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410637663.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-22
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

Existing image and text synthesis algorithms are difficult to meet complex requirements when generating graphic manuscripts. Methods based on rule description require manual design of parameters. Methods based on templates are not flexible enough. Methods based on deep learning are difficult to interpret and adjust, and are easy to pass. Fitting makes it impossible to generate visually coordinated, standardized, and beautiful graphics and documents.

Method used

Using a multi-modal fusion learning method, combining summary generation, image generation, image editing and information extraction, it analyzes and processes graphic materials through deep learning algorithms, automatically adjusts the position and size of graphic elements, generates fused text and images, and uses layout Algorithms and visual perception models for automatic typesetting.

Benefits of technology

The content of the generated graphics and documents is closer to actual needs, has flexibility and scalability, and can be adjusted according to different scenarios, which improves the professionalism and attractiveness of the graphics and documents, provides a wealth of material selection and combination methods, and improves the creative inspiration.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118568659A
    Figure CN118568659A
Patent Text Reader

Abstract

The invention discloses a multi-modal fusion learning image-text manuscript intelligent generation method, which starts from the perspective of manually writing an image-text manuscript, considers a fusion method of various single-modal or multi-modal data to realize data fusion, and integrates various models of abstract generation, image generation, image editing, information extraction and the like at the same time. According to the method, the image-text content under various conditions can be generated, so that the generated image-text content is closer to the actual demand; meanwhile, a large number of image-text materials are automatically analyzed and processed based on a deep learning related algorithm, an image-text draft template with massive characteristics can be automatically marked, a layout algorithm is introduced, the positions and sizes of image-text elements can be automatically adjusted according to output image-text content, and therefore an image-text draft which is integrally harmonious, standard and attractive in vision is generated.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a method for intelligently generating graphics and text, and in particular to a method for intelligently generating graphics and text based on multimodal fusion learning. Background Art

[0002] With the rise of digital media, multimodal text content is becoming more and more popular. In the fields of news, advertising, education, etc., graphics and text have become an important way to convey information and attract readers' attention. However, there is currently an imbalance between supply and demand. E-commerce platforms such as Taobao, JD.com, Pinduoduo, and Douyin, as well as news media platforms such as Weibo and Toutiao, have hundreds of millions of users and require a large number of graphics and text to meet user needs. Therefore, graphic generation has also become a current research hotspot. Traditional graphic generation methods usually only process text or images independently, ignoring the correlation between images and text, resulting in the lack of coherence and comprehensibility of the generated graphics and text, which cannot meet people's needs for multimedia information.

[0003] With the rapid development of multimodal capabilities of models, multimodal large models have gradually become the focus of large models towards the goal of general artificial intelligence (AGI). For example, multimodal large models represented by GPT-4 can conduct open domain dialogue and deep reasoning for images, and multimodal models represented by Stable Diffusion can generate image content based on text. The AIGC wave set off by these multimodal models has widely and profoundly changed the practices of various industries.

[0004] The existing image-text synthesis algorithms can basically be divided into three categories: constraint solving based on rule description, supervision based on templates, and deep learning methods based on historical works.

[0005] (1) Based on the constraint solving described by rules and using a computable aesthetic model, the automatic synthesis problem of multimedia graphic layout is constructed as an energy optimization problem that simultaneously satisfies the constraints of the corresponding aesthetic model;

[0006] (2) The method of knowledge supervision based on templates is to define high-level aesthetic principles as templates, such as dividing the layout design into basic elements such as color combination, line, shape, tone, texture and volume, and then use appropriate algorithms to define the parameters of various basic elements. The constraints between elements on the parameters are the principles of aesthetic design. Then, the basic elements of the image are analyzed and the pre-defined spatial constraints are used to guide the layout of the elements.

[0007] (3) Deep learning-based methods usually use neural network models to learn the impact of visual and text content on layout and synthesize graphic and text layouts based on the images and text input by the user. This method can capture more complex graphic and text relationships and perform adaptive layout synthesis based on the input content.

[0008] Although some current technologies have achieved some results, they still have some defects, such as

[0009] 1. The constraint solving method based on rule description can obtain results that meet aesthetic requirements by optimizing the energy function. However, for complex image-text synthesis problems, it is difficult to define a complete and accurate aesthetic model and constraints. In addition, this method usually requires manual design and adjustment of model parameters, which may not be applicable to large-scale data and diverse needs.

[0010] 2. Template-based knowledge supervision methods are limited by the definition and coverage of templates. Designing a complete and accurate template is a challenge. At the same time, in order to cope with various design requirements, the number of templates is also large, which is not flexible and creative enough for novel designs and personalized needs.

[0011] 3. Deep learning-based methods require a large amount of training data, and due to the black-box nature of deep learning models, it is difficult to explain and adjust the decision-making process of the model. In addition, since deep learning models are prone to overfitting, the generalization ability of the model will be affected when the training data is insufficient or unbalanced. Summary of the invention

[0012] In order to solve the above problems, the present invention provides a method for intelligently generating graphics and texts based on multimodal fusion learning. The method starts from the perspective of manually writing graphics and texts, considers multiple fusion methods of single-modal or multi-modal data to achieve data fusion, and integrates multiple models such as summary generation, image generation, image editing, and information extraction. It can generate graphics and text contents under various conditions, so that the generated graphics and text contents are closer to actual needs; at the same time, a large number of graphic and text materials are automatically analyzed and processed based on deep learning related algorithms, and a large number of characteristic graphic and text templates can be automatically annotated. Layout algorithms and visual perception models are introduced, which can automatically adjust the position and size of graphic and text elements according to the output graphic and text content, thereby generating a visually coordinated, standardized and beautiful graphic and text manuscript.

[0013] The purpose of the present invention is to be achieved through the following technical solutions:

[0014] The page content of a graphic manuscript usually includes four elements: main title, subtitle, text, and picture. From the perspective of manual writing and typesetting of graphic manuscript content, suppose there are i images and j texts in the existing materials, and the i-th image is recorded as I i, the jth paragraph of text is denoted as T j , assuming that the first k images and the first k texts have the same source and have a corresponding relationship, such as I t With T t This case generates a main title, a subtitle, a text corresponding to the subtitle, and an image set based on the existing material content, and automatically typesets the newly generated material content. The present invention proposes a method for intelligently generating text and graphics using multimodal fusion learning, which includes the following steps:

[0015] Step 1: Fuse the information of the graphic and text materials to obtain the fused text of the graphic and text manuscript;

[0016] Step 2: Generate title and content for the fused text of the graphic and text obtained in step 1;

[0017] Step 3: Generate an image based on the title and content generated in step 2;

[0018] Step 4: Combine the original image in the graphic material in step 1 with the manual instruction to edit and generate the original image;

[0019] Step 5: Automatically typeset the fused text of the graphic and text generated in step 1, the title and content generated in step 2, the image generated in step 3, and the image generated in step 4 to complete the intelligent generation of the graphic and text.

[0020] In step 1, the graphic materials include: i images and j texts, and the first k images in the i images and the first k texts in the j texts have a corresponding relationship, where the i-th image is denoted as I i , the jth paragraph of text is denoted as T j .

[0021] In the first step, information fusion is performed on the graphic and text materials to obtain the fused text of the graphic and text manuscript, which specifically includes:

[0022] 1.1) When i=0, j≠0, only the content of the jth segment of text is fused. Specifically:

[0023] 1.1.1) Use Rouge-2 and Single-pass clustering algorithms to concatenate j segments of text;

[0024] 1.1.2) Represent the concatenated text as a word vector and extract features from the word vector through an encoder;

[0025] 1.1.3) Generate fused text based on the output of the encoder and the input of the decoder, denoted as T;

[0026] 1.2) When i≠0, j=0, semantic fusion is performed only on the information of i images. Specifically:

[0027] 1.2.1) Use the VIT-GPT2-based image description pre-trained model to extract description information for each image;

[0028] 1.2.2) Use the description information in the image to perform semantic fusion and obtain the fused text, denoted as T;

[0029] 1.3) When i≠0,j≠0, semantic fusion is performed on multimodal information. Specifically:

[0030] 1.3.1) When i=j=k, that is, the material has k related image and text pairs, the VIT-GPT2 image description pre-trained model is used to extract the description information in each image, and the description information is used to fuse with the corresponding text information;

[0031] 1.3.2) When i>j=k, that is, when there are k image-text pairs and ik images, information fusion is performed on the ik images, and further information fusion is performed with the fusion result in 1.3.1) to obtain the final fused text, which is recorded as T;

[0032] 1.3.3) When j>i=k, that is, when there are k image-text pairs and jk segments of text, information fusion is performed on the jk segments of text, and further information fusion is performed with the fusion result in 1.3.1) to obtain the final fused text, which is denoted as T.

[0033] In step 2, the title and content are generated for the fused text of the graphic and text obtained in step 1, including:

[0034] 2.1) Based on the fused text T of the image and text generated in step 1, a neural network sequence labeling framework consisting of a bidirectional long short-term memory network and a conditional random field model is used to generate the title;

[0035] 2.2) Use the UIE model to extract information from the fused text T of the image and text and generate a subtitle;

[0036] 2.3) Based on the fused text T of the text and image and the subtitle generated in step 2.2), use the PEGASUS pre-trained model, take the summary and subtitle as input text, and generate the corresponding text of the subtitle.

[0037] In step 3, the image is generated according to the title and content generated in step 2, including:

[0038] 3.1) Use the text encoder E pre-trained by CLIP T Extract sentence-level features f s and word-level features f w , with the pre-trained VIT-B / 32 as the image encoder E I, extract image features f aligned with text features x , use the distribution encoder to encode the image features into a Gaussian vector to enhance the visual features, and obtain the enhanced vector z, which is expressed as:

[0039] (f s ,f w )=E T (t) (1)

[0040] f x =E I (x) (2)

[0041] z=μ(f x )+εσ(f x ) (3)

[0042] Among them, ε represents sampling from the standard normal distribution N(0,1), μ and σ are the mean and variance respectively, and t is the title and content generated in step 2;

[0043] 3.2) Use the adversarial generative network as the backbone network and embed the sentence with the Gaussian vector as the input of the generator. w The feature map in the generator is used to calculate the attention and feed it into the last layer of the generator to refine the generated image. The discriminator encodes the sentence-level feature f into the text description. s To determine the true and false of real images and generated images, and calculate the adversarial loss L adv ;

[0044] 3.3) Use a similarity comparator to measure the real image x and the generated image And the similarity between text t, the feature vector in the feature space describes the normalized semantic features and visual features. If the generated image is consistent with the text and the real image, the following formula is used to express the real image x and the generated image The distance between The distance between the text t and the generated image The distance between

[0045]

[0046]

[0047] The larger the value, the lower the similarity between the two.

[0048] 3.4) L adv and The final objective function is constructed, and the model is optimized by alternately maximizing and minimizing the loss to improve the quality of the image generated by the generator. The final generated image can be obtained according to the customized parameters.

[0049] Step 4: edit and generate the original image in the graphic material in step 1 in combination with manual instructions, including:

[0050] 4.1) Obtain the edited text of the original image according to the manual instructions, and represent the edited text of the original image as a word vector sequence. Use the pre-trained reverse diffusion model DM to edit the text-guided image. Take the original image I and random noise Z as input. At each time step of reverse diffusion, use the cross attention mechanism cross_attn to fuse the text embedding f t , gradually generate image X, the formula is as follows:

[0051] Z I =DM(I,Z) (6)

[0052] X = cross_attn(Z I ,f t ) (7)

[0053] 4.2) Manually screen the images generated in step 3 and 4.1), and the final image set is recorded as.

[0054] Step 5: Automatically typeset the fused text of the graphic and text generated in step 1, the title and content generated in step 2, and the image obtained in step 4 to complete the intelligent generation of the graphic and text.

[0055] Based on the main title, subtitle, subtitle corresponding text, and image set generated in steps 1-4, the content of the graphic manuscript can be determined after manual review and fine-tuning. In step 5, the graphic manuscript layout is realized by inputting the size, quantity, and other attributes of the title, text, and image. Specifically,

[0056] 5.1) Use web crawler technology to crawl electronic graphic layouts on the Internet and manually screen out available graphic layouts;

[0057] 5.2) For the manually selected graphic layouts, use the PPOCRLabel semi-automatic graphic annotation tool to manually annotate the layout information of a small part (e.g. 1 / 3) of the graphic layout, including the size and position of the title, text, and picture. Based on the manually annotated data, use the object detection model pre-training to obtain an automatic annotation model to complete the annotation of the remaining electronic graphic layouts;

[0058] 5.3) Use a binary tree structure to represent the annotated image and text layout structure, and use the nearest neighbor method to infer the available image and text layout structure based on the image and text attributes;

[0059] 5.4) Based on expert experience, Bayesian networks are used for parameter learning, and an inference model is established for the structural attributes of the graphic layout. The inference model is used to set reasonable intervals for the structural attributes of the graphic layout, set constraints and goals for the layout, and generate an overall coordinated, standardized, and beautiful layout.

[0060] Compared with the prior art, the present invention has the following advantages:

[0061] This proposal integrates the automatic generation and editing of images and texts, as well as the automatic typesetting of images and texts. It can be adjusted and customized according to different needs and scenarios to meet the generation requirements of different types of graphics and texts. It has strong flexibility and scalability.

[0062] 1. The proposed method of image-text data fusion, starting from the perspective of manually writing image-text manuscripts, conducts a detailed analysis of image-text materials in different situations, including picture materials, text materials, image + text materials, and the corresponding association between images and texts, etc., realizing the fusion of single-modal or multi-modal data, and generating expressive and consistent fused data;

[0063] 2. The proposed intelligent generation method of graphics and texts integrates multiple models such as summary generation, image generation, image editing, and information extraction. It can generate graphics and text content under various conditions, so that the generated graphics and text content is closer to actual needs. At the same time, this method provides creators with rich material selection and combination methods by analyzing and processing a large amount of graphic materials. It can be used as an auxiliary tool in the creative process, provide inspiration for creators, and help them discover more unique and attractive ideas.

[0064] 3. The proposed graphic layout method takes into account the elements of layout and design. By introducing layout algorithms and visual perception models, the position, size and style of graphic elements can be automatically adjusted to generate a visually coordinated, standardized and beautiful graphic layout. Such a layout design can not only enhance the user's reading experience, but also increase the professionalism and attractiveness of the graphic;

[0065] 4. The proposed method for intelligent generation of graphics and texts based on multimodal fusion learning integrates the automatic generation, editing, and automatic typesetting of graphics and texts. It can be adjusted and customized according to different needs and scenarios. Whether it is generating news reports, product introductions, promotional materials or other types of graphics and texts, it can meet different requirements by adjusting model parameters and input data, and has strong flexibility and scalability. BRIEF DESCRIPTION OF THE DRAWINGS

[0066] Figure 1The figure is a schematic diagram of the overall process of the method for intelligently generating text and graphics through multimodal fusion learning of the present invention. DETAILED DESCRIPTION

[0067] The following is a further explanation of the intelligent generation method of graphics and text based on multimodal fusion learning in conjunction with the accompanying drawings.

[0068] like Figure 1 As shown in the figure, from the perspective of manual writing of graphic manuscript content and typesetting, suppose there are i images and j texts in the existing materials, and the i-th image is recorded as I i , the jth paragraph of text is denoted as T j , assuming that the first k images and the first k texts have the same source and have a corresponding relationship, such as I t With T t This case will generate the main title, subtitle, subtitle corresponding text, and image set from the existing material content, and automatically typeset the newly generated material content. The present invention proposes a multimodal fusion learning intelligent generation method for text and graphics, including the following steps:

[0069] Step 1: Fuse the information of the graphic and text materials to obtain the fused text of the graphic and text manuscript;

[0070] Step 2: Generate title and content for the fused text of the graphic and text obtained in step 1;

[0071] Step 3: Generate an image based on the title and content generated in step 2;

[0072] Step 4: Combine the original image in the graphic material in step 1 with the manual instruction to edit and generate the original image;

[0073] Step 5: Automatically typeset the fused text of the graphic and text generated in step 1, the title and content generated in step 2, the image generated in step 3, and the image generated in step 4 to complete the intelligent generation of the graphic and text.

[0074] In step 1, the graphic materials include: i images and j texts, and the first k images in the i images and the first k texts in the j texts have a corresponding relationship, where the i-th image is denoted as I i , the jth paragraph of text is denoted as T j .

[0075] In the first step, information fusion is performed on the graphic and text materials to obtain the fused text of the graphic and text manuscript, which specifically includes:

[0076] 1.1) When i=0, j≠0, only the content of the jth segment of text is fused. Specifically:

[0077] 1.1.1) Use Rouge-2 and Single-pass clustering algorithms to concatenate j segments of text;

[0078] 1.1.2) Represent the concatenated text as a word vector and extract features from the word vector through an encoder;

[0079] 1.1.3) Generate fused text based on the output of the encoder and the input of the decoder, denoted as T;

[0080] 1.2) When i≠0, j=0, semantic fusion is performed only on the information of i images. Specifically:

[0081] 1.2.1) Use the VIT-GPT2-based image description pre-trained model to extract description information for each image;

[0082] 1.2.2) Use the description information in the image to perform semantic fusion and obtain the fused text, denoted as T;

[0083] 1.3) When i≠0,j≠0, semantic fusion is performed on multimodal information. Specifically:

[0084] 1.3.1) When i=j=k, that is, the material has k related image and text pairs, the VIT-GPT2 image description pre-trained model is used to extract the description information in each image, and the description information is used to fuse with the corresponding text information;

[0085] 1.3.2) When i>j=k, that is, when there are k image-text pairs and ik images, information fusion is performed on the ik images, and further information fusion is performed with the fusion result in 1.3.1) to obtain the final fused text, which is recorded as T;

[0086] 1.3.3) When j>i=k, that is, when there are k image-text pairs and jk segments of text, information fusion is performed on the jk segments of text, and further information fusion is performed with the fusion result in 1.3.1) to obtain the final fused text, which is denoted as T.

[0087] In step 2, the title and content are generated for the fused text of the graphic and text obtained in step 1, including:

[0088] 2.1) Based on the fused text T of the image and text generated in step 1, a neural network sequence labeling framework consisting of a bidirectional long short-term memory network and a conditional random field model is used to generate the title;

[0089] 2.2) Use the UIE model to extract information from the fused text T of the image and text and generate a subtitle;

[0090] 2.3) Based on the fused text T of the text and image and the subtitle generated in step 2.2), use the PEGASUS pre-trained model, take the summary and subtitle as input text, and generate the corresponding text of the subtitle.

[0091] In step 3, the image is generated according to the title and content generated in step 2, including:

[0092] 3.1) Use the text encoder E pre-trained by CLIP T Extract sentence-level features f s and word-level features f w , with the pre-trained VIT-B / 32 as the image encoder E I , extract image features f aligned with text features x , use the distribution encoder to encode the image features into a Gaussian vector to enhance the visual features, and obtain the enhanced vector z, which is expressed as:

[0093] (f s ,f w )=E T (t) (1)

[0094] f x =E I (x) (2)

[0095] z=μ(f x )+εσ(f x ) (3)

[0096] Among them, ε represents sampling from the standard normal distribution N(0,1), μ and σ are the mean and variance respectively, and t is the title and content generated in step 2;

[0097] 3.2) Use the adversarial generative network as the backbone network and embed the sentence with the Gaussian vector as the input of the generator. w The feature map in the generator is used to calculate the attention and feed it into the last layer of the generator to refine the generated image. The discriminator encodes the sentence-level feature f into the text description. s To determine the true and false of real images and generated images, and calculate the adversarial loss L adv ;

[0098] 3.3) Use a similarity comparator to measure the real image x and the generated image And the similarity between text t, the feature vector in the feature space describes the normalized semantic features and visual features. If the generated image is consistent with the text and the real image, the following formula is used to express the real image x and the generated image The distance between The distance between the text t and the generated image The distance between

[0099]

[0100]

[0101] The larger the value, the lower the similarity between the two.

[0102] 3.4) L adv and The final objective function is constructed, and the model is optimized by alternately maximizing and minimizing the loss to improve the quality of the image generated by the generator. The final generated image can be obtained according to the customized parameters.

[0103] Step 4: edit and generate the original image in the graphic material in step 1 in combination with manual instructions, including:

[0104] 4.1) Obtain the edited text of the original image according to the manual instructions, and represent the edited text of the original image as a word vector sequence. Use the pre-trained reverse diffusion model DM to edit the text-guided image. Take the original image I and random noise Z as input. At each time step of reverse diffusion, use the cross attention mechanism cross_attn to fuse the text embedding f t , gradually generate image X, the formula is as follows:

[0105] Z I =DM(I,Z) (6)

[0106] X = cross_attn(Z I ,f t ) (7)

[0107] 4.2) Manually screen the images generated in step 3 and 4.1) to obtain the final image.

[0108] Step 5: Automatically typeset the fused text of the graphic and text generated in step 1, the title and content generated in step 2, and the image obtained in step 4 to complete the intelligent generation of the graphic and text.

[0109] Based on the main title, subtitle, subtitle corresponding text, and image set generated in steps 1-4, the content of the graphic manuscript can be determined after manual review and fine-tuning. In step 5, the graphic manuscript layout is realized by inputting the size, quantity, and other attributes of the title, text, and image. Specifically,

[0110] 5.1) Use web crawler technology to crawl electronic graphic layouts on the Internet and manually screen out available graphic layouts;

[0111] 5.2) For the manually selected graphic layouts, use the PPOCRLabel semi-automatic graphic annotation tool to manually annotate the layout information of a small part (e.g. 1 / 3) of the graphic layout, including the size and position of the title, text, and picture. Based on the manually annotated data, use the object detection model pre-training to obtain an automatic annotation model to complete the annotation of the remaining electronic graphic layouts;

[0112] 5.3) Use a binary tree structure to represent the annotated image and text layout structure, and use the nearest neighbor method to infer the available image and text layout structure based on the image and text attributes;

[0113] 5.4) Based on expert experience, Bayesian networks are used for parameter learning, and an inference model is established for the structural attributes of the graphic layout. The inference model is used to set reasonable intervals for the structural attributes of the graphic layout, set constraints and goals for the layout, and generate an overall coordinated, standardized, and beautiful layout.

[0114] The above is only an illustration of the present invention, and is not intended to limit the present invention. A person skilled in the art should recognize that any changes or modifications made to the present invention will fall within the protection scope of the present invention.

Claims

1. A method for intelligent generation of text and image manuscripts based on multimodal fusion learning. It is characterized in that The following steps are involved: Step 1: Fuse the information of the graphic and text materials to obtain the fused text of the graphic and text manuscript; Step 2: Generate title and content for the fused text of the graphic and text obtained in step 1; Step 3: Generate an image based on the title and content generated in step 2; Step 4: Combine the original image in the graphic material in step 1 with the manual instruction to edit and generate the original image; Step 5: Automatically typeset the fused text of the graphic and text generated in step 1, the title and content generated in step 2, the image generated in step 3, and the image generated in step 4 to complete the intelligent generation of the graphic and text.

2. According to the method for intelligently generating text and graphics by multimodal fusion learning in claim 1, It is characterized in that In step 1, the graphic materials include: i images and j texts, and the first k images in the i images and the first k texts in the j texts have a corresponding relationship, where the i-th image is denoted as I i , the jth paragraph of text is denoted as T j .

3. According to the method for intelligently generating text and graphics by multimodal fusion learning in claim 2, It is characterized in that In the first step, information fusion is performed on the graphic and text materials to obtain the fused text of the graphic and text manuscript, which specifically includes: 1.1) When i=0, j≠0, only the content of the jth segment of text is fused. Specifically: 1.1.1) Use Rouge-2 and Single-pass clustering algorithms to concatenate j segments of text; 1.1.2) Represent the concatenated text as a word vector and extract features from the word vector through an encoder; 1.1.3) Generate fused text based on the output of the encoder and the input of the decoder, denoted as T; 1.2) When i≠0, j=0, semantic fusion is performed only on the information of i images. Specifically: 1.2.1) Use the VIT-GPT2-based image description pre-trained model to extract description information for each image; 1.2.2) Use the description information in the image to perform semantic fusion and obtain the fused text, denoted as T; 1.3) When i≠0,j≠0, semantic fusion is performed on multimodal information. Specifically: 1.3.1) When i=j=k, that is, the material has k related image and text pairs, the VIT-GPT2 image description pre-trained model is used to extract the description information in each image, and the description information is used to fuse with the corresponding text information; 1.3.2) When i>j=k, that is, when there are k image-text pairs and ik images, information fusion is performed on the ik images, and further information fusion is performed with the fusion result in 1.3.1) to obtain the final fused text, which is recorded as T; 1.3.3) When j>i=k, that is, when there are k image-text pairs and jk segments of text, information fusion is performed on the jk segments of text, and further information fusion is performed with the fusion result in 1.3.1) to obtain the final fused text, which is denoted as T.

4. The method for intelligently generating text and graphics by multimodal fusion learning according to claim 1, It is characterized in that In step 2, the title and content are generated for the fused text of the graphic and text obtained in step 1, including: 2.1) Based on the fused text T of the image and text generated in step 1, a neural network sequence labeling framework consisting of a bidirectional long short-term memory network and a conditional random field model is used to generate the title; 2.2) Use the UIE model to extract information from the fused text T of the image and text and generate a subtitle; 2.3) Based on the fused text T of the text and image and the subtitle generated in step 3.2), use the PEGASUS pre-trained model, take the summary and subtitle as input text, and generate the corresponding text of the subtitle.

5. According to the method for intelligently generating text and graphics by multimodal fusion learning in claim 1, It is characterized in that In step 3, the image is generated according to the title and content generated in step 2, including: 3.1) Use the text encoder E pre-trained by CLIP T Extract sentence-level features f s and word-level features f w , with the pre-trained VIT-B / 32 as the image encoder E I , extract image features f aligned with text features x , use the distribution encoder to encode the image features into a Gaussian vector to enhance the visual features, and obtain the enhanced vector z, which is expressed as: (f s ,f w )=E T (t) (1) f x =E I (x) (2) z=μ(f x )+εσ(f x ) (3) Where ε represents sampling from the standard normal distribution N(0,1), μ and σ are the mean and variance respectively, and t is the subtitle generated in step 2 and the corresponding text of the subtitle; 3.2) Use the adversarial generative network as the backbone network and embed the sentence with the Gaussian vector as the input of the generator. w The feature map in the generator is used to calculate the attention, and the feature map is sent to the last layer of the generator to refine the generated image. The discriminator encodes the sentence-level feature f into the text description. s To determine the true and false of real images and generated images, and calculate the adversarial loss L adv ; 3.3) Use a similarity comparator to measure the real image x and the generated image And the similarity between text t, the feature vector in the feature space describes the normalized semantic features and visual features. If the generated image is consistent with the text and the real image, the following formula is used to express the real image x and the generated image The distance between The distance between the text t and the generated image The distance between The larger the value, the lower the similarity between the two. 3.4) L adv and The final objective function is constructed, and the model is optimized by alternately maximizing and minimizing the loss, and the final generated image is obtained according to the customized parameters.

6. The method for intelligently generating text and graphics by multimodal fusion learning according to claim 1, It is characterized in that Step 4: edit and generate the original image in the graphic material in step 1 in combination with manual instructions, including: The edited text of the original image is obtained according to the manual instructions, and the edited text of the original image is represented as a word vector sequence e. The pre-trained reverse diffusion model DM is used to edit the text-guided image. The original image I and random noise Z are used as input. At each time step of reverse diffusion, the cross attention mechanism cross_attn is used to fuse the text embedding f t , gradually generate image X, the formula is as follows: Z I =DM(I,Z) (6) X=cross_attn(Z I ,f t ) (7)。

Citation Information

Cited By

  • Non-training layout-to-image generation method based on diffusion model

    CN119169146A

  • Content publishing method and related device

    WO2026201197A1