- Added functionality to preserve target's ears when using Poisson blending. - Introduced new global variables in `globals.py`: - `preserve_target_ears` (boolean flag) - `ear_width_ratio` - `ear_height_ratio` - `ear_vertical_offset_ratio` - `ear_horizontal_overlap_ratio` - Added command-line argument `--preserve-ears` to `core.py`. - Modified `face_swapper.py` to adjust the Poisson blending mask by subtracting calculated ear regions if `preserve_target_ears` is true. This aims to reduce artifacts around ears by using the original target frame's ear content. |
||
---|---|---|
.. | ||
__init__.py | ||
core.py | ||
face_enhancer.py | ||
face_swapper.py |