mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2024-11-25 01:34:38 +01:00
Hotfix for older accelerate version in the Windows installer
This commit is contained in:
parent
21644adbe1
commit
54ac1f7169
@ -127,6 +127,16 @@ def update_modules():
|
|||||||
if module_name in modules_to_log:
|
if module_name in modules_to_log:
|
||||||
print(f"{module_name}: {version(module_name)}")
|
print(f"{module_name}: {version(module_name)}")
|
||||||
|
|
||||||
|
# hotfix accelerate
|
||||||
|
accelerate_version = version("accelerate")
|
||||||
|
if accelerate_version is None:
|
||||||
|
install("accelerate", "0.23.0")
|
||||||
|
else:
|
||||||
|
accelerate_version = accelerate_version.split(".")
|
||||||
|
accelerate_version = tuple(map(int, accelerate_version))
|
||||||
|
if accelerate_version < (0, 23):
|
||||||
|
install("accelerate", "0.23.0")
|
||||||
|
|
||||||
|
|
||||||
### utilities
|
### utilities
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user