Commit Graph

1211 Commits (8a8a42e4168c7edf89ff7030232f87ae3ee56b8b)

Author SHA1 Message Date
Chenlei Hu 69d80e5a57
Add Anyline Preprocessor (#2904) 2024-05-19 11:12:49 -04:00
Chenlei Hu 681de2c4f0
Fix PuLID VRAM leak (#2902) 2024-05-18 22:48:29 -04:00
Chenlei Hu 5d7529915b
Restore unit state update listeners (#2888) 2024-05-13 21:07:50 -04:00
Sean 3b4eedd90f
Fix upscale script checking (#2881) 2024-05-11 09:05:51 -04:00
Chenlei Hu 04024b4c82
Prevent PuLID preprocessor unload. Temp Fix VRAM leak. (#2882) 2024-05-10 23:49:01 -04:00
Chenlei Hu aa0a72afcf
Display effection region mask upload regardless of input mode (#2873) 2024-05-10 13:43:05 -04:00
Chenlei Hu 6a86fdd78d
Fix duplicated version logging (#2856) 2024-05-06 16:31:37 -04:00
Chenlei Hu d037c2d3e1
📝 Update to version v1.1.448 (#2853) 2024-05-06 15:41:35 -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 abafad27fc
Drop external_code. prefix (#2850)
* Drop external_code. prefix

* Remove unused imports
2024-05-05 11:06:15 -04:00
Chenlei Hu 2c59fec402
Quickfix Enum Issue 2 (#2849) 2024-05-05 10:07:04 -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 2a28f089da
Quick fix enum issue (#2844) 2024-05-04 17:13:43 -04:00
Chenlei Hu 3d75bd08e3
📝 Update to version v1.1.447 (#2842)
* 📝 Update to version v1.1.447

* update readme
2024-05-04 12:29:05 -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 36a310f599
Fix blur_gaussian slider param (#2834) 2024-05-02 12:01:02 -04:00
Chenlei Hu e90491ad25
📝 Update to version v1.1.446 (#2832)
* 📝 Update to version v1.1.446

* update readme
2024-04-30 23:05:06 -04:00
Chenlei Hu 6258103152
Replace mask upload with effective region mask (#2830) 2024-04-30 23:01:54 -04:00
Chenlei Hu 960e93079d
Use A1111's ToolButton impl (#2820)
* Use A1111's ToolButton impl

* Use FormHTML
2024-04-27 21:36:10 -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 3e95f393b8
Keep active preprocessor models (#2814) 2024-04-27 00:39:16 -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 b2284af526
Fix xyz script module check (#2810) 2024-04-25 15:45:04 -04:00
Chenlei Hu 22f63dc2dc
Support lama inpaint and CLIP mask in `controlnet/detect` API endpoint (#2809)
* api

* notes

* Add tests

* nit

* nit

* nit

* Fix shuffle
2024-04-25 08:50:03 -04:00
Chenlei Hu f1b536ecf0
Fix canny greyscale (#2804) 2024-04-24 17:07:26 -04:00
missionfloyd 281c7154f2
Display control type filter as dropdown (#2801)
* Add option to display control type as a dropdown

* Fix tab active control type

* nits

---------

Co-authored-by: huchenlei <chenlei.hu@mail.utoronto.ca>
2024-04-24 16:45:50 -04:00
Chenlei Hu f0a94cb2c4
Restore various control type changes (#2799)
* Merge sketch tag into scribble

* Marge blur tag into tile
2024-04-23 11:32:41 -04:00
Chenlei Hu c3e5fd4c1b
Fix control type infer in preset panel (#2792) 2024-04-22 17:41:10 -04:00
Chenlei Hu 471f564651
Add preset ip-adapter_sd15_plus (#2789) 2024-04-22 10:34:29 -04:00
Chenlei Hu d22ab8a371
Add ipadapter composition presets (#2779) 2024-04-21 16:23:35 -04:00
Chenlei Hu 59d5998823
📝 Update to version v1.1.445 (#2769) 2024-04-20 01:15:17 -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
Chenlei Hu fa72f3e7b5
Fix preset (#2766) 2024-04-18 20:08:00 -04:00
Chenlei Hu 282c619696
Fix inpaint preprocessors (#2763)
* wip

* adjust test
2024-04-18 10:30:48 -04:00
Chenlei Hu 3a856459a9
📝 Update to version v1.1.444 (#2759) 2024-04-17 22:29:04 -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 bbcae309d1
Save/Use CLIP output in API (#2590)
* Add API support

* Add assertion

* Add test

* nit
2024-04-15 15:08:51 -04:00
Chenlei Hu eca5b0acfd
Do not check ip-adapter-auto when unit disabled (#2751) 2024-04-15 13:25:36 -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 a999981416
Make ip-adapter face_id pick largest face instead of first face (#2745)
* Make ip-adapter face_id pick largest face instead of first face

* nit
2024-04-14 15:42:39 -04:00
Chenlei Hu cc571f1425
Fix insightface BGR channel issue (#2744) 2024-04-14 15:15:46 -04:00
Chenlei Hu eb451a007f
Fix faceid (#2727) 2024-03-31 23:54:20 -04:00
Chenlei Hu e42108160c
Remove unused field bypass_average (#2725) 2024-03-31 16:49:23 -04:00
Chenlei Hu 55d1aae1ee
Add v11 ipadapter presets (#2724) 2024-03-31 15:50:49 -04:00
Chenlei Hu 500457659c
📝 Update to version v1.1.443 (#2722) 2024-03-31 12:14:00 -04:00
Chenlei Hu a5f9d59717
Add clip mask support (#2721)
* Add clip mask support

* nit

* Add tests
2024-03-31 12:13:51 -04:00
Chenlei Hu 807a883ed6
Move ad batch input (#2720)
* Move ad batch input

* nit

* nit
2024-03-30 23:31:12 -04:00
Chenlei Hu faddb8bb9c
Refactor ipadapter (#2719) 2024-03-30 22:27:36 -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 fcd542e547
Unify IP-Adapter preprocessor (#2710) 2024-03-29 23:22:17 -04:00