Chenlei Hu
5d7529915b
Restore unit state update listeners ( #2888 )
2024-05-13 21:07:50 -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
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
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
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
c3e5fd4c1b
Fix control type infer in preset panel ( #2792 )
2024-04-22 17:41:10 -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
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
16798475b5
🎨 inline svg logo ( #2410 )
2024-01-04 20:42:45 -05:00
Chenlei Hu
c714019b8a
🔧 Fix crop input image checkbox visibility ( #2404 )
2024-01-04 11:02:36 -05:00
Chenlei Hu
bd23a0ecb6
🔧 Lazy load photopea editor ( #2386 )
2024-01-01 21:10:50 -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
青龍聖者@bdsqlsz
79948d8c29
Add Animal Pose Preprocessor (RTMPose AP-10K) ( #2293 )
...
* add support for animal pose
* Update __init__.py
* fix typo
* flatten json result list
* format files
* remove unused functions
* 🚧 Support edit
* nits
* fix test expecetations
---------
Co-authored-by: huchenlei <chenlei.hu@mail.utoronto.ca>
2023-12-23 15:55:21 -05:00