mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2025-04-25 20:08:16 +02:00
Print GPU name
This commit is contained in:
parent
3668c87e0d
commit
1d4b34c0dd
@ -58,6 +58,7 @@ has_valid_gpu = False
|
|||||||
force_full_precision = False
|
force_full_precision = False
|
||||||
try:
|
try:
|
||||||
gpu_name = torch.cuda.get_device_name(torch.cuda.current_device())
|
gpu_name = torch.cuda.get_device_name(torch.cuda.current_device())
|
||||||
|
print('detected: ', gpu_name)
|
||||||
has_valid_gpu = True
|
has_valid_gpu = True
|
||||||
force_full_precision = ('nvidia' in gpu_name.lower()) and ('1660' in gpu_name or ' 1650' in gpu_name) # otherwise these NVIDIA cards create green images
|
force_full_precision = ('nvidia' in gpu_name.lower()) and ('1660' in gpu_name or ' 1650' in gpu_name) # otherwise these NVIDIA cards create green images
|
||||||
if force_full_precision:
|
if force_full_precision:
|
||||||
|
Loading…
Reference in New Issue
Block a user