Generating novel images using sketch image representations
Abstract
Techniques for generating a novel image using tokenized image representations are disclosed. In some embodiments, a method of generating the novel image includes generating, via a first machine learning model, a first sequence of coded representations of a first image having one or more features; generating, via a second machine learning model, a second sequence of coded representations of a sketch image having one or more edge features associated with the one or more features; predicting, via a third machine learning model, one or more subsequent coded representations based on the first sequence of coded representations and the second sequence of coded representations; and based on the subsequent coded representations, generating, via the third machine learning model, a first portion of a reconstructed image having one or more image attributes of the first image, and a second portion of the reconstructed image associated with the one or more edge features.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 2 · Forward citations: 1.
Claims (8 — 1 Independent, 7 Dependent)
- Claim 1Independent Claim
A method of generating a novel image, the method comprising: generating, via a first machine learning model, a first sequence of coded representations of a first image having one or more features; generating, via a second machine learning model, a second sequence of coded representations of a sketch image having one or more edge features associated with the one or more features of the first image, the sketch image comprising one or more sketch features provided directly over the one or more features of the first image; predicting, via a third machine learning model, one or more subsequent coded representations iteratively based on the first sequence of coded representations of the first image, the second sequence of coded representations of the sketch image, and one or more previously iteratively predicted coded representations; and based on the iterative predictions of the one or more subsequent coded representations, generating, via the third machine learning model, at least (i) a fi
- Claim 2Depends on #1
The method of claim 1, wherein: the generating of the first sequence of coded representations of the first image comprises using a first convolutional neural network (CNN) to perform convolution on the first image; and the generating of the second sequence of coded representations of the sketch image using a second convolutional neural network (CNN) to perform convolution on the sketch image.
- Claim 3Depends on #1
The method of claim 1, further comprising: obtaining an indication of a blank space within the reconstructed image, wherein the second sequence of coded representations comprise coded representations associated with the blank space; and based on the one or more subsequent coded representations, generating, via the third machine learning model, a featureless portion of the reconstructed image comprising the blank space without the one or more features, the second portion of the reconstructed image comprising the featureless portion.
- Claim 4Depends on #1
The method of claim 1, wherein the first portion of the reconstructed image comprises the one or more edge features associated with the one or more features of the first image, and the second portion of the reconstructed image comprises one or more modified image attributes and different from the one or more image attributes of the first image, the one or more modified image attributes comprising an alteration to at least a color of the one or more features.
- Claim 5Depends on #1
The method of claim 1, wherein the obtaining of the one or more new features comprises: outputting one or more new coded representations subsequent to the predicted one or more subsequent coded representations based on a sequence of coded representations of a second sketch image; and generating the one or more new features based on the one or more new coded representations; wherein the second portion of the reconstructed image comprises the one or more new features; and wherein the reconstructed image comprises the one or more features and the one or more new features.
- Claim 6Depends on #1
The method of claim 1, wherein: the first machine learning model has been trained using one or more training images, and the second machine learning model has been trained using one or more training sketch images in conjunction with the first machine learning model; and the second machine learning model is configured to generate the second sequence of coded representations of the sketch image during inference without the first sequence of coded representations of the first machine learning model.
- Claim 7Depends on #6
The method of claim 6, wherein: the first machine learning model comprises a Vector Quantized Variational Autoencoder (VQ-VAE); the third machine learning model comprises a transformer model configured to perform language modeling to predict the one or more subsequent coded representations based at least on the second sequence of coded representations of the sketch image; and the generating of the first and second portions of the reconstructed image comprises decoding the predicted one or more subsequent coded representations.
- Claim 8Depends on #1
The method of claim 1, wherein: the reconstructed image comprises a first region and a second region; the first region comprises the one or more image attributes of the first image and at least a portion of the one or more edge features; and the second region comprises one or more second image attributes that differ from the one or more image attributes, omits the at least the portion of the one or more edge features, or a combination thereof.
Technical Overview & Description
BACKGROUND 1. Field of Disclosure The present disclosure relates generally to the field of machine learning, and more particularly, using machine learning models trained on images and sketches of images to predict tokens representative of new images. 2. Description of Related Art “ Backgrounds ” are a commonly used asset for creating images or editing images. Background images are also a commonly sought asset in image editing platforms (indicated by, e.g., a high number of queries). For certain content creation processes, the first step is finding an appropriate background image or artwork. Once a desired background image is found, users may desire alterations to the image. For example, one such alteration is adding copy space, which is an area of an image that is clear and uncluttered, often free of background objects, and thus suitable for text copy to be placed. In another example, the user may attempt to edit the background image nondestructively while maintaining its style and content semantics. Additionally, a user may wish to draw a sketch over the image, or create a new image using the sketch. SUMMARY Techniques for generating a novel image using tokenized image representations are disclosed in the present disclosure. In one aspect of the present disclosure, a method of generating a novel image is disclosed. In some embodiments, the method includes: generating, via a first machine learning model, a first sequence of coded representations of a first image having one or more features; generating, via a second machine learning model, a second sequence of coded representations of a sketch image having one or more edge features associated with the one or more features of the first image; predicting, via a third machine learning model, one or more subsequent coded representations based on the first sequence of coded representations of the first image and the second sequence of coded representations of the sketch image; and based on the one or more subsequent coded
Cited By — Indexed Forward Citations (1 of 1 total)
| Patent | Title | Year | Citations |
|---|---|---|---|
| US 12,469,114 B2 | Method, device, system, electronic device, and storage medium for image processing | 2025 | 0 |
References Cited — Backward Prior Art (2)
| Patent | Title | Year | Citations |
|---|
Non-Patent Literature (10)
- Ham et al., CoGS: Controllable Generation and Search from Sketch and Style, Mar. 2022, arXiv: 2203.09554v1, pp. 1-18. (Year: 2022).
- Bui et al, Sketching out the details: Sketch-based image retrieval using CNN with multi-stage regression, 2018, Computers
- &
- Graphics 71 (2018): 77-87. (Year: 2018).
- Van den Oord et al, Neural Discrete Representation Learning, 2018, arXiv: 1711.00937v2, pp. 1-11. (Year: 2018).
- Ramesh et al, Zero-Shot Text-to-Image Generation, 2021, arXiv: 2102.12092v2, pp. 1-20. (Year: 2021).
- Chang et al, MaskGIT: Masked Generative Image Transformer, Jun. 18, 2022, 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 1-11. (Year: 2022).
- Sampaio Ferraz Ribeiro et al, Sketchformer: Transformer-Based Representation for Sketched Structure, 2020, 2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 1-10. (Year: 2020).
- Lim et al, Sketch Tokens: A Learned Mid-level Representation for Contour and Object Detection, 2013, 2013 IEEE Conference on Computer Vision and Pattern Recognition, pp. 1-8. (Year: 2013).
- Qi et al, Sketch Fewer to Recognize More by Learning a Co-Regularized Sparse Representation, 2020, IEEE Transactions on Circuits and Systems for Video Technology, pp. 1-12. (Year: 2020).