Commit Graph

7 Commits (58f620c921030eea0f3528d68849f7e052d44e3f)

Author SHA1 Message Date
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 7b4571e20b
Add effective_region_mask for ControlNet [API] (#2818)
* Add control model type check

* Implement region mask for ControlNet
2024-04-27 17:05:28 -04:00
Chenlei Hu cb8fd242b1
Add effective_region_mask for ipadapter [API] (#2785)
* Add effective_region_mask for ipadapter [API]

* Fix various issues & Add tests

* nit
2024-04-26 23:24:23 -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
Chenlei Hu 4e9ac19cbc
Migrate detect_test and improve coverage (#2715)
* Migrate detection tests

* Add test results

* Skip cq disabled tests
2024-03-30 15:33:57 -04:00