mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2025-06-17 15:27:08 +02:00
Tell the user to reinstall ED if they're trying to use a 50xx GPU with Python 3.8-based Easy Diffusion
This commit is contained in:
parent
adfe24fdd0
commit
40801de615
@ -74,6 +74,15 @@ def update_modules():
|
|||||||
gpu_infos = get_gpus()
|
gpu_infos = get_gpus()
|
||||||
device_names = set(gpu.device_name for gpu in gpu_infos)
|
device_names = set(gpu.device_name for gpu in gpu_infos)
|
||||||
if any(BLACKWELL_DEVICES.search(device_name) for device_name in device_names):
|
if any(BLACKWELL_DEVICES.search(device_name) for device_name in device_names):
|
||||||
|
if sys.version_info < (3, 9):
|
||||||
|
print(
|
||||||
|
"\n###################################\n"
|
||||||
|
"NVIDIA 50xx series of graphics cards detected!\n\n"
|
||||||
|
"To use this graphics card, please install the latest version of Easy Diffusion from: https://github.com/easydiffusion/easydiffusion#installation"
|
||||||
|
"\n###################################\n"
|
||||||
|
)
|
||||||
|
sys.exit()
|
||||||
|
else:
|
||||||
print("Upgrading torch to support NVIDIA 50xx series of graphics cards")
|
print("Upgrading torch to support NVIDIA 50xx series of graphics cards")
|
||||||
torchruntime.install(["--force", "--upgrade", "torch", "torchvision"])
|
torchruntime.install(["--force", "--upgrade", "torch", "torchvision"])
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user