From 4ff011f842f5718ad1cfbddad17cd0aa8b7b8e66 Mon Sep 17 00:00:00 2001 From: K Date: Thu, 21 Aug 2025 21:52:03 +0800 Subject: [PATCH] fix: always initialize face_to_paste_pil --- videoinput.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/videoinput.py b/videoinput.py index 7e16e10..7498d9f 100644 --- a/videoinput.py +++ b/videoinput.py @@ -93,8 +93,7 @@ class VideoInputPreprocessor: print("[Warning] No landmarks found in source 'face_rgba' image. Angle matching disabled.") match_angle_and_size = False - if not match_angle_and_size: - face_to_paste_pil = tensor_to_pil(face_rgba[0], mode='RGBA') + face_to_paste_pil = tensor_to_pil(face_rgba[0], mode='RGBA') processed_frames_tensors = []