feat: count image count index from 1 (#3383)
* docs: update numbering of basic debug procedure in issue template
This commit is contained in:
parent
3f25b885a7
commit
a5040f6218
|
|
@ -517,6 +517,7 @@ default_ip_weights = {}
|
|||
default_ip_types = {}
|
||||
|
||||
for image_count in range(default_controlnet_image_count):
|
||||
image_count += 1
|
||||
default_ip_images[image_count] = get_config_item_or_set_default(
|
||||
key=f'default_ip_image_{image_count}',
|
||||
default_value=None,
|
||||
|
|
|
|||
1
webui.py
1
webui.py
|
|
@ -221,6 +221,7 @@ with shared.gradio_root:
|
|||
ip_ctrls = []
|
||||
ip_ad_cols = []
|
||||
for image_count in range(modules.config.default_controlnet_image_count):
|
||||
image_count += 1
|
||||
with gr.Column():
|
||||
ip_image = grh.Image(label='Image', source='upload', type='numpy', show_label=False, height=300, value=modules.config.default_ip_images[image_count])
|
||||
ip_images.append(ip_image)
|
||||
|
|
|
|||
Loading…
Reference in New Issue