matthewearl / faceswap

Python script to put facial features from one face onto another
MIT License
1.4k stars 496 forks source link

Can correct_colours be replaced by Poisson Image Editing? #23

Open shartoo opened 5 years ago

shartoo commented 5 years ago

Here is a paper Poisson Image Editing

PapaMadeleine2022 commented 4 years ago

@shartoo Hello, do you have tested it ? I find function correct_colours can produce some bad case in which there are some white part on the edge of result face when the two faces have a large color difference.

shartoo commented 4 years ago

It's works fine for me. You could try changing the diameter of GaussianBlur

PapaMadeleine2022 commented 4 years ago

@matthewearl thanks for your reply. Increasing diameter of GaussianBlur actually can suppress the white light part, but can not overcome this problem when there are big color differences on same location for two face. Can you give some advises?

shartoo commented 4 years ago

The last update of this repo is 5 years ago,so the solution it's outdated, you could learn the idea behind this but not as a final solution. I opened this issue to see if any improvement could make.

PapaMadeleine2022 commented 4 years ago

@shartoo thanks.