Commit Graph

983 Commits (24dcdbb4d4ebc8f5a770a756be8a1b6e5b4e5e82)

Author SHA1 Message Date
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
lllyasviel 84e92d0d0e
Update external_code.py (#1524) 2023-06-02 15:51:58 -07: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 debb1c88ce
fix high-res fix, 212 (#1512)
* fix high-res fix, 212

* fix high-res fix, 212
2023-06-02 11:51:45 -07: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
lllyasviel bdcd34d21b
Update controlnet_version.py (#1509) 2023-06-02 08:08:58 -07:00
Chenlei Hu a8387bddfb
🚚 Rename ui/ as controlnet_ui/ (#1508) 2023-06-02 10:49:26 -04:00
lllyasviel 1cb5620a53
fix medvram (#1507) 2023-06-02 07:45:05 -07:00
lllyasviel e78d486ce0
fix medvram (#1503)
* fix inpaint distortion outside gradio preview

* fix medvram
2023-06-01 20:07:14 -07: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 d97f1d73c8
begin to support inpaint variation model in inpaint controlnet (#1494)
* fix outpaint eating boder pixels

* begin to support inpaint variation model in inpaint controlnet

* Update hook.py
2023-06-01 04:00:07 -07:00
lllyasviel ae5ca103be
fix outpaint eating boder pixels (#1493) 2023-06-01 03:13:16 -07:00
Chenlei Hu c8043ae2e2
📝 patch 1.1.206 (#1490) 2023-05-31 22:23:36 -04: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
lllyasviel 7b707dc1f0
Update controlnet_version.py (#1471) 2023-05-30 02:50:33 -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 cdba83b6e1
better hash (#1446) 2023-05-26 21:08:50 -07:00
lllyasviel 56e8236704
vae cache for tiled diffusion (#1445)
* version

* vae cache for tiled diffusion
2023-05-26 20:48:54 -07:00
lllyasviel f4882dc62c
version (#1444) 2023-05-26 19:55:27 -07:00
lllyasviel dc2d913163
Update controlnet_version.py (#1443) 2023-05-26 19:44:42 -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 4e20236f3c
add tile_colorfix+sharp (#1434) 2023-05-26 06:22:40 -07:00
lllyasviel aa3ef8215a
add tile_colorfix (#1430)
* add tile_colorfix

* add tile_colorfix

* add tile_colorfix
2023-05-25 23:54:40 -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 a8bf0c3901
Update controlnet_version.py (#1419) 2023-05-24 18:24:50 -07:00
Abdullah Alfaraj 974e593b73
fetch control_net_max_models_num settings from the api (#1402) 2023-05-24 18:19:21 -07:00
lllyasviel 54f7c64b4d
Update controlnet_version.py (#1411) 2023-05-23 20:07:30 -07:00
mattya_monaca cb954c5b81
Fix m2m script to allow use of reference only (#1407)
* Fix bug when using TILE

* Adapt to reference only

* Support for referance only

* Remove unnecessary comments
2023-05-23 20:06:34 -07:00
lllyasviel 7c674f8364
Update controlnet_version.py (#1389) 2023-05-21 19:53:02 -07:00
lllyasviel 490efc7f9f
shift off warnings (#1388) 2023-05-21 19:52:30 -07:00
lllyasviel 3c798c8e35
allow shift off warnings (#1387) 2023-05-21 19:34:37 -07:00
lllyasviel ceacee3618
typo (#1386) 2023-05-21 19:19:54 -07:00
lllyasviel 9a478909de
comments (#1385) 2023-05-21 19:17:18 -07:00
lllyasviel b41d536abc
more friendly assert (#1384) 2023-05-21 19:02:19 -07:00
lllyasviel d12ab519d4
more friendly assert (#1383)
more friendly assert
2023-05-21 18:43:54 -07:00
lllyasviel 35a12d07ad
fix clipvision (#1382) 2023-05-21 16:25:13 -07:00
huchenlei 11f89b4044 🐛 exclude shuffle from preprocessor cache 2023-05-21 14:57:21 -04:00
huchenlei fc9c368cb9 📝 bump up version 2023-05-21 14:19:14 -04:00
huchenlei 78f09f0bfe 📝 Add documentation 2023-05-21 14:16:57 -04: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 bccb1a1d06
safer code (#1374)
* safer code

* fix
2023-05-21 06:31:33 -07:00
僵尸浩 cae8894767
add 'model_free' in module_detail (#1370) 2023-05-20 21:24:22 -07:00
mattya_monaca 7ed7e94b5f
Fix bug when using TILE (#1367) 2023-05-20 18:01:42 -07:00
lllyasviel 2b07f37333
fix hr c u (#1351) 2023-05-20 15:36:19 -07:00
lllyasviel ce2278d5bc
small fix (#1338) 2023-05-20 02:38:32 -07: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 cd98a95a36
add external api for tiled diffusion (#1336)
add external api for tiled diffusion
2023-05-19 20:36:48 -07:00
lllyasviel 1c994ff4f7
small fix to meet a1111 standard (#1328) 2023-05-19 01:43:30 -07:00
lllyasviel 6a2306b499
Update controlnet_version.py (#1325) 2023-05-18 21:04:24 -07:00
lllyasviel 999b05d521
Update controlnet.py (#1324) 2023-05-18 21:02:06 -07:00
lllyasviel c8e9e669bf
implement ref-only for only masked (#1323) 2023-05-18 20:44:12 -07:00
lllyasviel 8d84f1f74f
Update controlnet_version.py (#1321) 2023-05-18 18:20:50 -07:00
catboxanon 057af49da6
Use release event for sliders (#1316)
Improves overall UI performance.
2023-05-18 18:20:22 -07:00
lllyasviel 92c937a41e
fix api range (#1320) 2023-05-18 18:19:25 -07:00
lllyasviel 36f0ff5f5c
shift to cfg-scale based style fidelity (#1309) 2023-05-17 16:24:21 -07:00
lllyasviel d831043cb8
fix mac mps (#1283) 2023-05-15 00:18:51 -07:00
lllyasviel 4a6153a5db
fix multi-reference weight bug (#1282) 2023-05-15 00:06:59 -07:00
lllyasviel ecc84a2891
add preprocessor reference_adain and adain_attn (#1278)
add preprocessor reference_adain and adain_attn
2023-05-14 22:30:47 -07:00
lllyasviel 3b27ba01f3
support inpaint variations (#1275) 2023-05-14 16:20:44 -07:00
lllyasviel 00d4a95dfc
fix medvram again (#1274)
* fix medvram again
2023-05-14 15:40:40 -07:00
lllyasviel 5e58a80248
Style Fidelity Slider (#1273)
style fid
2023-05-14 15:00:49 -07:00
lvmin 5184ba289e fix MAC MPS error 2023-05-14 13:25:02 -07:00
lllyasviel 356fd3c0d6
fix math error (#1263)
* fix math error
2023-05-13 19:47:11 -07:00
lvmin 5c733f4935 small dtype fix 2023-05-13 18:11:46 -07:00
lllyasviel 6e6732308c
small fix (#1259) 2023-05-13 16:05:54 -07:00
lllyasviel d181f69731
try to fix collapse in ref-only (#1257)
fix collapse in ref-only
2023-05-13 15:52:21 -07:00
lllyasviel ca6391102d
fix vae autocast (#1254) 2023-05-13 12:20:07 -07:00
lllyasviel 28d9d0d0b6
fix vae log (#1253) 2023-05-13 11:06:26 -07:00
lllyasviel 85298bff2f
fix vae log (#1252) 2023-05-13 10:55:57 -07:00
lllyasviel 721159f7b7
fix high-res vae (#1251) 2023-05-13 10:13:43 -07:00
lllyasviel 294d602cbb
fix float (#1250) 2023-05-13 09:57:23 -07:00
lllyasviel eaf9939083
fix medvram (#1246) 2023-05-13 06:31:23 -07:00
lllyasviel df99354692
fix attn cache (#1245) 2023-05-13 05:44:10 -07:00
lllyasviel f72e976d26
Revert "Revert "fix high res fix (#1242)" (#1243)" (#1244)
This reverts commit 07e42d81f0.
2023-05-13 05:12:51 -07:00
lllyasviel 07e42d81f0
Revert "fix high res fix (#1242)" (#1243)
This reverts commit 0f8a1e8577.
2023-05-13 05:07:56 -07:00
lllyasviel 0f8a1e8577
fix high res fix (#1242)
* fix high res fix

* fix high res fix
2023-05-13 04:58:31 -07:00
lllyasviel bb1b07e1e9
fix high res fix (#1240) 2023-05-13 04:03:36 -07:00
lllyasviel b2f9c73532
[Major Update] Reference-only Control (#1235)
[Major Update] Reference-only Control
2023-05-13 02:56:31 -07:00
lvmin dcb597c3c1 give elemid 2023-05-12 20:32:59 -07:00
lvmin b60439cc4e Merge branch 'main' of https://github.com/guming3d/sd-webui-controlnet into guming3d-main 2023-05-12 20:26:44 -07:00
lvmin 1ca18c9c9d better codes 2023-05-12 20:11:37 -07:00
lvmin 6bcbcaebc8 better codes 2023-05-12 20:05:07 -07:00
lvmin f72cc721ba use author names to avoid conflicts 2023-05-12 19:49:33 -07:00
lvmin 2dbd9358bb more in list 2023-05-12 19:45:45 -07:00
lvmin 919d9b83c9 better codes 2023-05-12 19:44:14 -07:00
lvmin 338c790cf6 first step in supporting more models 2023-05-12 19:36:51 -07:00
George Gu 2438c844ac [fix]fix elem_id format 2023-05-08 05:23:29 +00:00
George Gu fae0a17fc9 [fix]Adding elem_id to all the gradio component of controlnet 2023-05-08 03:19:51 +00:00
lvmin c31d7d1033 fix png info 2023-05-07 10:14:27 -07:00
ljleb 34b31bb6f6
remove `open=False` (#1202)
* equal_height fix

* remove open

* version
2023-05-07 12:52:46 -04:00
ljleb 630d3daaf3
equal-height (#1201) 2023-05-07 12:35:23 -04:00
lllyasviel f905622a65
Update controlnet_version.py 2023-05-07 05:53:07 -07:00
lllyasviel 58d17e087a
Merge pull request #1190 from zombieyang/main
little bug fix: preprocessor is none but has resolution slider
2023-05-07 00:28:30 -07:00
unknown 64a236b326 fix: when preprocessor is none and keep recheck/uncheck PixelPerfect, the resolution slider will show 2023-05-07 11:56:03 +08:00
lvmin a9ccfd19d0 safer code 2023-05-06 16:21:41 -07:00
lvmin c64a11c44f fix gradio 2023-05-06 14:34:32 -07:00
lvmin 35b5eefc33 fix 2023-05-06 11:27:27 -07:00
lvmin d3f588ff38 fix 2023-05-06 11:25:27 -07:00
lvmin 29c38ca369 refine 2023-05-06 11:21:15 -07:00
lvmin b944e21794 144 2023-05-06 11:11:53 -07:00
lvmin e90a17a7de move codes 2023-05-06 11:05:59 -07:00
lvmin 0cf1c97815 Merge branch 'main' of https://github.com/zombieyang/sd-webui-controlnet into zombieyang-main 2023-05-06 11:03:49 -07:00
lvmin c39d9d6c52 143 2023-05-06 10:44:14 -07:00
lvmin 3aead0a4f5 fix shuffle 2023-05-06 10:37:13 -07:00
lvmin d70a22ae54 rename 2023-05-06 10:29:48 -07:00
lvmin a57a8f71e0 fix all ratio problems 2023-05-06 10:27:17 -07:00
lvmin 7296e3c93e init 2023-05-06 09:56:29 -07:00
unknown 79ef6172b0 add get_modules_detail in externalcode 2023-05-06 23:49:11 +08:00
lvmin c4562e38fe beautify png meta 2023-05-06 05:44:00 -07:00
lvmin a84b6c620d beautify png meta 2023-05-06 05:33:40 -07:00
lvmin 7ed4a675ed fix random seed 2023-05-06 02:33:18 -07:00
zombieyang(杨浩) 6b30f7821a bugfix 2023-05-06 13:26:22 +08:00
lvmin 5a5945703f we do not need torch version; cn version update 2023-05-05 16:53:19 -07:00
unknown 71f6df02a2 add module_detail in /controlnet/module_list containing sliders config and reuse code with controlnet.build_sliders 2023-05-06 06:23:50 +08:00
ljleb 5234cf7fd2 Merge branch 'main' of https://github.com/Mikubill/sd-webui-controlnet into patch-unit-module-being-None-and-rework-txt2img-tests 2023-05-05 14:37:40 -04:00
ljleb 001bc70b81
`"guessmode"` alias for warning (#1161)
* alias for warning

* version
2023-05-05 14:27:01 -04:00
ljleb a03b2f8a68 remove old enpoint test 2023-05-05 14:20:06 -04:00
ljleb 274645d0c7 merge 'main' into this branch 2023-05-05 14:05:38 -04:00
lvmin b1776ce95b 137 2023-05-05 10:52:02 -07:00
lllyasviel a343740906
Merge pull request #1156 from Mikubill/lvmin
Completely remove deprecated guess mode
2023-05-05 10:43:13 -07:00
ljleb 3ec8ae8749
version (#1158) 2023-05-05 13:37:25 -04:00
lllyasviel 6a8c471640
Merge branch 'main' into lvmin 2023-05-05 10:37:02 -07:00
lvmin 9d38d2630d remove deprecated guess mode 2023-05-05 10:33:31 -07:00
lvmin 1caa2b5379 remove deprecated guess mode 2023-05-05 09:32:58 -07:00
ljleb aa3d3f23d6 rm PARAM_COUNT 2023-05-05 12:31:27 -04:00
ljleb 31c52c8244 remove flat args 2023-05-05 12:28:26 -04:00
ljleb 11d33e1815
Remove deprecated api (#1154)
* remove deprecated api

* version

* api version
2023-05-05 12:05:33 -04:00
ramyma 5d387abf19
fix: Raise 500 exception instead of returning an error on `detect` API call (#863)
fix: Raise 422 exception instead of returning an error on `detect` API call
2023-05-03 22:03:32 -04:00
lvmin 0a4589e373 better codes, version flag 2023-05-03 00:42:49 -07:00
lvmin 6e12ddbc1d fix unit bug 2023-05-02 07:26:31 -07:00