Next 1.3.1 (#149)
* Use default flags for installer * Remove condition for cpu * Okay, here we have default torch * Update preview * Fix CI
This commit is contained in:
parent
5591b03a88
commit
ea8ecf7db0
BIN
.github/preview.png
vendored
BIN
.github/preview.png
vendored
Binary file not shown.
Before Width: | Height: | Size: 1.1 MiB After Width: | Height: | Size: 1.1 MiB |
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@ -30,6 +30,6 @@ jobs:
|
|||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v2
|
||||||
with:
|
with:
|
||||||
python-version: '3.10'
|
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: pip install pytest
|
||||||
- run: pytest
|
- run: pytest
|
||||||
|
@ -10,13 +10,14 @@ from facefusion import metadata, wording
|
|||||||
|
|
||||||
TORCH : Dict[str, str] =\
|
TORCH : Dict[str, str] =\
|
||||||
{
|
{
|
||||||
'cpu': 'https://download.pytorch.org/whl/cpu',
|
'default': 'default',
|
||||||
'cuda': 'https://download.pytorch.org/whl/cu118',
|
'cpu': 'cpu',
|
||||||
'rocm': 'https://download.pytorch.org/whl/rocm5.6'
|
'cuda': 'cu118',
|
||||||
|
'rocm': 'rocm5.6'
|
||||||
}
|
}
|
||||||
ONNXRUNTIMES : Dict[str, Tuple[str, str]] =\
|
ONNXRUNTIMES : Dict[str, Tuple[str, str]] =\
|
||||||
{
|
{
|
||||||
'cpu': ('onnxruntime', '1.16.0 '),
|
'default': ('onnxruntime', '1.16.0'),
|
||||||
'cuda': ('onnxruntime-gpu', '1.16.0'),
|
'cuda': ('onnxruntime-gpu', '1.16.0'),
|
||||||
'coreml-legacy': ('onnxruntime-coreml', '1.13.1'),
|
'coreml-legacy': ('onnxruntime-coreml', '1.13.1'),
|
||||||
'coreml-silicon': ('onnxruntime-silicon', '1.16.0'),
|
'coreml-silicon': ('onnxruntime-silicon', '1.16.0'),
|
||||||
@ -58,11 +59,13 @@ def run(program : ArgumentParser) -> None:
|
|||||||
])
|
])
|
||||||
if answers is not None:
|
if answers is not None:
|
||||||
torch = answers['torch']
|
torch = answers['torch']
|
||||||
torch_url = TORCH[torch]
|
torch_wheel = TORCH[torch]
|
||||||
onnxruntime = answers['onnxruntime']
|
onnxruntime = answers['onnxruntime']
|
||||||
onnxruntime_name, onnxruntime_version = ONNXRUNTIMES[onnxruntime]
|
onnxruntime_name, onnxruntime_version = ONNXRUNTIMES[onnxruntime]
|
||||||
subprocess.call([ 'pip', 'uninstall', 'torch', '-y' ])
|
subprocess.call([ 'pip', 'uninstall', 'torch', '-y' ])
|
||||||
subprocess.call([ 'pip', 'install', '-r', 'requirements.txt', '--extra-index-url', torch_url ])
|
if torch_wheel == 'default':
|
||||||
if onnxruntime != 'cpu':
|
subprocess.call([ 'pip', 'install', '-r', 'requirements.txt' ])
|
||||||
subprocess.call([ 'pip', 'uninstall', 'onnxruntime', onnxruntime_name, '-y' ])
|
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 ])
|
subprocess.call([ 'pip', 'install', onnxruntime_name + '==' + onnxruntime_version ])
|
||||||
|
@ -2,7 +2,7 @@ METADATA =\
|
|||||||
{
|
{
|
||||||
'name': 'FaceFusion',
|
'name': 'FaceFusion',
|
||||||
'description': 'Next generation face swapper and enhancer',
|
'description': 'Next generation face swapper and enhancer',
|
||||||
'version': '1.3.0',
|
'version': '1.3.1',
|
||||||
'license': 'MIT',
|
'license': 'MIT',
|
||||||
'author': 'Henry Ruhs',
|
'author': 'Henry Ruhs',
|
||||||
'url': 'https://facefusion.io'
|
'url': 'https://facefusion.io'
|
||||||
|
Loading…
Reference in New Issue
Block a user