From 0d62123a0b0da7ec3dfe758e5509e9e021d9c71b Mon Sep 17 00:00:00 2001 From: Marc-Andre Ferland Date: Sat, 22 Oct 2022 21:28:12 -0400 Subject: [PATCH] Replaced missing gpu_name by device_name --- ui/sd_internal/runtime.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/sd_internal/runtime.py b/ui/sd_internal/runtime.py index f0e5c57a..9d4ee0d9 100644 --- a/ui/sd_internal/runtime.py +++ b/ui/sd_internal/runtime.py @@ -73,7 +73,7 @@ def device_select(device): # otherwise these NVIDIA cards create green images thread_data.force_full_precision = ('nvidia' in device_name.lower() or 'geforce' in device_name.lower()) and (' 1660' in device_name or ' 1650' in device_name) if thread_data.force_full_precision: - print('forcing full precision on NVIDIA 16xx cards, to avoid green images. GPU detected: ', gpu_name) + print('forcing full precision on NVIDIA 16xx cards, to avoid green images. GPU detected: ', device_name) thread_data.device = device thread_data.has_valid_gpu = True