Method and device for generating image from text, computer equipment and storage medium
A technology for generating images and text images, applied in computer parts, computing, neural learning methods, etc., can solve problems such as poor quality and low image pixels, improve authenticity, avoid low image pixels, and enhance supervision factors Effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0083] Such as figure 1 As shown, the present embodiment provides a method for generating images from text, comprising the following steps:
[0084] S101. Acquire a text-image pair in a database; wherein, the text-image pair includes text and an image, and the text is a descriptive text of the image as an original text.
[0085] The image-text pair data in the network is acquired through a crawler or the like, and used as a text-image pair in the database. The text in a text-image pair is a descriptive statement of the image, and there is semantic consistency between the text and the image.
[0086] In this embodiment, the entire network includes a multi-stage generative confrontation network, an image annotation network, and a twin neural network.
[0087] S102. Input the original text into the multi-level generative adversarial network to obtain a corresponding image.
[0088] Further, step S102 includes:
[0089] (1) Before inputting the original text into the multi-lev...
Embodiment 2
[0138] Such as Figure 5 As shown, this embodiment provides a device for generating images from text, which includes a text-image pair acquisition module 501, a predicted image generation module 502, a predicted text generation module 503, a similarity calculation module 504, and a multi-level generation confrontation network training Module 505 and text generation image module 506, wherein:
[0139] The text-image pair acquisition module 501 is used to acquire the text-image pair in the database; wherein, the text-image pair includes text and images, and the text is the descriptive text of the image as the original text;
[0140] A predictive image generation module 502, configured to input the original text into a multi-stage generation confrontation network to obtain a corresponding image;
[0141] A predictive text generation module 503, configured to input the corresponding image into the trained image tagging network to generate a predictive text;
[0142] A similarity...
Embodiment 3
[0147] This embodiment provides a computer device, which can be a computer, such as Figure 6 As shown, a processor 602, a memory, an input device 603, a display 604 and a network interface 605 are connected through a system bus 601, the processor is used to provide computing and control capabilities, and the memory includes a non-volatile storage medium 606 and an internal memory 607, the non-volatile storage medium 606 stores an operating system, a computer program, and a database, the internal memory 607 provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium, and the processor 602 executes the During computer program, realize the method for the text generation image of above-mentioned embodiment 1, as follows:
[0148] Obtain the text-image pair in the database; wherein, the text-image pair includes text and images, and the text is descriptive text of the image as the original text;
[0149] Inputting t...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


