Refactor choices, imports and naming
This commit is contained in:
parent
2836b331cd
commit
af04c946d4
@ -37,7 +37,7 @@ execution_provider_set : ExecutionProviderSet =\
|
||||
'rocm': 'ROCMExecutionProvider',
|
||||
'tensorrt': 'TensorrtExecutionProvider'
|
||||
}
|
||||
execution_provider : List[ExecutionProvider] = list(execution_provider_set.keys())
|
||||
execution_providers : List[ExecutionProvider] = list(execution_provider_set.keys())
|
||||
download_provider_set : DownloadProviderSet =\
|
||||
{
|
||||
'github': 'https://github.com/facefusion/facefusion-assets/releases/download/{base_name}/{file_name}',
|
||||
|
@ -20,4 +20,4 @@ def test_multiple_execution_providers() -> None:
|
||||
'CPUExecutionProvider'
|
||||
]
|
||||
|
||||
assert create_inference_execution_providers('1', ['cpu', 'cuda']) == execution_providers
|
||||
assert create_inference_execution_providers('1', [ 'cpu', 'cuda' ]) == execution_providers
|
||||
|
Loading…
Reference in New Issue
Block a user