IP Library › Granted Patent US 12,475,623
Granted Patent B2
US 12,475,623 · App. 18/338,964 · Granted Nov 18, 2025

Generating and compositing hair pixels using generative neural networks

Inventors: Siavash Khodadadeh (Mountain View, CA); Jinrong Xie (Sunnyvale, CA); Ratheesh Kalarot (San Jose, CA); Shabnam Ghadar (Menlo Park, CA)
Assignee: Adobe Inc.
G06T11/60G06T3/18G06T5/20G06T5/77G06T7/11G06T2207/20084G06T2207/20132G06T2207/30201
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12,475,623
App. No.
18/338,964
Granted
Nov 18, 2025
Kind
B2
Abstract

The present disclosure relates to systems, methods, and non-transitory computer readable media for generating and composting pixels of a digital image that depict hair of an individual using generative neural networks. In some embodiments, the disclosed systems receive a modification to a face crop enclosing a face depicted within a digital image. In some cases, the disclosed systems determine, from the modification, modified hair pixels within the face crop of the digital image and unmodified hair pixels outside of the face crop of the digital image. The disclosed systems generate, for the unmodified hair pixels outside of the face crop, replacement hair pixels that resemble the modified hair pixels utilizing a generative neural network. Additionally, the disclosed systems generate a modified digital image by replacing the unmodified hair pixels outside of the face crop with the replacement hair pixels.

Claims (47)

1 . A method comprising:

identifying a modification to a face depicted within a face region of a digital image;

determining, from the modification utilizing a deep hair matte, modified hair pixels within the face region of the digital image and unmodified hair pixels outside of the face region of the digital image;

generating, utilizing a generative neural network for the unmodified hair pixels outside of the face region, replacement hair pixels that resemble the modified hair pixels; and

generating, utilizing an image compositing model, a modified digital image by replacing the unmodified hair pixels outside of the face region with the replacement hair pixels.

2 . The method of claim 1 , wherein:

determining the modified hair pixels within the face region comprises determining hair pixels affected by the modification to the face region; and

determining the unmodified hair pixels outside of the face region comprises determining hair pixels unaffected by the modification to the face region.

3 . The method of claim 1 , further comprising generating the deep hair matte from the digital image by utilizing a deep matting model to process image segmentations for the digital image.

4 . The method of claim 3 , further comprising:

generating a cropped deep hair mask by cropping the deep hair matte according to the face region of the digital image; and

wherein generating the replacement hair pixels comprises utilizing the generative neural network to generate pixels that resemble hair pixels indicated by the cropped deep hair mask.

5 . The method of claim 3 , wherein generating the deep hair matte comprises extracting, from the digital image, an instance segmentation map indicating one or more faces depicted within the digital image.

6 . The method of claim 5 , wherein generating the deep hair matte further comprises encoding, from the instance segmentation map, a part segmentation map defining hair pixels for the one or more faces depicted within the digital image.

7 . The method of claim 1 , wherein generating the modified digital image comprises utilizing a mesh warp to modify a resolution of the replacement hair pixels to match a resolution of the digital image.

8 . A system comprising:

a memory component; and

one or more processing devices coupled to the memory component, the one or more processing devices to perform operations comprising:

identifying a modification to a face depicted within a face region of a digital image;

determining, from the modification, modified hair pixels within the face region of the digital image and unmodified hair pixels outside of the face region of the digital image by generating a deep hair matte from a part segmentation map of the digital image;

generating, utilizing a generative neural network for the unmodified hair pixels outside of the face region, replacement hair pixels that resemble the modified hair pixels; and

generating, utilizing an image compositing model, a modified digital image by replacing the unmodified hair pixels outside of the face region with the replacement hair pixels.

9 . The system of claim 8 , wherein identifying the modification to the face depicted within the face region of the digital image comprises receiving an indication of applying a style modification neural network to pixels within the face region.

10 . The system of claim 8 , wherein generating the deep hair matte comprises:

extracting, from the digital image, an instance segmentation map indicating the face depicted within the digital image;

encoding, from the instance segmentation map, a part segmentation map defining hair pixels for the face depicted within the digital image; and

utilizing a deep matting model to generate the deep hair matte from the part segmentation map.

11 . The system of claim 8 , wherein generating the replacement hair pixels comprises utilizing the generative neural network to generate hair pixels indicated by the deep hair matte for replacing the unmodified hair pixels outside of the face region.

12 . The system of claim 8 , wherein generating the modified digital image comprises utilizing a mesh warp to align textures of the replacement hair pixels with textures of the digital image.

13 . The system of claim 8 , wherein:

determining the modified hair pixels within the face region comprises determining hair pixels affected by the modification to the face region; and

determining the unmodified hair pixels outside of the face region comprises determining hair pixels unaffected by the modification to the face region.

14 . The system of claim 8 , further comprising providing the modified digital image for display on a client device.

15 . A non-transitory computer readable medium storing instructions which, when executed by a processing device, cause the processing device to perform operations comprising:

identifying a modification to a face depicted within a face region of a digital image;

