Commit Graph

463 Commits (2a0bde144dfef3a19dab54ac5bc0e39f0ca8ed8f)
 

Author SHA1 Message Date
rehanbgmi 2a0bde144d
Merge 6f635ab7c4 into 12fda0a3ed 2025-06-21 07:34:54 +09:00
google-labs-jules[bot] 6f635ab7c4 feat: Enhance face swap quality and optimize processing
This commit implements several improvements to the face swapping pipeline,
focusing on enhancing output quality and providing optimizations for performance.

Key changes include:

1.  **Upgraded Face Swapping Model:**
    *   Switched from `inswapper_128_fp16.onnx` to the full-precision `inswapper_128.onnx` model. This is expected to provide higher fidelity face swaps.
    *   Updated the model download logic in `modules/processors/frame/face_swapper.py` accordingly.

2.  **Optimized Face Enhancement (GFPGAN):**
    *   Modified `modules/processors/frame/face_enhancer.py` to set the `upscale` parameter for `GFPGANer` from `1` to `2`. This can improve the detail and perceived quality of faces processed by the enhancer.

3.  **Improved Color Matching for Swapped Faces:**
    *   Implemented statistical color transfer in `modules/processors/frame/face_swapper.py`. This matches the color profile of the swapped face region to the original target face's region, leading to more seamless and natural blending.
    *   This feature is controlled by a new (assumed) global flag `statistical_color_correction`.

4.  **Optimized Mouth Masking Logic:**
    *   Reduced default `forehead_extension_factor` in `create_face_mask` from `5.0` to `2.5` for slightly faster mask computation.
    *   Reduced default `mouth_mask_blur_kernel_size` in `create_lower_mouth_mask` from `(15, 15)` to `(9, 9)` to speed up this blur operation.
    *   These parameters are now fetched using `getattr` to allow future configuration via global variables (e.g., `modules.globals.forehead_extension_factor`).

5.  **Performance Analysis & Other Considerations:**
    *   Identified model inference (swapper, enhancer) as primary GPU workloads.
    *   Noted that mouth masking (CPU-bound) and the new color correction add overhead. Making these features optional (which they are, via global flags like `mouth_mask` and `statistical_color_correction`) is important for you to balance quality and performance.
    *   Reviewed face detection usage and found it to be reasonably efficient for the modular pipeline structure.

