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
d702830f1f
Allow pulid accept multiple inputs ( #2843 )
2024-05-04 16:10: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
ad66a98467
Add warning on unrecognized param ( #2815 )
2024-04-27 00:43:24 -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
4c27886b94
Fix API parsing of ipadapter_input ( #2788 )
2024-04-22 10:13:13 -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
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
eb451a007f
Fix faceid ( #2727 )
2024-03-31 23:54:20 -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
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
976c595150
Add ruff linter dep ( #2666 )
2024-02-28 22:44:10 -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
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
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
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
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
27c78e3fec
🐛 Set default model/module to string values ( #2335 )
2023-12-15 21:54:16 -05:00
Chenlei Hu
54dfb899d5
Ignore unrecognized params ( #2313 )
2023-12-09 23:17:03 -05:00
lllyasviel
d0e79b397d
typo
2023-12-06 07:24:13 -08:00
lllyasviel
47dfefa54f
StyleAlign ( #2294 )
...
StyleAlign
2023-12-06 06:49:05 -08:00
Chenlei Hu
457da74dc7
✨ Add new API option send_detected_map ( #2251 )
2023-11-11 19:06:06 -05:00
Chenlei Hu
f2aafcf2be
🐛 Fix update_cn_script ( #2203 )
2023-10-28 23:05:34 -04:00
Chenlei Hu
4ac716a6e8
Revert "Update external_code.py fix 2132 2111 ( #2133 )" ( #2202 )
...
This reverts commit e382d16185 .
2023-10-28 14:31:28 -04:00
joergwa
e382d16185
Update external_code.py fix 2132 2111 ( #2133 )
...
fix for https://github.com/Mikubill/sd-webui-controlnet/issues/2132 https://github.com/Mikubill/sd-webui-controlnet/issues/2111
2023-10-25 21:35:02 -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
ljleb
6ed97a7da2
Remove `importlib.reload`s ( #1775 )
...
* move external_code.py for python module caching
* remove importlib reload
* add test
* rename
---------
Co-authored-by: ljleb <set>
2023-07-08 16:52:16 -04:00