Fix preview to work with multiple frame processors

This commit is contained in:
henryruhs 2023-06-13 17:16:26 +02:00
parent e9808ca0d8
commit 10d62f1a59

View File

@ -205,6 +205,7 @@ def init_preview() -> None:
def update_preview(frame_number: int = 0) -> None:
video_frame = None
if roop.globals.source_path and roop.globals.target_path:
video_frame = None
for frame_processor in get_frame_processors_modules(roop.globals.frame_processors):
video_frame = frame_processor.process_faces(
get_one_face(cv2.imread(roop.globals.source_path)),