Commit Graph

9 Commits (59c43499ea6121aea2e49efd6394975d430e936e)

Author SHA1 Message Date
Chenlei Hu 59c43499ea
Revert "Set default value of ControlNetUnit.enabled to True (#2912)" (#2919)
This reverts commit a5457dcc1c.
2024-05-20 12:32:08 -04:00
Chenlei Hu a5457dcc1c
Set default value of ControlNetUnit.enabled to True (#2912) 2024-05-19 21:22:14 -04:00
Chenlei Hu 58f620c921
Add PuLID VRAM leak reproduction tests (#2891)
* Add PuLID detect test

* Add PuLID generation test
2024-05-14 22:15:27 -04:00
Chenlei Hu e33c046158
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
2024-05-06 15:40:34 -04:00
Chenlei Hu 1b95e476ec
Adjust test template's threshold a/b value (#2852) 2024-05-05 19:15:39 -04:00
Chenlei Hu 282c619696
Fix inpaint preprocessors (#2763)
* wip

* adjust test
2024-04-18 10:30:48 -04:00
Chenlei Hu 442398bb9f
Port SDForge's preprocessor structure (#2754)
* wip

* wip2

* wip3

* fix issues

* Add scribble xdog

* port legacy processors

* nit

* Add tests

* Fix modules test

* Add back normal_dsine

* Remove legacy code

* Remove code

* Add tests

* rename param

* Linter ignore

* fix is_image

* fix is_image

* nit

* nit

* Better assertion message

* Add back ip-adapter-auto

* Add test

* Fix various tag matching

* fix

* Add back preprocessor cache

* Add back sparse ctrl

* fix test failure

* Add log
2024-04-17 22:28:56 -04:00
Chenlei Hu 8af7577c45
Change API processor_res/threshold_a/threshold_b default values (#2746)
* Change API threshold_a/threshold_b/res default values

* move code

* Add tests

* update test

* Add log_context for testing

* More test

* nit

* encoding

* Change cq log encoding
2024-04-15 09:46:14 -04:00
Chenlei Hu f6f36e3bbf
Add 'image_mask' field for compatibility with SD Forge (#2717)
* Add 'image_mask' field for compatibility with SD Forge

* Merge img2img test and txt2img tests

* Reduce target size to speed up CQ
2024-03-30 17:32:06 -04:00