Enhancing detailed segments in latent code-based edited digital images
Abstract
Methods, systems, and non-transitory computer readable media are disclosed for intelligently enhancing details in edited images. The disclosed system iteratively updates residual detail latent code for segments in edited images where detail has been lost through the editing process. More particularly, the disclosed system enhances an edited segment in an edited image based on details in a detailed segment of an image. Additionally, the disclosed system may utilize a detail neural network encoder to project the detailed segment and a corresponding segment of the edited image into a residual detail latent code. In some embodiments, the disclosed system generates a refined edited image based on the residual detail latent code and a latent vector of the edited image.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 6 · Forward citations: 0.
Claims (20 — 3 Independent, 17 Dependent)
- Claim 1Independent Claim
A system comprising: a storage device storing an image and an edited image generated from the image; one or more memory devices comprising a detail neural network encoder and a neural network generator; and at least one processor configured to cause the system to: extract a detailed segment from the image; extract an edited segment from the edited image, wherein the edited segment comprises an edited version of the detailed segment; generate a residual detail latent code by projecting the detailed segment and the edited segment into a latent space utilizing the detail neural network encoder; and generate a refined edited image that depicts the edited image comprising a refined edited segment with an increased level of detail by synthesizing the residual detail latent code and a latent vector of the edited image utilizing the neural network generator.
- Claim 2Depends on #1
The system as recited in claim 1, wherein the at least one processor is configured to cause the system to extract the detailed segment from the image and the edited segment from the edited image utilizing a segmentation neural network.
- Claim 3Depends on #1
The system as recited in claim 1, wherein the at least one processor is configured to cause the system to iteratively refine the edited image utilizing updated residual detail latent codes generated from previous iterations of the refined edited segment.
- Claim 4Depends on #3
The system as recited in claim 3, wherein the at least one processor is configured to cause the system to iteratively refine the refined edited segment of the refined edited image by: combining the refined edited segment and the detailed segment of the image; projecting the combined refined edited segment and the detailed segment into an updated residual detail latent code utilizing the detail neural network encoder; and updating the refined edited image by synthesizing the updated residual detail latent code and the latent vector of the refined edited image utilizing the neural network generator.
- Claim 5Depends on #1
The system as recited in claim 1, wherein the at least one processor is configured to cause the system to extract the detailed segment from the image by segmenting a portion of the image comprising at least one of a hair or facial wrinkles.
- Claim 6Depends on #1
The system as recited in claim 1, wherein the at least one processor is configured to cause the system to: generate a total loss based on the refined edited image, the edited image, and the image; and modify parameters of the detail neural network encoder based on the total loss.
- Claim 7Depends on #6
The system as recited in claim 6, wherein the at least one processor is configured to cause the system to generate the total loss by: generating a global consistency loss to constrain differences between a non-detailed segment from the edited image and a non-detailed segment from the refined edited image; and generating a local similarity loss to constrain differences between the detailed segment from the image and the refined edited segment from the refined edited image.
- Claim 8Depends on #7
The system as recited in claim 7, wherein the at least one processor is configured to cause the system to generate the local similarity loss by: sampling a patch at a location in the detailed segment from the image; sampling a refined patch at a corresponding location of the refined edited segment from the refined edited image; and comparing the patch and the refined patch.
- Claim 9Depends on #8
The system as recited in claim 8, wherein sampling the refined patch at the corresponding location comprises sampling the refined patch from a neighborhood area of the location in the refined edited segment.
- Claim 10Independent Claim
A non-transitory computer readable medium storing instructions thereon that, when executed by at least one processor, cause the at least one processor to perform operations comprising: combining a detailed segment from an image with an edited segment from an edited image, wherein the edited image is generated from the image, and wherein the edited segment comprises an edited version of the detailed segment; projecting the combined detailed segment and edited segment into a residual detail latent code utilizing a detail neural network encoder; generating a refined edited image that depicts the edited image comprising a refined edited segment with an increased level of detail by synthesizing the residual detail latent code and a latent vector of the edited image utilizing a neural network generator; and iteratively refining the refined edited segment of the refined edited image.
- Claim 11Depends on #10
The non-transitory computer readable medium recited in claim 10, wherein iteratively refining the refined edited segment of the refined edited image comprises: combining the refined edited segment and the detailed segment of the image; projecting the combination of the refined edited segment and the detailed segment of the image into an updated residual detail latent code utilizing the detail neural network encoder; and updating the refined edited image by synthesizing the updated residual detail latent code and a latent vector of the edited image utilizing the neural network generator.
- Claim 12Depends on #10
The non-transitory computer readable medium recited in claim 10, further comprising instructions that, when executed by the at least one processor, cause the at least one processor to perform operations comprising extracting the detailed segment from the image by segmenting a portion of the image comprising hair.
- Claim 13Depends on #10
The non-transitory computer readable medium recited in claim 10, further comprising instructions that, when executed by the at least one processor, cause the at least one processor to perform operations comprising: generating a total loss based on the refined edited image, the edited image, and the image; and modifying parameters of the detail neural network encoder based on the total loss.
- Claim 14Depends on #13
The non-transitory computer readable medium recited in claim 13, wherein generating the total loss comprises: generating a global consistency loss to constrain differences between a non-detailed segment from the edited image and a non-detailed segment from the refined edited image; and generating a local similarity loss to constrain differences between the detailed segment from the image and the refined edited segment from the refined edited image.
- Claim 15Depends on #13
The non-transitory computer readable medium recited in claim 13, further comprising instructions that, when executed by the at least one processor, cause the at least one processor to fix the parameters of the neural network generator when modifying parameters of the detail neural network encoder based on the total loss.
- Claim 16Depends on #10
The non-transitory computer readable medium recited in claim 10, further comprising instructions that, when executed by the at least one processor, cause the at least one processor to perform operations comprising extracting the detailed segment from the image and the edited segment from the edited image by utilizing a segmentation model.
- Claim 17Depends on #10
The non-transitory computer readable medium recited in claim 10, further comprising instructions that, when executed by the at least one processor, cause the at least one processor to perform operations comprising generating the edited image from the image utilizing latent-code based editing.
- Claim 18Independent Claim
A method of generating a refined edited image comprising: extracting a detailed segment from an image and an edited detailed segment from an edited image, wherein the edited image is generated from the image, and wherein the edited detailed segment comprises an edited version of the detailed segment; performing a step for refining the edited image based on the detailed segment and the edited detailed segment; and providing the refined edited image for display.
- Claim 19Depends on #18
The method recited in claim 18, further comprising: projecting the image into a latent space to generate a latent vector for the image; modifying the latent vector of the image; and generating the edited image by reconstructing the modified latent vector utilizing a neural network generator.
- Claim 20Depends on #18
The method recited in claim 18, wherein the step for refining the edited image comprises iteratively refining the edited image.
Technical Overview & Description
BACKGROUND In recent years, conventional image generating systems have increasingly implemented neural networks to perform computer image tasks. For instance, many conventional systems use generative neural networks, such as generative adversarial networks (GANs) to generate or modify digital images. In one such approach, conventional image generating systems project real data points of an image onto a latent vector that is subsequently utilized by a GAN to reconstruct or modify the image. Some such conventional systems are able to produce realistic modified images by implementing edits in the latent space. Despite recent advancements in editing digital images within latent spaces, however, conventional methods lose details in high frequency areas, require large amounts of time, have high computational costs, and often introduce unwanted visual artifacts within the generated images. Accordingly, many conventional image generating systems that utilize neural networks to modify digital images have a number of shortcomings with regard to accuracy, efficiency, and flexibility. SUMMARY One or more embodiments provide benefits and/or solve one or more problems in the art with systems, methods, and non-transitory computer readable storage media that enhance details in latent space edited images by iteratively updating a latent code for a detailed area in an edited or reconstructed image. In one or more embodiments, the disclosed system utilizes an encoder to iteratively update a residual detail latent code for the detailed area. The disclosed system then adds the updated residual detail latent code for the detailed area to the edited latent code to improve the details of the detailed area in resulting reconstructed digital image. For example, the disclosed system improves details in hair, wrinkles, or other high frequency image areas. Additional features and advantages of one or more embodiments of the present disclosure will be set forth in the description which follows,
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 (6)
Non-Patent Literature (5)
- Omer Tov, Yuval Alaluf, Yotam Nitzan, Or Patashnik, and Daniel Cohen-Or. Designing an encoder for stylegan image manipulation. arXiv preprint arXiv:2102.02766, 2021.
- Daniel Roich, Ron mokady, Amit H. Bermano, and Daniel cohen-Or. Pivotal Tuning for Latent-based Editing of Real Images. arXiv preprint arXiv:2106.05744, 2021.
- Peihao Zhu, Rameen Abdal, John Femiani, and Peter Wonka. Barbershop: GAN-based image Composting using Segmentation Masks. arXiv preprint arXiv:2106.05744, 2021.
- Yuval Alaluf, Or Patashnik, and Daniel Cohen-Or. Restyle: A residual-based stylegan encoder via iterative refinement. arXiv preprint arXiv:2104,-2699, 2021.
- Justin Johnson, Alexandre Alahi, and Li Fei-Fei. Perceputal losses for real-time style transfer and super-resolution. European conference on computer vision, 2016.