From 427861cf1328cebd1b71c4535753914227808e4f Mon Sep 17 00:00:00 2001 From: JeLuF Date: Thu, 1 Dec 2022 00:59:12 +0100 Subject: [PATCH] Add Quadro T2000 to force_full_precision list. --- ui/sd_internal/device_manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/sd_internal/device_manager.py b/ui/sd_internal/device_manager.py index 0e170cb9..d2c6430b 100644 --- a/ui/sd_internal/device_manager.py +++ b/ui/sd_internal/device_manager.py @@ -101,7 +101,7 @@ def device_init(thread_data, device): # Force full precision on 1660 and 1650 NVIDIA cards to avoid creating green images device_name = thread_data.device_name.lower() - thread_data.force_full_precision = ('nvidia' in device_name or 'geforce' in device_name) and (' 1660' in device_name or ' 1650' in device_name) + thread_data.force_full_precision = (('nvidia' in device_name or 'geforce' in device_name) and (' 1660' in device_name or ' 1650' in device_name)) or ('Quadro T2000' in device_name) if thread_data.force_full_precision: print('forcing full precision on NVIDIA 16xx cards, to avoid green images. GPU detected: ', thread_data.device_name) # Apply force_full_precision now before models are loaded.