mirror of
https://github.com/facefusion/facefusion.git
synced 2026-08-08 01:58:37 +02:00
Merge branch 'master' into v4
Resolve 57 conflicts keeping v4's architecture (UI removal, api app context, path isolation, streaming/codecs/rtc, workflow-mode superset, args_helper) and taking master's post-fork features so none are dropped: inference override/adjust provider hooks (+ face_swapper 3.8.1 coreml fix), is_vision_frame validity guards, resolve_temp_frame_set frame numbering with the source audio/voice trim offset, the ffmpeg color pipeline (restrict_color_transfer / convert_color_space / temp_pixel_format), ffprobe select_stream v:0 + format duration, pre_check ffprobe with dependency_not_installed, onnxruntime arena-leak guard + version lru_cache, installer cuda@12/@13 provider split, workflow_strategy disk/memory (memory default), and the dependency version bumps. content_analyser hash guard rehashed to 3c6ce25e. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01V7MdZEmd1GE8uSDTMyq34r
This commit is contained in:
@@ -7,7 +7,7 @@ from facefusion.download import conditional_download
|
||||
from facefusion.face_creator import get_many_faces, get_one_face
|
||||
from facefusion.face_store import clear_faces
|
||||
from facefusion.face_tracker import create_face_tracks, select_face_track, track_faces
|
||||
from facefusion.vision import read_static_video_chunk, read_static_video_frame
|
||||
from facefusion.vision import read_static_video_frame, select_video_frames
|
||||
from .assert_helper import get_test_example_file, get_test_examples_directory
|
||||
|
||||
|
||||
@@ -47,8 +47,7 @@ def before_each() -> None:
|
||||
|
||||
def test_track_faces() -> None:
|
||||
target_path = get_test_example_file('target-240p.mp4')
|
||||
video_frame_chunk = read_static_video_chunk(target_path, 0, 7)
|
||||
target_vision_frames = [ video_frame_chunk.get(frame_number) for frame_number in sorted(video_frame_chunk) ]
|
||||
target_vision_frames = select_video_frames(target_path, 3, 3)
|
||||
empty_vision_frame = numpy.zeros_like(get_first(target_vision_frames))
|
||||
|
||||
target_vision_frames[2] = empty_vision_frame
|
||||
@@ -58,7 +57,7 @@ def test_track_faces() -> None:
|
||||
|
||||
assert len(track_faces(target_vision_frames, 0.3)) == 1
|
||||
|
||||
target_vision_frames = [ video_frame_chunk.get(frame_number) for frame_number in sorted(video_frame_chunk)[:5] ]
|
||||
target_vision_frames = select_video_frames(target_path, 3, 3)[:5]
|
||||
target_vision_frames[0] = empty_vision_frame
|
||||
target_vision_frames[1] = empty_vision_frame
|
||||
target_vision_frames[2] = empty_vision_frame
|
||||
|
||||
Reference in New Issue
Block a user