light-and-ray / sd-webui-replacer

A tab for sd-webui for replacing objects in pictures or videos using detection prompt
193 stars 11 forks source link

AttributeError: type object 'ControlNetUiGroup' has no attribute 'all_ui_groups' #34

Closed monstari closed 6 months ago

monstari commented 6 months ago

*** Error executing callback ui_tabs_callback for C:\stable-diffusion-webui-master\extensions\sd-webui-replacer\scripts\replacer_main_ui.py Traceback (most recent call last): File "C:\stable-diffusion-webui-master\modules\script_callbacks.py", line 166, in ui_tabs_callback res += c.callback() or [] File "C:\stable-diffusion-webui-master\extensions\sd-webui-replacer\scripts\replacer_main_ui.py", line 15, in on_ui_tabs replacerTabUi = getReplacerTabUI(isDedicatedPage=False) File "C:\stable-diffusion-webui-master\extensions\sd-webui-replacer\replacer\tab_ui.py", line 70, in getReplacerTabUI cnUiGroupsLenBefore = len(replacer_scripts.ControlNetUiGroup.all_ui_groups) AttributeError: type object 'ControlNetUiGroup' has no attribute 'all_ui_groups'


*** [Replacer] error while creating dedicated page: type object 'ControlNetUiGroup' has no attribute 'all_ui_groups' Traceback (most recent call last): File "C:\stable-diffusion-webui-master\extensions\sd-webui-replacer\scripts\replacer_main_ui.py", line 35, in mountDedicatedPage getReplacerTabUI(isDedicatedPage=True) File "C:\stable-diffusion-webui-master\extensions\sd-webui-replacer\replacer\tab_ui.py", line 70, in getReplacerTabUI cnUiGroupsLenBefore = len(replacer_scripts.ControlNetUiGroup.all_ui_groups) AttributeError: type object 'ControlNetUiGroup' has no attribute 'all_ui_groups'


### I updated to 1.7.0 and made a fresh installation.

venv "C:\stable-diffusion-webui-master\venv\Scripts\Python.exe" Python 3.10.11 (tags/v3.10.11:7d4cc5a, Apr 5 2023, 00:38:17) [MSC v.1929 64 bit (AMD64)] Version: 1.7.0 Commit hash:

light-and-ray commented 6 months ago

I made a patch, now it shouldn't stop initializing of replacer

light-and-ray commented 6 months ago

Which ControlNet version do you use, and do you use it?

light-and-ray commented 6 months ago

Maybe your CN version is less then 1.1.436: https://github.com/Mikubill/sd-webui-controlnet/commit/b146963c1b0067dcea478a0ff436431f3328c1db

You should update this extension