Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix_sdxl_light_test_scrip #735

Merged
merged 2 commits into from
Mar 18, 2024
Merged

fix_sdxl_light_test_scrip #735

merged 2 commits into from
Mar 18, 2024

Conversation

clackhan
Copy link
Contributor

No description provided.

@clackhan clackhan requested a review from jackalcooper March 18, 2024 03:51
Comment on lines 13 to 19
diffusers_0220_v = version.parse("0.22.0")
diffusers_version = version.parse(importlib.metadata.version("diffusers"))

if diffusers_version < diffusers_0220_v:
USE_PEFT_BACKEND = False
else:
from diffusers.utils import USE_PEFT_BACKEND
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

直接用 hasattr 是不是简单点?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

直接用 hasattr 是不是简单点?

改了,用了try

@jackalcooper jackalcooper merged commit cef3251 into main Mar 18, 2024
3 of 5 checks passed
@jackalcooper jackalcooper deleted the fix_sdxl_light_test_scrip branch March 18, 2024 05:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants