From df31fa808307b69ea034534692cbdf993b165a13 Mon Sep 17 00:00:00 2001 From: Christoph9211 Date: Sun, 8 Jun 2025 15:45:55 -0500 Subject: [PATCH] typo fix --- modules/processors/frame/face_swapper.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/processors/frame/face_swapper.py b/modules/processors/frame/face_swapper.py index c04ef1b..f1c65cd 100644 --- a/modules/processors/frame/face_swapper.py +++ b/modules/processors/frame/face_swapper.py @@ -123,12 +123,12 @@ def process_frame_v2(temp_frame: Frame, temp_frame_path: str = "") -> Frame: if is_image(modules.globals.target_path): if modules.globals.many_faces: source_face = default_source_face() - for map_entry in modules.globals.souce_target_map: # Renamed 'map' to 'map_entry' + for map_entry in modules.globals.source_target_map: # Renamed 'map' to 'map_entry' target_face = map_entry['target']['face'] temp_frame = swap_face(source_face, target_face, temp_frame) elif not modules.globals.many_faces: - for map_entry in modules.globals.souce_target_map: # Renamed 'map' to 'map_entry' + for map_entry in modules.globals.source_target_map: # Renamed 'map' to 'map_entry' if "source" in map_entry: source_face = map_entry['source']['face'] target_face = map_entry['target']['face'] @@ -137,7 +137,7 @@ def process_frame_v2(temp_frame: Frame, temp_frame_path: str = "") -> Frame: elif is_video(modules.globals.target_path): if modules.globals.many_faces: source_face = default_source_face() - for map_entry in modules.globals.souce_target_map: # Renamed 'map' to 'map_entry' + for map_entry in modules.globals.source_target_map: # Renamed 'map' to 'map_entry' target_frame = [f for f in map_entry['target_faces_in_frame'] if f['location'] == temp_frame_path] for frame in target_frame: @@ -145,7 +145,7 @@ def process_frame_v2(temp_frame: Frame, temp_frame_path: str = "") -> Frame: temp_frame = swap_face(source_face, target_face, temp_frame) elif not modules.globals.many_faces: - for map_entry in modules.globals.souce_target_map: # Renamed 'map' to 'map_entry' + for map_entry in modules.globals.source_target_map: # Renamed 'map' to 'map_entry' if "source" in map_entry: target_frame = [f for f in map_entry['target_faces_in_frame'] if f['location'] == temp_frame_path] source_face = map_entry['source']['face']