Closed iVideoGameBoss closed 3 weeks ago
This pull request introduces a new feature that allows working with two faces in the source image and replacing two target faces on webcam, video, or image. The implementation includes significant changes to the UI, face swapping logic, and adds new controls for face placement. The main changes involve modifying the face detection and swapping process to handle two faces, updating the UI to include new options for controlling face placement, and adjusting the webcam preview functionality to support the new two-face feature.
Files | Changes |
---|---|
modules/ui.py |
Added new UI elements for controlling two-face swapping, including checkboxes for 'Show both faces', 'Flip left/right faces', and 'Detect face from right' |
modules/processors/frame/face_swapper.py |
Modified the face swapping logic in the process_frame function to handle two faces and implement the new face placement controls |
modules/ui.py |
Updated the webcam_preview function to support the new two-face feature |
modules/face_analyser.py |
Added new functions get_one_face_left and get_one_face_right to detect faces from the left and right sides of an image |
README.md |
Updated README.md with information about the new two-face feature and face placement controls |
modules/core.py |
Added new command-line arguments for the two-face feature and face placement controls |
modules/globals.py |
Added new global variables to support the two-face feature |
CONTRIBUTING.md |
Created a new CONTRIBUTING.md file with guidelines for contributors |
This is actually awesome! Can you push this on the experimental? @iVideoGameBoss :)
This is actually awesome! Can you push this on the experimental? @iVideoGameBoss :)
Sure I will submit a new pull request in a bit from a new fork.
Two Face Feature and Face Controls