Commit Graph

50 Commits (648025ba6bc99df175d896a6aaf793cf72574b1c)

Author SHA1 Message Date
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
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 a52e607b0f
🐛 Fix hr_option display sync (#2440) 2024-01-09 21:09:30 -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 e6b8aac3f0
🔧 Auto disable photopea edit on confirm alert cancel (#2415)
* 🔧 Auto disable photopea edit on confirm alert cancel

* 🐛 Click apply settings button
2024-01-05 16:22:49 -05:00
Chenlei Hu 82e4069287
🔧 Delay openpose editor availability test (#2412) 2024-01-05 11:35:24 -05:00
Chenlei Hu e499f5462c
🔧 Add promptbox for first time external site visit (#2411)
* 🔧 Add promptbox for first time external site visit

* nits
2024-01-05 11:24:27 -05:00
Chenlei Hu 69fa821587
🐛 Backward compatible with A1111 1< 1.7.0 (#2405) 2024-01-04 11:08:25 -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 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 feea1f653b
🐛 fix upload json (#2309) 2023-12-08 13:34:52 -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
catboxanon 3b1fd43221
Migrate tooltips to Gradio (#1993) 2023-11-04 22:32:18 -04:00
missionfloyd 99834020a3
Fix openpose edit button style (#2162)
* Fix openpose edit button style

* Fix edit button with editor installed
2023-10-14 22:01:06 -04:00
Chenlei Hu 672064f7fa
Fallback to remote openpose editor when no local installation found. (#2177) 2023-10-14 21:50:05 -04:00
Chenlei Hu 42bb1b1a62
🔥 Remove resize mode js logic (#2023) 2023-09-02 17:21:30 -04:00
Chenlei Hu 510bd66e3a
Add reset button for preset (#1999)
* Add reset preset button

* fix processor param compare

* fix reset button vis after reset

* nits

* Do not attach listener on image component

* WIP

* faster load

* nits
2023-08-27 19:02:56 -04:00
Chenlei Hu eacfe995cf
Revert "Add reset preset button (#1986)" (#1989)
This reverts commit d5137f063e.
2023-08-26 00:54:40 -04:00
Chenlei Hu d5137f063e
Add reset preset button (#1986)
* Add reset preset button

* fix processor param compare

* fix reset button vis after reset

* nits
2023-08-25 22:29:29 -04:00
Chenlei Hu 954515fcbf
Use longer delay (#1981) 2023-08-25 01:08:17 -04:00
Chenlei Hu 18bbe35e63
Update control type in preset (#1980) 2023-08-25 00:50:43 -04:00
Chenlei Hu 6dc7b4f14d
[New Feature] ControlNet unit preset management (#1974)
* WIP preset

* basic func done

* Add refresh button

* fix active units

* fix hint issue
2023-08-24 23:30:22 -04:00
w-e-w b875b847a4
Fix zoom and mask brush color customizable (#1970)
* make mask brush color customizable

* make zoom work with single CN module

* webui < 1.6 compatibility

* explicitly checks for applyZoomAndPan

* Update canvas.js

* Update canvas.js

---------

Co-authored-by: lllyasviel <lyuminzhang@outlook.com>
2023-08-24 14:37:59 -07:00
lvmin 0004a7b7f5 fix zoom 2023-08-23 22:35:40 -07:00
lllyasviel e2b3fbd2ee
integrated canvas zoom (#1961)
* shorter message

* fix preview as input for img2img indepent img

* integrated canvas zoom

* Update controlnet_version.py
2023-08-23 22:31:17 -07:00
catboxanon cde4619c5d
Repair ControlNet infotext parsing (#1833)
* Repair infotext parsing

🚧 Listen png info buttons

WIP

New infotext format

nits

nits

nits

rebase

refactor active unit counts

* nits

* nit

---------

Co-authored-by: huchenlei <chenlei.hu@mail.utoronto.ca>
2023-08-23 22:27:34 -04:00
Chenlei Hu fb000270be
🔥 Removes unused file (#1951) 2023-08-22 22:26:34 -04:00
lvmin 834342da88 remove annoying i2i preview 2023-08-22 00:25:01 -07:00
GF 256a53ad7d
disable run preprocessor if no cn input image (#1887)
* disable run preprocessor if no cn input image

* 🚧 Move detection logic to active_units.js

---------

Co-authored-by: huchenlei <chenlei.hu@mail.utoronto.ca>
2023-08-07 17:30:52 -04:00
Chenlei Hu 91eca3cddf
🐛 Revert img2img inpaint change (#1769) 2023-07-05 18:09:07 -04:00
Chenlei Hu f2a541dd8f
🔧 Disable resize mode selection when using A1111 input (#1765)
* 🎨 nits

* 🔧 Disable resize mode selection when using A1111 input
2023-07-05 00:13:46 -04:00
Chenlei Hu 386adaa87e
🔧 Disable ControlNet input in img2img inpaint (#1763)
* 🎨 rename functions

* 🔧 Disallow controlnet input in img2img inpaint

*  Update img2img inpaint test
2023-07-04 22:24:31 -04:00
Chenlei Hu 7f6a6d33f9
🔧 Wait longer for openpose editor iframe to respond (#1762) 2023-07-04 19:31:48 -04:00
Chenlei Hu fa963639e7
🎨 Display control type on tab selection button (#1760)
* 🎨 nits

* 🎨 Display control type on tab selection button
2023-07-04 17:28:03 -04:00
Chenlei Hu 72974e45a5
🐛 Make js code run in closure (#1754) 2023-07-03 15:14:28 -04:00
Chenlei Hu 08dca19ec2
Display A1111 input as fallback image in img2img (#1747) 2023-07-03 00:30:11 -04:00
Chenlei Hu 95b00796a4
🎨 Auto enable unit on image upload (#1704) 2023-06-24 23:07:37 -04:00
Chenlei Hu 987f08e236
🎨 Pass dark theme param of A1111 to openpose editor (#1633) 2023-06-13 00:29:38 -04:00
Chenlei Hu fb86dffcb1
Lazy load openpose editor iframe (#1612)
* 🎨 nit

* Lazy load openpose editor iframe

* 🚧 more robust pathname fetching
2023-06-10 18:13:04 -04:00
lllyasviel 4f884009ef
change openpose error icon (#1607) 2023-06-10 03:43:39 -07:00
Chenlei Hu e206598e52
🐛 Fix SPACE reload issue (#1587) 2023-06-07 21:22:53 -04:00
Chenlei Hu 99408b9f4e
🎨 Add active units count badge (#1578) 2023-06-06 22:04:53 -04:00
Chenlei Hu 1f66e9c614
🎨 Make active unit's tab name green (#1577)
* 🎨 Make active unit's tab name green

* 🎨 Use brighter green in dark mode
2023-06-06 20:13:15 -04:00
Chenlei Hu 5b681b071b
New feature: integrated openpose editor (#1454)
🎨 nits

🎨 Load alert screen when no editor is detected.

🔧 add option to hide edit button

🐛 Resolve conflicts during rebase

🚧 Set use preview as input after edit

🐛 Fix merge conflict
2023-06-04 15:54:35 -04:00
w-e-w 6f394dfd18 use local const titles 2023-04-30 05:01:52 +09:00
w-e-w 420ae72682 fix hints
change the name so it doesn't override the original hints used in webui
2023-04-30 02:59:07 +09:00
huchenlei df22617fe1 fix typo 2023-04-24 11:22:56 -04:00
huchenlei 34e04c469b Add tooltip 2023-04-24 10:53:06 -04:00