These changes aim to significantly improve the visual quality of the face swaps and provide some performance tuning options.
2025-06-20 20:09:23 +00:00
google-labs-jules[bot] 74ce8569f5 Jules was unable to complete the task in time. Please review the work done so far and provide feedback for Jules to continue. 2025-06-20 18:51:12 +00:00
KRSHH 12fda0a3ed
fix formatting 2025-06-17 18:42:36 +05:30
KRSHH d963430854
Add techlinked link 2025-06-17 18:42:10 +05:30
KRSHH 5855d15c09
Removed outdated links 2025-06-17 18:35:24 +05:30
KRSHH fcc73d0add
Update Download Button 2025-06-16 14:37:41 +05:30
KRSHH 8d4a386a27
Upgrade prebuilt to 2.1 2025-06-15 22:19:49 +05:30
Chittimalla Krish b98c5234d8
Revert 8bdc14a 2025-06-15 20:08:43 +05:30
Chittimalla Krish 8bdc14a789
Update prebuilt version 2025-06-15 17:50:38 +05:30
Kenneth Estanislao f121083bc8
Update README.md
RTX 50xx support
2025-06-15 02:22:00 +08:00
Kenneth Estanislao 745d449ca6
Update README.md
support for RTX 50xx
2025-06-09 00:34:26 +08:00
Kenneth Estanislao ec6d7d2995
Merge pull request #1327 from zjy-dev/fix/add-cudnn-installation-docs
docs: add cuDNN installation guidance for CUDA
2025-06-01 12:05:04 +08:00
zjy-dev e791f2f18a docs: add cuDNN installation guidance for CUDA 2025-06-01 00:40:29 +08:00
KRSHH 3795e41fd7
Merge pull request #1307 from Neurofix/main
ADD locale ko.json
2025-05-28 08:09:02 +05:30
KRSHH ab8a1c82c1
Merge pull request #1310 from Jocund96/main
Add Russian locale file: ru.json
2025-05-26 02:34:03 +05:30
Jasurbek Odilov e1842ae0ba
Merge pull request #1 from Jocund96/Jocund96-patch-1
Add locale Russian
2025-05-25 21:28:57 +02:00
Jasurbek Odilov 989106e914
Add files via upload 2025-05-25 21:28:07 +02:00
Neurofix de27fb8a81
Create ko.json
Add korean
2025-05-25 14:49:54 +09:00
KRSHH 28109e93bb
Merge pull request #1297 from j-hewett/main
Add Spanish translation
2025-05-21 21:44:03 +05:30
Jonah Hewett fc312516e3
Add Spanish translation 2025-05-21 16:35:37 +01:00
Chou Chamnan 72049f3e91
Add khmer translation (#1291)
* Add khmer language

* Fix khmer language

---------

Co-authored-by: Chamnan dev
2025-05-18 23:03:53 +05:30
inwchamp1337 6cb5de01f8
Added a Thai translation (#1284)
* Added a Thai translation

* Update th.json
2025-05-18 23:03:19 +05:30
KRSHH 0bcf340217
Merge pull request #1281 from Giovannapls/add/pt-br-translate
[Added] pt br translate
2025-05-18 23:01:00 +05:30
Giovanna 994a63c546 [Added] pt br translate 2025-05-14 19:24:13 -03:00
Kenneth Estanislao d5a3fb0c47
Merge pull request #1268 from jiacheng-0/main
Update __init__.py
2025-05-13 00:57:09 +08:00
Teo Jia Cheng 9690070399 Update __init__.py 2025-05-13 00:14:49 +08:00
Kenneth Estanislao f3e83b985c
Merge pull request #1210 from KunjShah01/main
Update __init__.py
2025-05-12 15:14:58 +08:00
Kenneth Estanislao e3e3638b79
Merge pull request #1232 from gboeer/patch-1
Add german localization and fix minor typos
2025-05-12 15:14:32 +08:00
VilkkuKoo 4a7874a968
Added a Finnish translation (#1255)
* Added finnish translations

* Fixed a typo
2025-05-11 03:58:53 +05:30
Gordon Böer 75122da389
Create german localization 2025-05-07 13:30:22 +02:00
Gordon Böer 7063bba4b3
fix typos in zh.json 2025-05-07 13:24:54 +02:00
Gordon Böer bdbd7dcfbc
fix typos in ui.py 2025-05-07 13:23:31 +02:00
KUNJ SHAH a64940def7 update 2025-05-05 13:19:46 +00:00
KUNJ SHAH fe4a87e8f2 update 2025-05-05 13:19:29 +00:00
KUNJ SHAH 9ecd2dab83 changes 2025-05-05 13:10:00 +00:00
KUNJ SHAH c9f36eb350
Update __init__.py 2025-05-05 18:29:44 +05:30
Kenneth Estanislao b1f610d432
Update README.md 2025-05-05 08:30:44 +08:00
KRSHH d86c36dc47
Change Download URL 2025-05-04 23:44:01 +05:30
Kenneth Estanislao 532e7c05ee
Merge pull request #1155 from killerlux/patch-1
Added commands for linux
2025-05-03 10:16:02 +08:00
KRSHH 267a273cb2
Download for windows 2025-05-01 22:12:55 +05:30
KRSHH 938aa9eaf1
Delete media/download.png 2025-05-01 22:11:21 +05:30
KRSHH 37bac27302
Add files via upload 2025-05-01 22:10:52 +05:30
killerlux 84836932e6
Added cmomands for linux 2025-04-30 23:09:12 +02:00
Kenneth Estanislao e879d2ca64
Merge pull request #1094 from NeuroDonu/main
fix core.py for face_enhancer and add TRT support in face_enhancer
2025-04-30 22:28:46 +08:00
Kenneth Estanislao 181144ce33
Update requirements.txt 2025-04-20 03:02:23 +08:00
NeuroDonu 890beb0eae
fix & add trt support 2025-04-19 16:03:49 +03:00
NeuroDonu 75b5b096d6
fix 2025-04-19 16:03:24 +03:00
Kenneth Estanislao 40e47a469c
Update requirements.txt 2025-04-19 03:41:00 +08:00
KRSHH 874abb4e59
v2 prebuilt 2025-04-17 09:34:10 +05:30