Commit Graph

631 Commits (bbcae309d1c0921c212bfb9719169db8826b795f)

Author SHA1 Message Date
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
Chenlei Hu 7c8a0091b4
🐛 Fix outpaint (#2483) 2024-01-16 08:21:08 -05:00
Chenlei Hu e7b5b60812
🐛 Fix inpaint mask dim (#2477) 2024-01-15 09:57:58 -05:00
Chenlei Hu c05321387c
🐛 Uncache ip-adapter models (#2470) 2024-01-14 23:33:38 -05:00
Chenlei Hu af9c3cdb9c
🔨 Refactor choose_input_image logic (#2468)
*  Add inpaint full cov tests

* More tests

* 🔨 Refactor choose input image logic

*  Update unittest expectation

* nits
2024-01-14 18:58:39 -05:00
Chenlei Hu 1d03353d9c
🔨 Change if to assert on mask invariants (#2466) 2024-01-13 23:52:50 -05:00
w-e-w 9d1f0a07fa
alternative photopea popup warning (#2417)
* alternative photopea popup warning

* rename variables
2024-01-06 09:18:29 -05:00
Chenlei Hu d47536ff27
🔧 Add option to disable photopea quick edit (#2385) 2024-01-01 20:36:03 -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 0c0eb6b317
Control inpaint crop per ControlNet unit (#2377)
*  Control inpaint crop per ControlNet unit

* nits
2023-12-31 18:27:20 -05:00
Chenlei Hu cd0d5870f4
🔊 Add tracemalloc to track memory usage (#2373) 2023-12-30 23:31:58 -05:00
Chenlei Hu 218f075023
🐛 Raise error when using revision on non-SDXL models (#2372) 2023-12-30 21:07:14 -05:00
Chenlei Hu a23dbfc0b1
Quick edit of preprocessor result with photopea (#2346)
* ui

* display modal

* add fetch from controlnet feature

* fix pasting issue

* name layers

* Add send to controlnet button

* 🎨 Fix button styles

* 🔨 refactor

* wip

* 🚧 correctly write output

* 🚧 auto fetch and auto close

* 🚧 create black background of given size
2023-12-30 17:54:42 -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
Chenlei Hu 50ddf1da96
🎨 Hide loopback checkbox in non-batch config (#2366)
* 🎨 Hide loopback checkbox in non-batch tab

* 🐛 Fix hide logic
2023-12-29 16:20:55 -05:00
Chenlei Hu dc0d590faf
🔧 Add option to bypass input image crop (#2365) 2023-12-28 15:29:06 -05:00
Chenlei Hu 27c78e3fec
🐛 Set default model/module to string values (#2335) 2023-12-15 21:54:16 -05:00
lllyasviel 96dbc601a6
fix model unload (#2301)
fix model unload
2023-12-06 21:07:37 -08:00
lllyasviel a6edc5d97b
allow not using any unit (#2300) 2023-12-06 20:48:41 -08:00