Skip to content

Avoid error from None in get_learned_conditioning#15191

Merged
AUTOMATIC1111 merged 1 commit intodevfrom
fix-default-in-get_learned_conditioning
Mar 9, 2024
Merged

Avoid error from None in get_learned_conditioning#15191
AUTOMATIC1111 merged 1 commit intodevfrom
fix-default-in-get_learned_conditioning

Conversation

@KohakuBlueleaf
Copy link
Copy Markdown
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
Copy Markdown
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
@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