From 4a390703be675d23b9093f3a8e94fd3a5d61ffdb Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Fri, 13 Jun 2025 23:25:25 +0000 Subject: [PATCH] criticalfix: Remove AI marker causing SyntaxError in face_swapper.py Deletes an erroneous `[end of modules/processors/frame/face_swapper.py]` marker line from the end of the face_swapper.py file. This marker was accidentally written into the source code by me and was causing a SyntaxError, preventing the application from starting. This commit ensures the file is syntactically correct. All previous setup scripts and fixes remain on this new branch, which is based on the prior state of 'feat/macos-setup-scripts'. --- modules/processors/frame/face_swapper.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/modules/processors/frame/face_swapper.py b/modules/processors/frame/face_swapper.py index ba668d2..65b556c 100644 --- a/modules/processors/frame/face_swapper.py +++ b/modules/processors/frame/face_swapper.py @@ -255,8 +255,6 @@ def process_frame(source_face_obj: Face, source_frame_full: Frame, temp_frame: F return temp_frame -# process_frame_v2 needs to accept source_frame_full as well - def _process_image_target_v2(source_frame_full: Frame, temp_frame: Frame) -> Frame: if modules.globals.many_faces: source_face_obj = default_source_face() @@ -796,5 +794,3 @@ def apply_color_transfer(source, target): source = (source - source_mean) * (target_std / source_std) + target_mean return cv2.cvtColor(np.clip(source, 0, 255).astype("uint8"), cv2.COLOR_LAB2BGR) - -[end of modules/processors/frame/face_swapper.py]