Commit Graph

42 Commits

Author SHA1 Message Date
Chenlei Hu 6a854fcb38 Add documentation on ControlNetUnit (#176)
* remove dict from any

* nit

* nit
2024-02-10 22:30:22 -05:00
Chenlei Hu 5a7e755528 ControlNet API (#162)
* ControlNet API

* update cache key

* nits

* disable controlnet tests
2024-02-10 01:16:13 -05: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
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
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
Chenlei Hu 1110183943 Fix ControlNet UI preset (#87) 2024-02-06 21:52:04 -05: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 63c527c373.

* 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
lllyasviel affb40340e infotext quickfix 2024-02-04 22:38:47 -08:00
lllyasviel c6f7fa82ff ini batch 2024-02-04 21:43:17 -08:00
lllyasviel 4b6cd359e9 rename 2024-02-04 21:05:05 -08:00
lllyasviel 8dc2cb98b4 Update controlnet_ui_group.py 2024-02-04 20:50:07 -08:00
lllyasviel a433268db4 register batch and multi input in unit 2024-02-04 20:49:40 -08:00
lllyasviel 54e3cea685 version filter broken after model switch 2024-02-04 14:06:47 -08:00
Chenlei Hu 1ed747d5f9 Create empty mask canvas with generation target's width/height (#35) 2024-02-03 22:23:36 -05:00
Chenlei Hu bafb2bce54 Display thumbnail of input image and mask on folded unit header (#33)
* Add input thumbnail to unit header

* handle hand drawn mask

* Update mask logic
2024-02-03 22:00:18 -05:00
Chenlei Hu f2b1ee09d4 Filter ControlNet model based on active SD's version (#32) 2024-02-02 23:17:18 -05:00
Chenlei Hu 3e80e11309 Add back enabled checkbox and sync (#30)
* Add back enabled checkbox and sync

* Better state management
2024-02-02 17:57:45 -05:00
lllyasviel 1b60a0f804 add notes 2024-02-02 14:50:51 -08:00
Chenlei Hu 6c3194147c Fix infotext (#28) 2024-02-02 17:31:20 -05:00
huchenlei 79eb31b074 Put unit in accordions 2024-02-02 17:01:20 -05:00
lllyasviel 98b0d7a999 remove shits 2024-02-02 01:17:50 -08:00
lllyasviel 9f6ee2a688 ini mask support 2024-02-01 21:21:41 -08:00
lllyasviel 9bcea66d08 rework args 2024-02-01 17:18:59 -08:00
lllyasviel 06759ccd7f allow draw mask or upload mask 2024-02-01 16:56:02 -08:00
lllyasviel 421070b44e Update controlnet_ui_group.py 2024-02-01 16:47:40 -08:00
lllyasviel eefa8a701d Revert "Create controlnet_unit.py"
This reverts commit b347f9ae63.
2024-02-01 16:44:06 -08:00
lllyasviel b347f9ae63 Create controlnet_unit.py 2024-02-01 16:25:32 -08:00
lllyasviel aa324847ee remove shit 2024-02-01 15:56:04 -08:00
lllyasviel 49f188532f Update controlnet_ui_group.py 2024-01-31 16:28:19 -08:00
lllyasviel 4fc659d385 Update controlnet_ui_group.py 2024-01-31 13:34:25 -08:00
lllyasviel 8a0dcd09c9 Update controlnet_ui_group.py 2024-01-31 00:18:19 -08:00
lllyasviel 5d0ddde772 Revert "ui"
This reverts commit fab6fb7a44.
2024-01-30 22:17:57 -08:00
lllyasviel fab6fb7a44 ui 2024-01-30 22:08:57 -08:00
lllyasviel ce07ae6895 i 2024-01-30 13:36:38 -08:00
lllyasviel 01dfe3ac49 inpaint ini 2024-01-30 13:15:57 -08:00
lllyasviel 459450c48c fix 2024-01-29 19:33:47 -08:00
lllyasviel 02690df299 i 2024-01-29 18:39:58 -08:00
lllyasviel d65fed0966 Update external_code.py 2024-01-29 18:37:10 -08:00
lllyasviel e34f4cdd9c typo 2024-01-29 18:07:16 -08:00
lllyasviel b0885d21b7 i 2024-01-29 16:08:26 -08:00
lllyasviel ac374e0b97 Cnet (#22)
* ini

* remove shit

* Create control_model.py

* i

* i

* Update controlnet_supported.py

* Update controlnet_supported.py

* Update controlnet_supported.py

* i

* i

* Update controlnet_supported.py

* i

* Update controlnet_supported.py

* remove shits

* remove shit

* Update global_state.py

* i

* i

* Update legacy_preprocessors.py

* Update legacy_preprocessors.py

* remove shit

* Update batch_hijack.py

* remove shit

* remove shit

* i

* i

* i

* Update external_code.py

* Update global_state.py

* Update infotext.py

* Update utils.py

* Update external_code.py

* i

* i

* i

* Update controlnet_ui_group.py

* remove shit

* remove shit

* i

* Update controlnet.py

* Update controlnet.py

* Update controlnet.py

* Update controlnet.py

* Update controlnet.py

* i

* Update global_state.py

* Update global_state.py

* i

* Update global_state.py

* Update global_state.py

* Update global_state.py

* Update global_state.py

* Update controlnet_ui_group.py

* i

* Update global_state.py

* Update controlnet_ui_group.py

* Update controlnet_ui_group.py

* i

* Update controlnet_ui_group.py

* Update controlnet_ui_group.py

* Update controlnet_ui_group.py

* Update controlnet_ui_group.py
2024-01-29 14:25:03 -08:00