Generating modified digital images using deep visual guided patch match models for image inpainting
Abstract
The present disclosure relates to systems, methods, and non-transitory computer readable media for accurately, efficiently, and flexibly generating modified digital images utilizing a guided inpainting approach that implements a patch match model informed by a deep visual guide. In particular, the disclosed systems can utilize a visual guide algorithm to automatically generate guidance maps to help identify replacement pixels for inpainting regions of digital images utilizing a patch match model. For example, the disclosed systems can generate guidance maps in the form of structure maps, depth maps, or segmentation maps that respectively indicate the structure, depth, or segmentation of different portions of digital images. Additionally, the disclosed systems can implement a patch match model to identify replacement pixels for filling regions of digital images according to the structure, depth, and/or segmentation of the digital images.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 7 · Forward citations: 2.
Claims (20 — 3 Independent, 17 Dependent)
- Claim 1Independent Claim
A non-transitory computer readable medium comprising instructions that, when executed by at least one processor, cause a computing device to replace pixels within a region of a digital image to generate a modified digital image by: generating an inpainted digital image from the digital image utilizing an inpainting neural network, the inpainted digital image comprising an initial set of replacement pixels used to fill a region of the digital image; generating, from the inpainted digital image utilizing a visual guide algorithm, a deep visual guide that informs patch match inpainting; identifying replacement pixels for inpainting the region of the digital image by utilizing a patch match model with a weighted cost function to identify the replacement pixels according to a weighted combination of a structure image guide, an image depth guide, and a segmentation image guide indicated by the deep visual guide for potential replacement pixels, wherein the weighted cost function represents relationships between the pixels within the region of the digital image and the potential replacement pixels within additional regions of the digital image based on a modification of an initial cost function of the patch match model; and generating, utilizing the patch match model, the modified digital image by replacing the region of the digital image with the replacement pixels.
- Claim 2Depends on #1
The non-transitory computer readable medium of claim 1, wherein generating the deep visual guide comprises generating a deep visual guide image that indicates one or more of a structure from the structure image guide, a depth from the image depth guide, or and a semantic segmentation from the segmentation image guide within the region of the digital image.
- Claim 3Depends on #2
The non-transitory computer readable medium of claim 2, wherein identifying the replacement pixels comprises utilizing the patch match model to identify the potential replacement pixels within the digital image that correspond to the structure, the depth, or the semantic segmentation within the region of the digital image as indicated by the deep visual guide.
- Claim 4Depends on #1
The non-transitory computer readable medium of claim 1, wherein generating the deep visual guide comprises utilizing the visual guide algorithm comprising a structure image model to generate the structure image guide from the inpainted digital image for identifying the replacement pixels from one or more structures identified within the inpainted digital image.
- Claim 5Depends on #1
The non-transitory computer readable medium of claim 1, wherein generating the deep visual guide comprises utilizing the visual guide algorithm comprising an image depth neural network to generate the image depth guide from the inpainted digital image for identifying the replacement pixels from a depth map of the inpainted digital image.
- Claim 6Depends on #1
The non-transitory computer readable medium of claim 1, wherein generating the deep visual guide comprises utilizing the visual guide algorithm comprising a segmentation image neural network to generate the segmentation image guide from the inpainted digital image for identifying the replacement pixels from semantic segmentations of the inpainted digital image.
- Claim 7Depends on #1
The non-transitory computer readable medium of claim 1, further comprising instructions that, when executed by the at least one processor, cause the computing device to generate the weighted cost function of the patch match model by modifying an initial cost function of the patch match model to include the one or more terms for comparing the potential replacement pixels indicated by the deep visual guide.
- Claim 8Depends on #1
The non-transitory computer readable medium of claim 1, further comprising instructions that, when executed by the at least one processor, cause the computing device to utilize a student neural network to predict one or more of a depth or a segmentation within the region of the digital image according to parameters learned from a teacher neural network for the deep visual guide.
- Claim 9Independent Claim
A system comprising: one or more memory devices comprising: an inpainting neural network; a visual guide algorithm comprising at least one of a structure image model, an image depth neural network, or a segmentation image neural network; a patch match model; and a digital image comprising a region of pixels to replace; and one or more computing devices that are configured to cause the system to: generate an inpainted digital image from the digital image utilizing the inpainting neural network, the inpainted digital image comprising an initial set of replacement pixels used to fill the region of the digital image; generate, from the inpainted digital image utilizing the visual guide algorithm, a deep visual guide that informs patch match inpainting comprising at least one of a structure image guide, an image depth guide, or and a segmentation image guide; and identify replacement pixels for inpainting the region of the digital image by utilizing the patch match model with a weighted cost function to identify the replacement pixels according to a weighted combination of a structure image guide, an image depth guide, and a segmentation image guide indicated by the deep visual guide for potential replacement pixels, wherein the weighted cost function represents relationships between the pixels within the region of the digital image and the potential replacement pixels within additional regions of the digital image based on a modification of an initial cost function of the patch match model.
- Claim 10Depends on #9
The system of claim 9, wherein the one or more computing devices are further configured to cause the system to identify the replacement pixels from the digital image by utilizing the patch match model to identify one or more of: pixels of the digital image corresponding to a structure of the region of pixels utilizing the structure image guide; pixels of the digital image with depths corresponding to a depth of the region of pixels utilizing the image depth guide; or pixels of the digital image corresponding to a segment of the region of pixels utilizing the segmentation image guide.
- Claim 11Depends on #9
The system of claim 9, wherein the one or more computing devices are further configured to cause the system to generate a modified digital image by replacing the region of the digital image with the replacement pixels, wherein the modified digital image has a higher resolution than the inpainted digital image.
- Claim 12Depends on #9
The system of claim 9, wherein the one or more computing devices are further configured to cause the system to utilize the image depth neural network of the visual guide algorithm to generate the image depth guide from the inpainted digital image.
- Claim 13Depends on #12
The system of claim 12, wherein the one or more computing devices are further configured to cause the system to utilize the segmentation image neural network of the visual guide algorithm to generate the segmentation image guide from the inpainted digital image.
- Claim 14Depends on #9
The system of claim 9, wherein the one or more computing devices are further configured to cause the system to generate the structure image guide utilizing the structure image model to determine edges between different structural components of the inpainted digital image.
- Claim 15Depends on #9
The system of claim 9, wherein the one or more computing devices are further configured to cause the system to: generate a binary mask indicating the region of the digital image; and generate the deep visual guide by utilizing a generator neural network to predict a structure within the region of the digital image based on the binary mask.
- Claim 16Independent Claim
A computer-implemented method comprising: receiving a digital image comprising a region of pixels to replace; generate an inpainted digital image from the digital image utilizing an inpainting neural network, the inpainted digital image comprising an initial set of replacement pixels used to fill the region of the digital image; generating, utilizing a visual guide algorithm, a deep visual guide that informs patch match inpainting and that comprises a structure image guide, an image depth guide, and a segmentation image guide from the inpainted digital image; identifying replacement pixels for inpainting the region of the digital image by utilizing a patch match model with a weighted cost function to identify the replacement pixels according to a weighted combination of a structure image guide, an image depth guide, and a segmentation image guide indicated by the deep visual guide for potential replacement pixels, wherein the weighted cost function represents relationships between the pixels within the region of the digital image and the potential replacement pixels within additional regions of the digital image based on a modification of an initial cost function of the patch match model; and generating, utilizing the patch match model, a modified digital image by replacing the region of the digital image with the replacement pixels.
- Claim 17Depends on #16
The computer-implemented method of claim 16, wherein generating the deep visual guide comprises: generating an intermediate digital image indicating a structure for a portion of the digital image outside the region; and generating a binary mask indicating the region of the inpainted digital image.
- Claim 18Depends on #17
The computer-implemented method of claim 17, wherein generating the deep visual guide comprises utilizing a generator neural network to predict a structure within the region of the inpainted digital image, the intermediate digital image, and the binary mask.
- Claim 19Depends on #16
The computer-implemented method of claim 16, wherein generating the deep visual guide comprises utilizing a student neural network to predict one or more of a depth as an image depth guide or a segmentation as a segmentation image guide within the region of the inpainted digital image according to parameters learned from a teacher neural network.
- Claim 20Depends on #19
The computer-implemented method of claim 19, further comprising learning the parameters for the student neural network by: determining teacher labels for one or more of depths or segmentations for a full digital image utilizing the teacher neural network; generating an incomplete digital image comprising a hole region from the full digital image; generating predicted labels for one or more of the depths or the segmentations for the incomplete digital image utilizing the student neural network; and modifying parameters of the student neural network by comparing the predicted labels with the teacher labels.
Technical Overview & Description
BACKGROUND Recent years have seen significant developments in software and hardware platforms for digital image inpainting to reconstruct missing or flawed regions of digital images. Indeed, some digital image editing applications utilize inpainting functions to remove unwanted objects or distracting elements from digital images and to automatically fill the region of the removed pixels with a plausible result. For example, many digital image editing systems can utilize patch-based approaches to borrow example pixels from other portions of a digital image to fill flawed regions. Other digital image editing systems fill regions of digital images by implementing learning-based deep networks to learn natural image distributions by training over large datasets. Despite these advancements, conventional digital image editing systems continue to experience a number of impediments or disadvantages, particularly with regard to accuracy, efficiency, and flexibility. SUMMARY One or more embodiments described herein provide benefits and solve one or more of the foregoing or other problems in the art with systems, methods, and non-transitory computer readable media that accurately, efficiently, and flexibly generate modified digital images utilizing a guided inpainting approach. In particular, in one or more embodiments, the disclosed systems implement a hybrid guided patch match model that implements patch-based and deep network approaches in a unique digital image processing pipeline. Specifically, the disclosed systems combine the high-quality texture synthesis capability of a patch-based approach with image semantic understanding capability of a deep network approach. In some embodiments, the disclosed systems automatically generate guidance maps to help identify replacement pixels for inpainting regions of digital images. For example, the disclosed systems generate guidance maps in the form of structure maps, depths maps, segmentation maps (or other visual guides). The disc
Cited By — Indexed Forward Citations (2 of 2 total)
| Patent | Title | Year | Citations |
|---|---|---|---|
| US 12,548,113 B2 | Image enhancement using one or more neural networks | 2026 | 0 |
| US 12,743,752 B2 | Image processing method and related device | 2026 | 0 |
References Cited — Backward Prior Art (7)
| Patent | Title | Year | Citations |
|---|
Non-Patent Literature (10)
- Yang, Shiyuan, Haitao Liang, Yi Wang, Huaiyu Cai, and Xiaodong Chen. 2020.
- “
- Image Inpainting Based on Multi-Patch Match with Adaptive Size
- ”
- Applied Sciences 10, No. 14: 4921. (Year: 2020).
- Zeng, Y., Lin, Z., Yang, J., Zhang, J., Shechtman, E., Lu, H. 2020.
- “
- High-Resolution Image Inpainting with Iterative Confidence Feedback and Guided Upsampling
- ”
- In: Vedaldi, A., Bischof, H., Brox, T., Frahm, JM. (eds) Computer Vision