fix providers for non-nvidia

This commit is contained in:
Somdev Sangwan 2023-06-04 14:03:55 +05:30 committed by GitHub
parent 2606be04ba
commit 102f783a2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -98,7 +98,9 @@ def pre_check():
if CUDNN_VERSION > 8910: if CUDNN_VERSION > 8910:
quit(f"CUDNN version {CUDNN_VERSION} is not supported - please downgrade to 8.9.1") quit(f"CUDNN version {CUDNN_VERSION} is not supported - please downgrade to 8.9.1")
else: else:
roop.globals.providers = ['CPUExecutionProvider'] for provider in ['CUDAExecutionProvider', 'TensorrtExecutionProvider']:
if provider in roop.globals.providers:
roop.globals.providers = roop.globals.providers.remove(provider)
def get_video_frame(video_path, frame_number = 1): def get_video_frame(video_path, frame_number = 1):
@ -250,4 +252,4 @@ def run():
create_test_preview create_test_preview
) )
window.mainloop() window.mainloop()