Systems and methods for controllable image generation
Abstract
Embodiments described herein provide a method of image generation. The method includes a fixed diffusion model, and a trainable diffusion model. The fixed diffusion model may be pretrained on a large training corpus. The trainable diffusion model may be used to control the image generation of the fixed diffusion model by modifying internal representations of the fixed diffusion model. A task instruction may be provided in addition to a text prompt, and the task instruction may guide the trainable diffusion model together with the visual conditions. The visual conditions may be adapted according to the task instruction. During training, a fixed number of task instructions may be used. At inference, unseen task instructions may be used by combining convolutional kernels of the visual condition adapter.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 27 · Forward citations: 0.
Claims (8)
- Claim 1Independent Claim
A method of image generation, the method comprising: receiving, via a data interface, a text prompt, an input image, and a task instruction distinct from the text prompt; generating, via an adapter, a task-specific feature map based on the input image, the text prompt, and the task instruction; generating, by a first neural network based image model, a first latent representation based on the task-specific feature map; generating, via a task encoder, a task embedding based on the task instruction; modifying a second latent representation of a second neural network based image model based on the first latent representation and the task embedding, wherein the second neural network based image model is fixed such that its parameters are not updated after pretraining and the first neural network based image model is a trainable copy of at least an encoder of the second neural network based image model; and generating, by a decoder of the second neural network based image model, an output i
- Claim 2Depends on #1
The method of claim 1, wherein the generating the task-specific feature map comprises: selecting one or more convolutional kernels from a set of convolutional kernels based on the task instruction; and generating the task-specific feature map based on the input image and the selected one or more convolutional kernel.
- Claim 3Depends on #2
The method of claim 2, wherein the one or more convolutional kernels are selected based on a comparison of the task instruction to one or more predefined task instructions.
- Claim 4Depends on #3
The method of claim 3, wherein the generating the task-specific feature map further includes: estimating a respective weight for each of the selected convolutional kernels based on the comparison.
- Claim 5Depends on #1
The method of claim 1, further comprising: receiving, via the data interface, a target image; computing a loss objective based on the output image and the target image; and updating parameters of the first neural network based image model, based on the computed loss objective via backpropagation while keeping the second neural network based image model unchanged.
- Claim 6Depends on #1
The method of claim 1, further comprising: receiving, via the data interface, a training dataset including training samples corresponding to a plurality of task instructions, wherein each of the plurality of task instructions is one of a predefined set of task instructions; and training the first neural network based image model using the training samples corresponding to the plurality of task instructions.
- Claim 7Depends on #6
The method of claim 6, wherein the task instruction is different than any task instruction of the predefined set of task instructions that have been used in training the first neural network based image model.
- Claim 8Independent Claim
A system for image generation, the system comprising: a memory that stores a first neural network based image model, a second neural network based image model, and a plurality of processor executable instructions; a communication interface that receives a text prompt, an input image, and a task instruction distinct from the text prompt; and one or more hardware processors configured to read and execute the plurality of processor-executable instructions from the memory to perform operations comprising: generating, via an adapter, a task-specific feature map based on the input image, the text prompt, and the task instruction; generating, by a first neural network based image model, a first latent representation based on the task-specific feature map; generating, via a task encoder, a task embedding based on the task instruction; modifying a second latent representation of a second neural network based image model based on the first latent representation and the task embedding, wherein th
Technical Overview & Description
CROSS REFERENCE(S) The instant application is a nonprovisional of and claim priority under 35 U.S.C. 119 to U.S. provisional application No. 63/502,631, filed May 16, 2023, which is hereby expressly incorporated by reference herein in its entirety. TECHNICAL FIELD The embodiments relate generally to machine learning systems for image generation, and more specifically to controllable image generation with diffusion models. BACKGROUND Machine learning systems have been widely used in generative tasks such as image generation. Denoising diffusion models (DDMs) are currently used for generating images given a conditioning input such as a text prompt and/or input image. An input conditioning image may take on a variety of different forms such as a sketch, a relief map, etc. Each of these different types of input conditioning image may be associated with a different task which a user would like the DDM to perform. For example, generating an image based on an input sketch may be one such task. Existing methods, however, exhibit poor performance when attempting to use the same DDM for multiple different tasks. Training or fine-tuning a separate DDM for each task is expensive in terms of memory and computation. Therefore, there is a need for improved systems and methods of training and using models (e.g., DDMs) for controllable image generation. BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a simplified diagram illustrating an exemplary training framework for a denoising diffusion model, according to some embodiments. FIG. 2 is a simplified diagram illustrating a controllable image generation framework according to some embodiments. FIG. 3 is a simplified diagram of a fixed diffusion model and a trainable diffusion model, according to some embodiments. FIG. 4 is a simplified diagram of an input image adapter, according to some embodiments. FIG. 5 is a simplified diagram of a diffusion model modulation framework, according to some embodiments. FIG. 6 is a simplified diagram of
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 (27)
Non-Patent Literature (1)
- Lvmin Zhang and Maneesh Agrawala. Adding conditional control to text-to-image diffusion models. arXiv preprint arXiv:2302.05543, 2023.