-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Validate ControlNetUnit using pydantic #2847
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
huchenlei
changed the title
Add pydantic ControlNetUnit
Validate ControlNetUnit using pydantic
May 5, 2024
Add test config Add images field Adjust image field handling fix various ui Fix most UI issues accept greyscale image/mask Fix infotext Fix preset Fix infotext nit Move infotext parsing test Remove preset Remove unused js code Adjust test payload By default disable unit refresh enum usage Align resize mode change test func name remove unused import nit Change default handling Skip bound check when not enabled Fix batch Various batch fix Disable batch hijack test adjust test fix test expectations Fix unit copy nit Fix test failures
huchenlei
added a commit
that referenced
this pull request
May 6, 2024
* Replace mask upload with effective region mask (#2830) * 📝 Update to version v1.1.446 (#2832) * 📝 Update to version v1.1.446 * update readme * Fix blur_gaussian slider param (#2834) * Support PuLID (#2838) * Add preprocessors * Fix resolution param * Fix various issues * Add PuLID attn * remove unused import * Resize img before passing to facexlib * safe unload * 📝 Update to version v1.1.447 (#2842) * 📝 Update to version v1.1.447 * update readme * Allow pulid accept multiple inputs (#2843) * Quick fix enum issue (#2844) * Move enum (#2845) * Move enums to enums.py * Add missing import * Remove unused import * Remove legacy test (#2846) * Quickfix Enum Issue 2 (#2849) * Drop external_code. prefix (#2850) * Drop external_code. prefix * Remove unused imports * fix test (#2851) * Adjust test template's threshold a/b value (#2852) * Validate ControlNetUnit using pydantic (#2847) * Add Pydantic ControlNetUnit Add test config Add images field Adjust image field handling fix various ui Fix most UI issues accept greyscale image/mask Fix infotext Fix preset Fix infotext nit Move infotext parsing test Remove preset Remove unused js code Adjust test payload By default disable unit refresh enum usage Align resize mode change test func name remove unused import nit Change default handling Skip bound check when not enabled Fix batch Various batch fix Disable batch hijack test adjust test fix test expectations Fix unit copy nit Fix test failures * Change script args back to ControlNetUnit for compatibility * import enum for compatibility * Fix unit test * simplify unfold * Add test coverage * handle directly set np image * re-enable batch test * Add back canvas scribble support * nit * Fix batch hijack test * 📝 Update to version v1.1.448 (#2853) * Update UI image (#2855) * Fix duplicated version logging (#2856)
This was referenced May 16, 2024
1 task
DrCyanide
added a commit
to DrCyanide/cyanic-sd-krita
that referenced
this pull request
May 20, 2024
A merge of ControlNet broke compatibility with using number instead of the full enum. Mikubill/sd-webui-controlnet#2847
1 task
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Previously the logic of handling various inputs scattered everywhere. This PR creates Pydantic version of ControlNetUnit to gather all input processing to a single location.
Other Improvements
Breaking Changes:
Minor side effects:
enabled
defaults to False instead of True.