fix: always initialize face_to_paste_pil

This commit is contained in:
K
2025-08-21 21:52:03 +08:00
committed by GitHub
parent 0f66b6a115
commit 4ff011f842
+1 -2
View File
@@ -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 = []