From 06cb05bd3f4116d0640e4d60d405d7c9632cb6a3 Mon Sep 17 00:00:00 2001 From: henryruhs Date: Wed, 31 Jan 2024 18:33:11 +0100 Subject: [PATCH] Fix testing --- facefusion/processors/frame/modules/lip_syncer.py | 2 +- tests/test_audio.py | 2 +- tests/test_cli.py | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/facefusion/processors/frame/modules/lip_syncer.py b/facefusion/processors/frame/modules/lip_syncer.py index 39fc7489..9a490888 100755 --- a/facefusion/processors/frame/modules/lip_syncer.py +++ b/facefusion/processors/frame/modules/lip_syncer.py @@ -32,7 +32,7 @@ MODELS : ModelSet =\ { 'wav2lip': { - 'url': 'https://huggingface.co/bluefoxcreation/Wav2lip-Onnx/resolve/main/wav2lip_gan.onnx?download=true', + 'url': 'https://huggingface.co/bluefoxcreation/Wav2lip-Onnx/resolve/main/wav2lip_gan.onnx', 'path': resolve_relative_path('../.assets/models/wav2lip_gan.onnx'), } } diff --git a/tests/test_audio.py b/tests/test_audio.py index 0836692c..08f8d471 100644 --- a/tests/test_audio.py +++ b/tests/test_audio.py @@ -11,7 +11,7 @@ def before_all() -> None: [ 'https://github.com/facefusion/facefusion-assets/releases/download/examples/source.mp3' ]) - subprocess.run(['ffmpeg', '-i', '.assets/examples/source.mp3', '.assets/examples/source.wav']) + subprocess.run([ 'ffmpeg', '-i', '.assets/examples/source.mp3', '.assets/examples/source.wav' ]) def test_get_audio_frame() -> None: diff --git a/tests/test_cli.py b/tests/test_cli.py index cc2450c6..9948d206 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -11,13 +11,13 @@ def before_all() -> None: [ 'https://github.com/facefusion/facefusion-assets/releases/download/examples/source.jpg', 'https://github.com/facefusion/facefusion-assets/releases/download/examples/source.mp3', - 'https://github.com/facefusion/facefusion-assets/releases/download/examples/target-240p.mp4' + 'https://github.com/facefusion/facefusion-assets/releases/download/examples/target-1080p.mp4' ]) - subprocess.run([ 'ffmpeg', '-i', '.assets/examples/target-240p.mp4', '-vframes', '1', '.assets/examples/target-240p.jpg' ]) + subprocess.run([ 'ffmpeg', '-i', '.assets/examples/target-1080p.mp4', '-vframes', '1', '.assets/examples/target-1080p.jpg' ]) def test_image_to_image() -> None: - commands = [ sys.executable, 'run.py', '-s', '.assets/examples/source.jpg', '-t', '.assets/examples/target-240p.jpg', '-o', '.assets/examples', '--headless' ] + commands = [ sys.executable, 'run.py', '-s', '.assets/examples/source.jpg', '-t', '.assets/examples/target-1080p.jpg', '-o', '.assets/examples', '--headless' ] run = subprocess.run(commands, stdout = subprocess.PIPE, stderr = subprocess.STDOUT) assert run.returncode == 0