Commit Graph

462 Commits (b7f92acb34736f46f85c362f5a99cba362972ba7)
 

Author SHA1 Message Date
google-labs-jules[bot] b7f92acb34 feat: Implement Flask-based web interface for Deep-Live-Cam
This commit introduces a significant architectural change, transforming the
Deep-Live-Cam application from a desktop-focused customtkinter application
to a web-based interface powered by Flask.

Key changes and features implemented:

1.  **Web Framework & UI Basics:**
    *   Integrated Flask (`webapp.py`) as the backend framework.
    *   Added basic HTML (`templates/index.html`), CSS (`static/style.css`),
        and JavaScript (`static/main.js`) for the frontend structure.

2.  **Core Logic Refactoring:**
    *   `modules/core.py` was refactored to decouple it from UI-specific
        code, allowing its functions to be used as a library by both the
        new web backend and the existing CLI (`run.py`).
    *   Utility functions in `modules/utilities.py` were updated for
        better modularity and explicit path handling.

3.  **Web UI Functionality:**
    *   **File Uploads:** Implemented API endpoints and frontend JavaScript
        to allow you to upload source face images and target media
        (images/videos). Previews are shown for selected files.
    *   **Settings Management:** You can toggle processing options (e.g.,
        keep FPS, mouth mask) in the web UI, and these settings are sent
        to the backend to update global configurations.
    *   **File Processing:** A `/start_processing` API endpoint triggers the
        core face swapping logic on uploaded files. Processed files can be
        downloaded via a separate endpoint. (Current processing is synchronous).
    *   **Live Webcam Preview:**
        *   A `/video_feed` endpoint streams live camera input to the browser.
        *   This feed now incorporates real-time face swapping and other
            selected processing effects (e.g., FPS counter, enhancers if toggled),
            using the uploaded source face and current settings.
    *   **Face Mapping via Web UI:**
        *   Implemented functionality for you to define specific source faces
            for multiple target faces detected in an uploaded image.
        *   Backend APIs were created to analyze target images, send detected
            face data (as base64 images) to the frontend, and then receive
            your submitted mappings (source images per target face).
        *   The `face_swapper.py` module was enhanced with `v2` processing
            methods (`process_image_v2`, `process_video_v2`, updated
            `process_frame_v2`) that utilize these detailed mappings.
        *   Both file-based processing and the live webcam feed now respect
            these mappings if the "Map Faces" option is enabled.

This lays the groundwork for a fully featured web version of Deep-Live-Cam.
Further work will focus on UX refinements (like async processing, better
error handling, UI for clearing mappings) and comprehensive testing.
2025-06-20 16:47:34 +00:00
google-labs-jules[bot] 6210b067cc 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 16:37:51 +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
Kenneth Estanislao 18b259da70 Update requirements.txt
improves speed by 10 to 40%
2025-04-17 02:44:24 +08:00