determining, from the modification utilizing a deep hair matte, modified hair pixels within the face region of the digital image and unmodified hair pixels outside of the face region of the digital image;

generating, utilizing a generative neural network for the unmodified hair pixels outside of the face region, replacement hair pixels that resemble the modified hair pixels; and

generating, utilizing an image compositing model, a modified digital image by replacing the unmodified hair pixels outside of the face region with the replacement hair pixels.

16 . The non-transitory computer readable medium of claim 15 , wherein:

determining the modified hair pixels within the face region comprises determining hair pixels affected by the modification to the face region; and

determining the unmodified hair pixels outside of the face region comprises determining hair pixels unaffected by the modification to the face region.

17 . The non-transitory computer readable medium of claim 15 , further comprising generating the deep hair matte from the digital image by utilizing a deep matting model to process image segmentations for the digital image.

18 . The non-transitory computer readable medium of claim 17 , further comprising:

generating a cropped deep hair mask by cropping the deep hair matte according to the face region of the digital image; and

wherein generating the replacement hair pixels comprises utilizing the generative neural network to generate pixels that resemble hair pixels indicated by the cropped deep hair mask.

19 . The non-transitory computer readable medium of claim 17 , wherein generating the deep hair matte comprises extracting, from the digital image, an instance segmentation map indicating one or more faces depicted within the digital image.

20 . The non-transitory computer readable medium of claim 19 , wherein generating the deep hair matte further comprises encoding, from the instance segmentation map, a part segmentation map defining hair pixels for the one or more faces depicted within the digital image.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jun 21, 2023
From: KHODADADEH, SIAVASH; XIE, JINRONG; KALAROT, RATHEESH; GHADAR, SHABNAM
To: ADOBE INC.
Reel/Frame 064018/0709 →
Continuity (1)
Related Publication 20240428482A1 · Dec 26, 2024
References Cited (24)
US 10402689B1 · Bogdanovych · 2019 [cited by examiner]
US 11651477B2 · Zhang et al. · 2023 [cited by applicant]
US 20120075331A1 · Mallick · 2012 [cited by examiner]
US 20190147224A1 · Li et al. · 2019 [cited by applicant]
US 20220101577A1 · Chakrabarty · 2022 [cited by examiner]
US 20220180490A1 · Jo · 2022 [cited by examiner]
US 20220284646A1 · Saha · 2022 [cited by examiner]
US 20220375090A1 · Hwang et al. · 2022 [cited by applicant]
US 20230128792A1 · Kuen et al. · 2023 [cited by applicant]
US 20230132180A1 · Hsieh et al. · 2023 [cited by applicant]
US 20230259587A1 · Lin et al. · 2023 [cited by applicant]
US 20240143835A1 · Khodadadeh · 2024 [cited by examiner]
US 20240152757A1 · Azizi · 2024 [cited by examiner]
US 20240412328A1 · Chung · 2024 [cited by examiner]
US 20240412432A1 · Chung · 2024 [cited by examiner]
Natsume, Ryota, Tatsuya Yatagawa, and Shigeo Morishima. “Rsgan: face swapping and editing using face and hair representation in latent spaces.” arXiv preprint arXiv:1804.03447 (2018). (Year: 2018). [cited by examiner]
Liu, Fengyuan, et al. “High fidelity face swapping via semantics disentanglement and structure enhancement.” Proceedings of the 31st ACM International Conference on Multimedia. 2023. (Year: 2023). [cited by examiner]
Levinshtein, C. Chang, E. Phung, I. Kezele, W. Guo and P. Aarabi, “Real-Time Deep Hair Matting on Mobile Devices,” 2018 15th Conference on Computer and Robot Vision (CRV), Toronto, ON, Canada, 2018, pp. 1-7, doi: 10.110… [cited by examiner]
Zhu, Peihao, et al. “Barbershop: Gan-based image compositing using segmentation masks.” arXiv preprint arXiv:2106.01505 (2021). (Year: 2021). [cited by examiner]
Connelly Barnes, et al. “PatchMatch: A Randomized Correspondence Algorithm for Structural Image Editing,” ACM Transactions on Graphics vol. 28, Issue 3, Article No. 24. pp 1-11. Jul. 27, 2009. [cited by applicant]
Jun-Yan Zhu, et al. “Generative Visual Manipulation on the Natural Image Manifold,” Computer Vision—European Conference on Computer Vision. pp 597-613. Sep. 16, 2016. [cited by applicant]
Shengyu Zhao, et al. “Large Scale Image Completion via Co-Modulated Generative Adversarial Networks,” arXiv:2103.10428 (2021). International Conference on Learning Representations. pp. 1-25. Mar. 18, 2021. [cited by applicant]
Tero Karras, et al. “A Style-Based Generator Architecture for Generative Adversarial Networks,” arXiv:1812.04948. 2019 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR). pp. 1-12. Mar. 29, 2019. [cited by applicant]
Yu Zeng, et al. “High-Resolution Image Inpainting with Iterative Confidence Feedback and Guided Upsampling,” European Conference on Computer Vision, pp. 1-17. May 24, 2020. [cited by applicant]