mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2025-04-18 16:38:30 +02:00
Allow GPUs with less than 2 GB, instead of restricting to 3 GB
This commit is contained in:
parent
1605c5fbcc
commit
063d14d2ac
@ -224,9 +224,9 @@ def is_device_compatible(device):
|
|||||||
try:
|
try:
|
||||||
_, mem_total = torch.cuda.mem_get_info(device)
|
_, mem_total = torch.cuda.mem_get_info(device)
|
||||||
mem_total /= float(10 ** 9)
|
mem_total /= float(10 ** 9)
|
||||||
if mem_total < 3.0:
|
if mem_total < 2.0:
|
||||||
if is_device_compatible.history.get(device) == None:
|
if is_device_compatible.history.get(device) == None:
|
||||||
log.warn(f"GPU {device} with less than 3 GB of VRAM is not compatible with Stable Diffusion")
|
log.warn(f"GPU {device} with less than 2 GB of VRAM is not compatible with Stable Diffusion")
|
||||||
is_device_compatible.history[device] = 1
|
is_device_compatible.history[device] = 1
|
||||||
return False
|
return False
|
||||||
except RuntimeError as e:
|
except RuntimeError as e:
|
||||||
|
Loading…
Reference in New Issue
Block a user