Host assets on GitHub
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user