lllyasviel / lllyasviel/stable-diffusion-webui-forge
[Feature Request] Static ID for the ControlNet accordion components.
- Dominant language
- Python
- Stars
- 13k
- Forks
- 1.7k
- PR merge metrics
- No merged PRs in 30d
Description
Hello I am using Config_Preset with Forge to save my settings.
I wrote this issue on Config_Preset github page;
>
> Enabling the checkboxes for either ControlNet 0, 1 or 2 does not cause the main (parent) ControlNet checkbox to be enabled, thus rendering them disabled.
>
> There's an option for ADetailer called;
> "script_txt2img_adetailer_ad_main_accordion-checkbox"
> which does enable the main checkbox, it would be wonderful to have the same for the ControlNet as well.
>
> EDIT: I looked into the controlnet_ui_group.py in "app\extensions-builtin\sd_forge_controlnet\lib_controlnet\controlnet_ui"
> but can't seem to find the elem_id for an accordion-checkbox, I am guessing it does not have a value associated with it. If this can be confirmed, the issue may be closed.
and received this answer.
> I assume you are using Forge, because the extension for A1111 does not have an accordion.
>
> You would need to use the ID of the accordion's hidden checkbox, just like ADetailer, however Forge's Integrated version of ControlNet does not use a defined ID for that component, instead it uses the default which in my case is input-accordion-8 which is not static.
>
> This means it's not viable to use Config Presets to control that accordion. You would need to open an issue on Forge's github and ask that they add a static ID to the accordion component.
So please consider assigning a static ID to the ControlNet accordion components. Or all the accordion components in that matter.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start in app\extensions-builtin\sd_forge_controlnet\lib_controlnet\controlnet_ui\controlnet_ui_group.py and inspect how the ControlNet accordion components are created. Confirm which hidden checkbox elements lack stable IDs, then verify that the requested ControlNet accordion controls expose static identifiers suitable for Config_Preset.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100