hacksider / Deep-Live-Cam

real time face swap and one-click video deepfake with only a single image
GNU Affero General Public License v3.0
34.92k stars 4.93k forks source link

Add two face support feature to Livecam, image or video processing. #372

Closed iVideoGameBoss closed 4 weeks ago

iVideoGameBoss commented 4 weeks ago

Using one or two faces is a very useful feature,

sourcery-ai[bot] commented 4 weeks ago

Reviewer's Guide by Sourcery

This pull request adds support for processing two faces in images, videos, and live camera feeds. The main changes include modifying the face swapping logic to handle two faces, updating the UI to reflect this new feature, and adjusting the face detection and processing functions to work with one or two faces.

File-Level Changes

Files Changes
modules/processors/frame/face_swapper.py Modified face swapping logic to support two faces
modules/ui.py Updated UI to allow selection of one or two faces
modules/face_analyser.py Added functions to detect left and right faces in an image
README.md Updated README with information about the new two-face feature
modules/ui.py Modified webcam preview function to support two faces
modules/ui.py
modules/core.py
Enabled NSFW switch in the UI

Tips - Trigger a new Sourcery review by commenting `@sourcery-ai review` on the pull request. - Continue your discussion with Sourcery by replying directly to review comments. - You can change your review settings at any time by accessing your [dashboard](https://app.sourcery.ai): - Enable or disable the Sourcery-generated pull request summary or reviewer's guide; - Change the review language; - You can always [contact us](mailto:support@sourcery.ai) if you have any questions or feedback.