SHORT PROMPT TEXT-TO-IMAGE MODEL
Abstract
A method, apparatus, non-transitory computer readable medium, and system for image processing include obtaining a text prompt. The method, apparatus, non-transitory computer readable medium, and system further include selecting an image generation model based on a length of the text prompt. In one aspect, the image generation model is trained to generate images using training data including text prompts below a threshold length. An aspect further includes generating, using the selected image generation model, a synthetic image based on the text prompt. In one aspect, the synthetic image includes an element described by the text prompt.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 0 · Forward citations: 2.
Claims (8 — 2 Independent, 6 Dependent)
- Claim 1Independent Claim
A method comprising: obtaining a text prompt; selecting an image generation model based on a length of the text prompt, wherein the image generation model is trained to generate images using training data including text prompts below a threshold length; and generating, using the selected image generation model, a synthetic image based on the text prompt, wherein the synthetic image includes an element described by the text prompt.
- Claim 2Depends on #1
The method of claim 1, wherein: the length of the text prompt is below the threshold length.
- Claim 3Depends on #1
The method of claim 1, further comprising: obtaining an additional text prompt, wherein a length of the additional text prompt is greater than the threshold length; and selecting an alternative image generation model based on the length of the additional text prompt.
- Claim 4Depends on #1
The method of claim 1, wherein: the synthetic image includes an additional element that is not described by the text prompt, and wherein the additional element is correlated with a semantic meaning of the text prompt in the training data.
- Claim 5Depends on #1
The method of claim 1, further comprising: encoding, using a text encoder, the text prompt to obtain a text embedding, wherein the image generation model receives the text embedding as an input.
- Claim 6Depends on #1
The method of claim 1, wherein generating the synthetic image comprises: performing a reverse diffusion process on a noisy input image based on the text prompt.
- Claim 7Independent Claim
A method comprising: obtaining training data including a text prompt describing an element and an image including the element described in the text prompt, wherein the text prompt is selected based on having a length less than a threshold length; and training an image generation model to generate synthetic images including the element based on the training data.
- Claim 8Depends on #7
The method of claim 7, wherein: the image includes an additional element that is not described by the text prompt, and wherein the image generation model is trained to generate the synthetic images to include the additional element based on text prompts describing the element.
Technical Overview & Description
BACKGROUND The following relates generally to image processing, and more specifically to image generation using a machine learning model. Image generation refers to the use of a computer to edit an image using an algorithm or a processing network. In some cases, image processing software can be used for various image processing tasks, such as image editing, image restoration, image detection, and image generation. For example, image generation includes the use of a machine learning model to generate an image based on a dataset. In some cases, the machine learning model is trained to generate a synthetic image based on a text, a color, a style, or an image SUMMARY Aspects of the present disclosure provide methods, non-transitory computer readable media, apparatuses, and systems for image processing. According to an aspect of the present disclosure, an image generation model is trained to generate a synthetic image based on a text prompt. In some cases, a data preparation component is trained to obtain a training dataset including text prompts and corresponding synthetic images. In some embodiments, the data preparation component divides captions of the synthetic images to obtain synthetic queries, which are used as text prompts to train the image generation model. For example, the text prompts and synthetic images are referred to as prompt-image pairs. In some cases, the prompt-image pairs are ranked based on semantic similarity scores. In some cases, the prompt-image pairs are ranked based on aesthetic scores. By training the image generation model with the ranked prompt-image pairs, embodiments of the present disclosure can generate a synthetic image having high aesthetics and semantic relevance based on an input of a text prompt. In some embodiments, the data preparation component includes an image sampling scheme, where the data preparation component is trained to retrieve a synthetic image from a search index, where the synthetic image is ranked higher in aesthe
Cited By — Indexed Forward Citations (2 of 2 total)
References Cited — Backward Prior Art (0)
No backward patent references recorded.