Merge pull request #566 from pereiraroland26/main

Added support for multiple faces
This commit is contained in:
Kenneth Estanislao
2024-09-10 23:35:19 +08:00
parent a11ccf9c49
commit 5d450b4352
8 changed files with 974 additions and 324 deletions
+8 -6
View File
@@ -1,5 +1,5 @@
import os
from typing import List, Dict
from typing import List, Dict, Any
ROOT_DIR = os.path.dirname(os.path.abspath(__file__))
WORKFLOW_DIR = os.path.join(ROOT_DIR, 'workflow')
@@ -9,6 +9,9 @@ file_types = [
('Video', ('*.mp4','*.mkv'))
]
souce_target_map = []
simple_map = {}
source_path = None
target_path = None
output_path = None
@@ -17,6 +20,9 @@ keep_fps = None
keep_audio = None
keep_frames = None
many_faces = None
map_faces = None
color_correction = None # New global variable for color correction toggle
nsfw_filter = None
video_encoder = None
video_quality = None
live_mirror = None
@@ -27,9 +33,5 @@ execution_threads = None
headless = None
log_level = 'error'
fp_ui: Dict[str, bool] = {}
nsfw = None
camera_input_combobox = None
webcam_preview_running = False
enhancer_upscale_factor = 1
source_image_scaling_factor = 2
sr_scale_factor = 4
webcam_preview_running = False