Localized attention-guided sampling for image generation
Abstract
A method, apparatus, non-transitory computer readable medium, and system for image generation include obtaining an input prompt. A customized residual is added to a base parameter of an image generation model based on an element of the input prompt to obtain an updated parameter. The customized residual is determined based on the element of the input prompt. A synthesized image is generated using the image generation model with the updated parameter. The synthesized image depicts the element based on the input prompt.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 2 · Forward citations: 0.
Claims (8)
- Claim 1Independent Claim
A method comprising: obtaining an input prompt including an element that indicates a target concept; adding a customized residual to a base parameter of an image generation model based on the element of the input prompt to obtain an updated parameter, wherein the customized residual comprises one of a set of customized residuals that encode an identity of the target concept, and wherein the base parameter comprises a parameter of a projection layer in a transformer layer of the image generation model; and generating, using the image generation model, a synthesized image depicting the target concept based on the input prompt by performing a transformer operation using the transformer layer with the updated parameter.
- Claim 2Depends on #1
The method of claim 1, wherein: the element of the input prompt indicates an object depicted in a reference image used to learn the customized residual.
- Claim 3Depends on #1
The method of claim 1, further comprising: encoding the input prompt to obtain a text embedding, wherein the synthesized image is generated based on the text embedding.
- Claim 4Depends on #1
The method of claim 1, wherein: the base parameter is in the transformer layer of the image generation model.
- Claim 5Depends on #1
The method of claim 1, wherein generating the synthesized image comprises: generating a foreground map and a background map using an attention layer of the image generation model; generating a first preliminary output using the base parameter and the background map; generating a second preliminary output using the updated parameter and the foreground map; and combining the first preliminary output and the second preliminary output to obtain an intermediate output.
- Claim 6Depends on #5
The method of claim 5, further comprising: binarizing an output of the attention layer to obtain the foreground map and the background map.
- Claim 7Depends on #1
The method of claim 1, wherein: the base parameter comprises a parameter of a one-by-one convolutional block.
- Claim 8Depends on #1
The method of claim 1, wherein: the customized residual comprises a low rank adaptation of the base parameter.
Technical Overview & Description
BACKGROUND The following relates generally to image processing, and more specifically to image generation using machine learning. Digital image processing refers to the use of a computer to edit a digital image using an algorithm or a processing network. In some cases, image processing software can be used for various tasks, such as image editing, image restoration, image generation, etc. Recently, machine learning models have been used in advanced image processing techniques. Among these machine learning models, diffusion models and other generative models such as generative adversarial networks (GANs) have been used for various tasks including generating images with perceptual metrics, generating images in conditional settings, image inpainting, and image manipulation. Image generation, a subfield of image processing, includes the use of diffusion models to synthesize images. Diffusion models can be used for various image generation tasks including image super-resolution, generation of images with perceptual metrics, conditional generation (e.g., generation based on text guidance), image inpainting, and image manipulation. Specifically, diffusion models are trained to take random noise as input and generate unseen images with features similar to the training data. SUMMARY The present disclosure describes systems and methods for image generation. Embodiments of the present disclosure include an image generation apparatus configured to receive an input prompt and generate a synthesized image using a machine learning model tuned for concept-driven image generation. In some examples, the image generation apparatus learns a set of personalized residuals that encode the identity of a target concept. The set of personalized residuals are updated at training via a latent diffusion loss function. The set of personalized residuals are then added to an existing set of diffusion parameters to obtain a set of updated parameters. At inference, the personalized residuals (just l
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (2)
| Patent | Title | Year | Citations |
|---|
Non-Patent Literature (10)
- Alaluf et al. (
- “
- ReStyle: A Residual-Based StyleGAN Encoder via Iterative Refinement
- ”
- , IEEE/CVF International Conference on Computer Vision (ICCV), 2021 (Year: 2021).
- 1Balaji, et al.,
- “
- eDiff-I: Text-to-Image Diffusion Models with an Ensemble of Expert Denoisers
- ”
- , arXiv preprint arXiv:2211.01324v5 [cs.CV] Mar. 14, 2023, 24 pages.