From 67e0a5835f5327bc41cdb919626212d722660e34 Mon Sep 17 00:00:00 2001 From: henryruhs Date: Fri, 7 Aug 2026 15:41:51 +0200 Subject: [PATCH] fix frame enhancer --- facefusion/metadata.py | 2 +- facefusion/workflows/to_video.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/facefusion/metadata.py b/facefusion/metadata.py index 24a1db62..fcc3c5ca 100644 --- a/facefusion/metadata.py +++ b/facefusion/metadata.py @@ -4,7 +4,7 @@ METADATA =\ { 'name': 'FaceFusion', 'description': 'Industry leading face manipulation platform', - 'version': '3.8.1', + 'version': '3.8.2', 'license': 'OpenRAIL-AS', 'author': 'Henry Ruhs', 'url': 'https://facefusion.io' diff --git a/facefusion/workflows/to_video.py b/facefusion/workflows/to_video.py index 3545bb43..447247e8 100644 --- a/facefusion/workflows/to_video.py +++ b/facefusion/workflows/to_video.py @@ -13,7 +13,7 @@ from facefusion.processors.core import get_processors_modules from facefusion.temp_helper import move_temp_file, resolve_temp_frame_set from facefusion.time_helper import calculate_end_time from facefusion.types import ErrorCode, Resolution, VisionFrame -from facefusion.vision import detect_video_resolution, pack_resolution, read_static_image, read_static_video_frame, restrict_trim_frame, restrict_video_fps, restrict_video_resolution, scale_resolution, select_video_frames, write_image +from facefusion.vision import detect_video_resolution, pack_resolution, read_static_image, read_static_video_frame, restrict_frame, restrict_trim_frame, restrict_video_fps, restrict_video_resolution, scale_resolution, select_video_frames, write_image from facefusion.workflows.core import conditional_get_target_vision_frames, is_process_stopping, process_temp_frame @@ -99,6 +99,7 @@ def process_memory_frame(frame_number : int, temp_video_resolution : Resolution) temp_vision_frame = cv2.resize(target_vision_frame, temp_video_resolution) temp_vision_frame = process_temp_frame(target_vision_frames, temp_vision_frame, frame_number) + temp_vision_frame = restrict_frame(temp_vision_frame, temp_video_resolution) if state_manager.get_item('temp_pixel_format') == 'bgra': temp_vision_frame = cv2.cvtColor(temp_vision_frame, cv2.COLOR_BGR2BGRA)