Commit Graph

20 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
Chenlei Hu 69fa821587
🐛 Backward compatible with A1111 1< 1.7.0 (#2405) 2024-01-04 11:08:25 -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 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 42bb1b1a62
🔥 Remove resize mode js logic (#2023) 2023-09-02 17:21:30 -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
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
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 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 95b00796a4
🎨 Auto enable unit on image upload (#1704) 2023-06-24 23:07:37 -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