xinntao / facexlib

FaceXlib aims at providing ready-to-use face-related functions based on current STOA open-source methods.
MIT License
810 stars 143 forks source link

refine blending in paste_faces_to_input_image #32

Open sicxu opened 1 year ago

sicxu commented 1 year ago

If self.use_parse is True in FaceRestoreHelper, original implementation of paste_faces_to_input_image results in sharp boundary for image paste back.

Before fix: image

After fix: image