Multi-modal image editing
Abstract
Systems and methods for multi-modal image editing are provided. In one aspect, a system and method for multi-modal image editing includes identifying an image, a prompt identifying an element to be added to the image, and a mask indicating a first region of the image for depicting the element. The system then generates a partially noisy image map that includes noise in the first region and image features from the image in a second region outside the first region. A diffusion model generates a composite image map based on the partially noisy image map and the prompt. In some cases, the composite image map includes the target element in the first region that corresponds to the mask.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 6 · Forward citations: 4.
Claims (8)
- Claim 1Independent Claim
A method for image editing, comprising: identifying, by a processor, an image, a prompt identifying an element to be added to the image, a preliminary mask, and a mask precision indicator; expanding, by the processor, the preliminary mask based on the mask precision indicator to obtain a mask indicating a first region of the image for depicting the element; generating, by the processor, a partially noisy image map that includes noise in the first region and image features from the image in a second region outside the first region; and generating, by the processor, a composite image map using a diffusion model based on the partially noisy image map and the prompt, wherein the composite image map includes the element in the first region that corresponds to the mask.
- Claim 2Depends on #1
The method of claim 1, further comprising: receiving a brush tool input from a user; and generating the preliminary mask based on the brush tool input.
- Claim 3Depends on #1
The method of claim 1, further comprising: encoding the image to obtain an image feature map, wherein the partially noisy image map is based on the image feature map; and decoding the composite image map to obtain a composite image.
- Claim 4Depends on #1
The method of claim 1, further comprising: generating a predicted mask for the element based on the composite image map; and combining the image and the composite image map based on the predicted mask.
- Claim 5Depends on #1
The method of claim 1, further comprising: providing the mask as an input to the diffusion model.
- Claim 6Depends on #1
The method of claim 1, further comprising: generating intermediate denoising data using the diffusion model; and combining the intermediate denoising data with the partially noisy image map to obtain an intermediate composite image map.
- Claim 7Independent Claim
A system comprising: a memory component; and a processing device coupled to the memory component, the processing device configured to perform operations comprising: identifying an image, a prompt identifying an element to be added to the image, a preliminary mask, and a mask precision indicator; expanding the preliminary mask based on the mask precision indicator to obtain a mask indicating a first region of the image for depicting the element; generating a partially noisy image map that includes noise in the first region and image features from the image in a second region outside the first region; and generating a composite image map using a diffusion model based on the partially noisy image map and the prompt, wherein the composite image map includes the element in the first region that corresponds to the mask.
- Claim 8Depends on #7
The system of claim 7, further comprising: a user interface that includes a brush tool for generating the mask and a precision control element for obtaining a mask precision indicator.
Technical Overview & Description
BACKGROUND The following relates generally to image editing, and more specifically to multi-modal image editing using a machine learning model. Image editing can be accomplished by adding or removing information from an image. An example of an approach to image editing is image inpainting, in which information is removed from an image, the missing information is reconstructed, and the reconstructed information is combined with the remainder of the information in the image to form a new image. Machine learning models can be used to generate and edit images based on multiple modalities. Diffusion models are a category of machine learning model that generates data based on stochastic processes. Specifically, diffusion models introduce random noise at multiple levels and train a network to remove the noise. Once trained, a diffusion model can start with random noise and generate data similar to the training data. SUMMARY Aspects of the present disclosure provide systems and methods for multi-modal image editing. According to an aspect of the present disclosure, a multi-modal image editing system receives an image, a mask, and a text prompt describing an object or background texture to be added to the image as input. The multi-modal image editing system performs image inpainting by replacing a region of the image corresponding to the mask with noise and using a diffusion model to denoise the noisy region based on the mask and the text prompt according to a prediction of what the object or background texture should look like when combined with the image. Because the diffusion model performs the denoising process based on the mask, the text prompt, and a partially noisy input, the multi-modal image editing system is able to output a new image that realistically in paints the object or background texture to the image in an area delineated by the mask. A method, apparatus, non-transitory computer readable medium, and system for multi-modal image editing are described. One or
Cited By — Indexed Forward Citations (4 of 4 total)
References Cited — Backward Prior Art (6)
| Patent | Title | Year | Citations |
|---|
Non-Patent Literature (10)
- Avrahami et al.,
- “
- Blended Diffusion for Text-driven Editing of Natural Images,
- ”
- 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Jun. 18-24, 2022, New Orleans, LA, USA. (Year: 2022).
- 1Goodfellow, et al.,
- “
- Generative Adversarial Networks
- ”
- , Communications of the ACM, vol. 63, No. 11, pp. 139-144, Nov. 2020, 6 pages.