Describe the bug
Across several files, a bool statement is wrongly constructed IMO
One example:
| CTX=init_empty_weightsifis_accelerate_availableelsenullcontext |
=> instead of checking for truthiness of the function object
is_accelerate_available itself, it should check for the truthiness of its return value I believe. So parentheses are needed, to call this function.
Proposed fix:
CTX=init_empty_weightsifis_accelerate_available() elsenullcontext
Reproduction
see
| CTX=init_empty_weightsifis_accelerate_availableelsenullcontext |
Logs
No response
System Info
not relevant
Who can help?
@yiyixuxu@say
Describe the bug
Across several files, a bool statement is wrongly constructed IMO
One example:
diffusers/scripts/convert_sd3_to_diffusers.py
Line 14 in c96bfa5
is_accelerate_availableitself, it should check for the truthiness of its return value I believe. So parentheses are needed, to call this function.Proposed fix:
Reproduction
see
diffusers/scripts/convert_sd3_to_diffusers.py
Line 14 in c96bfa5
Logs
No response
System Info
not relevant
Who can help?
@yiyixuxu@say