Commit Graph

646 Commits (58f620c921030eea0f3528d68849f7e052d44e3f)

Author SHA1 Message Date
Chenlei Hu af9c3cdb9c
🔨 Refactor choose_input_image logic (#2468)
*  Add inpaint full cov tests

* More tests

* 🔨 Refactor choose input image logic

*  Update unittest expectation

* nits
2024-01-14 18:58:39 -05:00
Chenlei Hu 1d03353d9c
🔨 Change if to assert on mask invariants (#2466) 2024-01-13 23:52:50 -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 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 cd0d5870f4
🔊 Add tracemalloc to track memory usage (#2373) 2023-12-30 23:31:58 -05:00
Chenlei Hu 218f075023
🐛 Raise error when using revision on non-SDXL models (#2372) 2023-12-30 21:07:14 -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 dc0d590faf
🔧 Add option to bypass input image crop (#2365) 2023-12-28 15:29:06 -05:00
Chenlei Hu 27c78e3fec
🐛 Set default model/module to string values (#2335) 2023-12-15 21:54:16 -05:00
lllyasviel 96dbc601a6
fix model unload (#2301)
fix model unload
2023-12-06 21:07:37 -08:00
lllyasviel a6edc5d97b
allow not using any unit (#2300) 2023-12-06 20:48:41 -08:00
lllyasviel 47dfefa54f
StyleAlign (#2294)
StyleAlign
2023-12-06 06:49:05 -08:00
Chenlei Hu 0efcf8c993
🐛 Handle None controlnet model in version check (#2272) 2023-11-19 23:51:39 -05:00
Chenlei Hu ff5188edb5
🔥 Remove gradio version check (#2271) 2023-11-19 22:56:45 -05:00
Chenlei Hu e2e6a1b494
🔊 Meaningful error message for sd version conflict (#2268)
* 🚚 Move enums

* 🔊 Meaningful error message for sd version conflict
2023-11-19 21:49:14 -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
MitPitt 150d6f140d
increase possible model cache size (#2186)
no reason not to have this
2023-10-23 13:56:12 -04:00
Chenlei Hu 7a4805c8ea
Fix debug loglevel (#2139) 2023-09-22 14:13:48 -04:00
lllyasviel 56d575e8dd
fix tiled vae (#2074) 2023-09-06 12:24:48 -07:00
lllyasviel 7c20c5d748
fix tiled vae (#2073)
* fix tiled vae

* fix tiled vae
2023-09-06 12:18:02 -07:00
lllyasviel 1976cb2837
fix log (#2063) 2023-09-05 19:14:19 -07:00
lllyasviel 2dae96e538
revision fix (#2055)
* revision image blending

* revision fix
2023-09-05 10:33:33 -07:00
lllyasviel 876667f4d6
fix refiner (#2042) 2023-09-04 14:59:19 -07: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
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
lllyasviel 7140c7f9a9
simplify img2img ui (#1956)
* fix gradio problem

* fix gradio problem

* simplify img2img ui

* simplify img2img ui
2023-08-23 18:15:17 -07:00
catboxanon 729926fdd1
Fix mask blur (#1907)
* Fix mask blur

* Prioritize mask_blur_x over mask_blur

* Update mask blur sigma values
2023-08-13 14:17:43 -04:00
Chenlei Hu c542a8fd60
fix mask (#1914) 2023-08-13 14:12:44 -04:00
catboxanon 424022c735
Disable ControlNet if model is SDXL (#1835) 2023-07-28 10:26:21 -04:00
catboxanon efda6ddfd8
Add setting to disable CN in highres (#1832) 2023-07-26 11:59:47 -04:00
ljleb e9679f8fc5
dont assume images is tensor (#1817)
Co-authored-by: ljleb <set>
2023-07-23 14:15:05 -04:00
catboxanon 8063252cf5
feat: Controllable inpainting Gaussian blur sigma value (#1813) 2023-07-21 15:32:01 -04: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
Chenlei Hu eceeec7a7e
🔊 Add timing debug logs (#1650)
* 🔊 Add timing debug logs

* 🐛 Use custom metaclass in DEBUG only
2023-07-03 17:36:32 -04:00
storyicon 17e9ca6c3b
feat: update get_unique_axis0 (#1567)
Signed-off-by: storyicon <yuanchao@bilibili.com>
2023-07-03 16:02:04 -04:00
Chenlei Hu 30cc2ec84f
📝 Explain why guidance_end is set twice (#1742) 2023-07-01 16:14:06 -04:00
Chenlei Hu 0b7f43107c
Add unittest on numpy random seed (#1698) 2023-06-23 20:55:15 -04:00
Chenlei Hu fe803c7066
🔥 condense hook low vram logic (#1692) 2023-06-23 15:38:07 -04:00
Chenlei Hu c02375a435
Add test on choose_input_image (#1691) 2023-06-23 14:58:37 -04:00
Chenlei Hu 5ca74e89d7
🔊 add unit.module to bound check logs (#1688) 2023-06-23 11:35:13 -04:00
Chenlei Hu 311d67bcd2
[Reland] Add type check on script args (#1687)
* Add typecheck on script args (#1678)

* Add typecheck on script args

* Allow dict param

* reload module

* 📝 more detailed comment
2023-06-23 11:03:51 -04:00
Chenlei Hu 784eadbba6
🔥 remove unused code (#1679) 2023-06-22 22:28:57 -04:00
Chenlei Hu 16805be062
[Reland] 🔨 Refactor bound check for threshold and resolution (#1675)
* 🔨 Refactor bound check for threshold and resolution (#1668)

* 🔨 Refactor bound check for threshold and resolution

* nits

* 🐛 Fix bound check. Add more unittest.

* Fix param value used in logs
2023-06-22 21:38:12 -04:00
lllyasviel f58807c5f1 Revert "🔨 Refactor bound check for threshold and resolution (#1668)"
This reverts commit 2d5785b43f.
2023-06-22 03:02:45 -07:00
Chenlei Hu 2d5785b43f
🔨 Refactor bound check for threshold and resolution (#1668)
* 🔨 Refactor bound check for threshold and resolution

* nits
2023-06-21 22:05:00 -04:00
lvmin 43a40598cc fix high-res fix 2023-06-10 14:47:08 -07:00
lvmin a60b46b6e1 fix high-res fix 2023-06-10 14:45:08 -07:00
lvmin 048e3384f3 fix high-res fix 2023-06-10 14:41:56 -07:00
lvmin 5e89cd9f0c fix high-res fix 2023-06-10 14:40:45 -07:00
lvmin ceb08e8464 fix high-res fix 2023-06-10 14:38:37 -07:00
lllyasviel 5c9731319b
[1.1.121] Preprocessor: inpaint_only+lama (#1558)
[1.1.121] Preprocessor: inpaint_only+lama (#1558)
2023-06-08 17:42:08 -07: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
lllyasviel 6a58d77191
fix bugs in 218 (#1576) 2023-06-06 14:13:21 -07:00
lllyasviel 7ad8cc8e65
fix api (#1565) 2023-06-05 16:24:06 -07:00
lllyasviel 795b27e0e6
more robust judgement (#1554) 2023-06-04 14:37:50 -07:00
lllyasviel 93ed6c9d4c
enable seeing masked area in inpaint mask visualization (#1553) 2023-06-04 14:28:47 -07: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
Chenlei Hu d3b64fbdd5
Reland logs; debug (#1540)
fallback
2023-06-04 13:55:45 -04:00
lllyasviel d8551e447d
remove unnecessary/wrong judgement (#1539) 2023-06-03 17:19:48 -07:00
Chenlei Hu b0a7dc8864
Revert "Logging migration (#1537)" (#1538)
This reverts commit f7eeb481ea.
2023-06-03 19:13:16 -04:00
Chenlei Hu f7eeb481ea
Logging migration (#1537)
* 🔊 Use logger to replace print in scripts

* 🐛 Fix double handler issue
2023-06-03 18:14:56 -04:00
lllyasviel 7b2bf668ee
fix post processing (#1532) 2023-06-02 20:46:26 -07:00
Chenlei Hu 591b3de809
[Reland] Extract Prepare Mask logic (#1528)
* 🔨 Extract prepare mask logic

* 🐛 return Image instead of nparray

* 🐛 rename variable so that same variable always have same type

* 🎨 nits
2023-06-02 22:18:56 -04:00
lllyasviel 3c41f1546e
Revert "Extract prepare mask logic (#1525)" (#1527)
This reverts commit d7faaa491c.
2023-06-02 18:51:41 -07:00
Chenlei Hu d7faaa491c
Extract prepare mask logic (#1525)
* 🔨 Extract prepare mask logic

* 🐛 return Image instead of nparray
2023-06-02 21:05:05 -04:00
Chenlei Hu d99905418c
🔨 Extract pixel perfect calculation (#1522) 2023-06-02 18:28:44 -04:00
lllyasviel d4db708a6e
fix data range (#1521)
* fix high-res fix, 212

* fix high-res fix, 212

* fix data range
2023-06-02 14:39:17 -07:00
Chenlei Hu b3a0dad462
🔨 Add int_value on ResizeMode (#1519) 2023-06-02 17:11:07 -04:00
Chenlei Hu 8326f4d5e0
🐛 Fix typo (#1518)
* 🐛 fix typo

* 🎨 nits
2023-06-02 16:53:13 -04:00
Chenlei Hu 470bb585ab
🔥 remove unnecessary moving (#1517) 2023-06-02 16:48:03 -04:00
Chenlei Hu 3de90f95f7
🚚 Move image has mask logic out (#1516) 2023-06-02 16:36:18 -04:00
Chenlei Hu 5c3adb2356
🔥 Use esize_mode_from_value to replace value matching (#1515) 2023-06-02 16:24:03 -04:00
Chenlei Hu e298df1796
[Refactor] Move choose input image logic out of Script.process (#1513)
* 🚚 Move choose input image load out of Script.process

* Deprecate first 2 branches
2023-06-02 16:17:19 -04:00
lllyasviel faee7cf2f5
Change to default multi control (#1511) 2023-06-02 11:40:51 -07:00
Chenlei Hu 8004669cb0
🔨 Convert methods that do not access member data to static methods (#1510) 2023-06-02 14:28:02 -04:00
Chenlei Hu a8387bddfb
🚚 Rename ui/ as controlnet_ui/ (#1508) 2023-06-02 10:49:26 -04:00
lllyasviel 4da6da05e5
fix inpaint distortion outside gradio preview (#1502) 2023-06-01 19:25:21 -07:00
Chenlei Hu 4f0f26b7c6
Cleanup unused functions (#1491)
* nits

* nits
2023-06-01 11:38:57 -04:00
lllyasviel ae5ca103be
fix outpaint eating boder pixels (#1493) 2023-06-01 03:13:16 -07:00
Chenlei Hu 624ec956f3
[Refactor] Move controlnet.Script.uigroup out as ui.controlnet_ui_group (#1475)
* 🚚 Move controlnet.Script.uigroup out.

* 🚚 rename uigroup

* explicitly declare fields

* 🐛 nits

* 🔥 remove unused imports

* reload utils

* reload utils

* 🚚 Move get_module_basename to global_state

* Update scripts/controlnet.py

---------

Co-authored-by: ljleb <lebel.louisjacob@gmail.com>
2023-05-31 22:22:40 -04:00
lllyasviel 904e97b605
outpaint shortcut (#1486) 2023-05-31 15:51:07 -07:00
Alexander Brown c3840a0029
Add classes/ids to some controls for styling (#1449)
* Add classes/ids to some controls for styling

* Change info/label for Loopback

* Replace id with class

* Add classes for the weight/steps section

* Update controlnet.py

* Add some classes to style the upper controls

* Undo label/info change for Loopback
2023-05-30 02:47:31 -07:00
lllyasviel 2d97323a6d
fix 1468 (#1470) 2023-05-30 02:12:24 -07:00
lllyasviel 09cb9a32d1
fix small misalignment with a1111 1.3.0 (#1460)
* fix small misalignment with a1111 1.3.0

* fix small misalignment with a1111 1.3.0
2023-05-29 03:35:44 -07:00
lllyasviel 2e0dc37d22
better inpaint (#1455)
* better inpaint

* better inpaint

* better inpaint

* better inpaint

* better inpaint

* better inpaint

* better inpaint
2023-05-28 04:53:51 -07:00
lllyasviel 5fe0981be0
add inpaint_only (#1441) 2023-05-26 19:42:52 -07:00
S-Del 0d1c252cad
fix typo in controlnet.py (#1440)
mod -> mode
2023-05-26 17:10:06 -07:00
lllyasviel fdb8b00c18
fix conflict with Tiled Diffudion (#1428) 2023-05-25 22:23:02 -07:00
lllyasviel a83a260605
ui filter fix (#1424)
* ui filter fix

* ui filter fix

* ui filter fix

* ui filter fix
2023-05-25 09:20:36 -07:00
lllyasviel cb94dda767
ui filter (#1422) 2023-05-25 07:56:12 -07:00
lllyasviel 35a12d07ad
fix clipvision (#1382) 2023-05-21 16:25:13 -07:00
huchenlei ca3252598b 🔧 Add cmd args to set cache size 2023-05-21 14:12:36 -04:00
huchenlei bbe357e6ac Add cache for preprocessors 2023-05-21 13:36:03 -04:00
lllyasviel 539d2fc990
shift to context marker for cond-ucond (#1337)
shift to context marker for cond-ucond https://github.com/Mikubill/sd-webui-controlnet/pull/1337
2023-05-20 01:08:55 -07:00
lllyasviel 1c994ff4f7
small fix to meet a1111 standard (#1328) 2023-05-19 01:43:30 -07:00