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
30.91k stars 4.28k forks source link

Fix face_enhancer issues #46

Closed JoepdeJong closed 1 month ago

JoepdeJong commented 1 month ago

Updates to gfpgan==1.3.8 to fix issues with loading face_enhancer on OS X Apple Silicon.

Also moves retrieval of modules to remove inside the try-catch block.

Summary by Sourcery

This pull request addresses issues with loading the face_enhancer module on OS X Apple Silicon by updating the gfpgan dependency to version 1.3.8. Additionally, it enhances error handling by adding a print statement when a frame processor module is not found and refactors the code to move module retrieval inside the try-catch block.

sourcery-ai[bot] commented 1 month ago

Reviewer's Guide by Sourcery

This pull request updates the gfpgan dependency to version 1.3.8 to address issues with loading the face_enhancer on OS X Apple Silicon. Additionally, it improves error handling by adding a print statement for missing frame processors and moves the retrieval of modules inside the try-catch block to ensure proper exception handling.

File-Level Changes

Files Changes
modules/processors/frame/core.py Enhanced error handling and logging for frame processor loading and module retrieval.

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.