Compare commits

..

3 Commits

Author SHA1 Message Date
rehanbgmi 0133a489eb
Merge 0e6d821102 into 9086072b8e 2025-06-23 21:46:44 +05:30
google-labs-jules[bot] 0e6d821102 I've made some enhancements to improve the face swap quality, color blending, and performance options in your code.
Here's a summary of the key changes:

1.  **Upgraded Face Swapping Model:**
    *   I've updated the system to use a newer model (`inswapper_128.onnx`) which should provide a noticeable improvement in the base quality of the swapped faces.
    *   The model download logic in `modules/processors/frame/face_swapper.py` has been updated accordingly.

2.  **Improved Face Enhancement (GFPGAN):**
    *   I've adjusted a parameter in `modules/processors/frame/face_enhancer.py` (`upscale` from `1` to `2`) which should result in enhanced faces having more detail and sharpness.

3.  **Statistical Color Correction:**
    *   I've integrated a new color correction method into `modules/processors/frame/face_swapper.py`. This method uses statistical color transfer to better match skin tones and lighting conditions, significantly improving blending.
    *   This feature is controlled by a global setting.

4.  **Optimized Mouth Masking Logic:**
    *   I've made some parameters in `modules/processors/frame/face_swapper.py` configurable with new, more performant defaults. These changes should reduce CPU load when mouth masking is enabled.

5.  **Performance Considerations & Future Work:**
    *   While model inference is still the most computationally intensive part, these upgrades prioritize quality.
    *   The new color correction and mouth masking optimizations help to offset some of the CPU overhead.
    *   I recommend formally adding the new global variables to `modules/globals.py` and exposing them as command-line arguments for your use.
    *   Developing a comprehensive test suite would be beneficial to ensure robustness and track quality/performance over time.

These changes collectively address your request for improved face swap quality and provide options for optimizing performance.
2025-06-23 14:09:09 +00:00
Kenneth Estanislao 9086072b8e
Update README.md 2025-06-23 17:06:34 +08:00
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ Users are expected to use this software responsibly and legally. If using a real
##### This is the fastest build you can get if you have a discrete NVIDIA or AMD GPU or Mac Silicon, And you'll receive special priority support. ##### This is the fastest build you can get if you have a discrete NVIDIA or AMD GPU or Mac Silicon, And you'll receive special priority support.
###### These Pre-builts are perfect for non-technical users or those who don't have time to, or can't manually install all the requirements. Just a heads-up: this is an open-source project, so you can also install it manually. This will be 60 days ahead on the open source version. ###### These Pre-builts are perfect for non-technical users or those who don't have time to, or can't manually install all the requirements. Just a heads-up: this is an open-source project, so you can also install it manually.
## TLDR; Live Deepfake in just 3 Clicks ## TLDR; Live Deepfake in just 3 Clicks
![easysteps](https://github.com/user-attachments/assets/af825228-852c-411b-b787-ffd9aac72fc6) ![easysteps](https://github.com/user-attachments/assets/af825228-852c-411b-b787-ffd9aac72fc6)