A facial parsing method and apparatus, a facial parsing network training method and apparatus, an electronic device and a non-transitory computer-readable storage medium, which relate to the field of artificial intelligence. The facial parsing method comprises: inputting a facial image into a pre-trained facial parsing neural network (S201); extracting semantic features of the facial image by using a semantic perception sub-network (S202); extracting boundary features of the facial image by using a boundary perception sub-network (S203); and processing cascaded semantic features and boundary features by using a fusion sub-network, so as to obtain a facial region to which each pixel in the facial image belongs (S204). The method can improve the resolution capability of a neural network for boundary pixels between different facial regions of a facial image, thereby improving the precision of facial parsing.
FACIAL PARSING METHOD AND RELATED DEVICES