From b39af57f22cc6885b90a88200009d862b6eaef12 Mon Sep 17 00:00:00 2001 From: harisreedhar Date: Thu, 12 Feb 2026 21:11:00 +0530 Subject: [PATCH] hopefully fix CI --- facefusion/execution.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/facefusion/execution.py b/facefusion/execution.py index 2b3ea0e2..0109258f 100644 --- a/facefusion/execution.py +++ b/facefusion/execution.py @@ -113,12 +113,13 @@ def resolve_cache_path() -> str: def resolve_cudnn_conv_algo_search(execution_providers : List[ExecutionProvider]) -> str: - graphic_devices = detect_static_graphic_devices(tuple(execution_providers)) - product_names = ('GeForce GTX 1630', 'GeForce GTX 1650', 'GeForce GTX 1660') + if has_execution_provider('cuda') or has_execution_provider('tensorrt'): + graphic_devices = detect_static_graphic_devices(tuple(execution_providers)) + product_names = ('GeForce GTX 1630', 'GeForce GTX 1650', 'GeForce GTX 1660') - for graphic_device in graphic_devices: - if graphic_device.get('product').get('name').startswith(product_names): - return 'DEFAULT' + for graphic_device in graphic_devices: + if graphic_device.get('product').get('name').startswith(product_names): + return 'DEFAULT' return 'EXHAUSTIVE'