Commit Graph

18 Commits (8a8a42e4168c7edf89ff7030232f87ae3ee56b8b)

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 ef65fec031
Move enum (#2845)
* Move enums to enums.py

* Add missing import

* Remove unused import
2024-05-04 17:56:51 -04:00
Chenlei Hu 784b6d01a7
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
2024-05-04 12:25:00 -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 ed373ed0e1
Add IPAdapter advanced weighting [Instant Style] (#2767)
* rename variable

* nit

* add transformer index

* nit

* API support

* Fix transformer_index alignment issue

* Add weight control panel

* fix sdxl

* free edit

* clear advanced weighting

* nit

* Add assertion
2024-04-20 01:14:22 -04:00
Chengsong Zhang 461f8c5f16
AnimateDiff 2.0.0-a ControlNet part (#2661)
* ad

* ad

* sparsectrl and keyframe, excluding ip-adapter emb interpolation

* fix ruff

* ipadapter prompt travel. now implementation has been finished, next step test every feature

* sparsectrl works, ip-adapter still not working

* everything but i2i batch is working properly

* everything but i2i batch is working properly, fix ruff
2024-03-02 06:12:54 -06:00
Chenlei Hu 9473a777c7
Instant ID (#2580)
* instant id

* Add extra control type enum

* wip

* wip

* Fix all obvious issues

* Fix insightface model issue

* append keypoints images

* ui

* Fix res

* Remove model2

* separate unit control

* Fix context issue

* insightface model download
2024-01-27 17:29:07 -05:00
Chenlei Hu e081a3a0e2
Properly cache ip-adapter models (#2586) 2024-01-25 19:34:23 -05:00
Chenlei Hu dbd997138a
Support multi-inputs (#2525)
* wip

*  Add multi-input support

* 🐛 Fix API issue
2024-01-20 22:59:56 -05:00
Chenlei Hu ba05e1ea20
🔧 Loosen is_compatible SD version check (#2490) 2024-01-17 10:25:41 -05:00
Chenlei Hu 8bd8057cca
🐛 Fix hr_option parsing (#2398) 2024-01-03 08:50:57 -05:00
Chenlei Hu ce3cb3de8b
🐛 Replace 3.10 match statement (#2383) 2024-01-01 14:37:30 -05:00
Chenlei Hu 7aaf263208
Add hr_option (Both, High res only, Low res only) (#2379)
*  Add hr_option

🎨 Only show when relevant

 Add unit test

* 🐛 fix per-unit
2024-01-01 00:06:55 -05:00
Chenlei Hu 11019f4820
Support advanced_weighting in API (#2368)
*  Support advanced_weighting in API

* 📝 add note

* 🐛 nits

* 📝 Add examples
2023-12-30 17:35:52 -05:00
lllyasviel 47dfefa54f
StyleAlign (#2294)
StyleAlign
2023-12-06 06:49:05 -08:00
Chenlei Hu e2e6a1b494
🔊 Meaningful error message for sd version conflict (#2268)
* 🚚 Move enums

* 🔊 Meaningful error message for sd version conflict
2023-11-19 21:49:14 -05:00
Chenlei Hu 45eb903538
Filter cn model by sd version active (#2267) 2023-11-19 17:49:46 -05:00
Chenlei Hu 9e61022428
🔧 Support SDXL in tests (#2254)
* 🔧 Support SDXL in tests

* 📝 docs

* nits
2023-11-12 14:12:54 -05:00