Industry leading face manipulation platform
Next 1.3.1 (#149)
Henry Ruhsea8ecf7db092
diff --git a/.github/preview.png b/.github/preview.pngindex fc01d8c7..ffcff320 100644Binary files a/.github/preview.png and b/.github/preview.png differdiff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex 5bd2728d..39bf14ee 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -30,6 +30,6 @@ jobs:uses: actions/setup-python@v2with:python-version: '3.10'- - run: python install.py --torch cpu --onnxruntime cpu+ - run: python install.py --torch cpu --onnxruntime default- run: pip install pytest- run: pytestdiff --git a/facefusion/installer.py b/facefusion/installer.pyindex 69154b40..37f788a0 100644--- a/facefusion/installer.py+++ b/facefusion/installer.py@@ -10,13 +10,14 @@ from facefusion import metadata, wordingTORCH : Dict[str, str] =\{- 'cpu': 'https://download.pytorch.org/whl/cpu',- 'cuda': 'https://download.pytorch.org/whl/cu118',- 'rocm': 'https://download.pytorch.org/whl/rocm5.6'+ 'default': 'default',+ 'cpu': 'cpu',+ 'cuda': 'cu118',+ 'rocm': 'rocm5.6'}ONNXRUNTIMES : Dict[str, Tuple[str, str]] =\{- 'cpu': ('onnxruntime', '1.16.0 '),+ 'default': ('onnxruntime', '1.16.0'),'cuda': ('onnxruntime-gpu', '1.16.0'),'coreml-legacy': ('onnxruntime-coreml', '1.13.1'),'coreml-silicon': ('onnxruntime-silicon', '1.16.0'),@@ -58,11 +59,13 @@ def run(program : ArgumentParser) -> None:])if answers is not None:torch = answers['torch']- torch_url = TORCH[torch]+ torch_wheel = TORCH[torch]onnxruntime = answers['onnxruntime']onnxruntime_name, onnxruntime_version = ONNXRUNTIMES[onnxruntime]subprocess.call([ 'pip', 'uninstall', 'torch', '-y' ])- subprocess.call([ 'pip', 'install', '-r', 'requirements.txt', '--extra-index-url', torch_url ])- if onnxruntime != 'cpu':- subprocess.call([ 'pip', 'uninstall', 'onnxruntime', onnxruntime_name, '-y' ])+ if torch_wheel == 'default':+ subprocess.call([ 'pip', 'install', '-r', 'requirements.txt' ])+ else:+ subprocess.call([ 'pip', 'install', '-r', 'requirements.txt', '--extra-index-url', 'https://download.pytorch.org/whl/' + torch_wheel ])+ subprocess.call([ 'pip', 'uninstall', 'onnxruntime', onnxruntime_name, '-y' ])subprocess.call([ 'pip', 'install', onnxruntime_name + '==' + onnxruntime_version ])diff --git a/facefusion/metadata.py b/facefusion/metadata.pyindex 807f8513..d58f8b23 100644--- a/facefusion/metadata.py+++ b/facefusion/metadata.py@@ -2,7 +2,7 @@ METADATA =\{'name': 'FaceFusion','description': 'Next generation face swapper and enhancer',- 'version': '1.3.0',+ 'version': '1.3.1','license': 'MIT','author': 'Henry Ruhs','url': 'https://facefusion.io'