Commit Graph

649 Commits (648025ba6bc99df175d896a6aaf793cf72574b1c)

Author SHA1 Message Date
Chenlei Hu 97c8598c8b
More robust ipadapter detection (#2936)
* More robust ipadapter detection

* Remove dep
2024-05-27 11:26:28 -04:00
Chenlei Hu a5c0da5a23
Fix ControlNet batch (#2909) 2024-05-19 15:56:46 -04:00
Chenlei Hu 681de2c4f0
Fix PuLID VRAM leak (#2902) 2024-05-18 22:48:29 -04:00
Sean 3b4eedd90f
Fix upscale script checking (#2881) 2024-05-11 09:05:51 -04:00
Chenlei Hu 6a86fdd78d
Fix duplicated version logging (#2856) 2024-05-06 16:31:37 -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 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 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 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
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 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 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 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 fcd542e547
Unify IP-Adapter preprocessor (#2710) 2024-03-29 23:22:17 -04:00
Chenlei Hu 0114c9aaa3
Split controlmodel_ipadapter file (#2709) 2024-03-29 16:28:57 -04:00
Chengsong Zhang 489a399ef0
fix (#2678) 2024-03-04 21:48:59 -06: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 44e0875956
Fix linter issues under script (#2667) 2024-02-28 23:58:34 -05:00
Chenlei Hu 7c05d36948
:load_sound: Print control_model_type when loading model (#2612) 2024-01-31 21:45:22 -05:00
Chenlei Hu bd2644b794
🔧 Increase default model cache size to 2 (#2599) 2024-01-28 18:14:53 -05:00
Chenlei Hu 585b8ea17d
wip (#2598) 2024-01-28 17:58:45 -05:00
Chenlei Hu a773a1a816
Real multi-inputs for all IP-Adapters (#2594)
* Add adapter tests

* real multi inputs

* multi-inputs

* Fix hook

* Use real multi for instant id
2024-01-28 12:44:40 -05: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 fc3b521581
🐛 Fix ControlLoRA (#2559) 2024-01-23 11:22:13 -05:00
Chenlei Hu 7fb40bf803
🔧 Explicit error on ipadapter invalid preprocessor/model pair (#2551)
* 🔧 Explicit error on ipadapter invalid preprocessor/model pair

* nit
2024-01-22 19:34:47 -05:00
Chenlei Hu 25e41dc63b
Real multi-inputs ControlNet unit (#2539)
* real multi-inputs

* add tests

* nit

* 🐛 Fix negative prompt issue
2024-01-22 02:27:37 -05:00
Chenlei Hu 0712f42bf3
🚚 Move statements (#2538) 2024-01-21 22:13:18 -05:00
Chenlei Hu 57794c0817
🚚 Move control_mode (#2537) 2024-01-21 21:56:34 -05:00
Chenlei Hu 41e11028a3
🚚 Integrate model type detection into model detection (#2536)
* 🚚 Integrate model type detection into model detection

* Remove unused imports

* nit
2024-01-21 21:28:57 -05:00
Chenlei Hu ee821e8edf
🚚 Move dim calc (#2535)
* 🚚 Move dim calc

* nit
2024-01-21 20:56:51 -05:00
Chenlei Hu a79661e0db
🚚 Move inpaint crop logic as a function (#2534)
* Add tests

* 🔨 Extract crop logic
2024-01-21 19:00:28 -05:00
Chenlei Hu 81b5dde69a
🎨 Multi-Inputs more user friendly UI (#2533)
* format

* 🎨 multi-inputs UI refresh

* nit
2024-01-21 18:17:59 -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 1b7ae7dbec
🐛 Fix callback issue on ui reload (#2512) 2024-01-20 00:14:39 -05:00
Chenlei Hu b146963c1b
Update model dropdown choices when sd checkpoint change (#2509)
* wip

* 🔨 Large refactoring

* nit
2024-01-19 21:24:31 -05:00
Chenlei Hu 0a8e71af58
🔧 Add option to run CLIP preprocessor on CPU (#2495) 2024-01-18 20:30:12 -05:00
Chenlei Hu ba05e1ea20
🔧 Loosen is_compatible SD version check (#2490) 2024-01-17 10:25:41 -05:00
Chenlei Hu 8870e35682
🐛 Fix outpaint 2 (#2485)
* 🐛 Fix outpaint

* 🐛 Fix lama outpaint
2024-01-16 12:36:04 -05:00