mirror of
https://github.com/facefusion/facefusion.git
synced 2026-07-15 06:27:21 +02:00
merge master into v4 - post adjustments
This commit is contained in:
@@ -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
|
||||
|
||||
+1
-1
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user