Commit Graph

78 Commits (784b6d01a7a115016d98cceac0bb153b1aa47082)

Author SHA1 Message Date
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 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 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 4b5a42f265
Rename IOComponent to Component for Gradio4 (#2681) 2024-03-05 21:18:30 -05:00
Chenlei Hu 44e0875956
Fix linter issues under script (#2667) 2024-02-28 23:58:34 -05:00
h3rmit 679b62790b
Compatibility fix for WebUI < v1.6.0 (#2649) 2024-02-18 21:52:46 -05:00
Chenlei Hu 0ee0281178
🐛 Fix model refresh (#2607) 2024-01-30 21:22:49 -05:00
Chenlei Hu 235aa04001
🐛 Disable checkpoint callback for SDNext (#2597) 2024-01-28 17:52:03 -05:00
Chenlei Hu 232e6407b6
Revert "🐛 Disable checkpoint callback for SDNext" (#2596) 2024-01-28 16:43:04 -05:00
Chenlei Hu 11e4bef97e
🐛 Disable checkpoint callback for SDNext (#2595) 2024-01-28 15:15:40 -05:00
Chenlei Hu a67d0404cc
🐛 Fix txt2img send dimensions (#2591) 2024-01-27 22:04:57 -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 82450fbf2d
🐛 Fix multi-inputs weight (#2584) 2024-01-25 13:28:25 -05:00
Chenlei Hu 14ab5e4ff6
Revert " Real multi-inputs unit" (#2583) 2024-01-25 08:52:10 -05:00
Chenlei Hu 6a1d882e89
Real multi-inputs unit (#2578)
* Add adapter tests

* real multi inputs
2024-01-24 20:19:11 -05:00
Chenlei Hu d139d8c88d
🐛 Fix ip-adapter (#2569) 2024-01-23 18:54:35 -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 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 881165e938
🐛 Only update model when necessary (#2521) 2024-01-20 20:09:41 -05:00
Chenlei Hu fb93201501
🐛 backward compatible for A1111 1.6.0 (#2518) 2024-01-20 17:02:55 -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 4729f8eb07
Allow mask upload (#2464) 2024-01-12 22:49:51 -05:00
Chenlei Hu a52e607b0f
🐛 Fix hr_option display sync (#2440) 2024-01-09 21:09:30 -05:00
Chenlei Hu 9b2feb396f
🐛 Fix gradio timing issue (#2416) 2024-01-05 16:14:43 -05:00
Chenlei Hu c714019b8a
🔧 Fix crop input image checkbox visibility (#2404) 2024-01-04 11:02:36 -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 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 7a199fe4a2
Add JSON pose file upload button (#2274)
* 🚧 Backend work

* 🚧 render pose

* 🚧 various fixes

* 🎨 Update readme image
2023-11-20 21:58:39 -05:00
Chenlei Hu ff5188edb5
🔥 Remove gradio version check (#2271) 2023-11-19 22:56:45 -05:00
Chenlei Hu 45eb903538
Filter cn model by sd version active (#2267) 2023-11-19 17:49:46 -05:00
Chenlei Hu eac4f4b28e
🔥 Remove disable_control_type option (#2266)
* 🔥 Remove disable_control_type option

* 🔥 remove type_filter check

* assert not none
2023-11-19 15:35:17 -05:00
Chenlei Hu 457da74dc7
Add new API option send_detected_map (#2251) 2023-11-11 19:06:06 -05:00
catboxanon 3b1fd43221
Migrate tooltips to Gradio (#1993) 2023-11-04 22:32:18 -04:00
missionfloyd df0788b819
Don't show progress for UI actions (#2163) 2023-10-14 22:07:21 -04:00
lllyasviel 1d5402326d
sdxl support (for SAI/HuggingFace/diffuser/community models) (#1952)
sdxl support (for SAI/HuggingFace/diffuser/community models)
1.1.400
2023-09-04 10:41:42 -07:00
Chenlei Hu 664ac74cae
Relands #2033 (#2038)
* 🎨 re-format api.py

* Add pose json to api response

* Simplify response format

* fix
2023-09-04 09:06:46 -04:00
lllyasviel 7bdcb9079a Revert "Add openpose json to API response (#2033)"
This reverts commit e2cd3b91a8.
2023-09-04 05:38:19 -07:00