mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2025-06-20 09:57:49 +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
59ca8b0336
commit
f9c664dc3c
@ -74,8 +74,17 @@ 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):
|
||||||
print("Upgrading torch to support NVIDIA 50xx series of graphics cards")
|
if sys.version_info < (3, 9):
|
||||||
torchruntime.install(["--force", "--upgrade", "torch", "torchvision"])
|
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")
|
||||||
|
torchruntime.install(["--force", "--upgrade", "torch", "torchvision"])
|
||||||
|
|
||||||
for module_name, allowed_versions in modules_to_check.items():
|
for module_name, allowed_versions in modules_to_check.items():
|
||||||
if os.path.exists(f"src/{module_name}"):
|
if os.path.exists(f"src/{module_name}"):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user