ai-forever / ghost

A new one shot face swap approach for image and video domains
Apache License 2.0
1.25k stars 265 forks source link

How to change mask height or exclude specific parts of face from swapping? #22

Closed netrunner-exe closed 2 years ago

netrunner-exe commented 2 years ago

Hi! How to change mask height or exclude specific parts of face from swapping? There are situations when you need to exclude poorly or incorrectly formed parts of the face or cut the mask in width or height. Please, сan you tell me where in the code this can be changed? Thank you very much for your help!

AlexanderGroshev commented 2 years ago

Hi! You should refer to masks.py.