From bd1448805cb6a08c7958a91363c52be4b7269a7e Mon Sep 17 00:00:00 2001 From: henryruhs Date: Wed, 1 Jul 2026 13:36:59 +0200 Subject: [PATCH] merge master into v4 - post adjustments --- facefusion/content_analyser.py | 10 ++++++---- facefusion/core.py | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/facefusion/content_analyser.py b/facefusion/content_analyser.py index eed188a9..cf21f06f 100644 --- a/facefusion/content_analyser.py +++ b/facefusion/content_analyser.py @@ -166,11 +166,13 @@ def analyse_video(video_path : str, trim_frame_start : int, trim_frame_end : int for frame_number in frame_range: if frame_number % int(video_fps) == 0: - video_frame = read_video_frame(video_path, frame_number) - total += 1 + vision_frame = read_video_frame(video_path, frame_number) - if analyse_frame(video_frame): - counter += 1 + if numpy.any(vision_frame): + total += 1 + + if analyse_frame(vision_frame): + counter += 1 if counter > 0 and total > 0: rate = counter / total * 100 diff --git a/facefusion/core.py b/facefusion/core.py index 33471f72..826795f7 100755 --- a/facefusion/core.py +++ b/facefusion/core.py @@ -104,7 +104,7 @@ def pre_check() -> bool: def common_pre_check() -> bool: content_analyser_content = inspect.getsource(content_analyser).encode() - return hash_helper.create_hash(content_analyser_content) == 'a0a5ae57' + return hash_helper.create_hash(content_analyser_content) == '975d67d6' def processors_pre_check() -> bool: