Skip to content

Commit

Permalink
Update batch_hijack.py
Browse files Browse the repository at this point in the history
  • Loading branch information
liubo0902 authored Sep 13, 2023
1 parent 24c90be commit f56c10c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/batch_hijack.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ def get_cn_batches(p: processing.StableDiffusionProcessing) -> Tuple[bool, List[
batches = [[] for _ in range(cn_batch_size)]
for i in range(cn_batch_size):
for unit in units:
if getattr(unit, 'input_mode', InputMode.SIMPLE) == InputMode.SIMPLE:
if getattr(unit, 'input_mode', InputMode.SIMPLE) == InputMode.SIMPLE or getattr(unit, 'input_mode', InputMode.SIMPLE) == 'simple':
batches[i].append(unit.image)
else:
batches[i].append(unit.batch_images[i])
Expand Down

0 comments on commit f56c10c

Please sign in to comment.