Host assets on GitHub

This commit is contained in:
henryruhs 2023-08-21 14:35:32 +02:00
parent 3d850da74f
commit 871c3840e5
5 changed files with 15 additions and 15 deletions

View File

@ -31,11 +31,11 @@ jobs:
with:
python-version: '3.10'
- run: pip install -r requirements-ci.txt
- run: curl --create-dirs --output .assets/examples/source.jpg https://huggingface.co/facefusion/examples/resolve/main/source.jpg
- run: curl --create-dirs --output .assets/examples/target-240p.mp4 https://huggingface.co/facefusion/examples/resolve/main/target-240p.mp4
- run: python run.py --source .assets/examples/source.jpg --target .assets/examples/target-240p.mp4 --output .assets/examples --trim-frame-end 24
- run: curl --create-dirs --output .assets/examples/source.jpg https://github.com/facefusion/facefusion-assets/releases/download/examples/source.jpg
- run: curl --create-dirs --output .assets/examples/target-240p.mp4 https://github.com/facefusion/facefusion-assets/releases/download/examples/target-240p.mp4
- run: python run.py --source .assets/examples/source.jpg --target .assets/examples/target-240p.mp4 --output .assets/examples --trim-frame-end 30
if: matrix.os != 'windows-latest'
- run: python run.py --source .assets\examples\source.jpg --target .assets\examples\target-240p.mp4 --output .assets\examples --trim-frame-end 24
- run: python run.py --source .assets\examples\source.jpg --target .assets\examples\target-240p.mp4 --output .assets\examples --trim-frame-end 30
if: matrix.os == 'windows-latest'
- run: ffprobe -show_format -show_streams .assets/examples/source-target-240p.mp4
if: matrix.os != 'windows-latest'

View File

@ -39,7 +39,7 @@ def clear_frame_processor() -> None:
def pre_check() -> bool:
download_directory_path = resolve_relative_path('../.assets/models')
conditional_download(download_directory_path, ['https://huggingface.co/facefusion/models/resolve/main/GFPGANv1.4.pth'])
conditional_download(download_directory_path, ['https://github.com/facefusion/facefusion-assets/releases/download/models/GFPGANv1.4.pth'])
return True

View File

@ -35,7 +35,7 @@ def clear_frame_processor() -> None:
def pre_check() -> bool:
download_directory_path = resolve_relative_path('../.assets/models')
conditional_download(download_directory_path, ['https://huggingface.co/facefusion/models/resolve/main/inswapper_128.onnx'])
conditional_download(download_directory_path, ['https://github.com/facefusion/facefusion-assets/releases/download/models/inswapper_128.onnx'])
return True

View File

@ -47,7 +47,7 @@ def clear_frame_processor() -> None:
def pre_check() -> bool:
download_directory_path = resolve_relative_path('../.assets/models')
conditional_download(download_directory_path, ['https://huggingface.co/facefusion/models/resolve/main/RealESRGAN_x4plus.pth'])
conditional_download(download_directory_path, ['https://github.com/facefusion/facefusion-assets/releases/download/models/RealESRGAN_x4plus.pth'])
return True

View File

@ -7,14 +7,14 @@ from facefusion.utilities import conditional_download
def pre_check() -> bool:
conditional_download('.assets/examples',
[
'https://huggingface.co/facefusion/examples/resolve/main/source.jpg',
'https://huggingface.co/facefusion/examples/resolve/main/target-240p.mp4',
'https://huggingface.co/facefusion/examples/resolve/main/target-360p.mp4',
'https://huggingface.co/facefusion/examples/resolve/main/target-540p.mp4',
'https://huggingface.co/facefusion/examples/resolve/main/target-720p.mp4',
'https://huggingface.co/facefusion/examples/resolve/main/target-1080p.mp4',
'https://huggingface.co/facefusion/examples/resolve/main/target-1440p.mp4',
'https://huggingface.co/facefusion/examples/resolve/main/target-2160p.mp4'
'https://github.com/facefusion/facefusion-assets/releases/download/examples/source.jpg',
'https://github.com/facefusion/facefusion-assets/releases/download/examples/target-240p.mp4',
'https://github.com/facefusion/facefusion-assets/releases/download/examples/target-360p.mp4',
'https://github.com/facefusion/facefusion-assets/releases/download/examples/target-540p.mp4',
'https://github.com/facefusion/facefusion-assets/releases/download/examples/target-720p.mp4',
'https://github.com/facefusion/facefusion-assets/releases/download/examples/target-1080p.mp4',
'https://github.com/facefusion/facefusion-assets/releases/download/examples/target-1440p.mp4',
'https://github.com/facefusion/facefusion-assets/releases/download/examples/target-2160p.mp4'
])
return True