Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Batch Face Swap Feature
I have the same requirement as issue #957, so I have implemented a batch face swap feature.
When this toggle box is checked, the feature will loop through all input faces, apply face swapping to all target files (including images and videos), and save the output files with the input face's filename as a prefix.
Implementation Details
This feature operates differently for images and videos:
1. Images
ProcessMgr.process_frame()
.2. Videos
face1_video0, face2_video0, face0_video0, face1_video1, face2_video1, face0_video1
core.py
.I have made minimal modifications to the code structure to maintain clarity.
Please review and let me know if there is a better way to approach this feature.
Thank you very much for this fabulous work!