mirror of
https://github.com/facefusion/facefusion.git
synced 2026-08-07 17:48:39 +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:
@@ -4,7 +4,7 @@ import pytest
|
||||
|
||||
from facefusion import ffmpeg, ffmpeg_builder, process_manager
|
||||
from facefusion.download import conditional_download
|
||||
from facefusion.vision import calculate_histogram_difference, count_video_frame_total, detect_image_resolution, detect_video_duration, detect_video_fps, detect_video_resolution, match_frame_color, normalize_resolution, pack_resolution, predict_video_frame_total, read_image, read_video_chunk, read_video_frame, restrict_image_resolution, restrict_trim_video_frame, restrict_video_fps, restrict_video_resolution, scale_resolution, select_video_frames, unpack_resolution, write_image
|
||||
from facefusion.vision import calculate_histogram_difference, count_video_frame_total, detect_image_resolution, detect_video_duration, detect_video_fps, detect_video_resolution, match_frame_color, normalize_resolution, pack_resolution, predict_video_frame_total, read_image, read_video_frame, restrict_image_resolution, restrict_trim_video_frame, restrict_video_fps, restrict_video_resolution, scale_resolution, select_video_frames, unpack_resolution, write_image
|
||||
from .assert_helper import get_test_example_file, get_test_examples_directory, get_test_output_path, prepare_test_output_directory
|
||||
|
||||
|
||||
@@ -136,11 +136,6 @@ def test_read_video_frame() -> None:
|
||||
assert read_video_frame('invalid') is None
|
||||
|
||||
|
||||
def test_read_video_chunk() -> None:
|
||||
assert len(read_video_chunk(get_test_example_file('target-240p-25fps.mp4'), 1, 40)) == 40
|
||||
assert read_video_chunk('invalid', 1, 40) == {}
|
||||
|
||||
|
||||
def test_select_video_frames() -> None:
|
||||
assert len(select_video_frames(get_test_example_file('target-240p-25fps.mp4'), 50, 5)) == 11
|
||||
assert len(select_video_frames(get_test_example_file('target-240p-25fps.mp4'), 1, 5)) == 11
|
||||
|
||||
Reference in New Issue
Block a user