Skip to content

Commit

Permalink
feat: count image count index from 1 (#3383)
Browse files Browse the repository at this point in the history
* docs: update numbering of basic debug procedure in issue template
  • Loading branch information
mashb1t authored Jul 27, 2024
1 parent 3f25b88 commit a5040f6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions modules/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -517,6 +517,7 @@ def init_temp_path(path: str | None, default_path: str) -> str:
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,
Expand Down
1 change: 1 addition & 0 deletions webui.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@ def skip_clicked(currentTask):
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)
Expand Down

0 comments on commit a5040f6

Please sign in to comment.