forked from extern/easydiffusion
Print GPU name
This commit is contained in:
parent
3668c87e0d
commit
1d4b34c0dd
@ -58,6 +58,7 @@ has_valid_gpu = False
|
||||
force_full_precision = False
|
||||
try:
|
||||
gpu_name = torch.cuda.get_device_name(torch.cuda.current_device())
|
||||
print('detected: ', gpu_name)
|
||||
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
|
||||
if force_full_precision:
|
||||
|
Loading…
Reference in New Issue
Block a user