| CPC G06V 40/162 (2022.01) [G06V 10/82 (2022.01); G06V 40/168 (2022.01)] | 17 Claims |

|
1. A face parsing method, comprising:
inputting a facial image into a pre-trained face parsing neural network;
extracting a semantic feature from the facial image using a semantic perception sub-network of the face parsing neural network, wherein the semantic feature represents probabilities that each pixel in the facial image belongs to various facial regions;
extracting a boundary feature from the facial image using a boundary perception sub-network of the face parsing neural network, wherein the boundary feature represents probabilities that each pixel in the facial image belongs to boundaries between different facial regions; and
processing the concatenated semantic feature and boundary feature using a fusion sub-network of the face parsing neural network to obtain a facial region to which each pixel in the facial image belongs,
wherein a loss function used in training the face parsing neural network includes a loss function of the semantic perception sub-network and a loss function of the boundary perception sub-network, wherein:
the loss function of the semantic perception sub-network is determined according to prediction probabilities that each pixel of the semantic feature belongs to various facial regions, and a facial region each pixel of the semantic feature actually belongs to; and
the loss function of the boundary perception sub-network is determined according to prediction probabilities that each pixel of the boundary feature belongs to boundaries between different facial regions, and whether each pixel of the boundary feature actually belongs to the boundaries.
|