Skip to content

Commit

Permalink
fixed issue when executing without batch mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Pablo Martinez committed Feb 26, 2023
1 parent 6247fc5 commit 70d4e34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/controlnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -576,8 +576,8 @@ def process(self, p, is_img2img=False, *args):

is_api = getattr(p, 'control_net_api_access', False)
is_img2img_batch_tab = not is_api and is_img2img and img2img_tab_tracker.submit_img2img_tab == 'img2img_batch_tab'
if is_img2img_batch_tab and p.image_control is not None:
input_image = p.image_control
if is_img2img_batch_tab and hasattr(p, "image_control") and p.image_control is not None:
input_image = HWC3(np.asarray(p.image_control))
elif input_image is not None:
input_image = HWC3(np.asarray(input_image))
elif image is not None:
Expand Down

0 comments on commit 70d4e34

Please sign in to comment.