mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2025-02-23 22:01:25 +01:00
Merge pull request #411 from madrang/beta
Apply force_full_precision if was set on device_select.
This commit is contained in:
commit
2432491bfc
@ -74,6 +74,8 @@ def device_select(device):
|
|||||||
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)
|
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:
|
if thread_data.force_full_precision:
|
||||||
print('forcing full precision on NVIDIA 16xx cards, to avoid green images. GPU detected: ', device_name)
|
print('forcing full precision on NVIDIA 16xx cards, to avoid green images. GPU detected: ', device_name)
|
||||||
|
# Apply force_full_precision now before models are loaded.
|
||||||
|
thread_data.precision = 'full'
|
||||||
|
|
||||||
thread_data.device = device
|
thread_data.device = device
|
||||||
thread_data.has_valid_gpu = True
|
thread_data.has_valid_gpu = True
|
||||||
|
Loading…
Reference in New Issue
Block a user