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

Avoid error from None in get_learned_conditioning #15191

Merged
merged 1 commit into from
Mar 9, 2024

Conversation

KohakuBlueleaf
Copy link
Collaborator

Description

the default width/height in prompt_parser.SdConditioning is None
In some case (especially custom script), this will cause error when running some custom scripts with SDXL model with hires-fix.

So I add a check to ensure there is no None value.

Checklist:

@KohakuBlueleaf
Copy link
Collaborator Author

This PR is not related to any JS things so I think the ESlint is from other commit.

@AUTOMATIC1111 AUTOMATIC1111 merged commit 110e3d7 into dev Mar 9, 2024
5 of 6 checks passed
@catboxanon catboxanon deleted the fix-default-in-get_learned_conditioning branch November 1, 2024 16:58
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