Set inswapper according to execution provider
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
from facefusion.execution import encode_execution_providers, decode_execution_providers, apply_execution_provider_options
|
||||
from facefusion.execution import encode_execution_providers, decode_execution_providers, has_execution_provider, apply_execution_provider_options
|
||||
|
||||
|
||||
def test_encode_execution_providers() -> None:
|
||||
@@ -9,6 +9,11 @@ def test_decode_execution_providers() -> None:
|
||||
assert decode_execution_providers([ 'cpu' ]) == [ 'CPUExecutionProvider' ]
|
||||
|
||||
|
||||
def test_has_execution_provider() -> None:
|
||||
assert has_execution_provider('CPUExecutionProvider') is True
|
||||
assert has_execution_provider('InvalidExecutionProvider') is False
|
||||
|
||||
|
||||
def test_multiple_execution_providers() -> None:
|
||||
execution_provider_with_options =\
|
||||
[
|
||||
|
||||
Reference in New Issue
Block a user