Skip to content

Commit

Permalink
🐛 Fix txt2img send dimensions (#2591)
Browse files Browse the repository at this point in the history
  • Loading branch information
huchenlei authored Jan 28, 2024
1 parent 3101d31 commit a67d040
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/controlnet_ui/controlnet_ui_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,9 @@ def set_component(self, component: gr.components.IOComponent):
"setting_sd_model_checkpoint": "setting_sd_model_checkpoint",
}
elem_id = getattr(component, "elem_id", None)
if elem_id in id_mapping:
# Do not set component if it has already been set.
# https://github.com/Mikubill/sd-webui-controlnet/issues/2587
if elem_id in id_mapping and getattr(self, id_mapping[elem_id]) is None:
setattr(self, id_mapping[elem_id], component)
logger.debug(f"Setting {elem_id}.")
logger.debug(
Expand Down

0 comments on commit a67d040

Please sign in to comment.