| CPC G06V 10/774 (2022.01) [G06V 10/751 (2022.01); G06V 10/759 (2022.01); G06V 10/776 (2022.01); G06V 10/82 (2022.01); G06V 40/168 (2022.01); G06V 40/172 (2022.01)] | 20 Claims |

|
1. An image processing method, performed by a computer device, the image processing method comprising:
obtaining a training source face image and a training template face image;
performing additional image feature extraction on the training source face image to obtain a source additional image feature corresponding to the training source face image;
performing identity feature extraction on the training source face image to obtain a source identity feature corresponding to the training source face image;
inputting the training template face image into an encoder in a to-be-trained face swapping model for encoding to obtain a face attribute feature;
inputting the source additional image feature, the source identity feature, and the face attribute feature into a decoder in the to-be-trained face swapping model for decoding to obtain a decoded face image;
obtaining a comparative face image, the comparative face image comprising at least one of the training source face image and a standard face image corresponding to the decoded face image, and the standard face image and the training source face image being face images of a same object; and
obtaining an additional image difference between the decoded face image and the comparative face image, and adjusting model parameters of the encoder and the decoder based on the additional image difference to obtain a trained face swapping model, so as to perform image processing according to the trained face swapping model.
|