Commit Graph

725 Commits

Author SHA1 Message Date
altoiddealer
7eb5cbad01
Restore '/controlnet/control_types' API endpoint (#713)
Restores the '/controlnet/control_types' API endpoint, which is immensely useful for anyone using ControlNet via the API
2024-05-23 16:39:26 -04:00
Chenlei Hu
eb1e12b0dc
Add advanced weighting support (#754) 2024-05-23 13:11:11 -04:00
Chenlei Hu
62e60ad403
Fix import of enum (#755) 2024-05-21 20:55:24 -04:00
Chenlei Hu
66845160de
Fix enum (#706)
* Fix enum conversion from string

* More fixes
2024-05-02 19:09:53 -04:00
Chenlei Hu
d5cc799eec
Only feed image embed to instant id ControlNet unit (#309)
* Only feed image embed to instant id ControlNet units

* Add tests

* Add more tests
2024-05-02 18:30:54 -04:00
sJrx233S7UMo
bafd067777
Add xyz plot feature to "sd_forge_freeu" (#417)
* Add xyz plot feature to "sd_forge_freeu"

* Update extensions-builtin/sd_forge_freeu/scripts/forge_freeu.py

Co-authored-by: catboxanon <122327233+catboxanon@users.noreply.github.com>

* Update extensions-builtin/sd_forge_freeu/scripts/forge_freeu.py

Co-authored-by: catboxanon <122327233+catboxanon@users.noreply.github.com>

* Update extensions-builtin/sd_forge_freeu/scripts/forge_freeu.py

Co-authored-by: catboxanon <122327233+catboxanon@users.noreply.github.com>

* Update extensions-builtin/sd_forge_freeu/scripts/forge_freeu.py

Co-authored-by: catboxanon <122327233+catboxanon@users.noreply.github.com>

* Update extensions-builtin/sd_forge_freeu/scripts/forge_freeu.py

Co-authored-by: catboxanon <122327233+catboxanon@users.noreply.github.com>

---------

Co-authored-by: sJrx233S7UMo <sJrx233S7UMo@gmail.com>
Co-authored-by: catboxanon <122327233+catboxanon@users.noreply.github.com>
2024-05-02 18:28:24 -04:00
Chenlei Hu
61a2a9d342
Add back ControlNet multi-inputs upload tab (#264)
* Refactor gallery

* Add back multi-inputs

* nit
2024-05-02 18:25:42 -04:00
lllyasviel
6287c73d98 rework memory management for extras
now face post-processing uses gpu
close #312
2024-02-25 20:37:14 -08:00
catboxanon
b458e42096
Fix LoRA infotext (#406) 2024-02-25 19:41:42 -08:00
lllyasviel
5e5b60b5b1 rework lora loading
and add logs
2024-02-25 11:04:14 -08:00
lllyasviel
437c348926 Add build-in extension "NeverOOM"
see also discussions
2024-02-24 19:09:06 -08:00
lllyasviel
2ecb869f31 try solve #386 2024-02-23 20:43:06 -08:00
lllyasviel
ae51178629 allow extensions to sort themselves in UI
and other installed extensions will be on top now (including some resolution related UI extensions)
2024-02-17 08:15:29 -08:00
lllyasviel
7a2aca6fed
Merge branch 'main' into tdd 2024-02-17 07:40:16 -08:00
catboxanon
06ab10a1be Normalize cmd arg paths
In particular, this fixes an issue on Windows where some functions
will misbehave if forward slashes are provided rather than
double backslashes.
2024-02-15 14:22:13 -05:00
lllyasviel
d81e353d89 fix outpaint in inpaint_only+lama
the problem in inpaint_only+lama+"Resize and Fill" is fixed now.
SDXL+inpaint_only+lama+"Resize and Fill"+inpaint_fooocus_v26+"stop at 0.5 or 0.6" can be used as one SOTA outpaint method now
2024-02-14 02:45:23 -08:00
lllyasviel
fa8be06613 fix tile-colorfix problems
This will completely solve problems related to tile-colorfix and now tile colorfix/colorfix+sharp give same results to webui-cn
2024-02-14 02:19:04 -08:00
lllyasviel
b50d978e1b reduce difference of tile-colorfix to webui cn 2024-02-13 20:45:11 -08:00
Chenlei Hu
4777898a0c
Update hand refiner (#219) 2024-02-12 21:59:44 -08:00
lllyasviel
3cdae09639 try solve saturation problems for instant id in #155 2024-02-11 20:53:17 -08:00
lllyasviel
11dcc6c96c solve lereas++ device #174 2024-02-11 16:53:19 -08:00
Chenlei Hu
8316773caa
Fix inpaint mask in API (#188)
* Fix inpaint mask in API

* Add more tests

* Add tests
2024-02-11 11:49:21 -05:00
Chenlei Hu
e11753ff84
Fix controlnet/detect API endpoint (#187) 2024-02-11 01:15:06 -05:00
Chenlei Hu
6a854fcb38
Add documentation on ControlNetUnit (#176)
* remove dict from any

* nit

* nit
2024-02-10 22:30:22 -05:00
Andray
44b647a83e
Use ResizeHandleRow for z123 and svd (#168) 2024-02-10 00:57:12 -08:00
lllyasviel
ce21e7afe4 fix degradation 2024-02-09 23:09:01 -08:00
Chenlei Hu
5a7e755528
ControlNet API (#162)
* ControlNet API

* update cache key

* nits

* disable controlnet tests
2024-02-10 01:16:13 -05:00
Chengsong Zhang
ee565b337c
ControlNet batch fix (#113)
* cn forward patcher

* simplify

* use args instead of kwargs

* postpond moving cond_hint to gpu

* also do this for t2i adapter

* use a1111's code to load files in a batch

* revert

* patcher for batch images

* patcher for batch images

* remove cn fn wrapper dupl

* remove shit

* use unit getattr instead of unet patcher

* fix bug

* small changte
2024-02-09 21:55:29 -06:00
lllyasviel
dca0a1d5d8
Integrate Multi Diffusion
Integrated Multi Diffusion, based on codes from pkuliyi2015 and shiimizu
Basic Diffusion test passed
ControlNet test passed
2024-02-09 18:37:32 -08:00
lllyasviel
4ec1015162 fix mask can be none 2024-02-09 18:25:44 -08:00
lllyasviel
fb2e271668 support inpaint models from fooocus
put inpaint_v26.fooocus.patch in models\ControlNet, control SDXL models only
To get same algorithm as Fooocus, set "Stop at" (Ending Control Step) to 0.5
Fooocus always use 0.5 but in Forge users may use other values.
Results are best when stop at < 0.7. The model is not optimized with ending timesteps > 0.7
Supports inpaint_global_harmonious, inpaint_only, inpaint_only+lama.
In theory the inpaint_only+lama always outperform Fooocus in object removal task (but not all tasks).
2024-02-09 17:08:48 -08:00
lllyasviel
54edd29725 integrate latent modifier 2024-02-09 14:38:57 -08:00
lllyasviel
8c8f948666 integrated DynamicThresholding (CFG-Fix) 2024-02-09 14:11:59 -08:00
Chenlei Hu
200f2b69ed
Add back ControlNet model version filter (#131)
* Add back ControlNet model version filter

* Update choice after sd model changes
2024-02-09 16:34:09 -05:00
lllyasviel
472a510151 try fix control mode weighting #155 2024-02-09 13:23:49 -08:00
lllyasviel
50035ad414 fix outpaint with inpaint_global_harmonious 2024-02-07 20:31:22 -08:00
Chenlei Hu
383aaca1eb
Improve model filtering (#114) 2024-02-07 22:53:41 -05:00
lllyasviel
42dd258c8d revise attention alignment in stylealign #100
A mistake in 0day release is that the attention layers of cond and uncond items in a batch are aligned when they should not.
after align batch in cond and uncond separately they now works and give same results to legacy sd-webui-cnet
2024-02-07 19:11:53 -08:00
lllyasviel
f63917a323 add codes discussed in #73 that may help ipadapters 2024-02-07 18:57:57 -08:00
lllyasviel
c3a66b016b try solve dtype cast for #112 2024-02-07 12:39:55 -08:00
Chenlei Hu
e1faf8327b
Add back ControlNet HR option (#90)
* Add back ControlNet HR option

* nits

* protect kernel

* add enum

* fix

* fix

* Update controlnet.py

* restore controlnet.py

* hint ui

* Update controlnet.py

* fix

* Update controlnet.py

* Backend: better controlnet mask batch broadcasting

* Update README.md

* fix inpaint batch dim align #94

* fix sigmas device in rare cases #71

* rework sigma device mapping

* Add hr_option to infotext

---------

Co-authored-by: lllyasviel <lyuminzhang@outlook.com>
2024-02-07 11:09:52 -05:00
lllyasviel
4ea4a92fe9 fix inpaint batch dim align #94 2024-02-06 22:57:53 -08:00
Chenlei Hu
1110183943
Fix ControlNet UI preset (#87) 2024-02-06 21:52:04 -05:00
lllyasviel
6301a6660e solve #73 2024-02-06 17:28:00 -08:00
lllyasviel
711844ecd8 solve #76 2024-02-06 17:25:28 -08:00
lllyasviel
70ae2a4bce fix controlnet ignored in batch #55 2024-02-06 17:12:57 -08:00
lllyasviel
fc5c70a28d gradio fix 2024-02-06 14:32:42 -08:00
Chengsong Zhang
b58b0bd425
batch mask (#44)
* mask batch, not working

* mask batch, working, infotext broken

* try remove old codes

* set CUDA_VISIBLE_DEVICES with args

* Revert "try remove old codes"

This reverts commit 63c527c373383f7eb99e134ca6b298bc613ac4ca.

* Update controlnet_ui_group.py

* readme

* 🐛 Fix infotext

---------

Co-authored-by: lllyasviel <lyuminzhang@outlook.com>
Co-authored-by: huchenlei <chenlei.hu@mail.utoronto.ca>
2024-02-06 12:54:35 -06:00
Kohaku-Blueleaf
393c19bbcf
Remove Lycoris back compact (#41)
Forge use totally different mechanism to handle lora/lycoris models
I think it is good to remove the back compact things so "lyco" alias can be used by legacy lycoris extensions. (some other extension may rely on it)
2024-02-06 11:17:15 +08:00
lllyasviel
88f6df4dcd add_sampler_pre_cfg_function 2024-02-05 14:48:43 -08:00